From ae6f57eadeb91be9c4edbc9d3d12cf604eea3861 Mon Sep 17 00:00:00 2001 From: fanlv Date: Fri, 25 Jul 2025 20:48:44 +0800 Subject: [PATCH] chore(comment): add open source license header --- .github/.licenserc.yaml | 1 + .gitignore | 3 +++ frontend/config/ts-config/global.d.ts | 16 ++++++++++++++++ .../rules/tsx-no-leaked-render/fixture/react.tsx | 16 ++++++++++++++++ .../agent-ide/bot-plugin/export/src/index.tsx | 16 ++++++++++++++++ .../src/component/config-area/use-bot-config.tsx | 16 ++++++++++++++++ .../src/component/model-btn-view/index.tsx | 16 ++++++++++++++++ .../src/hook/use-subscribe-background.ts | 16 ++++++++++++++++ frontend/packages/arch/utils/__tests__/setup.ts | 16 ++++++++++++++++ .../src/components/chat-background/index.tsx | 16 ++++++++++++++++ .../chat-uikit/src/hooks/use-event-callback.ts | 16 ++++++++++++++++ .../components-table/options/index.tsx | 16 ++++++++++++++++ .../common/prompt-kit/main/src/typings.d.ts | 16 ++++++++++++++++ .../src/components/upload-unit-file/type.d.ts | 16 ++++++++++++++++ .../data/memory/database-v2-base/src/index.tsx | 16 ++++++++++++++++ .../mockset-manage/src/components/index.tsx | 16 ++++++++++++++++ .../project-ide/biz-workflow/src/type.ts | 16 ++++++++++++++++ .../components/static-error-msg-render.tsx | 16 ++++++++++++++++ .../stores/bot-detail/src/utils/integrated-fg.ts | 16 ++++++++++++++++ .../studio/workspace/entry-adapter/src/index.ts | 16 ++++++++++++++++ .../src/components/bot-form-modal/index.tsx | 16 ++++++++++++++++ .../utils/node-result-extractor/index.test.ts | 16 ++++++++++++++++ .../src/node-registries/database/common/types.ts | 16 ++++++++++++++++ 23 files changed, 340 insertions(+) diff --git a/.github/.licenserc.yaml b/.github/.licenserc.yaml index 316cc199..6b97a7cf 100644 --- a/.github/.licenserc.yaml +++ b/.github/.licenserc.yaml @@ -25,5 +25,6 @@ header: - 'backend/api/**' - '**/*_mock.go' - 'backend/internal/mock/**' + - '**/mock/**' files: - ../backend/go.mod \ No newline at end of file diff --git a/.gitignore b/.gitignore index ca61c68c..9c0c556d 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,6 @@ node_modules common/temp .rush .eslintcache + + +backend/conf/model/*.yaml diff --git a/frontend/config/ts-config/global.d.ts b/frontend/config/ts-config/global.d.ts index e69de29b..26a79f3b 100644 --- a/frontend/config/ts-config/global.d.ts +++ b/frontend/config/ts-config/global.d.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/infra/eslint-plugin/src/rules/tsx-no-leaked-render/fixture/react.tsx b/frontend/infra/eslint-plugin/src/rules/tsx-no-leaked-render/fixture/react.tsx index e69de29b..26a79f3b 100644 --- a/frontend/infra/eslint-plugin/src/rules/tsx-no-leaked-render/fixture/react.tsx +++ b/frontend/infra/eslint-plugin/src/rules/tsx-no-leaked-render/fixture/react.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/agent-ide/bot-plugin/export/src/index.tsx b/frontend/packages/agent-ide/bot-plugin/export/src/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/agent-ide/bot-plugin/export/src/index.tsx +++ b/frontend/packages/agent-ide/bot-plugin/export/src/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/agent-ide/space-bot/src/component/config-area/use-bot-config.tsx b/frontend/packages/agent-ide/space-bot/src/component/config-area/use-bot-config.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/agent-ide/space-bot/src/component/config-area/use-bot-config.tsx +++ b/frontend/packages/agent-ide/space-bot/src/component/config-area/use-bot-config.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/agent-ide/space-bot/src/component/model-btn-view/index.tsx b/frontend/packages/agent-ide/space-bot/src/component/model-btn-view/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/agent-ide/space-bot/src/component/model-btn-view/index.tsx +++ b/frontend/packages/agent-ide/space-bot/src/component/model-btn-view/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/agent-ide/space-bot/src/hook/use-subscribe-background.ts b/frontend/packages/agent-ide/space-bot/src/hook/use-subscribe-background.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/agent-ide/space-bot/src/hook/use-subscribe-background.ts +++ b/frontend/packages/agent-ide/space-bot/src/hook/use-subscribe-background.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/arch/utils/__tests__/setup.ts b/frontend/packages/arch/utils/__tests__/setup.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/arch/utils/__tests__/setup.ts +++ b/frontend/packages/arch/utils/__tests__/setup.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/common/chat-area/chat-area/src/components/chat-background/index.tsx b/frontend/packages/common/chat-area/chat-area/src/components/chat-background/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/common/chat-area/chat-area/src/components/chat-background/index.tsx +++ b/frontend/packages/common/chat-area/chat-area/src/components/chat-background/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/common/chat-area/chat-uikit/src/hooks/use-event-callback.ts b/frontend/packages/common/chat-area/chat-uikit/src/hooks/use-event-callback.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/common/chat-area/chat-uikit/src/hooks/use-event-callback.ts +++ b/frontend/packages/common/chat-area/chat-uikit/src/hooks/use-event-callback.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/common/chat-area/plugin-chat-shortcuts/src/components/components-table/options/index.tsx b/frontend/packages/common/chat-area/plugin-chat-shortcuts/src/components/components-table/options/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/common/chat-area/plugin-chat-shortcuts/src/components/components-table/options/index.tsx +++ b/frontend/packages/common/chat-area/plugin-chat-shortcuts/src/components/components-table/options/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/common/prompt-kit/main/src/typings.d.ts b/frontend/packages/common/prompt-kit/main/src/typings.d.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/common/prompt-kit/main/src/typings.d.ts +++ b/frontend/packages/common/prompt-kit/main/src/typings.d.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/data/knowledge/knowledge-resource-processor-base/src/components/upload-unit-file/type.d.ts b/frontend/packages/data/knowledge/knowledge-resource-processor-base/src/components/upload-unit-file/type.d.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/data/knowledge/knowledge-resource-processor-base/src/components/upload-unit-file/type.d.ts +++ b/frontend/packages/data/knowledge/knowledge-resource-processor-base/src/components/upload-unit-file/type.d.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/data/memory/database-v2-base/src/index.tsx b/frontend/packages/data/memory/database-v2-base/src/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/data/memory/database-v2-base/src/index.tsx +++ b/frontend/packages/data/memory/database-v2-base/src/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/devops/mockset-manage/src/components/index.tsx b/frontend/packages/devops/mockset-manage/src/components/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/devops/mockset-manage/src/components/index.tsx +++ b/frontend/packages/devops/mockset-manage/src/components/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/project-ide/biz-workflow/src/type.ts b/frontend/packages/project-ide/biz-workflow/src/type.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/project-ide/biz-workflow/src/type.ts +++ b/frontend/packages/project-ide/biz-workflow/src/type.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/project-ide/framework/src/components/resource-folder/render-components/components/static-error-msg-render.tsx b/frontend/packages/project-ide/framework/src/components/resource-folder/render-components/components/static-error-msg-render.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/project-ide/framework/src/components/resource-folder/render-components/components/static-error-msg-render.tsx +++ b/frontend/packages/project-ide/framework/src/components/resource-folder/render-components/components/static-error-msg-render.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/studio/stores/bot-detail/src/utils/integrated-fg.ts b/frontend/packages/studio/stores/bot-detail/src/utils/integrated-fg.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/studio/stores/bot-detail/src/utils/integrated-fg.ts +++ b/frontend/packages/studio/stores/bot-detail/src/utils/integrated-fg.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/studio/workspace/entry-adapter/src/index.ts b/frontend/packages/studio/workspace/entry-adapter/src/index.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/studio/workspace/entry-adapter/src/index.ts +++ b/frontend/packages/studio/workspace/entry-adapter/src/index.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/studio/workspace/project-entity-base/src/components/bot-form-modal/index.tsx b/frontend/packages/studio/workspace/project-entity-base/src/components/bot-form-modal/index.tsx index e69de29b..26a79f3b 100644 --- a/frontend/packages/studio/workspace/project-entity-base/src/components/bot-form-modal/index.tsx +++ b/frontend/packages/studio/workspace/project-entity-base/src/components/bot-form-modal/index.tsx @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/workflow/base/__tests__/utils/node-result-extractor/index.test.ts b/frontend/packages/workflow/base/__tests__/utils/node-result-extractor/index.test.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/workflow/base/__tests__/utils/node-result-extractor/index.test.ts +++ b/frontend/packages/workflow/base/__tests__/utils/node-result-extractor/index.test.ts @@ -0,0 +1,16 @@ +/* + * 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/frontend/packages/workflow/playground/src/node-registries/database/common/types.ts b/frontend/packages/workflow/playground/src/node-registries/database/common/types.ts index e69de29b..26a79f3b 100644 --- a/frontend/packages/workflow/playground/src/node-registries/database/common/types.ts +++ b/frontend/packages/workflow/playground/src/node-registries/database/common/types.ts @@ -0,0 +1,16 @@ +/* + * 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. + */ +