Skip to content

Commit 24f85e5

Browse files
hotlongclaude
andauthored
docs(skills): objectstack-ui 的 App 例子不再教 defaultAgent: 'sales_copilot' (#5985) (#6030)
`skills/` 下的 SKILL.md 随 `npx skills add` 原样发给第三方,是 AI 写元数据时 第一个读的语料。App 例子里的 `defaultAgent: 'sales_copilot'` 带 `os:check` 标记,parse / build / 类型检查全过(字符串就是字符串),运行期却绑不上任何 东西 —— ADR-0063 §2 撤回了租户与应用包级自定义 agent,可解析集合收窄到两个 平台 agent(`ask` / `build`),表外的名字静默回落平台默认。 例子里的 `crm_enterprise` 是数据类 app(leads / opportunities / dashboards / reports / approvals),按 ADR-0063 它本就该省掉这个 key —— `ask` 是隐式默认。 故改为注释掉该行,并照同块 `hidden:` 的既有写法把可解析集合与「表外名字绑不 上」这一条写进注释,替换掉原来那句诱导性的「optional AI copilot binding」。 `sales_copilot` 这个字面量不再出现在 skills/ 任何位置,避免被逐字抄进业务包。 Claude-Session: https://claude.ai/code/session_01BDmDsu2575gDxeMCxXhDE3 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9e3709a commit 24f85e5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

skills/objectstack-ui/SKILL.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,11 @@ export const CrmApp = App.create({
475475
name: 'crm_enterprise',
476476
label: 'Enterprise CRM',
477477
icon: 'briefcase',
478-
defaultAgent: 'sales_copilot', // optional AI copilot binding
478+
// defaultAgent: 'build', // ADR-0063 §2 — the resolvable set is exactly two
479+
// platform agents: `ask` (data surface) / `build`
480+
// (authoring, e.g. Studio). Any other name parses
481+
// but binds nothing at chat time. A data app like
482+
// this one omits the key — `ask` is the default.
479483
// hidden: true, // ADR-0045 — drop from the App Switcher but keep
480484
// routable & permission-checked; the shell surfaces
481485
// hidden apps (e.g. `account`) via the avatar menu.

0 commit comments

Comments
 (0)