diff --git a/.vscode/settings.json b/.vscode/settings.json index 4591fd8..023ab9d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,25 @@ { - "eslint.nodePath": "config/eslint-config/node_modules/eslint", - "eslint.workingDirectories": [ - { - "mode": "auto" - } + "cSpell.diagnosticLevel": "Warning", + "cSpell.words": [ + "arktype", + "autoinstallers", + "Bytedance", + "cozeloop", + "doubao", + "kwargs", + "langchain", + "langgraph", + "langsmith", + "loggable", + "packagejson", + "prefault", + "preinstall", + "ptaas", + "remeda", + "traceparent", + "tracestate", + "vikingdb", + "websockets" ], "prettier.prettierPath": "config/eslint-config/node_modules/prettier", "editor.tabSize": 2, @@ -18,9 +34,14 @@ "source.fixAll.eslint": "explicit", "source.organizeImports": "never" }, + "editor.semanticHighlighting.enabled": false, + "eslint.probe": ["javascript", "typescript"], "eslint.format.enable": true, "eslint.lintTask.enable": true, + "eslint.nodePath": "config/eslint-config/node_modules/eslint", + "eslint.workingDirectories": [{ "mode": "auto" }], "search.followSymlinks": false, + "search.useIgnoreFiles": true, "search.exclude": { "**/node_modules": true, "**/pnpm-lock.yaml": true, @@ -52,13 +73,9 @@ "**/pnpm-lock.yaml": "plaintext", "**/*.yml": "yaml" }, - "search.useIgnoreFiles": true, "files.eol": "\n", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, - "cSpell.diagnosticLevel": "Warning", - "eslint.probe": ["javascript", "typescript"], - "editor.semanticHighlighting.enabled": false, "javascript.validate.enable": false, "typescript.tsdk": "config/ts-config/node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true, @@ -78,7 +95,6 @@ }, "typescript.validate.enable": true, "typescript.suggest.autoImports": true, - "emmet.triggerExpansionOnTab": true, "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, diff --git a/LICENSE b/LICENSE index 8badb49..5208ec4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +Copyright (c) 2026 Bytedance Ltd. and/or its affiliates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/cspell.json b/cspell.json deleted file mode 100644 index 1b52b7e..0000000 --- a/cspell.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "version": "0.2", - "ignorePaths": [], - "dictionaryDefinitions": [], - "dictionaries": [], - "caseSensitive": false, - "words": [ - "arktype", - "autoinstallers", - "Bytedance", - "cozeloop", - "doubao", - "kwargs", - "langchain", - "langgraph", - "langsmith", - "loggable", - "packagejson", - "prefault", - "preinstall", - "ptaas", - "remeda", - "traceparent", - "tracestate", - "vikingdb", - "websockets" - ], - "ignoreWords": [], - "import": [] -} diff --git a/packages/ci-tools/LICENSE b/packages/ci-tools/LICENSE index 8badb49..5208ec4 100644 --- a/packages/ci-tools/LICENSE +++ b/packages/ci-tools/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +Copyright (c) 2026 Bytedance Ltd. and/or its affiliates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/ci-tools/__tests__/utils.test.ts b/packages/ci-tools/__tests__/utils.test.ts index 98f0b02..52280d7 100644 --- a/packages/ci-tools/__tests__/utils.test.ts +++ b/packages/ci-tools/__tests__/utils.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { safeJsonParse, diff --git a/packages/ci-tools/src/global.d.ts b/packages/ci-tools/src/global.d.ts index 65a5b3f..90fbae7 100644 --- a/packages/ci-tools/src/global.d.ts +++ b/packages/ci-tools/src/global.d.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT declare module 'process' { global { diff --git a/packages/ci-tools/src/index.ts b/packages/ci-tools/src/index.ts index 718eb6e..23b51d5 100644 --- a/packages/ci-tools/src/index.ts +++ b/packages/ci-tools/src/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Command } from 'commander'; diff --git a/packages/ci-tools/src/lark/index.ts b/packages/ci-tools/src/lark/index.ts index ceb9880..ee275a7 100644 --- a/packages/ci-tools/src/lark/index.ts +++ b/packages/ci-tools/src/lark/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Command, Option } from 'commander'; diff --git a/packages/ci-tools/src/lark/schema.ts b/packages/ci-tools/src/lark/schema.ts index f6c37d8..b551740 100644 --- a/packages/ci-tools/src/lark/schema.ts +++ b/packages/ci-tools/src/lark/schema.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type, type Type } from 'arktype'; import { AppType, Domain } from '@larksuiteoapi/node-sdk'; diff --git a/packages/ci-tools/src/lark/send-message.ts b/packages/ci-tools/src/lark/send-message.ts index ab16549..13cea69 100644 --- a/packages/ci-tools/src/lark/send-message.ts +++ b/packages/ci-tools/src/lark/send-message.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Command } from 'commander'; import { Client } from '@larksuiteoapi/node-sdk'; diff --git a/packages/ci-tools/src/lark/sync-issue.ts b/packages/ci-tools/src/lark/sync-issue.ts index af19802..a02f524 100644 --- a/packages/ci-tools/src/lark/sync-issue.ts +++ b/packages/ci-tools/src/lark/sync-issue.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Command } from 'commander'; import { Client } from '@larksuiteoapi/node-sdk'; diff --git a/packages/ci-tools/src/lark/sync-pr.ts b/packages/ci-tools/src/lark/sync-pr.ts index cb60c3b..b716f8b 100644 --- a/packages/ci-tools/src/lark/sync-pr.ts +++ b/packages/ci-tools/src/lark/sync-pr.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Command } from 'commander'; import { Client } from '@larksuiteoapi/node-sdk'; diff --git a/packages/ci-tools/src/lark/utils.ts b/packages/ci-tools/src/lark/utils.ts index e6e44a8..2c1938b 100644 --- a/packages/ci-tools/src/lark/utils.ts +++ b/packages/ci-tools/src/lark/utils.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export function safeJsonParse(val: string): T | undefined { if (!val) { diff --git a/packages/cozeloop-ai/LICENSE b/packages/cozeloop-ai/LICENSE index 8badb49..5208ec4 100644 --- a/packages/cozeloop-ai/LICENSE +++ b/packages/cozeloop-ai/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +Copyright (c) 2026 Bytedance Ltd. and/or its affiliates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/cozeloop-ai/__tests__/__mock__/base-http.ts b/packages/cozeloop-ai/__tests__/__mock__/base-http.ts index 18a1973..65c78a2 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/base-http.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/base-http.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { join } from 'node:path'; diff --git a/packages/cozeloop-ai/__tests__/__mock__/jwt-auth.ts b/packages/cozeloop-ai/__tests__/__mock__/jwt-auth.ts index 40b6cfd..7c8eb2a 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/jwt-auth.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/jwt-auth.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupServer } from 'msw/node'; import { http, HttpResponse } from 'msw'; diff --git a/packages/cozeloop-ai/__tests__/__mock__/loop-tracer.ts b/packages/cozeloop-ai/__tests__/__mock__/loop-tracer.ts index a59afe9..8d3336d 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/loop-tracer.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/loop-tracer.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupServer } from 'msw/node'; import { http } from 'msw'; diff --git a/packages/cozeloop-ai/__tests__/__mock__/prompt-hub.ts b/packages/cozeloop-ai/__tests__/__mock__/prompt-hub.ts index a3d2351..22e104f 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/prompt-hub.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/prompt-hub.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupServer } from 'msw/node'; import { http, passthrough } from 'msw'; diff --git a/packages/cozeloop-ai/__tests__/__mock__/ptaas.ts b/packages/cozeloop-ai/__tests__/__mock__/ptaas.ts index 2380c33..47e6165 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/ptaas.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/ptaas.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { join } from 'node:path'; diff --git a/packages/cozeloop-ai/__tests__/__mock__/utils.ts b/packages/cozeloop-ai/__tests__/__mock__/utils.ts index 21d2e4c..64b8181 100644 --- a/packages/cozeloop-ai/__tests__/__mock__/utils.ts +++ b/packages/cozeloop-ai/__tests__/__mock__/utils.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { readFile } from 'node:fs/promises'; diff --git a/packages/cozeloop-ai/__tests__/api/api-client.test.ts b/packages/cozeloop-ai/__tests__/api/api-client.test.ts index 410592f..cd3ba47 100644 --- a/packages/cozeloop-ai/__tests__/api/api-client.test.ts +++ b/packages/cozeloop-ai/__tests__/api/api-client.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupBaseHttpMock } from '../__mock__/base-http'; import { simpleConsoleLogger } from '../../src/utils/logger'; diff --git a/packages/cozeloop-ai/__tests__/api/http.test.ts b/packages/cozeloop-ai/__tests__/api/http.test.ts index 890097a..fa305dc 100644 --- a/packages/cozeloop-ai/__tests__/api/http.test.ts +++ b/packages/cozeloop-ai/__tests__/api/http.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import axios from 'axios'; diff --git a/packages/cozeloop-ai/__tests__/api/utils.test.ts b/packages/cozeloop-ai/__tests__/api/utils.test.ts index 105fd67..84e6f4d 100644 --- a/packages/cozeloop-ai/__tests__/api/utils.test.ts +++ b/packages/cozeloop-ai/__tests__/api/utils.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import nodeFetch from 'node-fetch'; diff --git a/packages/cozeloop-ai/__tests__/auth/oauth-jwt.test.ts b/packages/cozeloop-ai/__tests__/auth/oauth-jwt.test.ts index 244ab55..e2b4371 100644 --- a/packages/cozeloop-ai/__tests__/auth/oauth-jwt.test.ts +++ b/packages/cozeloop-ai/__tests__/auth/oauth-jwt.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupJwtAuthMock } from '../__mock__/jwt-auth'; import { simpleConsoleLogger } from '../../src/utils/logger'; diff --git a/packages/cozeloop-ai/__tests__/auth/utils.test.ts b/packages/cozeloop-ai/__tests__/auth/utils.test.ts index 780704a..94134de 100644 --- a/packages/cozeloop-ai/__tests__/auth/utils.test.ts +++ b/packages/cozeloop-ai/__tests__/auth/utils.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { delay, randomStr } from '../../src/auth/utils'; diff --git a/packages/cozeloop-ai/__tests__/error/common-error.test.ts b/packages/cozeloop-ai/__tests__/error/common-error.test.ts index f1e7f8e..cbb9b19 100644 --- a/packages/cozeloop-ai/__tests__/error/common-error.test.ts +++ b/packages/cozeloop-ai/__tests__/error/common-error.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { PropertyUnprovidedError, diff --git a/packages/cozeloop-ai/__tests__/error/http-error.test.ts b/packages/cozeloop-ai/__tests__/error/http-error.test.ts index ea6b94a..8d4b510 100644 --- a/packages/cozeloop-ai/__tests__/error/http-error.test.ts +++ b/packages/cozeloop-ai/__tests__/error/http-error.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { AxiosError, AxiosHeaders } from 'axios'; diff --git a/packages/cozeloop-ai/__tests__/prompt/converter.test.ts b/packages/cozeloop-ai/__tests__/prompt/converter.test.ts index b9765f1..02dbff0 100644 --- a/packages/cozeloop-ai/__tests__/prompt/converter.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/converter.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { diff --git a/packages/cozeloop-ai/__tests__/prompt/guard.test.ts b/packages/cozeloop-ai/__tests__/prompt/guard.test.ts index 24c256e..a9772bd 100644 --- a/packages/cozeloop-ai/__tests__/prompt/guard.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/guard.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { diff --git a/packages/cozeloop-ai/__tests__/prompt/hub.test.ts b/packages/cozeloop-ai/__tests__/prompt/hub.test.ts index ebf2459..a201380 100644 --- a/packages/cozeloop-ai/__tests__/prompt/hub.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/hub.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setTimeout } from 'node:timers/promises'; diff --git a/packages/cozeloop-ai/__tests__/prompt/ptaas.test.ts b/packages/cozeloop-ai/__tests__/prompt/ptaas.test.ts index 828538f..b8ce152 100644 --- a/packages/cozeloop-ai/__tests__/prompt/ptaas.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/ptaas.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setupPTaaSMock } from '../__mock__/ptaas'; diff --git a/packages/cozeloop-ai/__tests__/prompt/trace.test.ts b/packages/cozeloop-ai/__tests__/prompt/trace.test.ts index 317747a..d652350 100644 --- a/packages/cozeloop-ai/__tests__/prompt/trace.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/trace.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { serializeTagValue } from '../../src/tracer/utils'; import { diff --git a/packages/cozeloop-ai/__tests__/prompt/utils.test.ts b/packages/cozeloop-ai/__tests__/prompt/utils.test.ts index 7a39f38..5eaf71c 100644 --- a/packages/cozeloop-ai/__tests__/prompt/utils.test.ts +++ b/packages/cozeloop-ai/__tests__/prompt/utils.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { cacheKeyToQuery, diff --git a/packages/cozeloop-ai/__tests__/tracer/propagation.test.ts b/packages/cozeloop-ai/__tests__/tracer/propagation.test.ts index 85db91f..dce2a0b 100644 --- a/packages/cozeloop-ai/__tests__/tracer/propagation.test.ts +++ b/packages/cozeloop-ai/__tests__/tracer/propagation.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /* eslint-disable security/detect-object-injection -- skip */ import { diff --git a/packages/cozeloop-ai/__tests__/tracer/tags.test.ts b/packages/cozeloop-ai/__tests__/tracer/tags.test.ts index 9779d02..9a26773 100644 --- a/packages/cozeloop-ai/__tests__/tracer/tags.test.ts +++ b/packages/cozeloop-ai/__tests__/tracer/tags.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan } from '@opentelemetry/sdk-trace-base'; import { SpanStatusCode, type Span } from '@opentelemetry/api'; diff --git a/packages/cozeloop-ai/__tests__/tracer/traceable.test.ts b/packages/cozeloop-ai/__tests__/tracer/traceable.test.ts index 07ded40..252916c 100644 --- a/packages/cozeloop-ai/__tests__/tracer/traceable.test.ts +++ b/packages/cozeloop-ai/__tests__/tracer/traceable.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { setTimeout } from 'node:timers/promises'; diff --git a/packages/cozeloop-ai/__tests__/utils/common.test.ts b/packages/cozeloop-ai/__tests__/utils/common.test.ts index 59acb49..aa95ae6 100644 --- a/packages/cozeloop-ai/__tests__/utils/common.test.ts +++ b/packages/cozeloop-ai/__tests__/utils/common.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /* eslint-disable @typescript-eslint/no-empty-function -- skip for test */ import { diff --git a/packages/cozeloop-ai/__tests__/utils/env.test.ts b/packages/cozeloop-ai/__tests__/utils/env.test.ts index e8c4cac..581a87c 100644 --- a/packages/cozeloop-ai/__tests__/utils/env.test.ts +++ b/packages/cozeloop-ai/__tests__/utils/env.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { ensureProperty, diff --git a/packages/cozeloop-ai/__tests__/utils/logger.test.ts b/packages/cozeloop-ai/__tests__/utils/logger.test.ts index 825f4bd..e3ea29c 100644 --- a/packages/cozeloop-ai/__tests__/utils/logger.test.ts +++ b/packages/cozeloop-ai/__tests__/utils/logger.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { createLoopLogger, LoopLoggable } from '../../src/utils/logger'; diff --git a/packages/cozeloop-ai/src/api/api-client/client.ts b/packages/cozeloop-ai/src/api/api-client/client.ts index 5a8910d..af55714 100644 --- a/packages/cozeloop-ai/src/api/api-client/client.ts +++ b/packages/cozeloop-ai/src/api/api-client/client.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type AxiosResponseHeaders } from 'axios'; diff --git a/packages/cozeloop-ai/src/api/api-client/http.ts b/packages/cozeloop-ai/src/api/api-client/http.ts index 1449fab..025596f 100644 --- a/packages/cozeloop-ai/src/api/api-client/http.ts +++ b/packages/cozeloop-ai/src/api/api-client/http.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import './polyfill-async-iterator'; diff --git a/packages/cozeloop-ai/src/api/api-client/index.ts b/packages/cozeloop-ai/src/api/api-client/index.ts index 9f9112d..7c1420c 100644 --- a/packages/cozeloop-ai/src/api/api-client/index.ts +++ b/packages/cozeloop-ai/src/api/api-client/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { getUserAgentHeaders } from './user-agent'; export { ApiClient, DEFAULT_API_BASE_URL } from './client'; diff --git a/packages/cozeloop-ai/src/api/api-client/polyfill-async-iterator.ts b/packages/cozeloop-ai/src/api/api-client/polyfill-async-iterator.ts index 32c7c0d..e4ca4f3 100644 --- a/packages/cozeloop-ai/src/api/api-client/polyfill-async-iterator.ts +++ b/packages/cozeloop-ai/src/api/api-client/polyfill-async-iterator.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- skip // @ts-nocheck diff --git a/packages/cozeloop-ai/src/api/api-client/types.ts b/packages/cozeloop-ai/src/api/api-client/types.ts index e87f6be..f9f41ee 100644 --- a/packages/cozeloop-ai/src/api/api-client/types.ts +++ b/packages/cozeloop-ai/src/api/api-client/types.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import type { AxiosInstance, AxiosRequestConfig } from 'axios'; diff --git a/packages/cozeloop-ai/src/api/api-client/user-agent.ts b/packages/cozeloop-ai/src/api/api-client/user-agent.ts index 29e7bf1..7f3ef67 100644 --- a/packages/cozeloop-ai/src/api/api-client/user-agent.ts +++ b/packages/cozeloop-ai/src/api/api-client/user-agent.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import os from 'node:os'; diff --git a/packages/cozeloop-ai/src/api/api-client/utils.ts b/packages/cozeloop-ai/src/api/api-client/utils.ts index 30abc0a..691d564 100644 --- a/packages/cozeloop-ai/src/api/api-client/utils.ts +++ b/packages/cozeloop-ai/src/api/api-client/utils.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import nodeFetch, { type RequestInit } from 'node-fetch'; import { type AxiosStatic, type CreateAxiosDefaults } from 'axios'; diff --git a/packages/cozeloop-ai/src/api/base.ts b/packages/cozeloop-ai/src/api/base.ts index c18765d..1c014f5 100644 --- a/packages/cozeloop-ai/src/api/base.ts +++ b/packages/cozeloop-ai/src/api/base.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type LoopApiClient } from './types'; import { ApiClient } from './api-client'; diff --git a/packages/cozeloop-ai/src/api/index.ts b/packages/cozeloop-ai/src/api/index.ts index 18c4ab2..78b055e 100644 --- a/packages/cozeloop-ai/src/api/index.ts +++ b/packages/cozeloop-ai/src/api/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { ApiClient, http } from './api-client'; export type { diff --git a/packages/cozeloop-ai/src/api/prompt/index.ts b/packages/cozeloop-ai/src/api/prompt/index.ts index 9d17c42..2157267 100644 --- a/packages/cozeloop-ai/src/api/prompt/index.ts +++ b/packages/cozeloop-ai/src/api/prompt/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type PullPromptReq, type PullPromptResp } from './types/prompt'; import { diff --git a/packages/cozeloop-ai/src/api/prompt/types/common.ts b/packages/cozeloop-ai/src/api/prompt/types/common.ts index 8a1644c..8440499 100644 --- a/packages/cozeloop-ai/src/api/prompt/types/common.ts +++ b/packages/cozeloop-ai/src/api/prompt/types/common.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export type LoopContentType = diff --git a/packages/cozeloop-ai/src/api/prompt/types/execute.ts b/packages/cozeloop-ai/src/api/prompt/types/execute.ts index 4fb0e94..f8864d6 100644 --- a/packages/cozeloop-ai/src/api/prompt/types/execute.ts +++ b/packages/cozeloop-ai/src/api/prompt/types/execute.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type BaseApiResp } from '../../base'; diff --git a/packages/cozeloop-ai/src/api/prompt/types/prompt.ts b/packages/cozeloop-ai/src/api/prompt/types/prompt.ts index 997f7c4..dcd54d9 100644 --- a/packages/cozeloop-ai/src/api/prompt/types/prompt.ts +++ b/packages/cozeloop-ai/src/api/prompt/types/prompt.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type BaseApiResp } from '../../base'; diff --git a/packages/cozeloop-ai/src/api/trace/index.ts b/packages/cozeloop-ai/src/api/trace/index.ts index dd756b3..0069fb2 100644 --- a/packages/cozeloop-ai/src/api/trace/index.ts +++ b/packages/cozeloop-ai/src/api/trace/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import FormData from 'form-data'; diff --git a/packages/cozeloop-ai/src/api/trace/types.ts b/packages/cozeloop-ai/src/api/trace/types.ts index df28c23..9949b55 100644 --- a/packages/cozeloop-ai/src/api/trace/types.ts +++ b/packages/cozeloop-ai/src/api/trace/types.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import type { ReadStream } from 'node:fs'; import type { Blob } from 'node:buffer'; diff --git a/packages/cozeloop-ai/src/api/types.ts b/packages/cozeloop-ai/src/api/types.ts index fbe7fca..6b0e6a2 100644 --- a/packages/cozeloop-ai/src/api/types.ts +++ b/packages/cozeloop-ai/src/api/types.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ApiClient, type ApiClientOptions } from './api-client'; diff --git a/packages/cozeloop-ai/src/auth/index.ts b/packages/cozeloop-ai/src/auth/index.ts index 14ff112..46de02e 100644 --- a/packages/cozeloop-ai/src/auth/index.ts +++ b/packages/cozeloop-ai/src/auth/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export type { OAuthCodeToken, OAuthRefreshTokenReq } from './oauth-base'; diff --git a/packages/cozeloop-ai/src/auth/oauth-base.ts b/packages/cozeloop-ai/src/auth/oauth-base.ts index 0fcfd9e..ddc484a 100644 --- a/packages/cozeloop-ai/src/auth/oauth-base.ts +++ b/packages/cozeloop-ai/src/auth/oauth-base.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { LoopLoggable } from '../utils/logger'; import { getUserAgentHeaders } from '../api/api-client'; diff --git a/packages/cozeloop-ai/src/auth/oauth-code.ts b/packages/cozeloop-ai/src/auth/oauth-code.ts index 236c19f..aa89984 100644 --- a/packages/cozeloop-ai/src/auth/oauth-code.ts +++ b/packages/cozeloop-ai/src/auth/oauth-code.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type SimpleLogger } from '../utils/logger'; import { http } from '../api'; diff --git a/packages/cozeloop-ai/src/auth/oauth-device.ts b/packages/cozeloop-ai/src/auth/oauth-device.ts index 5108a2f..95f62bd 100644 --- a/packages/cozeloop-ai/src/auth/oauth-device.ts +++ b/packages/cozeloop-ai/src/auth/oauth-device.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type SimpleLogger } from '../utils/logger'; import { ensureProperty, EnvKeys, isBrowser } from '../utils/env'; diff --git a/packages/cozeloop-ai/src/auth/oauth-jwt.ts b/packages/cozeloop-ai/src/auth/oauth-jwt.ts index c4acd54..cbafac9 100644 --- a/packages/cozeloop-ai/src/auth/oauth-jwt.ts +++ b/packages/cozeloop-ai/src/auth/oauth-jwt.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Algorithm } from 'jsonwebtoken'; import jwt from 'jsonwebtoken'; diff --git a/packages/cozeloop-ai/src/auth/oauth-pkce.ts b/packages/cozeloop-ai/src/auth/oauth-pkce.ts index 2166396..9104d88 100644 --- a/packages/cozeloop-ai/src/auth/oauth-pkce.ts +++ b/packages/cozeloop-ai/src/auth/oauth-pkce.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { subtle as nodeSubtle } from 'node:crypto'; diff --git a/packages/cozeloop-ai/src/auth/utils.ts b/packages/cozeloop-ai/src/auth/utils.ts index c19bbde..ecd2501 100644 --- a/packages/cozeloop-ai/src/auth/utils.ts +++ b/packages/cozeloop-ai/src/auth/utils.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { nanoid } from 'nanoid'; diff --git a/packages/cozeloop-ai/src/error/common-error.ts b/packages/cozeloop-ai/src/error/common-error.ts index f966ab9..aebc29b 100644 --- a/packages/cozeloop-ai/src/error/common-error.ts +++ b/packages/cozeloop-ai/src/error/common-error.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export interface PropertyUnprovidedErrorDetail { tag?: string; diff --git a/packages/cozeloop-ai/src/error/http-error.ts b/packages/cozeloop-ai/src/error/http-error.ts index e61ff5d..30456bb 100644 --- a/packages/cozeloop-ai/src/error/http-error.ts +++ b/packages/cozeloop-ai/src/error/http-error.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /* eslint-disable @typescript-eslint/no-explicit-any -- some error is any */ import { type AxiosResponseHeaders, isAxiosError } from 'axios'; diff --git a/packages/cozeloop-ai/src/error/index.ts b/packages/cozeloop-ai/src/error/index.ts index af2dcb1..6543c86 100644 --- a/packages/cozeloop-ai/src/error/index.ts +++ b/packages/cozeloop-ai/src/error/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { handleError, checkApiResponse } from './http-error'; diff --git a/packages/cozeloop-ai/src/error/types.ts b/packages/cozeloop-ai/src/error/types.ts index 32e371f..3447926 100644 --- a/packages/cozeloop-ai/src/error/types.ts +++ b/packages/cozeloop-ai/src/error/types.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /* eslint-disable @typescript-eslint/no-explicit-any -- some error is any */ import type { AxiosResponseHeaders } from 'axios'; diff --git a/packages/cozeloop-ai/src/global.d.ts b/packages/cozeloop-ai/src/global.d.ts index aeb036f..d5fb2a6 100644 --- a/packages/cozeloop-ai/src/global.d.ts +++ b/packages/cozeloop-ai/src/global.d.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT declare module 'rimraf' { import fs from 'node:fs'; diff --git a/packages/cozeloop-ai/src/index.ts b/packages/cozeloop-ai/src/index.ts index 5cda9ef..e5d7c32 100644 --- a/packages/cozeloop-ai/src/index.ts +++ b/packages/cozeloop-ai/src/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT // api export { ApiClient, http, PromptApi, TraceApi } from './api'; diff --git a/packages/cozeloop-ai/src/prompt/cache.ts b/packages/cozeloop-ai/src/prompt/cache.ts index bbcabbe..503e9da 100644 --- a/packages/cozeloop-ai/src/prompt/cache.ts +++ b/packages/cozeloop-ai/src/prompt/cache.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { clearIntervalAsync, diff --git a/packages/cozeloop-ai/src/prompt/collect-stream.ts b/packages/cozeloop-ai/src/prompt/collect-stream.ts index 81def9f..0bfc11f 100644 --- a/packages/cozeloop-ai/src/prompt/collect-stream.ts +++ b/packages/cozeloop-ai/src/prompt/collect-stream.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import type { LoopToolCall, diff --git a/packages/cozeloop-ai/src/prompt/converter.ts b/packages/cozeloop-ai/src/prompt/converter.ts index c2ff380..fc826ec 100644 --- a/packages/cozeloop-ai/src/prompt/converter.ts +++ b/packages/cozeloop-ai/src/prompt/converter.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { stringifyVal } from '../utils/common'; import { diff --git a/packages/cozeloop-ai/src/prompt/guard.ts b/packages/cozeloop-ai/src/prompt/guard.ts index 00bc502..07e2915 100644 --- a/packages/cozeloop-ai/src/prompt/guard.ts +++ b/packages/cozeloop-ai/src/prompt/guard.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ContentPart, type Message } from './types'; diff --git a/packages/cozeloop-ai/src/prompt/hub.ts b/packages/cozeloop-ai/src/prompt/hub.ts index 331613e..98ed86f 100644 --- a/packages/cozeloop-ai/src/prompt/hub.ts +++ b/packages/cozeloop-ai/src/prompt/hub.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { ensureProperty, EnvKeys } from '../utils/env'; import { mergeConfig } from '../utils/common'; diff --git a/packages/cozeloop-ai/src/prompt/index.ts b/packages/cozeloop-ai/src/prompt/index.ts index 26e83ad..88cab2f 100644 --- a/packages/cozeloop-ai/src/prompt/index.ts +++ b/packages/cozeloop-ai/src/prompt/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { PromptHub } from './hub'; export { PromptAsAService } from './ptaas'; diff --git a/packages/cozeloop-ai/src/prompt/ptaas.ts b/packages/cozeloop-ai/src/prompt/ptaas.ts index cf747c6..3dbadd8 100644 --- a/packages/cozeloop-ai/src/prompt/ptaas.ts +++ b/packages/cozeloop-ai/src/prompt/ptaas.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { ensureProperty, EnvKeys } from '../utils/env'; import { mergeConfig } from '../utils/common'; diff --git a/packages/cozeloop-ai/src/prompt/trace.ts b/packages/cozeloop-ai/src/prompt/trace.ts index c5271be..68818f6 100644 --- a/packages/cozeloop-ai/src/prompt/trace.ts +++ b/packages/cozeloop-ai/src/prompt/trace.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { serializeTagValue } from '../tracer/utils'; import { diff --git a/packages/cozeloop-ai/src/prompt/types.ts b/packages/cozeloop-ai/src/prompt/types.ts index dd367d5..d8b9a5b 100644 --- a/packages/cozeloop-ai/src/prompt/types.ts +++ b/packages/cozeloop-ai/src/prompt/types.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type SimpleLogger } from '../utils/logger'; import { diff --git a/packages/cozeloop-ai/src/prompt/utils.ts b/packages/cozeloop-ai/src/prompt/utils.ts index f63f766..2224368 100644 --- a/packages/cozeloop-ai/src/prompt/utils.ts +++ b/packages/cozeloop-ai/src/prompt/utils.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import nj from 'nunjucks'; diff --git a/packages/cozeloop-ai/src/tracer/client/index.ts b/packages/cozeloop-ai/src/tracer/client/index.ts index deb0a21..0e8f4ab 100644 --- a/packages/cozeloop-ai/src/tracer/client/index.ts +++ b/packages/cozeloop-ai/src/tracer/client/index.ts @@ -1,3 +1,3 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { CozeLoopTraceClient } from './loop'; diff --git a/packages/cozeloop-ai/src/tracer/client/loop/index.ts b/packages/cozeloop-ai/src/tracer/client/loop/index.ts index abd95d2..a9eee48 100644 --- a/packages/cozeloop-ai/src/tracer/client/loop/index.ts +++ b/packages/cozeloop-ai/src/tracer/client/loop/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan } from '@opentelemetry/sdk-trace-node'; diff --git a/packages/cozeloop-ai/src/tracer/constants/index.ts b/packages/cozeloop-ai/src/tracer/constants/index.ts index 7176180..843b4c7 100644 --- a/packages/cozeloop-ai/src/tracer/constants/index.ts +++ b/packages/cozeloop-ai/src/tracer/constants/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export const ROOT_SPAN_PARENT_ID = '0'; diff --git a/packages/cozeloop-ai/src/tracer/exporter/index.ts b/packages/cozeloop-ai/src/tracer/exporter/index.ts index 3edc081..ed4af76 100644 --- a/packages/cozeloop-ai/src/tracer/exporter/index.ts +++ b/packages/cozeloop-ai/src/tracer/exporter/index.ts @@ -1,3 +1,3 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { CozeLoopTraceExporter } from './loop'; diff --git a/packages/cozeloop-ai/src/tracer/exporter/loop/index.ts b/packages/cozeloop-ai/src/tracer/exporter/loop/index.ts index 797d8b9..24c46bd 100644 --- a/packages/cozeloop-ai/src/tracer/exporter/loop/index.ts +++ b/packages/cozeloop-ai/src/tracer/exporter/loop/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan, diff --git a/packages/cozeloop-ai/src/tracer/index.ts b/packages/cozeloop-ai/src/tracer/index.ts index e0d03ac..07dd29d 100644 --- a/packages/cozeloop-ai/src/tracer/index.ts +++ b/packages/cozeloop-ai/src/tracer/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { traceable } from './wrapper'; import { setError, setInput, setOutput, setTag, setTags } from './utils/tags'; diff --git a/packages/cozeloop-ai/src/tracer/initialize.ts b/packages/cozeloop-ai/src/tracer/initialize.ts index 2cc5962..dbb5264 100644 --- a/packages/cozeloop-ai/src/tracer/initialize.ts +++ b/packages/cozeloop-ai/src/tracer/initialize.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { BatchSpanProcessor, diff --git a/packages/cozeloop-ai/src/tracer/types/index.ts b/packages/cozeloop-ai/src/tracer/types/index.ts index 81654b7..2d59b68 100644 --- a/packages/cozeloop-ai/src/tracer/types/index.ts +++ b/packages/cozeloop-ai/src/tracer/types/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export enum SpanKind { PromptHub = 'prompt_hub', diff --git a/packages/cozeloop-ai/src/tracer/types/initialize.ts b/packages/cozeloop-ai/src/tracer/types/initialize.ts index 1609ce3..16e0bbb 100644 --- a/packages/cozeloop-ai/src/tracer/types/initialize.ts +++ b/packages/cozeloop-ai/src/tracer/types/initialize.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type SpanExporter, diff --git a/packages/cozeloop-ai/src/tracer/types/wrapper.ts b/packages/cozeloop-ai/src/tracer/types/wrapper.ts index e5253ef..84018a9 100644 --- a/packages/cozeloop-ai/src/tracer/types/wrapper.ts +++ b/packages/cozeloop-ai/src/tracer/types/wrapper.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Attributes } from '@opentelemetry/api'; diff --git a/packages/cozeloop-ai/src/tracer/utils/client/index.ts b/packages/cozeloop-ai/src/tracer/utils/client/index.ts index f525a3c..bd8703a 100644 --- a/packages/cozeloop-ai/src/tracer/utils/client/index.ts +++ b/packages/cozeloop-ai/src/tracer/utils/client/index.ts @@ -1,3 +1,3 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { LoopTraceSpanConverter } from './loop'; diff --git a/packages/cozeloop-ai/src/tracer/utils/client/loop.ts b/packages/cozeloop-ai/src/tracer/utils/client/loop.ts index 9938e4b..4b9d8d9 100644 --- a/packages/cozeloop-ai/src/tracer/utils/client/loop.ts +++ b/packages/cozeloop-ai/src/tracer/utils/client/loop.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { Buffer } from 'node:buffer'; diff --git a/packages/cozeloop-ai/src/tracer/utils/common.ts b/packages/cozeloop-ai/src/tracer/utils/common.ts index 8b972b4..2c7c402 100644 --- a/packages/cozeloop-ai/src/tracer/utils/common.ts +++ b/packages/cozeloop-ai/src/tracer/utils/common.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type HrTime } from '@opentelemetry/api'; diff --git a/packages/cozeloop-ai/src/tracer/utils/index.ts b/packages/cozeloop-ai/src/tracer/utils/index.ts index 3a0d042..4dcb533 100644 --- a/packages/cozeloop-ai/src/tracer/utils/index.ts +++ b/packages/cozeloop-ai/src/tracer/utils/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { trace } from '@opentelemetry/api'; diff --git a/packages/cozeloop-ai/src/tracer/utils/propagation/index.ts b/packages/cozeloop-ai/src/tracer/utils/propagation/index.ts index 3b2d177..dc7f86c 100644 --- a/packages/cozeloop-ai/src/tracer/utils/propagation/index.ts +++ b/packages/cozeloop-ai/src/tracer/utils/propagation/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Context, diff --git a/packages/cozeloop-ai/src/tracer/utils/tags/index.ts b/packages/cozeloop-ai/src/tracer/utils/tags/index.ts index 174c2a8..3f56c41 100644 --- a/packages/cozeloop-ai/src/tracer/utils/tags/index.ts +++ b/packages/cozeloop-ai/src/tracer/utils/tags/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan } from '@opentelemetry/sdk-trace-base'; import { type Span, SpanStatusCode } from '@opentelemetry/api'; diff --git a/packages/cozeloop-ai/src/tracer/wrapper.ts b/packages/cozeloop-ai/src/tracer/wrapper.ts index f1d4005..74802b9 100644 --- a/packages/cozeloop-ai/src/tracer/wrapper.ts +++ b/packages/cozeloop-ai/src/tracer/wrapper.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { randomBytes } from 'node:crypto'; diff --git a/packages/cozeloop-ai/src/utils/common.ts b/packages/cozeloop-ai/src/utils/common.ts index e0de664..e6f08c8 100644 --- a/packages/cozeloop-ai/src/utils/common.ts +++ b/packages/cozeloop-ai/src/utils/common.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { isPlainObject } from 'remeda'; diff --git a/packages/cozeloop-ai/src/utils/env.ts b/packages/cozeloop-ai/src/utils/env.ts index 46d1aaa..99aa837 100644 --- a/packages/cozeloop-ai/src/utils/env.ts +++ b/packages/cozeloop-ai/src/utils/env.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { PropertyUnprovidedError } from '../error'; diff --git a/packages/cozeloop-ai/src/utils/logger.ts b/packages/cozeloop-ai/src/utils/logger.ts index 3ae7f0d..59df3cf 100644 --- a/packages/cozeloop-ai/src/utils/logger.ts +++ b/packages/cozeloop-ai/src/utils/logger.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { stringifyVal } from './common'; diff --git a/packages/cozeloop-ai/src/utils/types.ts b/packages/cozeloop-ai/src/utils/types.ts index 914a0ad..0fd33e6 100644 --- a/packages/cozeloop-ai/src/utils/types.ts +++ b/packages/cozeloop-ai/src/utils/types.ts @@ -1,3 +1,3 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export type SetRequired = T & { [P in K]-?: T[P] }; diff --git a/packages/cozeloop-langchain/LICENSE b/packages/cozeloop-langchain/LICENSE index 8badb49..5208ec4 100644 --- a/packages/cozeloop-langchain/LICENSE +++ b/packages/cozeloop-langchain/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +Copyright (c) 2026 Bytedance Ltd. and/or its affiliates Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/cozeloop-langchain/__tests__/callback/callback-handler.test.ts b/packages/cozeloop-langchain/__tests__/callback/callback-handler.test.ts index aa59787..77c6526 100644 --- a/packages/cozeloop-langchain/__tests__/callback/callback-handler.test.ts +++ b/packages/cozeloop-langchain/__tests__/callback/callback-handler.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { ChatPromptTemplate } from '@langchain/core/prompts'; diff --git a/packages/cozeloop-langchain/__tests__/callback/utils/chain.test.ts b/packages/cozeloop-langchain/__tests__/callback/utils/chain.test.ts index 588802d..038c0a7 100644 --- a/packages/cozeloop-langchain/__tests__/callback/utils/chain.test.ts +++ b/packages/cozeloop-langchain/__tests__/callback/utils/chain.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { guessChainInput, diff --git a/packages/cozeloop-langchain/__tests__/callback/utils/common.test.ts b/packages/cozeloop-langchain/__tests__/callback/utils/common.test.ts index 41b3ac5..f35afad 100644 --- a/packages/cozeloop-langchain/__tests__/callback/utils/common.test.ts +++ b/packages/cozeloop-langchain/__tests__/callback/utils/common.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { generateUUID, diff --git a/packages/cozeloop-langchain/__tests__/callback/utils/message.test.ts b/packages/cozeloop-langchain/__tests__/callback/utils/message.test.ts index d272a74..ec9da6c 100644 --- a/packages/cozeloop-langchain/__tests__/callback/utils/message.test.ts +++ b/packages/cozeloop-langchain/__tests__/callback/utils/message.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { AIMessage, diff --git a/packages/cozeloop-langchain/__tests__/callback/utils/model.test.ts b/packages/cozeloop-langchain/__tests__/callback/utils/model.test.ts index 1fe64a2..c441345 100644 --- a/packages/cozeloop-langchain/__tests__/callback/utils/model.test.ts +++ b/packages/cozeloop-langchain/__tests__/callback/utils/model.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Serialized } from '@langchain/core/load/serializable'; diff --git a/packages/cozeloop-langchain/__tests__/otel/batching-queue.test.ts b/packages/cozeloop-langchain/__tests__/otel/batching-queue.test.ts index eb437ce..e0fedea 100644 --- a/packages/cozeloop-langchain/__tests__/otel/batching-queue.test.ts +++ b/packages/cozeloop-langchain/__tests__/otel/batching-queue.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { BatchingQueue } from '@cozeloop/langchain/otel'; diff --git a/packages/cozeloop-langchain/__tests__/otel/processor.test.ts b/packages/cozeloop-langchain/__tests__/otel/processor.test.ts index 5b6de9a..79483a7 100644 --- a/packages/cozeloop-langchain/__tests__/otel/processor.test.ts +++ b/packages/cozeloop-langchain/__tests__/otel/processor.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { CozeloopSpanExporter, diff --git a/packages/cozeloop-langchain/__tests__/otel/propagation.test.ts b/packages/cozeloop-langchain/__tests__/otel/propagation.test.ts index 26c05cb..d396874 100644 --- a/packages/cozeloop-langchain/__tests__/otel/propagation.test.ts +++ b/packages/cozeloop-langchain/__tests__/otel/propagation.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan } from '@opentelemetry/sdk-trace-base'; import { TraceState } from '@opentelemetry/core'; diff --git a/packages/cozeloop-langchain/__tests__/otel/schema.test.ts b/packages/cozeloop-langchain/__tests__/otel/schema.test.ts index 3082186..63d3115 100644 --- a/packages/cozeloop-langchain/__tests__/otel/schema.test.ts +++ b/packages/cozeloop-langchain/__tests__/otel/schema.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { CozeloopSpanExporterOptionsSchema } from '@cozeloop/langchain/otel'; diff --git a/packages/cozeloop-langchain/__tests__/otel/sdk.test.ts b/packages/cozeloop-langchain/__tests__/otel/sdk.test.ts index a43e8c8..93defe3 100644 --- a/packages/cozeloop-langchain/__tests__/otel/sdk.test.ts +++ b/packages/cozeloop-langchain/__tests__/otel/sdk.test.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { test, describe, expect, vi } from 'vitest'; import { NodeSDK } from '@opentelemetry/sdk-node'; diff --git a/packages/cozeloop-langchain/src/callbacks/callback-handler.ts b/packages/cozeloop-langchain/src/callbacks/callback-handler.ts index fd1ef35..a28ada7 100644 --- a/packages/cozeloop-langchain/src/callbacks/callback-handler.ts +++ b/packages/cozeloop-langchain/src/callbacks/callback-handler.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /* eslint-disable @typescript-eslint/no-explicit-any -- callback handler params */ /* eslint-disable max-params -- callback handler methods */ diff --git a/packages/cozeloop-langchain/src/callbacks/constants.ts b/packages/cozeloop-langchain/src/callbacks/constants.ts index a925c6a..5c3eed0 100644 --- a/packages/cozeloop-langchain/src/callbacks/constants.ts +++ b/packages/cozeloop-langchain/src/callbacks/constants.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export enum CozeloopAttr { WORKSPACE_ID = 'cozeloop.workspace_id', diff --git a/packages/cozeloop-langchain/src/callbacks/index.ts b/packages/cozeloop-langchain/src/callbacks/index.ts index 7400bda..1921db9 100644 --- a/packages/cozeloop-langchain/src/callbacks/index.ts +++ b/packages/cozeloop-langchain/src/callbacks/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { CozeloopCallbackHandler, diff --git a/packages/cozeloop-langchain/src/callbacks/utils/chain.ts b/packages/cozeloop-langchain/src/callbacks/utils/chain.ts index 8b3cb3a..7e3ccba 100644 --- a/packages/cozeloop-langchain/src/callbacks/utils/chain.ts +++ b/packages/cozeloop-langchain/src/callbacks/utils/chain.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ChainValues } from '@langchain/core/utils/types'; diff --git a/packages/cozeloop-langchain/src/callbacks/utils/common.ts b/packages/cozeloop-langchain/src/callbacks/utils/common.ts index c07448e..b20ff9f 100644 --- a/packages/cozeloop-langchain/src/callbacks/utils/common.ts +++ b/packages/cozeloop-langchain/src/callbacks/utils/common.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { randomBytes } from 'node:crypto'; diff --git a/packages/cozeloop-langchain/src/callbacks/utils/index.ts b/packages/cozeloop-langchain/src/callbacks/utils/index.ts index f70586b..7467a68 100644 --- a/packages/cozeloop-langchain/src/callbacks/utils/index.ts +++ b/packages/cozeloop-langchain/src/callbacks/utils/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { guessChainInput, guessChainOutput, isLangGraphNode } from './chain'; export { generateUUID, stringifyVal } from './common'; diff --git a/packages/cozeloop-langchain/src/callbacks/utils/message.ts b/packages/cozeloop-langchain/src/callbacks/utils/message.ts index 5b2e027..35a3508 100644 --- a/packages/cozeloop-langchain/src/callbacks/utils/message.ts +++ b/packages/cozeloop-langchain/src/callbacks/utils/message.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Generation } from '@langchain/core/outputs'; import { diff --git a/packages/cozeloop-langchain/src/callbacks/utils/model.ts b/packages/cozeloop-langchain/src/callbacks/utils/model.ts index 47bfc7e..785f4e1 100644 --- a/packages/cozeloop-langchain/src/callbacks/utils/model.ts +++ b/packages/cozeloop-langchain/src/callbacks/utils/model.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type LLMResult } from '@langchain/core/outputs'; import { type Serialized } from '@langchain/core/load/serializable'; diff --git a/packages/cozeloop-langchain/src/global.d.ts b/packages/cozeloop-langchain/src/global.d.ts index 898b461..8b7ec7c 100644 --- a/packages/cozeloop-langchain/src/global.d.ts +++ b/packages/cozeloop-langchain/src/global.d.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT declare module 'process' { global { diff --git a/packages/cozeloop-langchain/src/index.ts b/packages/cozeloop-langchain/src/index.ts index 381def7..960eaa6 100644 --- a/packages/cozeloop-langchain/src/index.ts +++ b/packages/cozeloop-langchain/src/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { CozeloopCallbackHandler } from './callbacks'; export type { CozeloopCallbackHandlerInput } from './callbacks'; diff --git a/packages/cozeloop-langchain/src/otel/batching-queue.ts b/packages/cozeloop-langchain/src/otel/batching-queue.ts index d17fe6f..3c3a085 100644 --- a/packages/cozeloop-langchain/src/otel/batching-queue.ts +++ b/packages/cozeloop-langchain/src/otel/batching-queue.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT /** * BatchingQueue is a queue class that supports batching and delayed dequeuing. diff --git a/packages/cozeloop-langchain/src/otel/cozeloop-exporter.ts b/packages/cozeloop-langchain/src/otel/cozeloop-exporter.ts index 4e0b57c..da78fc9 100644 --- a/packages/cozeloop-langchain/src/otel/cozeloop-exporter.ts +++ b/packages/cozeloop-langchain/src/otel/cozeloop-exporter.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import type { ReadableSpan } from '@opentelemetry/sdk-trace-base'; import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'; diff --git a/packages/cozeloop-langchain/src/otel/cozeloop-processor.ts b/packages/cozeloop-langchain/src/otel/cozeloop-processor.ts index 3768d9a..453e9e0 100644 --- a/packages/cozeloop-langchain/src/otel/cozeloop-processor.ts +++ b/packages/cozeloop-langchain/src/otel/cozeloop-processor.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type ReadableSpan, diff --git a/packages/cozeloop-langchain/src/otel/index.ts b/packages/cozeloop-langchain/src/otel/index.ts index f2973df..aa8d026 100644 --- a/packages/cozeloop-langchain/src/otel/index.ts +++ b/packages/cozeloop-langchain/src/otel/index.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT export { OTelNodeSDK } from './sdk'; export { CozeloopSpanProcessor } from './cozeloop-processor'; diff --git a/packages/cozeloop-langchain/src/otel/propagation.ts b/packages/cozeloop-langchain/src/otel/propagation.ts index 5985eb7..917505c 100644 --- a/packages/cozeloop-langchain/src/otel/propagation.ts +++ b/packages/cozeloop-langchain/src/otel/propagation.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type Context, diff --git a/packages/cozeloop-langchain/src/otel/schema.ts b/packages/cozeloop-langchain/src/otel/schema.ts index 2700169..a3a2242 100644 --- a/packages/cozeloop-langchain/src/otel/schema.ts +++ b/packages/cozeloop-langchain/src/otel/schema.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { type, type Type } from 'arktype'; diff --git a/packages/cozeloop-langchain/src/otel/sdk.ts b/packages/cozeloop-langchain/src/otel/sdk.ts index d3d7575..5f710df 100644 --- a/packages/cozeloop-langchain/src/otel/sdk.ts +++ b/packages/cozeloop-langchain/src/otel/sdk.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates +// Copyright (c) 2026 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { NodeSDK } from '@opentelemetry/sdk-node';