Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

docs(plugins): 明确发布目标确认规则

liugaowei941d6d949934
diff --git a/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-packaging.md b/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-packaging.md
index 56b1193dcf..d76eecae10 100644
--- a/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-packaging.md
+++ b/apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-packaging.md
@@ -78,7 +78,11 @@
本地安装另有一条临时例外,只对 root 实例生效,见 §4.7:仅 `ghostId` 精确等于 `mivo-canvas`、namespace 为 null 或尚未确认,且精确 oidc-token host 仅为 `mivo-canvas.dsworks.cn` 的组织成员本地安装可解析 audience;
4. 安装后再让用户 `$<command> <内容>` 试一单,看聊天图卡/面板是否符合预期。
-企业组织成员需要发布时,调用 `ghost_forge_pack({ dir: '<绝对路径>', intent: 'publish' })`。
+发布前先确定目标:沿用用户在当前请求与上下文中已明确的发布目标;仍无法确定是公开市场还是当前组织时,
+先询问“发布到公开市场,还是当前组织?”,确认后再选择对应提审工具。不得仅根据登录身份推断发布目标;
+目标已明确时不重复确认。
+
+用户明确要求发布到当前组织时,调用 `ghost_forge_pack({ dir: '<绝对路径>', intent: 'publish' })`。
该意图不会弹装入确认,也不会返回可供自行拼接的 Host 路径;它只返回绑定本次包 id 与
完整字节的一次性 `publishToken`。随后把该票据传给
`ghost_forge_publish({ token: '<publishToken>' })`,工具会立即返回 `transferId`,发布在
diff --git a/apps/desktop/src/main/maker-host/built-in-skills.ts b/apps/desktop/src/main/maker-host/built-in-skills.ts
index 1944bc81b9..3f6abe8cb4 100644
--- a/apps/desktop/src/main/maker-host/built-in-skills.ts
+++ b/apps/desktop/src/main/maker-host/built-in-skills.ts
@@ -25,7 +25,7 @@ const VERSIONS_DIRECTORY = '.versions';
const ACTIVE_BUNDLE_LINK = '.active';
const BUILT_IN_SKILL_MUTATION_WAIT_MS = 5_000;
/** Increment whenever shipped built-in Skill bytes change between releases. */
-export const BUILT_IN_SKILLS_BUNDLE_VERSION = 19;
+export const BUILT_IN_SKILLS_BUNDLE_VERSION = 20;
const PLUGIN_CREATOR_FIRST_BUNDLE_VERSION = 13;
export interface BuiltInSkillDescriptor {