From c175159fde86f8e82fe6ebaf7ecfcb2ea9c7e7ac Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:32:03 +0000 Subject: [PATCH] feat: add console management page links to AI rules Add console management page links for deployed resources: - Static hosting console link - Cloud function management with envId and functionName variables - Database collection management with envId and collectionName variables - Data model management with envId and modelName variables Resolves #40 Co-authored-by: Booker Zhao --- config/.cursor/rules/cloudbase-rules.mdc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/.cursor/rules/cloudbase-rules.mdc b/config/.cursor/rules/cloudbase-rules.mdc index 4303afb..291cfd4 100644 --- a/config/.cursor/rules/cloudbase-rules.mdc +++ b/config/.cursor/rules/cloudbase-rules.mdc @@ -136,6 +136,17 @@ for await (let str of res.textStream) { - 使用 manageDataModel 工具的 docs 方法获取具体 SDK 用法 + +创建/部署资源后,提供对应的控制台管理页面链接: + +1. 静态托管:https://console.cloud.tencent.com/tcb/hosting +2. 云函数:https://tcb.cloud.tencent.com/dev?envId=${envId}#/scf/detail?id=${functionName}&NameSpace=${envId} +3. 数据库集合:https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/doc/collection/${collectionName} +4. 数据模型:https://tcb.cloud.tencent.com/dev?envId=${envId}#/db/doc/model/${modelName} + +使用方式:创建对应资源后,将变量替换为实际值,提供给用户进行管理操作。 + + 1. CloudBase数据库doc(id).get()返回的data是数组,需用data[0]获取文档内容 2. 更新文档时,避免直接存储复杂对象,应提取和保存简单值