🤯 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
✨ feat(subscription): add the Basic plan id, icon and plan copy (#23090)
YuTengjing5cd556811e71
diff --git a/locales/en-US/subscription.json b/locales/en-US/subscription.jsonindex f8419c150b8..4b0de95fdc4 100644--- a/locales/en-US/subscription.json+++ b/locales/en-US/subscription.json@@ -532,6 +532,7 @@"plans.compare.included": "Included","plans.compare.monthlySpend": "Monthly limit","plans.compare.monthlySpend.desc": "Resets at the start of each billing month",+ "plans.compare.monthlySpend.runs": "About {{runs}} agent tasks","plans.compare.noLimit": "No limit","plans.compare.none": "None","plans.compare.notIncluded": "Not included",@@ -592,6 +593,9 @@"plans.legacy.upgradeOnly": "A legacy plan can only be upgraded to a higher-tier plan","plans.limits.agentMemory.unavailable": "Agent memory","plans.limits.agentMemory.unlimited": "Agent memory",+ "plans.limits.agentRunCredit": "{{value}} monthly agent task credit",+ "plans.limits.agentRunCredit.runs": "About {{runs}} agent tasks a month",+ "plans.limits.agentRunCredit.tooltip": "Pays only the per-task fee of agent tasks. Models on your own API key cost nothing more; LobeHub-hosted models draw on your free allowance and top-ups.","plans.limits.agentRunFee": "{{value}} per agent task","plans.limits.agentRunFee.tooltip": "Charged from your balance when an agent task you start finishes, on top of its model usage. Tasks that fail, or that you stop within 30 seconds, are free.","plans.limits.artifactSiteSize": "Up to {{value}} per published site",@@ -604,6 +608,8 @@"plans.limits.earlyAccess.unlimited": "Early access to new features","plans.limits.embeddingVectors": "{{value}} vector entries","plans.limits.fileStorage": "{{value}} file storage",+ "plans.limits.monthlyCreditGrant": "{{value}} monthly credit",+ "plans.limits.monthlyCreditGrant.runs": "About {{runs}} agent tasks a month","plans.limits.monthlySpend.tooltip": "Usage across your billing month has a limit too. It resets when the next billing month starts.","plans.limits.rolling5hSpend": "5-hour limit","plans.limits.rolling5hSpend.multiple": "5-hour limit: {{multiple}}× that of {{plan}}",@@ -649,6 +655,8 @@"plans.payonce.upgradeHint.noProration": "Days left on your current plan aren't credited","plans.payonce.upgradeToYearly": "Upgrade to yearly","plans.pendingDowngrade": "Pending downgrade",+ "plans.plan.basic.desc": "For running agents with your own model API keys",+ "plans.plan.basic.title": "Basic","plans.plan.enterprise.contactSales": "Contact sales","plans.plan.enterprise.title": "Enterprise","plans.plan.free.desc": "For first-time users",@@ -905,6 +913,8 @@"usage.window.overflow.updateFailed": "Update failed. Try again.","usage.window.referral": "Referral credits","usage.window.resetsIn": "Resets in {{duration}}",+ "usage.window.rule.agentRunMonth": "Monthly agent task limit",+ "usage.window.rule.freeMonth": "Free monthly limit","usage.window.rule.plan5h": "5-hour limit","usage.window.rule.plan7d": "Weekly limit","usage.window.rule.planMonth": "Monthly limit",diff --git a/locales/zh-CN/subscription.json b/locales/zh-CN/subscription.jsonindex c30ff4719ac..c003114f837 100644--- a/locales/zh-CN/subscription.json+++ b/locales/zh-CN/subscription.json@@ -532,6 +532,7 @@"plans.compare.included": "包含","plans.compare.monthlySpend": "每月限额","plans.compare.monthlySpend.desc": "每个计费月开始时重置",+ "plans.compare.monthlySpend.runs": "约 {{runs}} 次智能体任务","plans.compare.noLimit": "无限制","plans.compare.none": "无","plans.compare.notIncluded": "不包含",@@ -592,6 +593,9 @@"plans.legacy.upgradeOnly": "旧版套餐只能升级到更高级的套餐","plans.limits.agentMemory.unavailable": "智能体记忆","plans.limits.agentMemory.unlimited": "智能体记忆",+ "plans.limits.agentRunCredit": "每月 {{value}} 智能体任务额度",+ "plans.limits.agentRunCredit.runs": "每月约 {{runs}} 次智能体任务",+ "plans.limits.agentRunCredit.tooltip": "只用于支付智能体任务的单次费用。使用自己 API Key 的模型不再额外收费;LobeHub 托管模型从免费额度和充值余额中扣费。","plans.limits.agentRunFee": "每个智能体任务 {{value}}","plans.limits.agentRunFee.tooltip": "你发起的智能体任务完成后从余额扣除,模型用量另计。失败的任务,或 30 秒内被你停止的任务不收费。","plans.limits.artifactSiteSize": "单个站点最大 {{value}}",@@ -604,6 +608,8 @@"plans.limits.earlyAccess.unlimited": "新功能抢先体验","plans.limits.embeddingVectors": "{{value}} 条向量存储","plans.limits.fileStorage": "{{value}} 文件存储",+ "plans.limits.monthlyCreditGrant": "每月 {{value}} 额度",+ "plans.limits.monthlyCreditGrant.runs": "每月约 {{runs}} 次智能体任务","plans.limits.monthlySpend.tooltip": "每个计费月的用量也有限额,下个计费月开始时重置。","plans.limits.rolling5hSpend": "5 小时限额","plans.limits.rolling5hSpend.multiple": "5 小时限额:{{plan}} 的 {{multiple}} 倍",@@ -649,6 +655,8 @@"plans.payonce.upgradeHint.noProration": "当前套餐剩余天数不折算","plans.payonce.upgradeToYearly": "升级为年付","plans.pendingDowngrade": "已预约降级",+ "plans.plan.basic.desc": "适合用自己的模型 API Key 运行智能体",+ "plans.plan.basic.title": "Basic","plans.plan.enterprise.contactSales": "联系销售","plans.plan.enterprise.title": "企业版","plans.plan.free.desc": "适合首次使用者",@@ -905,6 +913,8 @@"usage.window.overflow.updateFailed": "更新失败,请重试","usage.window.referral": "返利额度","usage.window.resetsIn": "{{duration}}后重置",+ "usage.window.rule.agentRunMonth": "智能体任务每月限额",+ "usage.window.rule.freeMonth": "每月免费限额","usage.window.rule.plan5h": "5 小时限额","usage.window.rule.plan7d": "每周限额","usage.window.rule.planMonth": "每月限额",diff --git a/packages/locales/src/default/subscription.ts b/packages/locales/src/default/subscription.tsindex a1192edd880..d1cc71b0c69 100644--- a/packages/locales/src/default/subscription.ts+++ b/packages/locales/src/default/subscription.ts@@ -550,6 +550,7 @@ export default {'plans.compare.notIncluded': 'Not included','plans.compare.monthlySpend': 'Monthly limit','plans.compare.monthlySpend.desc': 'Resets at the start of each billing month',+ 'plans.compare.monthlySpend.runs': 'About {{runs}} agent tasks','plans.compare.rolling5hSpend': '5-hour limit','plans.compare.rolling7dSpend': 'Weekly limit','plans.compare.sandboxStorage': 'Cloud sandbox storage',@@ -587,6 +588,10 @@ export default {'plans.legacy.upgradeOnly': 'A legacy plan can only be upgraded to a higher-tier plan','plans.limits.agentMemory.unavailable': 'Agent memory','plans.limits.agentMemory.unlimited': 'Agent memory',+ 'plans.limits.agentRunCredit': '{{value}} monthly agent task credit',+ 'plans.limits.agentRunCredit.runs': 'About {{runs}} agent tasks a month',+ 'plans.limits.agentRunCredit.tooltip':+ 'Pays only the per-task fee of agent tasks. Models on your own API key cost nothing more; LobeHub-hosted models draw on your free allowance and top-ups.','plans.limits.agentRunFee': '{{value}} per agent task','plans.limits.agentRunFee.tooltip':'Charged from your balance when an agent task you start finishes, on top of its model usage. Tasks that fail, or that you stop within 30 seconds, are free.',@@ -600,6 +605,8 @@ export default {'plans.limits.earlyAccess.unlimited': 'Early access to new features','plans.limits.embeddingVectors': '{{value}} vector entries','plans.limits.fileStorage': '{{value}} file storage',+ 'plans.limits.monthlyCreditGrant': '{{value}} monthly credit',+ 'plans.limits.monthlyCreditGrant.runs': 'About {{runs}} agent tasks a month','plans.limits.monthlySpend.tooltip':'Usage across your billing month has a limit too. It resets when the next billing month starts.','plans.limits.rolling5hSpend': '5-hour limit',@@ -696,6 +703,8 @@ export default {'plans.plan.enterprise.title': 'Enterprise','plans.plan.free.desc': 'For first-time users','plans.plan.free.title': 'Free',+ 'plans.plan.basic.desc': 'For running agents with your own model API keys',+ 'plans.plan.basic.title': 'Basic','plans.plan.hobby.desc': 'For users with their own API who pay as they go','plans.plan.hobby.title': 'Hobby','plans.plan.max.title': 'Max',@@ -975,6 +984,8 @@ export default {'usage.window.resetsIn': 'Resets in {{duration}}','usage.window.rule.plan5h': '5-hour limit','usage.window.rule.plan7d': 'Weekly limit',+ 'usage.window.rule.agentRunMonth': 'Monthly agent task limit',+ 'usage.window.rule.freeMonth': 'Free monthly limit','usage.window.rule.planMonth': 'Monthly limit','creditUsageReminder.exhausted': "This billing cycle's subscription usage has run out",'creditUsageReminder.window.exhausted': '{{rule}} reached',diff --git a/packages/types/src/subscription.ts b/packages/types/src/subscription.tsindex 3278b1a5919..11cf1b073b2 100644--- a/packages/types/src/subscription.ts+++ b/packages/types/src/subscription.ts@@ -1,4 +1,5 @@export enum Plans {+ Basic = 'basic',Free = 'free',Hobby = 'hobby',Max = 'max',diff --git a/src/features/Conversation/Error/PlanLimitCard/index.tsx b/src/features/Conversation/Error/PlanLimitCard/index.tsxindex c208ef74a0f..1da43974f42 100644--- a/src/features/Conversation/Error/PlanLimitCard/index.tsx+++ b/src/features/Conversation/Error/PlanLimitCard/index.tsx@@ -15,6 +15,7 @@ import {/** Plans with a `plans.plan.<id>.title` locale key */const PLAN_TITLE_KEYS = {[Plans.Free]: 'plans.plan.free.title',+ [Plans.Basic]: 'plans.plan.basic.title',[Plans.Hobby]: 'plans.plan.hobby.title',[Plans.Max]: 'plans.plan.max.title',[Plans.Plus]: 'plans.plan.plus.title',diff --git a/src/features/PlanIcon/index.tsx b/src/features/PlanIcon/index.tsxindex b89f64521ec..a559576338a 100644--- a/src/features/PlanIcon/index.tsx+++ b/src/features/PlanIcon/index.tsx@@ -19,6 +19,12 @@ export const themes = {color: undefined,},},+ [Plans.Basic]: {+ theme: {+ background: 'linear-gradient(45deg, #F97316, #C2410C)',+ color: '#FFEDD5',+ },+ },[Plans.Hobby]: {theme: {background: 'linear-gradient(45deg, #21B2EE, #2271ED)',