Skip to content

Commit 021e513

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): Skill 未引导正确处理环境ID的简写与完整形式 (issue_mnovxo2g_pc6qna)
1 parent 3f8af69 commit 021e513

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

config/.claude/skills/auth-tool/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Recommended MCP request:
9494
```json
9595
{
9696
"success": true,
97-
"envId": "env-xxx",
97+
"envId": "your-full-env-id",
9898
"loginMethods": {
9999
"usernamePassword": true,
100100
"email": true,

config/.claude/skills/auth-web/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Use npm installation for modern Web projects. In React, Vue, Vite, and other bun
8989
import cloudbase from '@cloudbase/js-sdk'
9090

9191
const app = cloudbase.init({
92-
env: `env-xxxxx`, // Canonical full CloudBase environment ID, not an alias or shorthand
92+
env: 'your-full-env-id', // Canonical full CloudBase environment ID resolved from envQuery or the console, not an alias or shorthand
9393
region: `region`, // CloudBase environment Region, default 'ap-shanghai'
9494
accessKey: 'publishable key', // required, get from auth-tool-cloudbase
9595
auth: { detectSessionInUrl: true }, // required

config/.claude/skills/cloudbase-platform/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Use this skill for **CloudBase platform knowledge** when you need to:
115115
- If the user only provides an environment alias, nickname, or other short form, resolve it with `envQuery(action="list", alias=..., aliasExact=true)` first and use the returned full `EnvId`
116116
- Do not pass alias-like short forms directly into SDK init, `auth.set_env`, console URLs, or generated config files
117117
- For Web, always initialize synchronously:
118-
- `import cloudbase from "@cloudbase/js-sdk"; const app = cloudbase.init({ env: "xxxx-yyy" });`
118+
- `import cloudbase from "@cloudbase/js-sdk"; const app = cloudbase.init({ env: "your-full-env-id" });`
119119
- Do **not** use dynamic imports like `import("@cloudbase/js-sdk")` or async wrappers such as `initCloudBase()` with internal `initPromise`
120120
- Then proceed with login, for example using anonymous login
121121

config/.claude/skills/web-development/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Use this section only when the Web project needs CloudBase platform features.
139139
import cloudbase from "@cloudbase/js-sdk";
140140

141141
const app = cloudbase.init({
142-
env: "env-xxxxx", // Canonical full CloudBase environment ID
142+
env: "your-full-env-id", // Canonical full CloudBase environment ID resolved from envQuery or the console
143143
});
144144

145145
const auth = app.auth();

config/source/guideline/cloudbase/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ When your IDE does not support native MCP, use **mcporter** as the CLI to config
148148
- If the user gives an environment alias / nickname / short form instead of the full `EnvId`, resolve it first:
149149
`npx mcporter call cloudbase.envQuery action=list alias=demo aliasExact=true fields='["EnvId","Alias","Status","IsDefault"]' --output json`
150150
- Bind environment after login (envId from CloudBase console):
151-
`npx mcporter call cloudbase.auth action=set_env envId=env-xxx --output json`
151+
`npx mcporter call cloudbase.auth action=set_env envId=<full-env-id> --output json`
152152
- Query app-side login config:
153153
`npx mcporter call cloudbase.queryAppAuth action=getLoginConfig --output json`
154154
- Patch app-side login strategy:

config/source/skills/auth-tool/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Recommended MCP request:
9494
```json
9595
{
9696
"success": true,
97-
"envId": "env-xxx",
97+
"envId": "your-full-env-id",
9898
"loginMethods": {
9999
"usernamePassword": true,
100100
"email": true,

config/source/skills/auth-web/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Use npm installation for modern Web projects. In React, Vue, Vite, and other bun
8989
import cloudbase from '@cloudbase/js-sdk'
9090

9191
const app = cloudbase.init({
92-
env: `env-xxxxx`, // Canonical full CloudBase environment ID, not an alias or shorthand
92+
env: 'your-full-env-id', // Canonical full CloudBase environment ID resolved from envQuery or the console, not an alias or shorthand
9393
region: `region`, // CloudBase environment Region, default 'ap-shanghai'
9494
accessKey: 'publishable key', // required, get from auth-tool-cloudbase
9595
auth: { detectSessionInUrl: true }, // required

config/source/skills/cloudbase-platform/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Use this skill for **CloudBase platform knowledge** when you need to:
115115
- If the user only provides an environment alias, nickname, or other short form, resolve it with `envQuery(action="list", alias=..., aliasExact=true)` first and use the returned full `EnvId`
116116
- Do not pass alias-like short forms directly into SDK init, `auth.set_env`, console URLs, or generated config files
117117
- For Web, always initialize synchronously:
118-
- `import cloudbase from "@cloudbase/js-sdk"; const app = cloudbase.init({ env: "xxxx-yyy" });`
118+
- `import cloudbase from "@cloudbase/js-sdk"; const app = cloudbase.init({ env: "your-full-env-id" });`
119119
- Do **not** use dynamic imports like `import("@cloudbase/js-sdk")` or async wrappers such as `initCloudBase()` with internal `initPromise`
120120
- Then proceed with login, for example using anonymous login
121121

config/source/skills/web-development/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Use this section only when the Web project needs CloudBase platform features.
139139
import cloudbase from "@cloudbase/js-sdk";
140140

141141
const app = cloudbase.init({
142-
env: "env-xxxxx", // Canonical full CloudBase environment ID
142+
env: "your-full-env-id", // Canonical full CloudBase environment ID resolved from envQuery or the console
143143
});
144144

145145
const auth = app.auth();

0 commit comments

Comments
 (0)