🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: unify TypeScript peer resolution on 6.x (#15263)
Innei49d191d2a790
diff --git a/apps/cli/package.json b/apps/cli/package.jsonindex 25a1e20c319..99b2f0a8616 100644--- a/apps/cli/package.json+++ b/apps/cli/package.json@@ -44,7 +44,7 @@"picocolors": "^1.1.1","superjson": "^2.2.6","tsdown": "^0.21.4",- "typescript": "^5.9.3",+ "typescript": "^6.0.3","ws": "^8.18.1"},"publishConfig": {diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex 57362a0936f..bfcacdc6663 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -104,7 +104,7 @@"stylelint": "^15.11.0","superjson": "^2.2.6","tsx": "^4.21.0",- "typescript": "^5.9.3",+ "typescript": "^6.0.3","undici": "^7.16.0","uuid": "^14.0.0","vite": "8.0.14",diff --git a/apps/device-gateway/package.json b/apps/device-gateway/package.jsonindex f5683aee163..2ee855a0cfc 100644--- a/apps/device-gateway/package.json+++ b/apps/device-gateway/package.json@@ -16,7 +16,7 @@"devDependencies": {"@cloudflare/vitest-pool-workers": "^0.12.19","@cloudflare/workers-types": "^4.20260301.1",- "typescript": "^5.9.3",+ "typescript": "^6.0.3","vitest": "~3.2.4","wrangler": "^4.70.0"}diff --git a/package.json b/package.jsonindex 1478b5fa753..4c88f08564f 100644--- a/package.json+++ b/package.json@@ -537,7 +537,7 @@"stylelint": "^16.12.0","tsx": "^4.21.0","type-fest": "^5.4.1",- "typescript": "^5.9.3",+ "typescript": "^6.0.3","unified": "^11.0.5","unist-util-visit": "^5.1.0","vite": "8.0.14",@@ -568,7 +568,8 @@"pdfjs-dist": "5.4.530","react": "19.2.5","react-dom": "19.2.5",- "stylelint-config-clean-order": "7.0.0"+ "stylelint-config-clean-order": "7.0.0",+ "typescript": "6.0.3"},"patchedDependencies": {"@upstash/qstash": "patches/@upstash__qstash.patch"diff --git a/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx b/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsxindex 84d9d81c59f..87005730e25 100644--- a/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx+++ b/packages/builtin-tool-skills/src/client/Inspector/RunSkill/index.tsx@@ -4,7 +4,6 @@ import { AGENT_SKILLS_IDENTIFIER_PREFIX } from '@lobechat/const';import { type BuiltinInspectorProps } from '@lobechat/types';import { SkillsIcon } from '@lobehub/ui/icons';import { createStaticStyles, cx } from 'antd-style';-import { type TFunction } from 'i18next';import { memo } from 'react';import { useTranslation } from 'react-i18next';@@ -12,33 +11,34 @@ import { inspectorTextStyles, shinyTextStyles } from '@/styles';import type { ActivateSkillParams, ActivateSkillSource, ActivateSkillState } from '../../../types';+type SkillLabelKey =+ | 'builtins.lobe-skills.apiName.activateAgentSkill'+ | 'builtins.lobe-skills.apiName.activateProjectSkill'+ | 'builtins.lobe-skills.apiName.activateSkill';+/**- * Resolve the inspector label. State-side `source` is the authority once the+ * Resolve the inspector label key. State-side `source` is the authority once the* tool result has streamed in; while args are still streaming we only have the* raw `name` to go on, so detect agent skills via the identifier prefix as a* best-effort fallback. Project skills can't be inferred from the bare name* (no prefix), so they show "Activate Skill" until the result lands.- *- * `t` is invoked with literal keys per branch so i18next's typed-key map can- * still validate the call site.*/-const resolveLabel = (- t: TFunction<'plugin'>,+const resolveLabelKey = (source: ActivateSkillSource | undefined,rawName: string | undefined,-): string => {+): SkillLabelKey => {const effective: ActivateSkillSource =source ?? (rawName?.startsWith(AGENT_SKILLS_IDENTIFIER_PREFIX) ? 'agent' : 'builtin');switch (effective) {case 'agent': {- return t('builtins.lobe-skills.apiName.activateAgentSkill');+ return 'builtins.lobe-skills.apiName.activateAgentSkill';}case 'project': {- return t('builtins.lobe-skills.apiName.activateProjectSkill');+ return 'builtins.lobe-skills.apiName.activateProjectSkill';}default: {- return t('builtins.lobe-skills.apiName.activateSkill');+ return 'builtins.lobe-skills.apiName.activateSkill';}}};@@ -84,7 +84,7 @@ export const RunSkillInspector = memo<const name = args?.name || partialArgs?.name;const displayName = pluginState?.title || pluginState?.name || name;- const label = resolveLabel(t, pluginState?.source, name);+ const label = t(resolveLabelKey(pluginState?.source, name));if (isArgumentsStreaming) {if (!displayName)diff --git a/packages/chat-adapter-feishu/package.json b/packages/chat-adapter-feishu/package.jsonindex 287aae543ef..c131fc37f74 100644--- a/packages/chat-adapter-feishu/package.json+++ b/packages/chat-adapter-feishu/package.json@@ -21,6 +21,6 @@"devDependencies": {"@types/node": "^22.0.0","tsup": "^8.3.5",- "typescript": "^5.7.2"+ "typescript": "^6.0.3"}}diff --git a/packages/chat-adapter-imessage/package.json b/packages/chat-adapter-imessage/package.jsonindex 37ac42153c6..6034b6751bc 100644--- a/packages/chat-adapter-imessage/package.json+++ b/packages/chat-adapter-imessage/package.json@@ -21,6 +21,6 @@"devDependencies": {"@types/node": "^22.0.0","tsup": "^8.3.5",- "typescript": "^5.7.2"+ "typescript": "^6.0.3"}}diff --git a/packages/chat-adapter-line/package.json b/packages/chat-adapter-line/package.jsonindex 51e05650a94..9ddd27fbbf2 100644--- a/packages/chat-adapter-line/package.json+++ b/packages/chat-adapter-line/package.json@@ -22,6 +22,6 @@"devDependencies": {"@types/node": "^22.0.0","tsup": "^8.3.5",- "typescript": "^5.7.2"+ "typescript": "^6.0.3"}}diff --git a/packages/chat-adapter-qq/package.json b/packages/chat-adapter-qq/package.jsonindex 6db70ba5ba8..f5da4c14445 100644--- a/packages/chat-adapter-qq/package.json+++ b/packages/chat-adapter-qq/package.json@@ -21,6 +21,6 @@"devDependencies": {"@types/node": "^22.0.0","tsup": "^8.3.5",- "typescript": "^5.7.2"+ "typescript": "^6.0.3"}}diff --git a/packages/chat-adapter-wechat/package.json b/packages/chat-adapter-wechat/package.jsonindex e93f2672ea0..8dfc8676333 100644--- a/packages/chat-adapter-wechat/package.json+++ b/packages/chat-adapter-wechat/package.json@@ -22,6 +22,6 @@"devDependencies": {"@types/node": "^22.0.0","tsup": "^8.3.5",- "typescript": "^5.7.2"+ "typescript": "^6.0.3"}}diff --git a/packages/eval-dataset-parser/package.json b/packages/eval-dataset-parser/package.jsonindex 4505e55a097..0d4a12d0f62 100644--- a/packages/eval-dataset-parser/package.json+++ b/packages/eval-dataset-parser/package.json@@ -3,7 +3,14 @@"version": "1.0.0","private": true,"description": "Parse CSV, XLSX, JSON, and JSONL files into structured dataset records",- "keywords": ["dataset", "parser", "csv", "xlsx", "jsonl", "lobehub"],+ "keywords": [+ "dataset",+ "parser",+ "csv",+ "xlsx",+ "jsonl",+ "lobehub"+ ],"homepage": "https://github.com/lobehub/lobehub/tree/master/packages/eval-dataset-parser","bugs": {"url": "https://github.com/lobehub/lobehub/issues/new"@@ -25,7 +32,7 @@},"devDependencies": {"@types/papaparse": "^5.3.15",- "typescript": "^5.9.3"+ "typescript": "^6.0.3"},"peerDependencies": {"typescript": ">=5"diff --git a/packages/eval-rubric/package.json b/packages/eval-rubric/package.jsonindex 832b00b23d3..3a411cfba7e 100644--- a/packages/eval-rubric/package.json+++ b/packages/eval-rubric/package.json@@ -30,7 +30,7 @@"ajv": "^8.17.1"},"devDependencies": {- "typescript": "^5.9.3"+ "typescript": "^6.0.3"},"peerDependencies": {"typescript": ">=5"diff --git a/packages/file-loaders/package.json b/packages/file-loaders/package.jsonindex e78716f74d6..4f5a60385d7 100644--- a/packages/file-loaders/package.json+++ b/packages/file-loaders/package.json@@ -25,6 +25,7 @@"test:coverage": "vitest --coverage --silent='passed-only'"},"dependencies": {+ "@napi-rs/canvas": "^0.1.70","@xmldom/xmldom": "^0.9.8","concat-stream": "^2.0.0","debug": "^4.4.3",@@ -33,15 +34,14 @@"pdfjs-dist": "5.4.530","word-extractor": "^1.0.4","xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",- "yauzl": "^3.2.0",- "@napi-rs/canvas": "^0.1.70"+ "yauzl": "^3.2.0"},"devDependencies": {"@types/concat-stream": "^2.0.3","@types/yauzl": "^2.10.3",- "typescript": "^5.9.3"+ "typescript": "^6.0.3"},"peerDependencies": {"typescript": ">=5"}-}\ No newline at end of file+}diff --git a/packages/model-bank/package.json b/packages/model-bank/package.jsonindex 59d8d1bad46..485d2eee0f2 100644--- a/packages/model-bank/package.json+++ b/packages/model-bank/package.json@@ -100,7 +100,7 @@},"devDependencies": {"tsdown": "^0.21.4",- "typescript": "^5.9.3"+ "typescript": "^6.0.3"},"peerDependencies": {"zod": "^3.25.76"