diff --git a/backend/application/workflow/workflow.go b/backend/application/workflow/workflow.go index 4bf76b4e..65ab9176 100644 --- a/backend/application/workflow/workflow.go +++ b/backend/application/workflow/workflow.go @@ -3497,7 +3497,7 @@ func entityNodeTypeToAPINodeTemplateType(nodeType entity.NodeType) (workflow.Nod // return workflow.NodeTemplateType_DatabaseInsert, nil return workflow.NodeTemplateType(46), nil case entity.NodeTypeJsonSerialization: - return workflow.NodeTemplateType_JsonSerialization, nil + return workflow.NodeTemplateType(58), nil case entity.NodeTypeJsonDeserialization: return workflow.NodeTemplateType_JsonDeserialization, nil case entity.NodeTypeKnowledgeDeleter: diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/components/inputs/index.tsx b/frontend/packages/workflow/playground/src/node-registries/json-stringify/components/inputs/index.tsx index 0d3b30b2..76a3f8e1 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/components/inputs/index.tsx +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/components/inputs/index.tsx @@ -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 { FieldArray, type FieldArrayRenderProps, diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/constants.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/constants.ts index f27a4023..9231aa31 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/constants.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/constants.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 { nanoid } from 'nanoid'; import { ViewVariableType } from '@coze-workflow/variable'; diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/data-transformer.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/data-transformer.ts index 235d5c8e..79ce4a06 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/data-transformer.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/data-transformer.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 NodeDataDTO } from '@coze-workflow/base'; import { type FormData } from './types'; diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/form-meta.tsx b/frontend/packages/workflow/playground/src/node-registries/json-stringify/form-meta.tsx index 0e58f010..c5597fe5 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/form-meta.tsx +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/form-meta.tsx @@ -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 { ValidateTrigger, type FormMetaV2, diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/form.tsx b/frontend/packages/workflow/playground/src/node-registries/json-stringify/form.tsx index 8a13750e..08edd99e 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/form.tsx +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/form.tsx @@ -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 { I18n } from '@coze-arch/i18n'; import { NodeConfigForm } from '@/node-registries/common/components'; diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/index.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/index.ts index c86ccaf3..2094d550 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/index.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/index.ts @@ -1,2 +1,18 @@ +/* + * 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 { JSON_STRINGIFY_NODE_REGISTRY } from './node-registry'; export { JsonStringifyContent } from './node-content'; diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-content.tsx b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-content.tsx index 5bf0af94..ca201b96 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-content.tsx +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-content.tsx @@ -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 { InputParameters, Outputs } from '../common/components'; export function JsonStringifyContent() { diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-registry.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-registry.ts index c2a5ec39..3db91a3b 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-registry.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-registry.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 { DEFAULT_NODE_META_PATH, DEFAULT_OUTPUTS_PATH, diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-test.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-test.ts index 467c6ae3..59bd8a25 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-test.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/node-test.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 { FlowNodeFormData } from '@flowgram-adapter/free-layout-editor'; import { diff --git a/frontend/packages/workflow/playground/src/node-registries/json-stringify/types.ts b/frontend/packages/workflow/playground/src/node-registries/json-stringify/types.ts index 8b600187..feefc5f2 100644 --- a/frontend/packages/workflow/playground/src/node-registries/json-stringify/types.ts +++ b/frontend/packages/workflow/playground/src/node-registries/json-stringify/types.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 InputValueVO } from '@coze-workflow/base'; export interface FormData {