From 35d2f3811069a0126c1caa45fe8cc60386a8d1db Mon Sep 17 00:00:00 2001 From: fanlv Date: Fri, 25 Jul 2025 20:10:23 +0800 Subject: [PATCH] chore(comment): add open source license header --- .github/.licenserc.yaml | 4 ++++ .github/workflows/semantic-pull-request.yaml | 1 + .../api/model/crossdomain/agentrun/agent_run.go | 16 ++++++++++++++++ .../api/model/crossdomain/connector/connector.go | 16 ++++++++++++++++ .../crossdomain/conversation/conversation.go | 16 ++++++++++++++++ backend/api/model/crossdomain/database/const.go | 16 ++++++++++++++++ .../api/model/crossdomain/database/database.go | 16 ++++++++++++++++ .../api/model/crossdomain/knowledge/knowledge.go | 16 ++++++++++++++++ backend/api/model/crossdomain/message/message.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/consts.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/convert.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/openai.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/option.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/plugin.go | 16 ++++++++++++++++ .../model/crossdomain/plugin/plugin_manifest.go | 16 ++++++++++++++++ backend/api/model/crossdomain/plugin/toolinfo.go | 16 ++++++++++++++++ .../api/model/crossdomain/search/resource_doc.go | 16 ++++++++++++++++ backend/api/model/crossdomain/search/search.go | 16 ++++++++++++++++ .../crossdomain/singleagent/single_agent.go | 16 ++++++++++++++++ .../crossdomain/variables/variable_instance.go | 16 ++++++++++++++++ backend/application/base/appinfra/modelmgr.go | 16 ++++++++++++++++ .../application/base/appinfra/modelmgr_test.go | 16 ++++++++++++++++ backend/application/modelmgr/init.go | 16 ++++++++++++++++ .../knowledge/internal/dal/model/progress.go | 16 ++++++++++++++++ .../knowledge/internal/dal/model/strategy.go | 16 ++++++++++++++++ .../workflow/internal/nodes/entry/entry.go | 16 ++++++++++++++++ backend/infra/contract/modelmgr/const.go | 16 ++++++++++++++++ backend/infra/contract/modelmgr/desc.go | 16 ++++++++++++++++ backend/infra/contract/modelmgr/modelmgr.go | 16 ++++++++++++++++ backend/infra/impl/coderunner/sandbox/runner.go | 16 ++++++++++++++++ backend/infra/impl/modelmgr/static/modelmgr.go | 16 ++++++++++++++++ backend/pkg/lang/crypto/md5.go | 16 ++++++++++++++++ .../chat-plugin-readonly-standard/init.config.ts | 16 ++++++++++++++++ .../chat-plugin-readonly-standard/src/index.ts | 16 ++++++++++++++++ .../chat-plugin-readonly-standard/src/plugin.ts | 16 ++++++++++++++++ .../src/services/life-cycle/app.ts | 16 ++++++++++++++++ .../src/services/life-cycle/command.ts | 16 ++++++++++++++++ .../src/services/life-cycle/index.ts | 16 ++++++++++++++++ .../src/services/life-cycle/message.ts | 16 ++++++++++++++++ .../src/services/life-cycle/render.ts | 16 ++++++++++++++++ .../src/types/biz-context.ts | 16 ++++++++++++++++ .../vitest.config.ts | 16 ++++++++++++++++ .../init.config.ts | 16 ++++++++++++++++ .../chat-plugin-writeable-standard/src/index.ts | 16 ++++++++++++++++ .../chat-plugin-writeable-standard/src/plugin.ts | 16 ++++++++++++++++ .../src/services/life-cycle/app.ts | 16 ++++++++++++++++ .../src/services/life-cycle/command.ts | 16 ++++++++++++++++ .../src/services/life-cycle/index.ts | 16 ++++++++++++++++ .../src/services/life-cycle/message.ts | 16 ++++++++++++++++ .../src/services/life-cycle/render.ts | 16 ++++++++++++++++ .../src/types/biz-context.ts | 16 ++++++++++++++++ .../src/typings.d.ts | 16 ++++++++++++++++ .../vitest.config.ts | 16 ++++++++++++++++ common/_templates/component/init.config.ts | 16 ++++++++++++++++ common/_templates/component/src/typings.d.ts | 16 ++++++++++++++++ common/_templates/component/vitest.config.ts | 16 ++++++++++++++++ common/_templates/rsbuild-web/init.config.ts | 16 ++++++++++++++++ common/_templates/rsbuild-web/rsbuild.config.ts | 16 ++++++++++++++++ common/_templates/rsbuild-web/src/global.d.ts | 16 ++++++++++++++++ common/_templates/rsbuild-web/tailwind.config.ts | 16 ++++++++++++++++ common/_templates/rsbuild-web/vitest.config.ts | 16 ++++++++++++++++ common/_templates/solid-component/init.config.ts | 16 ++++++++++++++++ common/_templates/solid-component/src/index.ts | 16 ++++++++++++++++ .../_templates/solid-component/src/typings.d.ts | 16 ++++++++++++++++ .../solid-component/tailwind.config.ts | 16 ++++++++++++++++ .../_templates/solid-component/vitest.config.ts | 16 ++++++++++++++++ 66 files changed, 1029 insertions(+) diff --git a/.github/.licenserc.yaml b/.github/.licenserc.yaml index 7ffea2f5..316cc199 100644 --- a/.github/.licenserc.yaml +++ b/.github/.licenserc.yaml @@ -21,5 +21,9 @@ header: - '**/gorm_gen/**' - '**/kitex_gen/**' - '**/*.gen.go' + - '**/gen.go' + - 'backend/api/**' + - '**/*_mock.go' + - 'backend/internal/mock/**' files: - ../backend/go.mod \ No newline at end of file diff --git a/.github/workflows/semantic-pull-request.yaml b/.github/workflows/semantic-pull-request.yaml index 42876d38..d2a0f40d 100644 --- a/.github/workflows/semantic-pull-request.yaml +++ b/.github/workflows/semantic-pull-request.yaml @@ -57,6 +57,7 @@ jobs: model database foundation + comment # The pull request's title should be fulfilled the following pattern: # diff --git a/backend/api/model/crossdomain/agentrun/agent_run.go b/backend/api/model/crossdomain/agentrun/agent_run.go index 2537f6f7..58aeaf4b 100644 --- a/backend/api/model/crossdomain/agentrun/agent_run.go +++ b/backend/api/model/crossdomain/agentrun/agent_run.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package agentrun type Tool struct { diff --git a/backend/api/model/crossdomain/connector/connector.go b/backend/api/model/crossdomain/connector/connector.go index 13fc3544..7c4b027e 100644 --- a/backend/api/model/crossdomain/connector/connector.go +++ b/backend/api/model/crossdomain/connector/connector.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package connector import "github.com/coze-dev/coze-studio/backend/api/model/ocean/cloud/developer_api" diff --git a/backend/api/model/crossdomain/conversation/conversation.go b/backend/api/model/crossdomain/conversation/conversation.go index b4ba655a..e0d995fb 100644 --- a/backend/api/model/crossdomain/conversation/conversation.go +++ b/backend/api/model/crossdomain/conversation/conversation.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package conversation import "github.com/coze-dev/coze-studio/backend/api/model/conversation/common" diff --git a/backend/api/model/crossdomain/database/const.go b/backend/api/model/crossdomain/database/const.go index 91ac2f1b..5bf26f3f 100644 --- a/backend/api/model/crossdomain/database/const.go +++ b/backend/api/model/crossdomain/database/const.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package database type OperateType int64 diff --git a/backend/api/model/crossdomain/database/database.go b/backend/api/model/crossdomain/database/database.go index 12b38bb5..69f067b3 100644 --- a/backend/api/model/crossdomain/database/database.go +++ b/backend/api/model/crossdomain/database/database.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package database import ( diff --git a/backend/api/model/crossdomain/knowledge/knowledge.go b/backend/api/model/crossdomain/knowledge/knowledge.go index eb8a5ef1..4672af39 100644 --- a/backend/api/model/crossdomain/knowledge/knowledge.go +++ b/backend/api/model/crossdomain/knowledge/knowledge.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package knowledge import ( diff --git a/backend/api/model/crossdomain/message/message.go b/backend/api/model/crossdomain/message/message.go index 9b7aedd1..3e27bd38 100644 --- a/backend/api/model/crossdomain/message/message.go +++ b/backend/api/model/crossdomain/message/message.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package message import ( diff --git a/backend/api/model/crossdomain/plugin/consts.go b/backend/api/model/crossdomain/plugin/consts.go index ff7ad96f..6c9d7b43 100644 --- a/backend/api/model/crossdomain/plugin/consts.go +++ b/backend/api/model/crossdomain/plugin/consts.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import "github.com/getkin/kin-openapi/openapi3" diff --git a/backend/api/model/crossdomain/plugin/convert.go b/backend/api/model/crossdomain/plugin/convert.go index 7f5d616a..b0c80271 100644 --- a/backend/api/model/crossdomain/plugin/convert.go +++ b/backend/api/model/crossdomain/plugin/convert.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import ( diff --git a/backend/api/model/crossdomain/plugin/openai.go b/backend/api/model/crossdomain/plugin/openai.go index 082120c7..fbb98752 100644 --- a/backend/api/model/crossdomain/plugin/openai.go +++ b/backend/api/model/crossdomain/plugin/openai.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import ( diff --git a/backend/api/model/crossdomain/plugin/option.go b/backend/api/model/crossdomain/plugin/option.go index 14058e4c..0842bead 100644 --- a/backend/api/model/crossdomain/plugin/option.go +++ b/backend/api/model/crossdomain/plugin/option.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin type ExecuteToolOption struct { diff --git a/backend/api/model/crossdomain/plugin/plugin.go b/backend/api/model/crossdomain/plugin/plugin.go index aca84a2d..efa77d5d 100644 --- a/backend/api/model/crossdomain/plugin/plugin.go +++ b/backend/api/model/crossdomain/plugin/plugin.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import ( diff --git a/backend/api/model/crossdomain/plugin/plugin_manifest.go b/backend/api/model/crossdomain/plugin/plugin_manifest.go index 5446bb63..c8380521 100644 --- a/backend/api/model/crossdomain/plugin/plugin_manifest.go +++ b/backend/api/model/crossdomain/plugin/plugin_manifest.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import ( diff --git a/backend/api/model/crossdomain/plugin/toolinfo.go b/backend/api/model/crossdomain/plugin/toolinfo.go index fa2198d9..8cdc65e4 100644 --- a/backend/api/model/crossdomain/plugin/toolinfo.go +++ b/backend/api/model/crossdomain/plugin/toolinfo.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package plugin import ( diff --git a/backend/api/model/crossdomain/search/resource_doc.go b/backend/api/model/crossdomain/search/resource_doc.go index 8bc63138..75b388b0 100644 --- a/backend/api/model/crossdomain/search/resource_doc.go +++ b/backend/api/model/crossdomain/search/resource_doc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package search import ( diff --git a/backend/api/model/crossdomain/search/search.go b/backend/api/model/crossdomain/search/search.go index d73b61e5..9d54f4a1 100644 --- a/backend/api/model/crossdomain/search/search.go +++ b/backend/api/model/crossdomain/search/search.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package search import ( diff --git a/backend/api/model/crossdomain/singleagent/single_agent.go b/backend/api/model/crossdomain/singleagent/single_agent.go index 60e42e76..34372eeb 100644 --- a/backend/api/model/crossdomain/singleagent/single_agent.go +++ b/backend/api/model/crossdomain/singleagent/single_agent.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package singleagent import ( diff --git a/backend/api/model/crossdomain/variables/variable_instance.go b/backend/api/model/crossdomain/variables/variable_instance.go index 2195d1aa..df32738e 100644 --- a/backend/api/model/crossdomain/variables/variable_instance.go +++ b/backend/api/model/crossdomain/variables/variable_instance.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package variables import ( diff --git a/backend/application/base/appinfra/modelmgr.go b/backend/application/base/appinfra/modelmgr.go index 41b71f84..f3779968 100644 --- a/backend/application/base/appinfra/modelmgr.go +++ b/backend/application/base/appinfra/modelmgr.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package appinfra import ( diff --git a/backend/application/base/appinfra/modelmgr_test.go b/backend/application/base/appinfra/modelmgr_test.go index 6fe4bd1f..5450a752 100644 --- a/backend/application/base/appinfra/modelmgr_test.go +++ b/backend/application/base/appinfra/modelmgr_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package appinfra import ( diff --git a/backend/application/modelmgr/init.go b/backend/application/modelmgr/init.go index 40c8bfc9..3fe3776a 100644 --- a/backend/application/modelmgr/init.go +++ b/backend/application/modelmgr/init.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package modelmgr import ( diff --git a/backend/domain/knowledge/internal/dal/model/progress.go b/backend/domain/knowledge/internal/dal/model/progress.go index 5d6e4124..7fdabad4 100644 --- a/backend/domain/knowledge/internal/dal/model/progress.go +++ b/backend/domain/knowledge/internal/dal/model/progress.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package model type SliceStatus int32 diff --git a/backend/domain/knowledge/internal/dal/model/strategy.go b/backend/domain/knowledge/internal/dal/model/strategy.go index 49a8e4f7..fa40289c 100644 --- a/backend/domain/knowledge/internal/dal/model/strategy.go +++ b/backend/domain/knowledge/internal/dal/model/strategy.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package model import "github.com/coze-dev/coze-studio/backend/domain/knowledge/entity" diff --git a/backend/domain/workflow/internal/nodes/entry/entry.go b/backend/domain/workflow/internal/nodes/entry/entry.go index fd71f14a..de78b5bb 100644 --- a/backend/domain/workflow/internal/nodes/entry/entry.go +++ b/backend/domain/workflow/internal/nodes/entry/entry.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package entry import ( diff --git a/backend/infra/contract/modelmgr/const.go b/backend/infra/contract/modelmgr/const.go index c9f1383b..b9d2f689 100644 --- a/backend/infra/contract/modelmgr/const.go +++ b/backend/infra/contract/modelmgr/const.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package modelmgr type ParameterName string diff --git a/backend/infra/contract/modelmgr/desc.go b/backend/infra/contract/modelmgr/desc.go index 2bceff0d..9885c13c 100644 --- a/backend/infra/contract/modelmgr/desc.go +++ b/backend/infra/contract/modelmgr/desc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package modelmgr import ( diff --git a/backend/infra/contract/modelmgr/modelmgr.go b/backend/infra/contract/modelmgr/modelmgr.go index 94790123..614b9fab 100644 --- a/backend/infra/contract/modelmgr/modelmgr.go +++ b/backend/infra/contract/modelmgr/modelmgr.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package modelmgr import ( diff --git a/backend/infra/impl/coderunner/sandbox/runner.go b/backend/infra/impl/coderunner/sandbox/runner.go index fd8bd5f7..080c3137 100644 --- a/backend/infra/impl/coderunner/sandbox/runner.go +++ b/backend/infra/impl/coderunner/sandbox/runner.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package sandbox import ( diff --git a/backend/infra/impl/modelmgr/static/modelmgr.go b/backend/infra/impl/modelmgr/static/modelmgr.go index b330df4f..8b05054b 100644 --- a/backend/infra/impl/modelmgr/static/modelmgr.go +++ b/backend/infra/impl/modelmgr/static/modelmgr.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package static import ( diff --git a/backend/pkg/lang/crypto/md5.go b/backend/pkg/lang/crypto/md5.go index 629dd421..5447bc9b 100644 --- a/backend/pkg/lang/crypto/md5.go +++ b/backend/pkg/lang/crypto/md5.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package crypto import ( diff --git a/common/_templates/chat-plugin-readonly-standard/init.config.ts b/common/_templates/chat-plugin-readonly-standard/init.config.ts index 1c688195..12f3d3da 100644 --- a/common/_templates/chat-plugin-readonly-standard/init.config.ts +++ b/common/_templates/chat-plugin-readonly-standard/init.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import SelectTeamPlugin from '../_plugins/SelectTeamPlugin'; import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin'; import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/index.ts b/common/_templates/chat-plugin-readonly-standard/src/index.ts index baef8b6f..6cebdb66 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/index.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/index.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type PluginRegistryEntry } from '@coze-common/chat-area'; import { type PluginBizContext } from './types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/plugin.ts b/common/_templates/chat-plugin-readonly-standard/src/plugin.ts index 3a44f4f2..13a8d161 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/plugin.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/plugin.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginMode, PluginName, diff --git a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/app.ts b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/app.ts index e4d9b480..3180a1b1 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/app.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/app.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type ReadonlyAppLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/command.ts b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/command.ts index 69a9c03a..472d3255 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/command.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/command.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type ReadonlyCommandLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/index.ts b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/index.ts index c1ee8ba2..374fc4a8 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/index.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/index.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type ReadonlyLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/message.ts b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/message.ts index 55430f0b..149bb28b 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/message.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/message.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type ReadonlyMessageLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/render.ts b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/render.ts index 422d24ed..cdeecc50 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/render.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/services/life-cycle/render.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type ReadonlyRenderLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-readonly-standard/src/types/biz-context.ts b/common/_templates/chat-plugin-readonly-standard/src/types/biz-context.ts index a760fcc3..1135a4cc 100644 --- a/common/_templates/chat-plugin-readonly-standard/src/types/biz-context.ts +++ b/common/_templates/chat-plugin-readonly-standard/src/types/biz-context.ts @@ -1 +1,17 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export type PluginBizContext = Record; diff --git a/common/_templates/chat-plugin-readonly-standard/vitest.config.ts b/common/_templates/chat-plugin-readonly-standard/vitest.config.ts index c8378dcd..36ca1de6 100644 --- a/common/_templates/chat-plugin-readonly-standard/vitest.config.ts +++ b/common/_templates/chat-plugin-readonly-standard/vitest.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { defineConfig } from '@coze-arch/vitest-config'; export default defineConfig({ diff --git a/common/_templates/chat-plugin-writeable-standard/init.config.ts b/common/_templates/chat-plugin-writeable-standard/init.config.ts index 1c688195..12f3d3da 100644 --- a/common/_templates/chat-plugin-writeable-standard/init.config.ts +++ b/common/_templates/chat-plugin-writeable-standard/init.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import SelectTeamPlugin from '../_plugins/SelectTeamPlugin'; import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin'; import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/index.ts b/common/_templates/chat-plugin-writeable-standard/src/index.ts index baef8b6f..6cebdb66 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/index.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/index.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type PluginRegistryEntry } from '@coze-common/chat-area'; import { type PluginBizContext } from './types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/plugin.ts b/common/_templates/chat-plugin-writeable-standard/src/plugin.ts index cf554fc6..2771b1e3 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/plugin.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/plugin.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { PluginMode, PluginName, diff --git a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/app.ts b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/app.ts index b635b091..93c230ff 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/app.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/app.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type WriteableAppLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/command.ts b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/command.ts index 6566d5df..46f84fb6 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/command.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/command.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type WriteableCommandLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/index.ts b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/index.ts index 5af9d86e..634fe9f4 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/index.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/index.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type WriteableLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/message.ts b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/message.ts index 79453fdc..7698253c 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/message.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/message.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type WriteableMessageLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/render.ts b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/render.ts index 1dc45f6d..63a9370d 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/render.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/services/life-cycle/render.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { type WriteableRenderLifeCycleServiceGenerator } from '@coze-common/chat-area'; import { type PluginBizContext } from '../../types/biz-context'; diff --git a/common/_templates/chat-plugin-writeable-standard/src/types/biz-context.ts b/common/_templates/chat-plugin-writeable-standard/src/types/biz-context.ts index a760fcc3..1135a4cc 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/types/biz-context.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/types/biz-context.ts @@ -1 +1,17 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export type PluginBizContext = Record; diff --git a/common/_templates/chat-plugin-writeable-standard/src/typings.d.ts b/common/_templates/chat-plugin-writeable-standard/src/typings.d.ts index 6ab10704..4ae6594a 100644 --- a/common/_templates/chat-plugin-writeable-standard/src/typings.d.ts +++ b/common/_templates/chat-plugin-writeable-standard/src/typings.d.ts @@ -1 +1,17 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /// diff --git a/common/_templates/chat-plugin-writeable-standard/vitest.config.ts b/common/_templates/chat-plugin-writeable-standard/vitest.config.ts index c8378dcd..36ca1de6 100644 --- a/common/_templates/chat-plugin-writeable-standard/vitest.config.ts +++ b/common/_templates/chat-plugin-writeable-standard/vitest.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { defineConfig } from '@coze-arch/vitest-config'; export default defineConfig({ diff --git a/common/_templates/component/init.config.ts b/common/_templates/component/init.config.ts index ffee0519..107adc51 100644 --- a/common/_templates/component/init.config.ts +++ b/common/_templates/component/init.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin'; import SelectTeamPlugin from '../_plugins/SelectTeamPlugin'; import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin'; diff --git a/common/_templates/component/src/typings.d.ts b/common/_templates/component/src/typings.d.ts index 6ab10704..4ae6594a 100644 --- a/common/_templates/component/src/typings.d.ts +++ b/common/_templates/component/src/typings.d.ts @@ -1 +1,17 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /// diff --git a/common/_templates/component/vitest.config.ts b/common/_templates/component/vitest.config.ts index c8378dcd..36ca1de6 100644 --- a/common/_templates/component/vitest.config.ts +++ b/common/_templates/component/vitest.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { defineConfig } from '@coze-arch/vitest-config'; export default defineConfig({ diff --git a/common/_templates/rsbuild-web/init.config.ts b/common/_templates/rsbuild-web/init.config.ts index 34cee553..f0a4080e 100644 --- a/common/_templates/rsbuild-web/init.config.ts +++ b/common/_templates/rsbuild-web/init.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin'; import SelectTeamPlugin from '../_plugins/SelectTeamPlugin'; import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin'; diff --git a/common/_templates/rsbuild-web/rsbuild.config.ts b/common/_templates/rsbuild-web/rsbuild.config.ts index 9976e7c5..80688ac1 100644 --- a/common/_templates/rsbuild-web/rsbuild.config.ts +++ b/common/_templates/rsbuild-web/rsbuild.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import tailwindcss from 'tailwindcss'; import { pluginReact } from '@rsbuild/plugin-react'; import { defineConfig } from '@rsbuild/core'; diff --git a/common/_templates/rsbuild-web/src/global.d.ts b/common/_templates/rsbuild-web/src/global.d.ts index b0ac762b..dec0a9b6 100644 --- a/common/_templates/rsbuild-web/src/global.d.ts +++ b/common/_templates/rsbuild-web/src/global.d.ts @@ -1 +1,17 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /// diff --git a/common/_templates/rsbuild-web/tailwind.config.ts b/common/_templates/rsbuild-web/tailwind.config.ts index f6fec468..9f4afb8c 100644 --- a/common/_templates/rsbuild-web/tailwind.config.ts +++ b/common/_templates/rsbuild-web/tailwind.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { Config } from 'tailwindcss'; export default { diff --git a/common/_templates/rsbuild-web/vitest.config.ts b/common/_templates/rsbuild-web/vitest.config.ts index c8378dcd..36ca1de6 100644 --- a/common/_templates/rsbuild-web/vitest.config.ts +++ b/common/_templates/rsbuild-web/vitest.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { defineConfig } from '@coze-arch/vitest-config'; export default defineConfig({ diff --git a/common/_templates/solid-component/init.config.ts b/common/_templates/solid-component/init.config.ts index ffee0519..107adc51 100644 --- a/common/_templates/solid-component/init.config.ts +++ b/common/_templates/solid-component/init.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { IConfig } from '../../autoinstallers/plugins/node_modules/rush-init-project-plugin'; import SelectTeamPlugin from '../_plugins/SelectTeamPlugin'; import SetDefaultAuthorPlugin from '../_plugins/SetDefaultAuthorPlugin'; diff --git a/common/_templates/solid-component/src/index.ts b/common/_templates/solid-component/src/index.ts index 362826ac..3e3052be 100644 --- a/common/_templates/solid-component/src/index.ts +++ b/common/_templates/solid-component/src/index.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import './main.css'; export { DemoComponent } from './demo'; diff --git a/common/_templates/solid-component/src/typings.d.ts b/common/_templates/solid-component/src/typings.d.ts index 35d16efb..a5e22767 100644 --- a/common/_templates/solid-component/src/typings.d.ts +++ b/common/_templates/solid-component/src/typings.d.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + declare module '*.less' { const resource: { [key: string]: string }; export = resource; diff --git a/common/_templates/solid-component/tailwind.config.ts b/common/_templates/solid-component/tailwind.config.ts index 3396278c..ce2eaf1f 100644 --- a/common/_templates/solid-component/tailwind.config.ts +++ b/common/_templates/solid-component/tailwind.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import type { Config } from 'tailwindcss'; export default { diff --git a/common/_templates/solid-component/vitest.config.ts b/common/_templates/solid-component/vitest.config.ts index c8378dcd..36ca1de6 100644 --- a/common/_templates/solid-component/vitest.config.ts +++ b/common/_templates/solid-component/vitest.config.ts @@ -1,3 +1,19 @@ +/* + * Copyright 2025 coze-dev Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { defineConfig } from '@coze-arch/vitest-config'; export default defineConfig({