mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-07 04:19:13 +08:00
fix(skills): 同步内置工具参数与回执交接 (#472)
## 中文 同步内置工具调用契约涉及的九个市场技能。演示技能直接传递审阅回执的 `etag`,Markdown 写入示例使用 `path`,Agent 更新与应用发布示例跟随当前声明。邮件落盘、PDF 导出和浏览器探测从对应工具声明核对目标参数,避免把消费客户端的当前字段写错。同步双语说明、版本和目录元数据。 市场 i18n、严格目录元数据和翻译新鲜度校验全部通过。 ## English Refresh nine marketplace skills for the built-in tool contract changes. Slide delivery passes the review receipt's `etag` directly, Markdown writes use `path`, and agent/app authoring examples follow the current declaration. Mail, PDF and browser guides use the active tool declaration to obtain the relevant destination or browser input key. Update the bilingual guides, versions and catalog metadata together. Market i18n, strict catalog metadata and translation freshness checks passed.
This commit is contained in:
32 files changed
+154
-140
No files matched your search
@@ -4,7 +4,7 @@
|
||||
"description": "用户要求开发、修改或发布自己的工作台应用,或把固定应用版本分发到 GitHub/Gitea 与 Registry 时使用。按所选技术栈使用的外部 Node/Docker 运行时、托管、Git 服务和数据库须有真实环境或连接及适用条款,可能另行部署或收费;缺能力时说明原因。",
|
||||
"license": "MIT",
|
||||
"compatibility": "Requires DesireCore app-authoring-v1 capability handshake. Depending on the chosen stack, Node/Docker runtimes, hosting, GitHub/Gitea and databases require actual authorized environments or connections and applicable licensing/deployment terms; separate costs may apply. Unavailable capabilities stop the affected operation.",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"requiredClientVersion": "10.0.203",
|
||||
"type": "procedural",
|
||||
"risk_level": "high",
|
||||
@@ -36,7 +36,7 @@
|
||||
"short_desc": "开发个人工作台并发布到我的应用,按需分发固定版本",
|
||||
"description": "用户要求开发、修改或发布自己的工作台应用,或把固定应用版本分发到 GitHub/Gitea 与 Registry 时使用。按所选技术栈使用的外部 Node/Docker 运行时、托管、Git 服务和数据库须有真实环境或连接及适用条款,可能另行部署或收费;缺能力时说明原因。",
|
||||
"body": "./SKILL.zh-CN.md",
|
||||
"source_hash": "sha256:1e03d05fc50bb017",
|
||||
"source_hash": "sha256:ebde65f5a9450be7",
|
||||
"translated_by": "ai:gpt-6",
|
||||
"translated_at": "2026-11-09"
|
||||
},
|
||||
@@ -45,7 +45,7 @@
|
||||
"short_desc": "Develop a personal workbench, publish it to My Apps, and distribute fixed releases on request",
|
||||
"description": "Use when the user asks to develop, modify or publish a personal workbench application, or distribute a fixed release through GitHub/Gitea and Registry. Node/Docker runtimes, hosting, Git services and databases used by the chosen stack need actual environments or connections and applicable terms; separate deployment or costs may apply. Report unavailable capabilities.",
|
||||
"body": "./SKILL.md",
|
||||
"source_hash": "sha256:1e03d05fc50bb017",
|
||||
"source_hash": "sha256:ebde65f5a9450be7",
|
||||
"translated_by": "ai:gpt-6",
|
||||
"translated_at": "2026-11-09"
|
||||
}
|
||||
@@ -67,6 +67,9 @@
|
||||
|
||||
## L0: Responsibility
|
||||
|
||||
Resolve the exact installation ID and write guard field names in the current `ToolCatalog(query="select:AppAuthoring")` declaration before constructing a call.
|
||||
|
||||
|
||||
The Agent chooses the implementation, framework and working method. The platform verifies material identity, scope, publication, runtime and collaboration facts. Reuse file and execution tools, Task/Run and the existing installation writer. Do not create a fixed business workflow or execute commands extracted from installation prose.
|
||||
|
||||
## L1: Read Capabilities and Context
|
||||
@@ -86,7 +89,7 @@ The Agent chooses the implementation, framework and working method. The platform
|
||||
- Enroll a real authorized source development server using `AppAuthoring.development_enroll` with the original prepareRef/draft/terminalId/endpoint in `owner_request` for live preview. Its development-only contract cannot become formal startup; mutable source and fixed releases remain separate. The original command must respect owner-injected PORT and APP_DATA_DIR, using shell `${VAR:-default}` only for initial defaults rather than overriding preview ports or formal data roots.
|
||||
- Use `AppAuthoring.prepare_release` with the complete `release_request` to freeze real material. Construct materialRoot as a FileResourceRef from the returned readable roots. Inspect the candidate, then call commit_release with the complete original AppReleaseCommitRequest in `release_request`, retaining prepareRef, installationId, expectedRevision and submissionId. Do not reduce its installation material to a name or digest. Continue authorized publication without repeated per-command questions; new targets or additional data/external effects follow existing governance.
|
||||
- Saving a release and making it runnable are separate facts. Static files use fixed mappings; services use `AppAuthoring.runtime_enroll` to bind original-owner spawn, generation and handshake. Use runtime_read/start/stop for formal operation; startupPolicy is not permanent execution authority. Docker releases declare complete registry/repository@sha256 imageRefs, then use `AppAuthoring.docker_prepare` to receive owned CID/env paths and the actual command. Execute it through original TaskHost approval, then use docker_enroll with the original enrollmentRef/terminalId and verify daemon/CID/RepoDigest/mount/port facts. Normal create/start/stop repeats current approval; internal transient preview disposal compensates only its originally approved owned CID; candidate, formal and preview roots/nonces differ. Reconcile unknown outcomes against the original CID before another effect. Missing adapters or supported environments keep the original Agent-managed lifecycle with an honest reason. A CLI exit, format check, port, PID or historical observation does not prove availability.
|
||||
- For timeout, lost response or disconnection, preserve the original mutation/submission/clientRequest ID and body. Query publication using `AppAuthoring.lookup_release_submission` with the original installation_id/submission_id, and read actual runtime/preview state separately. Do not blindly replay unknown writes with a new ID. Check current material and data compatibility before an update. Investigate interrupted migrations; code rollback is not data recovery.
|
||||
- For timeout, lost response or disconnection, preserve the original mutation/submission/clientRequest ID and body. Query publication using `AppAuthoring.lookup_release_submission` with the original installation ID in the declared field and the original submission_id, and read actual runtime/preview state separately. Do not blindly replay unknown writes with a new ID. Check current material and data compatibility before an update. Investigate interrupted migrations; code rollback is not data recovery.
|
||||
|
||||
## L3: Webpage and Agent Collaboration
|
||||
|
||||
@@ -103,6 +106,6 @@ The webpage uses the finite `window.desirecoreApp.call(method,payload)` and `onE
|
||||
|
||||
Personal publication is private and local by default. When the user requests distribution, call `AppAuthoring.export_release` with the fixed complete whitelist in `owner_request`, and review the exact files and actual target. Exclude databases, .env, credentials, chats, Task/Plan, logs, machine paths and installation identity. Environment templates can describe names without real secret values.
|
||||
|
||||
To deliver ZIP bytes to an upload tool, also pass top-level `export_file_ref`, a destination FileResourceRef under the original tool's actual write authority, with exactly one of `expected_absent:true` or the original `expected_etag`. The returned `archiveFile` contains the actual fileRef/sha256/size/etag/replayed. Verify sha256 equals archiveDigest before handing the file to an already authorized GitHub/Gitea upload tool and inspecting immutable source/artifact results. For a lost response, preserve the same destination, condition and complete body; never overwrite an unknown file. Readable fileRoots do not grant write authority. Then call `AppAuthoring.distribution_prepare` with `owner_request` containing the same exportRef, a registryTargetIds target, the actual immutable source and metadata to generate Registry manifest.json, catalog-metadata.v1.json and install.md. The draft is still neither uploaded nor submitted; report missing targets and upload channels separately. Ordinary HttpRequest does not automatically inject platform credentials; never extract instance tokens or change Origin to bypass 401. The target Provider injects catalog identity; the personal installation remains unchanged. Verify archiveDigest, releaseDigest and source-materialized descriptorDigest independently. A different payload under the same version requires a new revision, not overwriting fixed material.
|
||||
To deliver ZIP bytes to an upload tool, also pass top-level `export_file_ref`, a destination FileResourceRef under the original tool's actual write authority, with exactly one declared write condition: true for a destination that must be absent, or the prior `archiveFile.etag` for a replacement. The returned `archiveFile` contains the actual fileRef/sha256/size/etag/replayed. Verify sha256 equals archiveDigest before handing the file to an already authorized GitHub/Gitea upload tool and inspecting immutable source/artifact results. For a lost response, preserve the same destination, condition and complete body; never overwrite an unknown file. Readable fileRoots do not grant write authority. Then call `AppAuthoring.distribution_prepare` with `owner_request` containing the same exportRef, a registryTargetIds target, the actual immutable source and metadata to generate Registry manifest.json, catalog-metadata.v1.json and install.md. The draft is still neither uploaded nor submitted; report missing targets and upload channels separately. Ordinary HttpRequest does not automatically inject platform credentials; never extract instance tokens or change Origin to bypass 401. The target Provider injects catalog identity; the personal installation remains unchanged. Verify archiveDigest, releaseDigest and source-materialized descriptorDigest independently. A different payload under the same version requires a new revision, not overwriting fixed material.
|
||||
|
||||
Report code/functional verification, preview, personal saving, runtime availability, upload, catalog PR/admission and second-user installation independently. A candidate 4.3 Schema, external PR or generated ZIP does not establish official-market availability, client capability release or another device's runtime acceptance. External hosting, databases and Git services require actual connections and applicable licensing/deployment terms and can carry separate costs; when unavailable, stop the affected external operation.
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
## L0:职责
|
||||
|
||||
发起调用前,用 `ToolCatalog(query="select:AppAuthoring")` 核对本次声明的安装实例 ID 和写入条件字段。
|
||||
|
||||
|
||||
Agent 选择技术栈、构建方法与工作方式;平台核验材料、作用域、发布、运行和协作事实。复用文件、执行、Task/Run 与现有安装 writer,不生成固定业务 DAG,不从安装说明自动执行命令。
|
||||
|
||||
## L1:先读能力与当前上下文
|
||||
@@ -21,7 +24,7 @@ Agent 选择技术栈、构建方法与工作方式;平台核验材料、作
|
||||
- 原开发服务器/HMR 使用真实授权的 draft 工作目录,由 `AppAuthoring.development_enroll` 的 `owner_request` 传原 prepareRef/draft/terminalId/endpoint 接入。它只用于 live 预览,不能成为正式 startup;可变源码与固定 release 分开。原命令须尊重 owner 注入的 PORT 和 APP_DATA_DIR,初次开发默认值用 shell 的 `${VAR:-default}`,不能写死赋值盖掉预览端口或正式数据根。
|
||||
- 个人发布由 `AppAuthoring.prepare_release` 的 `release_request` 固定真实材料:materialRoot 使用能力返回的授权根构造 FileResourceRef。检查候选后,`commit_release` 的 `release_request` 使用完整原 AppReleaseCommitRequest,保留精确 prepareRef、installationId、expectedRevision 与原 submissionId;不能把安装 material 对象简化为产品名称或摘要。旧会话里明确授权的发布可继续,不逐命令重复确认。新目标或超出授权的数据/外部副作用沿现有治理处理。
|
||||
- 发布保存与运行可用分开。静态包通过固定映射承载;带服务应用用 `AppAuthoring.runtime_enroll` 固定原执行 owner 的真实 spawn、代际身份和握手;正式运行用 runtime_read/start/stop,不能把 startupPolicy 当长期执行授权。Docker release 声明完整 imageRefs(注册表/repository@sha256),先用 `AppAuthoring.docker_prepare` 获得私有短期 CID/env 文件及实际命令,沿原审批执行后以 docker_enroll 的原 enrollmentRef/terminalId 核验真实 daemon/CID/RepoDigest/挂载/端口。普通用户启动/停止沿当前审批,私有临时预览回收只补偿原批准的 owned CID;候选、正式和预览的数据根与 nonce 分开。unknown 先检查原 CID,不重复创建;缺 adapter 或支持的环境时保留原 Agent 管理并明确原因。端口响应、Docker CLI 退出、PID、历史 observation 或格式检查不能替代运行绑定;失败如实说明“版本已保存,启动待修复”。
|
||||
- 写入超时、响应丢失或断线,保留原 mutation/submission/clientRequest ID 与正文;发布用 `AppAuthoring.lookup_release_submission` 的原 installation_id/submission_id 查询,运行和预览分别重读实际状态。unknown 时不创建新 ID 盲重放。修改候选前重读当前版本与数据兼容,迁移中断先观察;代码回退不代表业务数据恢复。
|
||||
- 写入超时、响应丢失或断线,保留原 mutation/submission/clientRequest ID 与正文;发布用 `AppAuthoring.lookup_release_submission` 按当前顶层安装实例字段传入原 ID,并传原 `submission_id` 查询,运行和预览分别重读实际状态。unknown 时不创建新 ID 盲重放。修改候选前重读当前版本与数据兼容,迁移中断先观察;代码回退不代表业务数据恢复。
|
||||
|
||||
## L3:网页与 Agent 协作
|
||||
|
||||
@@ -38,6 +41,6 @@ Agent 选择技术栈、构建方法与工作方式;平台核验材料、作
|
||||
|
||||
个人发布默认私有本机,不隐含上传。用户要求分发后,用 `AppAuthoring.export_release` 的 `owner_request` 导出固定版本的完整白名单,审阅确切文件与目标。业务库、.env、凭据、聊天/Task/Plan、日志、机器路径和安装身份不得进入包;环境模板可以包含名称和说明,不能包含真实值。
|
||||
|
||||
需要交给上传工具的 ZIP 时,export_release 另在顶层提供 `export_file_ref`(原工具真实写权限目录中的目标 FileResourceRef),并二选一给 `expected_absent:true` 或原 `expected_etag`。返回的 `archiveFile` 包含实际 fileRef/sha256/size/etag/replayed;核验 sha256 等于 archiveDigest,再交已授权的 GitHub/Gitea 上传工具并核读不可变提交/制品 SHA。响应丢失保留同一目标、条件与完整正文查询/重试,不覆盖未知文件;只有只读 fileRoots 不代表有写权限。随后用 `AppAuthoring.distribution_prepare` 的 `owner_request`,以同一 exportRef、能力返回的 registryTargetIds 中的目标、实际固定来源和 metadata 生成 Registry `manifest.json`、`catalog-metadata.v1.json`、`install.md`。草稿仍未上传、未提交目录;缺少真实目标或上传通道时分别说明不可用。普通 HttpRequest 不自动注入平台凭据,不能读取实例 token 或变更 Origin 绕过 401。目录身份由目标 Provider 注入,个人安装仍是原实例。archiveDigest、releaseDigest、物化 descriptorDigest 分别核验;同版本异内容创建新修订,不覆盖旧固定材料。
|
||||
需要交给上传工具的 ZIP 时,export_release 另在顶层提供 `export_file_ref`(原工具真实写权限目录中的目标 FileResourceRef),并在工具当前声明的写入条件中二选一,目标须不存在时传 true,覆盖时填原 `archiveFile.etag`。返回的 `archiveFile` 包含实际 fileRef/sha256/size/etag/replayed;核验 sha256 等于 archiveDigest,再交已授权的 GitHub/Gitea 上传工具并核读不可变提交/制品 SHA。响应丢失保留同一目标、条件与完整正文查询/重试,不覆盖未知文件;只有只读 fileRoots 不代表有写权限。随后用 `AppAuthoring.distribution_prepare` 的 `owner_request`,以同一 exportRef、能力返回的 registryTargetIds 中的目标、实际固定来源和 metadata 生成 Registry `manifest.json`、`catalog-metadata.v1.json`、`install.md`。草稿仍未上传、未提交目录;缺少真实目标或上传通道时分别说明不可用。普通 HttpRequest 不自动注入平台凭据,不能读取实例 token 或变更 Origin 绕过 401。目录身份由目标 Provider 注入,个人安装仍是原实例。archiveDigest、releaseDigest、物化 descriptorDigest 分别核验;同版本异内容创建新修订,不覆盖旧固定材料。
|
||||
|
||||
按真实情况分别报告:代码/业务验证、预览、个人发布、启动、来源上传、目录 PR/准入、第二用户安装。候选 4.3 Schema、外仓 PR 或 ZIP 生成都不代表官方市场已开放,也不能代替客户端能力发行或另一设备运行。外部托管/数据库/Git服务的登录、许可、部署及费用由其真实连接和条款决定,缺少时停止相应外部调用。
|
||||
@@ -29,13 +29,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-09",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
|
||||
用户可显式选择“在这台设备记住所选位置”。示例 viewStateContract 只允许 selection 键并限制 1024 字节,不保存笔记正文;需实际 saveViewState grant,设备保存保持原 mutationId、expectedRevision 和正文。能力缺失时保持业务数据与视图偏好分别报告,预览不借正式设备状态。
|
||||
|
||||
用户要求分发时,用原 AppAuthoring.export_release 的 owner_request 显式导出全部 payload 与 app-release.json;另给原工具真实写权限内的 export_file_ref,首次 expected_absent:true,已有目标用原 expected_etag。返回 archiveFile 的实际 fileRef/sha256/size/etag,核验 sha256/size 与 export 的 archiveDigest/size 一致后交原授权上传工具。取得真实固定来源再用 distribution_prepare 的 owner_request,registryRepoId 从 authoring_capabilities.registryTargetIds 选本次实际目标,生成三文件草稿;它不上传、不提交目录,也不改变个人安装身份。普通 HTTP 不自动注入平台凭据,不能读取实例 token 或绕过认证。
|
||||
用户要求分发时,用原 AppAuthoring.export_release 的 owner_request 显式导出全部 payload 与 app-release.json;另给原工具真实写权限内的 export_file_ref,按声明选择一个条件,首次要求目标不存在时传 true,覆盖时填原 `archiveFile.etag`。返回 archiveFile 的实际 fileRef/sha256/size/etag,核验 sha256/size 与 export 的 archiveDigest/size 一致后交原授权上传工具。取得真实固定来源再用 distribution_prepare 的 owner_request,registryRepoId 从 authoring_capabilities.registryTargetIds 选本次实际目标,生成三文件草稿;它不上传、不提交目录,也不改变个人安装身份。普通 HTTP 不自动注入平台凭据,不能读取实例 token 或绕过认证。
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
用户可显式选择“在这台设备记住所选位置”。示例 viewStateContract 只允许 selection 键并限制 1024 字节,不保存笔记正文;需实际 saveViewState grant,设备保存保持原 mutationId、expectedRevision 和正文。能力缺失时保持业务数据与视图偏好分别报告,预览不借正式设备状态。
|
||||
|
||||
用户要求分发时,用原 AppAuthoring.export_release 的 owner_request 显式导出全部 payload 与 app-release.json;另给原工具真实写权限内的 export_file_ref,首次 expected_absent:true,已有目标用原 expected_etag。返回 archiveFile 的实际 fileRef/sha256/size/etag,核验 sha256/size 与 export 的 archiveDigest/size 一致后交原授权上传工具。取得真实固定来源再用 distribution_prepare 的 owner_request,registryRepoId 从 authoring_capabilities.registryTargetIds 选本次实际目标,生成三文件草稿;它不上传、不提交目录,也不改变个人安装身份。普通 HTTP 不自动注入平台凭据,不能读取实例 token 或绕过认证。
|
||||
用户要求分发时,用原 AppAuthoring.export_release 的 owner_request 显式导出全部 payload 与 app-release.json;另给原工具真实写权限内的 export_file_ref,按声明选择一个条件,首次要求目标不存在时传 true,覆盖时填原 `archiveFile.etag`。返回 archiveFile 的实际 fileRef/sha256/size/etag,核验 sha256/size 与 export 的 archiveDigest/size 一致后交原授权上传工具。取得真实固定来源再用 distribution_prepare 的 owner_request,registryRepoId 从 authoring_capabilities.registryTargetIds 选本次实际目标,生成三文件草稿;它不上传、不提交目录,也不改变个人安装身份。普通 HTTP 不自动注入平台凭据,不能读取实例 token 或绕过认证。
|
||||
@@ -10,20 +10,20 @@ Agent 使用原 `AppAuthoring` 的有限作者动作,直接进入已有 releas
|
||||
| `read_draft` | `file_ref: FileResourceRef` | 从真实授权文件读取并核验的 `draft: AppDraftRef` |
|
||||
| `prepare_release` | `release_request: AppReleasePrepareRequest` | owned candidate、真实 payload/descriptor 摘要、当前 expectedRevision |
|
||||
| `commit_release` | `release_request: AppReleaseCommitRequest` | 唯一 writer CAS 保存;activation 与保存分别核验 |
|
||||
| `lookup_release_submission` | `installation_id`、原 `submission_id` | 原提交 committed/absent/unknown,不换 ID 重装 |
|
||||
| `lookup_release_submission` | 当前声明的顶层安装实例 ID 字段、原 `submission_id` | 原提交 committed/absent/unknown,不换 ID 重装 |
|
||||
| `preview_list` | 无额外参数 | 当前 owner 的实际 previews |
|
||||
| `preview_read` | `draft_id` | 原草稿的当前预览与 revision |
|
||||
| `preview_prepare` | `owner_request: AppPreviewRequest` | snapshot/live、实际 revision、隔离 runtime |
|
||||
| `preview_end` | `owner_request:{draftId,expectedRevision}` | 只结束该原预览,保留 Task 和开发材料 |
|
||||
| `runtime_read` | `installation_id`、可选 `entrypoint_id` | 精确实例入口的当前运行状态 |
|
||||
| `runtime_start` | `installation_id` | 原执行 owner 当前再审批后的实际启动结果 |
|
||||
| `runtime_stop` | `installation_id` | 原执行 owner 当前再审批后的实际停止结果 |
|
||||
| `runtime_read` | 当前声明的顶层安装实例 ID 字段、可选 `entrypoint_id` | 精确实例入口的当前运行状态 |
|
||||
| `runtime_start` | 当前声明的顶层安装实例 ID 字段 | 原执行 owner 当前再审批后的实际启动结果 |
|
||||
| `runtime_stop` | 当前声明的顶层安装实例 ID 字段 | 原执行 owner 当前再审批后的实际停止结果 |
|
||||
| `runtime_enroll` | `owner_request:{prepareRef,installationId,terminalId,endpoint:{port,identityPath},startupPolicy}` | 原真实已接纳命令的固定 native 执行合同 |
|
||||
| `development_enroll` | `owner_request:{prepareRef,draft,terminalId,endpoint:{port,identityPath}}` | 原授权可变源码的 development-only 合同,只用于 live 预览 |
|
||||
| `docker_prepare` | `owner_request: DockerPrepareEnrollmentInput` | 私有短期 CID/env 文件与实际 create 命令,不执行 Docker 命令 |
|
||||
| `docker_enroll` | `owner_request:{enrollmentRef,terminalId}` | 真实 daemon/CID/RepoDigest/挂载/端口执行合同,不以 CLI 退出代替健康 |
|
||||
| `release_history` | `installation_id` | 保存材料历史,不假称数据备份 |
|
||||
| `export_release` | `owner_request: AppReleaseExportRequest`;可另给顶层 `export_file_ref` 与 `expected_absent:true` 或 `expected_etag` | exportRef、archiveDigest、releaseDigest、实际 files/size;显式导出时 archiveFile 包含真实 ZIP fileRef/sha256/size/etag/replayed,不上传 |
|
||||
| `release_history` | 当前声明的顶层安装实例 ID 字段 | 保存材料历史,不假称数据备份 |
|
||||
| `export_release` | `owner_request: AppReleaseExportRequest`;可另给顶层 `export_file_ref` 和一个当前声明的写入条件,首次要求目标不存在时传 true,覆盖传上次 `archiveFile.etag` | exportRef、archiveDigest、releaseDigest、实际 files/size;显式导出时 archiveFile 包含真实 ZIP fileRef/sha256/size/etag/replayed,不上传 |
|
||||
| `distribution_prepare` | `owner_request: AppDistributionPrepareRequest`(exportRef、registryRepoId、source、metadata) | 从真实 export 与 capability 中的目录目标生成三文件草稿,未上传/未提交 |
|
||||
|
||||
例如能力调用为 `AppAuthoring({action:'authoring_capabilities'})`。读草稿使用 `action:'read_draft'` 与返回的授权根对应的 `file_ref`;发布准备/提交分别使用 `release_request`,预览/运行纳管/导出使用 `owner_request`。这些包络不是互换字段,原工具及内部 owner 仍逐个严格核验完整 DTO。
|
||||
@@ -63,7 +63,7 @@ HTTP 接口保留给平台 UI 或具有合法管理凭据的消费者,普通 H
|
||||
| `POST /api/apps/releases/export`、export 返回的 `downloadPath` | 生成归档和下载原始 ZIP 字节 |
|
||||
| `POST /api/apps/distribution/prepare` | 读取真实 exportRef 生成 Registry 三文件,未上传/未提交 |
|
||||
|
||||
downloadPath 仍是平台管理下载路径,不授予网页或普通 HTTP 工具访问。Agent 需要实际 ZIP 时,在 export_release 顶层另给 export_file_ref:使用当前 Agent 原写权限内的 FileResourceRef 目标,path 为该根内相对路径;不能把服务 exports 私有目录挂成工作根。首次给 expected_absent:true,覆盖已有文件给原 expected_etag,两者不能同时提供。返回 archiveFile={fileRef,sha256,size,etag,replayed},sha256/size 必须等于 export 的 archiveDigest/size;这才是可交原授权上传工具的实际文件。只读 fileRoots 不授写权限。响应丢失保持相同目标/条件/完整正文,已有同一固定字节可重放,其他内容必须按实际 ETag 决定,不能盲覆盖。
|
||||
downloadPath 仍是平台管理下载路径,不授予网页或普通 HTTP 工具访问。Agent 需要实际 ZIP 时,在 export_release 顶层另给 export_file_ref:使用当前 Agent 原写权限内的 FileResourceRef 目标,path 为该根内相对路径;不能把服务 exports 私有目录挂成工作根。按现有工具声明二选一,首次要求目标不存在时传 true,覆盖时填原 `archiveFile.etag`。返回 archiveFile={fileRef,sha256,size,etag,replayed},sha256/size 必须等于 export 的 archiveDigest/size;这才是可交原授权上传工具的实际文件。只读 fileRoots 不授写权限。响应丢失保持相同目标/条件/完整正文,已有同一固定字节可重放,其他内容必须按实际 ETag 决定,不能盲覆盖。
|
||||
|
||||
目录草稿用原 AppAuthoring.distribution_prepare,完整 AppDistributionPrepareRequest 放在 owner_request;registryRepoId 从 authoring_capabilities.registryTargetIds 选本次真实目标,不自报 sourceId 或构造连接。source 指向用户已实际上传并核验的不可变来源,sha256 等于 archiveDigest。返回 draft 三文件及 mapping/facts;upload 仍为 unverified,catalog 仍为 not-submitted,sourceAcl 仍为 source-admin-managed。写入目录仓库、提交 PR、目录准入和第二用户获取各由原工具取得实际回执;没有目标或来源连接时说明不可用。
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 固定应用版本分发
|
||||
|
||||
1. 确认用户要分发的精确版本、真实目标仓库/Registry、公共或私有范围、实际登录连接和材料许可。生成文件、个人发布或已有预览都不是上传授权;既有会话中的明确分发授权直接沿用。
|
||||
2. 用原 AppAuthoring 的 export_release 动作,从 prepareRef,或 installationId + expectedRevision 导出;完整 AppReleaseExportRequest 放在 owner_request。`paths` 必须显式覆盖全部 payload + app-release.json;不包含服务物化 descriptor、owner 标记、个人数据和秘密。需要实际 ZIP 时,另在顶层给 export_file_ref(当前 Agent 原写权限目录的目标 FileResourceRef)与 expected_absent:true 或原 expected_etag;不能同时给两个条件或覆盖未知文件。核验响应的 files/size 和 archiveFile 的实际 fileRef/sha256/size/etag/replayed,sha256/size 必须等于 export 的 archiveDigest/size。读能力返回的 fileRoots 不授写权限;响应丢失保持同一目标、条件与完整正文恢复。downloadPath 是平台管理消费者路径,普通 HttpRequest 不自动注入凭据。
|
||||
2. 用原 AppAuthoring 的 export_release 动作,从 prepareRef,或 installationId + expectedRevision 导出;完整 AppReleaseExportRequest 放在 owner_request。`paths` 必须显式覆盖全部 payload + app-release.json;不包含服务物化 descriptor、owner 标记、个人数据和秘密。需要实际 ZIP 时,另在顶层给 export_file_ref(当前 Agent 原写权限目录的目标 FileResourceRef)与 按声明选择一个条件,首次要求目标不存在时传 true,覆盖时填原 `archiveFile.etag`;不能同时给两个条件或覆盖未知文件。核验响应的 files/size 和 archiveFile 的实际 fileRef/sha256/size/etag/replayed,sha256/size 必须等于 export 的 archiveDigest/size。读能力返回的 fileRoots 不授写权限;响应丢失保持同一目标、条件与完整正文恢复。downloadPath 是平台管理消费者路径,普通 HttpRequest 不自动注入凭据。
|
||||
3. 将真实 archiveFile.fileRef 交原实际授权上传工具;GitHub Release 上传此 ZIP 后,核读真实下载地址、固定 commit 和原始字节摘要;Gitea 私有仓库可提交 `releases/<version>.zip`,取得完整 commit 与该路径。可变 tag/latest 只作展示,必须解析到固定引用。没有真实来源回执就报告“制品已生成,尚未上传”。
|
||||
4. 使用原 AppAuthoring 的 distribution_prepare 动作,owner_request 为 AppDistributionPrepareRequest:`exportRef`、从 authoring_capabilities.registryTargetIds 选择的真实 registryRepoId、`source:{kind:'release'|'git',url,ref,sha256,path?}` 和实际 metadata。目录目标列表是配置事实,不授予源端上传权限;普通模型不读取实例 token 或改 Origin 绕过认证。git 必须给固定包路径,sha256 必须等于导出 archiveDigest。产品 ID/名称/版本/入口不由 metadata 另填。
|
||||
5. metadata 包含 author/description/tags/category/license/redistribution/availability/requiredClientVersion,以及实际维护者、品牌和复核材料。证据不足保留 listing-only;不要填不存在的审核者、认证、发布时间或平台验收。已复核的许可证路径应来自同一 release 的 license role 文件。
|
||||
|
||||
@@ -4,7 +4,7 @@ name: delete-agent
|
||||
description: Archive unused Agents, list local archives and restore them through
|
||||
ManageAgent. Only the user can permanently delete an Agent through the
|
||||
interface.
|
||||
version: 2.7.0
|
||||
version: 2.7.1
|
||||
type: meta
|
||||
risk_level: medium
|
||||
status: enabled
|
||||
@@ -27,7 +27,7 @@ metadata:
|
||||
short_desc: 归档或恢复智能体,保留历史并报告团队和调度事项
|
||||
description: 通过 ManageAgent 归档不再使用的智能体、查询本机归档与恢复;永久删除仅由用户在界面完成。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:4f5aae9c80b22ee9
|
||||
source_hash: sha256:879f704153c0aabc
|
||||
translated_by: ai:gpt-6
|
||||
translated_at: '2026-11-16'
|
||||
en-US:
|
||||
@@ -38,7 +38,7 @@ metadata:
|
||||
ManageAgent. Only the user can permanently delete an Agent through the
|
||||
interface.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:4f5aae9c80b22ee9
|
||||
source_hash: sha256:879f704153c0aabc
|
||||
translated_by: ai:gpt-6
|
||||
translated_at: '2026-11-16'
|
||||
market:
|
||||
@@ -77,7 +77,7 @@ Use this for deleting an Agent, recovering an accidental deletion, or inspecting
|
||||
|
||||
When the target is unspecified, list candidates with `ManageAgent(action='list')`; use `get` for details. Verify the name and ID, explaining that history is retained and teams it leads are archived too. Do not reconfirm a clearly authorized target; clarify ambiguous targets first. The tool protects built-in Agents, the caller itself, and active Agents. Stop an active target through the interface or wait until it is idle.
|
||||
|
||||
Call `ManageAgent(action='delete', id='example-agent')`. Do not ask whether to delete history or pass `deleteRuns=true`: the new tool rejects it. Approval follows the caller's approval mode; do not promise a dialog. Report the actual archive identifier, team and worktree dispositions, and warnings. Unbinding preserves worktrees and branches. Retain `archiveId` for recovery when needed; do not claim archiving reclaims all disk space.
|
||||
Read the current `ManageAgent` declaration for the target Agent ID field. Call the `delete` action using that field and the selected Agent ID. Do not ask whether to delete history or pass `deleteRuns=true`: the new tool rejects it. Approval follows the caller's approval mode; do not promise a dialog. Report the actual archive identifier, team and worktree dispositions, and warnings. Unbinding preserves worktrees and branches. Retain `archiveId` for recovery when needed; do not claim archiving reclaims all disk space.
|
||||
|
||||
### List Archives and Restore
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
用户未明确目标时,用 `ManageAgent(action='list')` 列出候选,需要详情时用 `get`。核对名称与 ID,并说明会话历史保留、领导的团队一并归档。用户已明确授权的目标不重复询问;目标含糊时先澄清。工具保留内置智能体、自删及活跃状态保护;活跃目标需先在界面停止或等待空闲。
|
||||
|
||||
调用 `ManageAgent(action='delete', id='example-agent')`。不要询问是否同时删除历史,不传 `deleteRuns=true`,新工具会拒绝它。工具按调用方审批模式裁决,不承诺一定弹卡。成功后只根据真实回执报告归档标识、团队和 worktree 处置及警告;解除绑定会保留工作树与分支。保存 `archiveId` 供需要时恢复,不把归档说成释放全部磁盘。
|
||||
按当前 `ManageAgent` 工具声明确定目标 Agent ID 字段,用该字段传入所选 ID,调用 `delete` 动作。不要询问是否同时删除历史,不传 `deleteRuns=true`,新工具会拒绝它。工具按调用方审批模式裁决,不承诺一定弹卡。成功后只根据真实回执报告归档标识、团队和 worktree 处置及警告;解除绑定会保留工作树与分支。保存 `archiveId` 供需要时恢复,不把归档说成释放全部磁盘。
|
||||
|
||||
### 查看归档与恢复
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-17",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -10,7 +10,7 @@ description: >-
|
||||
Use when 用户提到 邮件、邮箱、收件箱、发邮件、回复邮件、查邮件、Gmail、
|
||||
Outlook、QQ邮箱、163邮箱、附件、标签、草稿、自动回复、邮件规则、
|
||||
转发、抄送、未读邮件、收信、发信、邮件同步、邮件搜索。
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
type: procedural
|
||||
risk_level: medium
|
||||
status: enabled
|
||||
@@ -37,7 +37,7 @@ metadata:
|
||||
description: >-
|
||||
Use this skill whenever the user wants to interact with email. This includes reading inbox, sending emails, replying, searching messages, managing labels and categories, downloading attachments, setting up auto-reply rules, or triggering agents to handle incoming emails. Supports Gmail, Outlook, and IMAP/SMTP (QQ Mail, 163, Yahoo, etc.) through DesireCore's local REST API. Use when 用户提到 邮件、邮箱、收件箱、发邮件、回复邮件、查邮件、Gmail、 Outlook、QQ邮箱、163邮箱、附件、标签、草稿、自动回复、邮件规则、 转发、抄送、未读邮件、收信、发信、邮件同步、邮件搜索。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:0f8d0c1cc15fa36e
|
||||
source_hash: sha256:9de012b546e13272
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Email Operations
|
||||
@@ -45,7 +45,7 @@ metadata:
|
||||
description: >-
|
||||
Use this skill whenever the user wants to interact with email. This includes reading inbox, sending emails, replying, searching messages, managing labels and categories, downloading attachments, setting up auto-reply rules, or triggering agents to handle incoming emails. Supports Gmail, Outlook, and IMAP/SMTP (QQ Mail, 163, Yahoo, etc.) through DesireCore's local REST API. Use when the user mentions email, mailbox, inbox, sending email, replying, checking email, Gmail, Outlook, QQ Mail, 163 Mail, attachments, labels, drafts, auto-reply, email rules, forwarding, CC, unread email, receiving, sending, email sync, or email search.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:0f8d0c1cc15fa36e
|
||||
source_hash: sha256:9de012b546e13272
|
||||
translated_by: human
|
||||
translated_at: '2026-10-28'
|
||||
market:
|
||||
@@ -106,8 +106,8 @@ Users can reach the email management interface via:
|
||||
|
||||
## API Basics
|
||||
|
||||
- **How to call**: use the built-in `MailOperations` tool. Its parameters are `path` (a relative path starting with `/api/`, with query parameters appended directly to it), `method` (default `GET`), `body` (a JSON object), and `save_to` (writes the response to a file, see "Large responses and `save_to`" below; required when downloading an attachment, see section 6). The tool locates the local Mail Service and attaches the access credential automatically; the Agent neither needs nor can supply a token.
|
||||
- **Large responses and `save_to`**: the tool returns at most 100 KB. Message list, search, and `messages/fetch` responses carry the body of every message, so a few dozen messages can exceed the limit. When the limit is exceeded and no `save_to` is given, the tool shortens overlong fields (such as message bodies) and re-indents the JSON before returning it, keeping only the head and tail when it still does not fit; a leading notice states the response size, that it is "not the complete result" or which fields were shortened, the response structure (e.g. `result.messages 20 条,total 411`), and how to get the full content. When you need the complete result, call again with the same `path` / `method` / `body` plus `save_to` (e.g. `"./mail-list.json"`) and read that file with Read or a script, or page with a smaller `limit`. With `save_to`, the complete response is written to the file atomically (JSON up to 8 MB is re-indented with 2 spaces; larger responses are written as is, and the receipt says so), and the tool returns only the absolute path, byte count, SHA-256, and a structure summary; non-2xx responses are not written; a response body over 32 MB is refused, so reduce `limit`; the target path must be inside a writable working directory, missing parent directories are created, and an existing file with the same name is overwritten. The result of `messages/fetch` is already written to the local cache before it is returned: when its response exceeds the limit, read the local cache with `GET /{p}/messages` (the matching `folder`, paged by `offset` / `limit`, with `save_to` if needed) instead of running the same fetch again.
|
||||
- **How to call**: use the built-in `MailOperations` tool. Its parameters are `path` (a relative path starting with `/api/`, with query parameters appended directly to it), `method` (default `GET`), `body` (a JSON object), and the destination field (writes the response to a file, see "Large responses and file destinations" below; required when downloading an attachment, see section 6). The tool locates the local Mail Service and attaches the access credential automatically; the Agent neither needs nor can supply a token.
|
||||
- **Large responses and file destinations**: consult `ToolCatalog(query="select:MailOperations")` for the exact destination-path key. the tool returns at most 100 KB. Message list, search, and `messages/fetch` responses carry the body of every message, so a few dozen messages can exceed the limit. When the limit is exceeded and no the destination field is given, the tool shortens overlong fields (such as message bodies) and re-indents the JSON before returning it, keeping only the head and tail when it still does not fit; a leading notice states the response size, that it is "not the complete result" or which fields were shortened, the response structure (e.g. `result.messages 20 条,total 411`), and how to get the full content. When you need the complete result, call again with the same `path` / `method` / `body` plus the destination field (e.g. `"./mail-list.json"`) and read that file with Read or a script, or page with a smaller `limit`. With the destination field, the complete response is written to the file atomically (JSON up to 8 MB is re-indented with 2 spaces; larger responses are written as is, and the receipt says so), and the tool returns only the absolute path, byte count, SHA-256, and a structure summary; non-2xx responses are not written; a response body over 32 MB is refused, so reduce `limit`; the target path must be inside a writable working directory, missing parent directories are created, and an existing file with the same name is overwritten. The result of `messages/fetch` is already written to the local cache before it is returned: when its response exceeds the limit, read the local cache with `GET /{p}/messages` (the matching `folder`, paged by `offset` / `limit`, with the destination field if needed) instead of running the same fetch again.
|
||||
- **Path form**: the endpoints below omit the `/api` prefix; add it when calling. For example, `/imap/messages?email=me%40example.com&limit=20` becomes `path: "/api/imap/messages?email=me%40example.com&limit=20"`. The only exception is the health check `/ping` (no `/api`).
|
||||
- **Do not connect to the port directly**: do not `curl` `https://127.0.0.1:62000`. The port is allocated dynamically starting at 62000 (when several DesireCore instances run, 62000 may belong to another instance), and in strict capability mode direct requests without the credential always return 401.
|
||||
- **Parameter location**: GET / DELETE parameters always go in the query string; for POST / PUT follow the tables below. The `email` of endpoints such as `messages/fetch`, mark as read/unread, Outlook single-message operations, and IMAP draft send must be in the query string; putting it in the body returns 400 `Missing email parameter`. For `/sync`, both `provider` and `email` must be in the query string: `provider` in the body returns 400 `Invalid provider`, and `email` in the body returns 400 `Email is required`. `method` defaults to `GET`; endpoints that take a request body (such as `messages/fetch`) also need `method: "POST"`, and the tool refuses a GET with a `body` before sending it.
|
||||
@@ -304,17 +304,16 @@ To run a full-text search on the Gmail server by body or sender, use the `query`
|
||||
|
||||
- `attachmentId` comes from `attachments[].id` in the message detail; call the detail endpoint first to get the attachment list.
|
||||
- IMAP: use the list's `id` as is (e.g. `imap:12345`) as `messageId`; use `attachments[].id` as is as `attachmentId` (e.g. `part:2`, or an index such as `"0"`, see section 3); `folder` may be omitted; when an `id` with a folder key is not cached locally, pass the entry's `imapFolder` (see section 3).
|
||||
- **Always pass `save_to` to `MailOperations` when downloading an attachment** (the target file path): the tool decodes the base64 in process and writes the file, returning only the absolute path, byte count, and SHA-256; without `save_to` the tool refuses to return the attachment response. The target path must be inside a writable working directory.
|
||||
- **Always pass the destination field to `MailOperations` when downloading an attachment** (the target file path): the tool decodes the base64 in process and writes the file, returning only the absolute path, byte count, and SHA-256; without the destination field the tool refuses to return the attachment response. The target path must be inside a writable working directory.
|
||||
- The endpoint's raw response is `result: {data: <base64>, size}`; the tool refuses to parse responses larger than about 32 MB — in that case follow the streaming-to-disk method given in the tool's error message, or ask the user to export the attachment manually from the Emails page.
|
||||
|
||||
Example (IMAP):
|
||||
IMAP example. Alongside these fields, set the destination field named by `ToolCatalog(query="select:MailOperations")` to `./attachments/report.pdf`.
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "/api/imap/attachment",
|
||||
"method": "POST",
|
||||
"body": {"email": "me@example.com", "messageId": "imap:12345", "attachmentId": "part:2"},
|
||||
"save_to": "./attachments/report.pdf"
|
||||
"body": {"email": "me@example.com", "messageId": "imap:12345", "attachmentId": "part:2"}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ mail-operations 是一个**流程型技能(Procedural Skill)**,通过 Desi
|
||||
|
||||
## API 基础信息
|
||||
|
||||
- **调用方式**:使用内置工具 `MailOperations`,参数为 `path`(以 `/api/` 开头的相对路径,查询参数直接拼在 path 里)、`method`(默认 `GET`)、`body`(JSON 对象)和 `save_to`(把响应写入文件,见下方「大响应与 `save_to`」;下载附件时必须传,见第 6 节)。工具自动定位本机 Mail Service 并携带访问凭证,Agent 不需要、也不能自行提供 token。
|
||||
- **大响应与 `save_to`**:工具返回内容的上限是 100KB。邮件列表、搜索和 `messages/fetch` 的每封邮件都带正文,几十封就可能超限。超限又没传 `save_to` 时,工具截短超长字段(如邮件正文)、把 JSON 按缩进重排后返回,放不下时只保留首尾部分;开头的说明写明响应大小、「不是完整结果」或哪些字段被截短、响应结构(如 `result.messages 20 条,total 411`)以及怎样拿到完整内容。需要完整结果时,用同样的 `path` / `method` / `body` 再调用一次并加上 `save_to`(如 `"./mail-list.json"`),再用 Read 或脚本读取该文件;或减小 `limit` 分页请求。传了 `save_to` 时,完整响应原子写入该文件(8MB 以内的 JSON 按 2 空格缩进重排,更大的按原文写入,回执会注明),工具只返回绝对路径、字节数、SHA-256 与结构摘要;非 2xx 响应不写文件;响应体超过 32MB 时拒绝写入,需减小 `limit`;目标路径须位于允许写入的工作目录内,缺失的父目录自动创建,同名文件直接覆盖。`messages/fetch` 的结果在返回前已经写入本地缓存:它的响应超限时,改用 `GET /{p}/messages`(对应的 `folder`,按 `offset` / `limit` 分页,必要时加 `save_to`)读取本地缓存,不要原样重新补拉。
|
||||
- **调用方式**:使用内置工具 `MailOperations`,参数为 `path`(以 `/api/` 开头的相对路径,查询参数直接拼在 path 里)、`method`(默认 `GET`)、`body`(JSON 对象)和 目标路径字段(把响应写入文件,见下方「大响应与目标路径」;下载附件时必须传,见第 6 节)。工具自动定位本机 Mail Service 并携带访问凭证,Agent 不需要、也不能自行提供 token。
|
||||
- **大响应与目标路径**:用 `ToolCatalog(query="select:MailOperations")` 核对当前工具声明的目标路径字段。工具返回内容的上限是 100KB。邮件列表、搜索和 `messages/fetch` 的每封邮件都带正文,几十封就可能超限。超限又没传 目标路径字段 时,工具截短超长字段(如邮件正文)、把 JSON 按缩进重排后返回,放不下时只保留首尾部分;开头的说明写明响应大小、「不是完整结果」或哪些字段被截短、响应结构(如 `result.messages 20 条,total 411`)以及怎样拿到完整内容。需要完整结果时,用同样的 `path` / `method` / `body` 再调用一次并加上 目标路径字段(如 `"./mail-list.json"`),再用 Read 或脚本读取该文件;或减小 `limit` 分页请求。传了 目标路径字段 时,完整响应原子写入该文件(8MB 以内的 JSON 按 2 空格缩进重排,更大的按原文写入,回执会注明),工具只返回绝对路径、字节数、SHA-256 与结构摘要;非 2xx 响应不写文件;响应体超过 32MB 时拒绝写入,需减小 `limit`;目标路径须位于允许写入的工作目录内,缺失的父目录自动创建,同名文件直接覆盖。`messages/fetch` 的结果在返回前已经写入本地缓存:它的响应超限时,改用 `GET /{p}/messages`(对应的 `folder`,按 `offset` / `limit` 分页,必要时加 目标路径字段)读取本地缓存,不要原样重新补拉。
|
||||
- **路径写法**:下文端点均省略 `/api` 前缀,调用时要补上,例如 `/imap/messages?email=me%40example.com&limit=20` 对应 `path: "/api/imap/messages?email=me%40example.com&limit=20"`。唯一例外是健康检查 `/ping`(不带 `/api`)。
|
||||
- **不要直连端口**:不要用 `curl` 访问 `https://127.0.0.1:62000`。端口从 62000 起动态分配(同时运行多个 DesireCore 实例时,62000 可能属于另一个实例),严格能力模式下不带凭证的直连请求一律返回 401。
|
||||
- **参数位置**:GET / DELETE 的参数全部放查询串;POST / PUT 按下文表格区分查询串与 body。`messages/fetch`、标记已读/未读、Outlook 单封操作、IMAP 草稿发送等端点的 `email` 必须放在查询串,放进 body 会返回 400 `Missing email parameter`。`/sync` 的 `provider` 与 `email` 都必须放查询串:`provider` 放进 body 返回 400 `Invalid provider`,`email` 放进 body 返回 400 `Email is required`。`method` 缺省为 `GET`,需要请求体的端点(如 `messages/fetch`)要同时传 `method: "POST"`;GET 带 `body` 会在发出前被工具拒绝。
|
||||
@@ -238,17 +238,16 @@ mail-operations 是一个**流程型技能(Procedural Skill)**,通过 Desi
|
||||
|
||||
- `attachmentId` 取自邮件详情的 `attachments[].id`,先调用详情接口拿到附件列表。
|
||||
- IMAP:`messageId` 原样用列表返回的 `id`(如 `imap:12345`);`attachmentId` 原样用 `attachments[].id`(如 `part:2`,也可能是 `"0"` 这样的序号,见第 3 节);`folder` 可省略,带文件夹键的 `id` 本地没有缓存时传条目的 `imapFolder`(见第 3 节)。
|
||||
- **下载附件时必须给 `MailOperations` 传 `save_to`**(目标文件路径):工具在进程内完成 base64 解码并写入文件,只返回绝对路径、字节数与 SHA-256;不传 `save_to` 时附件响应会被工具拒绝返回。目标路径须位于允许写入的工作目录内。
|
||||
- **下载附件时必须给 `MailOperations` 传 目标路径字段**(目标文件路径):工具在进程内完成 base64 解码并写入文件,只返回绝对路径、字节数与 SHA-256;不传 目标路径字段 时附件响应会被工具拒绝返回。目标路径须位于允许写入的工作目录内。
|
||||
- 端点原始响应为 `result: {data: <base64>, size}`;响应超过约 32MB 时工具会拒绝解析,此时按工具错误提示中的流式落盘办法处理,或请用户在邮箱页面手工导出附件。
|
||||
|
||||
示例(IMAP):
|
||||
IMAP 示例。调用时还要按 `ToolCatalog(query="select:MailOperations")` 确认的字段名,把目标路径设为 `./attachments/report.pdf`。
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "/api/imap/attachment",
|
||||
"method": "POST",
|
||||
"body": {"email": "me@example.com", "messageId": "imap:12345", "attachmentId": "part:2"},
|
||||
"save_to": "./attachments/report.pdf"
|
||||
"body": {"email": "me@example.com", "messageId": "imap:12345", "attachmentId": "part:2"}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-10-28",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
+25
-22
@@ -17,7 +17,7 @@ description: >-
|
||||
月报、邮件、对比分析、会议记录、散文、文章、作文、md、markdown、report、
|
||||
summary、plan、outline、memo、table、list、draft、document、notes、
|
||||
write、create、organize。
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -41,9 +41,9 @@ metadata:
|
||||
short_desc: 创建、编辑 Markdown 文档(.md),默认文本文档格式
|
||||
description: >-
|
||||
当用户要求创建、撰写、整理任何书面产物且未指定特定格式时,使用此技能。
|
||||
确保使用 Write 工具写入文件、告知绝对路径、并通过 SendUserMessage 发送附件。
|
||||
确保使用 Write 工具写入文件、告知绝对路径、并通过 SendAudienceMessage 发送附件。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:0000000000000000
|
||||
source_hash: sha256:9534b1fc06007c8e
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Markdown Document Processing
|
||||
@@ -51,9 +51,9 @@ metadata:
|
||||
description: >-
|
||||
Use when the user requests any written deliverable without specifying a
|
||||
particular format. Ensures files are written via Write tool, absolute
|
||||
path is reported, and attachment is sent via SendUserMessage.
|
||||
path is reported, and attachment is sent via SendAudienceMessage.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:2434b01b42d751c0
|
||||
source_hash: sha256:9534b1fc06007c8e
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -105,27 +105,30 @@ After you create a .md file using the Write tool, you **MUST** complete these **
|
||||
- The file's full absolute path (copied from the Write tool result)
|
||||
|
||||
Template:
|
||||
|
||||
```
|
||||
已为你创建「文档标题」,简要说明内容。
|
||||
|
||||
📄 文件位置:`/full/absolute/path/filename.md`
|
||||
```
|
||||
|
||||
**Final Step 2:** Call `SendUserMessage` with the file as attachment. This **MUST** be your very last action. Do NOT output any text after this call.
|
||||
**Final Step 2:** Call `SendAudienceMessage` with the file as attachment. This **MUST** be your very last action. Do NOT output any text after this call.
|
||||
|
||||
Read the current SendAudienceMessage declaration for its message body field. These examples use `content`, with the attachment path from the Write receipt.
|
||||
|
||||
```
|
||||
SendUserMessage({
|
||||
message: "📄 点击下方附件打开文件",
|
||||
SendAudienceMessage({
|
||||
content: "📄 点击下方附件打开文件",
|
||||
attachments: ["/full/absolute/path/filename.md"]
|
||||
})
|
||||
```
|
||||
|
||||
#### Correct vs Wrong
|
||||
|
||||
- ✅ Write → text reply (with absolute path) → SendUserMessage (with attachment) → done
|
||||
- ✅ Write → text reply (with absolute path) → SendAudienceMessage (with attachment) → done
|
||||
- ❌ Write → text reply without absolute path
|
||||
- ❌ Write → no SendUserMessage
|
||||
- ❌ Write → SendUserMessage → more text output (e.g. "任务完成")
|
||||
- ❌ Write → no SendAudienceMessage
|
||||
- ❌ Write → SendAudienceMessage → more text output (e.g. "任务完成")
|
||||
- ❌ No Write at all, content output directly in chat
|
||||
|
||||
#### Forbidden
|
||||
@@ -133,8 +136,8 @@ SendUserMessage({
|
||||
- Outputting the full document content directly in the chat reply instead of writing to a file
|
||||
- Saying "好的,已完成" / "整理好了" / "以下是内容" without calling Write tool
|
||||
- Only giving a filename (e.g. "报告.md") without the full absolute path
|
||||
- Not calling SendUserMessage to deliver the file attachment
|
||||
- Outputting any text after SendUserMessage
|
||||
- Not calling SendAudienceMessage to deliver the file attachment
|
||||
- Outputting any text after SendAudienceMessage
|
||||
- Writing memory files about the document creation task — creating/editing a document is a one-time task, NOT a user preference or fact to remember
|
||||
|
||||
### Overview
|
||||
@@ -147,9 +150,9 @@ Markdown (.md) is a lightweight text format. The Write tool accepts the content
|
||||
|
||||
1. Determine content structure (headings, sections, tables)
|
||||
2. Choose file path: user specified > workspace directory
|
||||
3. Call Write tool with full absolute path + complete content
|
||||
3. Call Write with a work-directory-relative or absolute path and complete content
|
||||
4. Output text reply with summary + absolute path
|
||||
5. Call SendUserMessage with file attachment (last action)
|
||||
5. Call SendAudienceMessage with file attachment (last action)
|
||||
|
||||
#### File Naming
|
||||
|
||||
@@ -164,22 +167,22 @@ User: "帮我整理一份项目进度表"
|
||||
**Write:**
|
||||
```
|
||||
Write({
|
||||
file_path: "/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md",
|
||||
path: "notes/progress.md",
|
||||
content: "# 项目进度表\n\n| 模块 | 状态 | 负责人 | 截止日期 |\n|------|------|--------|----------|\n| 认证模块 | 已完成 | 张三 | 2026-05-01 |\n| 支付模块 | 进行中 | 李四 | 2026-05-15 |"
|
||||
})
|
||||
```
|
||||
|
||||
**Final Step 1** — Text reply:
|
||||
**Final Step 1** — Text reply, using the Write receipt’s absolute path:
|
||||
```
|
||||
已为你整理好「项目进度表」,包含各模块的当前状态、负责人和截止日期。
|
||||
|
||||
📄 文件位置:`/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md`
|
||||
📄 文件位置:`/work/notes/progress.md`
|
||||
```
|
||||
|
||||
**Final Step 2** — SendUserMessage (last action):
|
||||
**Final Step 2** — SendAudienceMessage (last action):
|
||||
```
|
||||
SendUserMessage({
|
||||
message: "📄 点击下方附件打开文件",
|
||||
attachments: ["/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md"]
|
||||
SendAudienceMessage({
|
||||
content: "📄 点击下方附件打开文件",
|
||||
attachments: ["/work/notes/progress.md"]
|
||||
})
|
||||
```
|
||||
@@ -29,27 +29,30 @@ markdown 是一个**程序化技能**,作为用户请求书面产物时的默
|
||||
- 文件的完整绝对路径(从 Write 工具返回结果中复制)
|
||||
|
||||
模板:
|
||||
|
||||
```
|
||||
已为你创建「文档标题」,简要说明内容。
|
||||
|
||||
📄 文件位置:`/完整绝对路径/文件名.md`
|
||||
```
|
||||
|
||||
**最终步骤 2:** 调用 `SendUserMessage` 将文件作为附件发送。**必须是最后一个动作,之后不再输出任何文字。**
|
||||
**最终步骤 2:** 调用 `SendAudienceMessage` 将文件作为附件发送。**必须是最后一个动作,之后不再输出任何文字。**
|
||||
|
||||
发送前按当前 SendAudienceMessage 的声明确认正文参数。以下示例使用 `content`,附件路径取自 Write 回执。
|
||||
|
||||
```
|
||||
SendUserMessage({
|
||||
message: "📄 点击下方附件打开文件",
|
||||
SendAudienceMessage({
|
||||
content: "📄 点击下方附件打开文件",
|
||||
attachments: ["/完整绝对路径/文件名.md"]
|
||||
})
|
||||
```
|
||||
|
||||
#### 正确 vs 错误
|
||||
|
||||
- ✅ Write → 文字回复(含绝对路径)→ SendUserMessage(含附件)→ 结束
|
||||
- ✅ Write → 文字回复(含绝对路径)→ SendAudienceMessage(含附件)→ 结束
|
||||
- ❌ Write → 文字回复中没有绝对路径
|
||||
- ❌ Write → 没有调用 SendUserMessage
|
||||
- ❌ Write → SendUserMessage → 又输出文字(如"任务完成")
|
||||
- ❌ Write → 没有调用 SendAudienceMessage
|
||||
- ❌ Write → SendAudienceMessage → 又输出文字(如"任务完成")
|
||||
- ❌ 没有调用 Write,内容直接输出在对话中
|
||||
|
||||
#### 禁止行为
|
||||
@@ -57,8 +60,8 @@ SendUserMessage({
|
||||
- 将完整文档内容直接输出在回复中,不调用 Write 工具
|
||||
- 回复"好的,已完成"、"整理好了"、"以下是内容"但未调用 Write
|
||||
- 只给文件名(如"报告.md")不给完整绝对路径
|
||||
- 不调用 SendUserMessage 发送附件
|
||||
- 在 SendUserMessage 之后再输出任何文字
|
||||
- 不调用 SendAudienceMessage 发送附件
|
||||
- 在 SendAudienceMessage 之后再输出任何文字
|
||||
- 为文档创建/编辑任务写入记忆文件——创建或编辑文档是一次性任务,不是用户偏好或需要记住的事实
|
||||
|
||||
### 概述
|
||||
@@ -71,9 +74,9 @@ Markdown(.md)是轻量级文本格式。Write 工具直接接受内容写入
|
||||
|
||||
1. 确定内容结构(标题、章节、表格)
|
||||
2. 确定文件路径:用户指定 > 工作目录
|
||||
3. 调用 Write 工具,使用完整绝对路径 + 完整内容
|
||||
3. 调用 Write 工具,使用工作目录相对路径或完整绝对路径与完整内容
|
||||
4. 输出文字回复:内容摘要 + 绝对路径
|
||||
5. 调用 SendUserMessage 发送文件附件(最后一步)
|
||||
5. 调用 SendAudienceMessage 发送文件附件(最后一步)
|
||||
|
||||
#### 文件命名
|
||||
|
||||
@@ -88,22 +91,22 @@ Markdown(.md)是轻量级文本格式。Write 工具直接接受内容写入
|
||||
**Write:**
|
||||
```
|
||||
Write({
|
||||
file_path: "/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md",
|
||||
path: "notes/progress.md",
|
||||
content: "# 项目进度表\n\n| 模块 | 状态 | 负责人 | 截止日期 |\n|------|------|--------|----------|\n| 认证模块 | 已完成 | 张三 | 2026-05-01 |\n| 支付模块 | 进行中 | 李四 | 2026-05-15 |"
|
||||
})
|
||||
```
|
||||
|
||||
**最终步骤 1** — 文字回复:
|
||||
**最终步骤 1** — 使用 Write 回执中的绝对路径回复:
|
||||
```
|
||||
已为你整理好「项目进度表」,包含各模块的当前状态、负责人和截止日期。
|
||||
|
||||
📄 文件位置:`/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md`
|
||||
📄 文件位置:`/work/notes/progress.md`
|
||||
```
|
||||
|
||||
**最终步骤 2** — SendUserMessage(最后一步):
|
||||
**最终步骤 2** — SendAudienceMessage(最后一步):
|
||||
```
|
||||
SendUserMessage({
|
||||
message: "📄 点击下方附件打开文件",
|
||||
attachments: ["/Users/zhangxinyuan/.desirecore-dev/users/.../workspace/2026-05-11-项目进度表.md"]
|
||||
SendAudienceMessage({
|
||||
content: "📄 点击下方附件打开文件",
|
||||
attachments: ["/work/notes/progress.md"]
|
||||
})
|
||||
```
|
||||
@@ -11,12 +11,12 @@
|
||||
"zh-CN": {
|
||||
"name": "Markdown 文档处理",
|
||||
"summary": "创建、编辑 Markdown 文档(.md),默认文本文档格式",
|
||||
"description": "当用户要求创建、撰写、整理任何书面产物且未指定特定格式时,使用此技能。 确保使用 Write 工具写入文件、告知绝对路径、并通过 SendUserMessage 发送附件。"
|
||||
"description": "当用户要求创建、撰写、整理任何书面产物且未指定特定格式时,使用此技能。 确保使用 Write 工具写入文件、告知绝对路径、并通过 SendAudienceMessage 发送附件。"
|
||||
},
|
||||
"en-US": {
|
||||
"name": "Markdown Document Processing",
|
||||
"summary": "Create and edit Markdown documents (.md), the default text format",
|
||||
"description": "Use when the user requests any written deliverable without specifying a particular format. Ensures files are written via Write tool, absolute path is reported, and attachment is sent via SendUserMessage."
|
||||
"description": "Use when the user requests any written deliverable without specifying a particular format. Ensures files are written via Write tool, absolute path is reported, and attachment is sent via SendAudienceMessage."
|
||||
}
|
||||
},
|
||||
"category": "productivity",
|
||||
@@ -29,14 +29,14 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-07-14T03:55:22Z",
|
||||
"precision": "second"
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
"state": "unknown"
|
||||
|
||||
+4
-4
@@ -9,7 +9,7 @@ description: >-
|
||||
on scanned PDFs.
|
||||
适用于 Markdown 转 PDF、查找内置 PDF 导出工具、创建、读取、合并、拆分 PDF、
|
||||
填写表单、添加水印、提取文字和扫描识别。
|
||||
version: 1.0.3
|
||||
version: 1.0.4
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -34,7 +34,7 @@ metadata:
|
||||
description: >-
|
||||
使用 DesireCore 内置 ExportDocument 将 Markdown 导出为 PDF,也可查询本次会话能否使用该工具。支持创建 PDF、提取文字、表格和图片、合并、拆分、旋转、添加水印、填写表单、加密和解密,以及扫描件 OCR。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:ed191f48b08a9e77
|
||||
source_hash: sha256:cb6c3d2d26b75789
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: PDF Document Processing
|
||||
@@ -42,7 +42,7 @@ metadata:
|
||||
description: >-
|
||||
Export Markdown to PDF with the built-in ExportDocument tool and check its availability in the current DesireCore session. Supports creating PDFs, extracting text, tables, and images, merging, splitting, rotation, watermarks, form filling, encryption and decryption, and OCR on scanned PDFs.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:ed191f48b08a9e77
|
||||
source_hash: sha256:cb6c3d2d26b75789
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -93,7 +93,7 @@ For an existing UTF-8 Markdown file, prefer DesireCore's built-in `ExportDocumen
|
||||
1. If `ExportDocument` is already declared, call `ExportDocument(path="/work/report.md", format="pdf")` for a conversion. If the user only asks which tool can convert Markdown or whether it is available, report that `ExportDocument` is available.
|
||||
2. If `ExportDocument` is undeclared and `ToolCatalog` is available, call `ToolCatalog(query="select:ExportDocument")`. For an availability question, report what the catalog confirms. For a conversion, call `LoadTools(names=["ExportDocument"])` only when the catalog confirms authorization and `LoadTools` is available. Call `ExportDocument` after it is declared.
|
||||
|
||||
`path` is the input file's absolute path or a path relative to the working directory. For a specified PDF name or destination, pass `output`. When omitted, the result is a same-named PDF beside the source. Set `overwrite=false` when the destination must be new. Report the absolute path from the export result.
|
||||
`path` is the input file's absolute path or a path relative to the working directory. For a specified PDF name or destination, use the destination-path field in the current `ExportDocument` declaration. If the tool has not been declared yet, check its schema with `ToolCatalog` when available. When omitted, the result is a same-named PDF beside the source. Set `overwrite=false` when the destination must be new. Report the absolute path from the export result.
|
||||
|
||||
If `ExportDocument` is undeclared and `ToolCatalog` is unavailable, explain that you cannot verify the exporter's availability in this session. If the built-in conversion cannot proceed, explain the limitation and use another method only if the request and current permissions allow it.
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
1. 已声明 `ExportDocument` 时,转换请求可直接调用 `ExportDocument(path="/work/report.md", format="pdf")`。用户只问哪个工具能转换 Markdown,或问本次是否可用时,告知用户 `ExportDocument` 可用。
|
||||
2. `ExportDocument` 尚未声明且 `ToolCatalog` 可用时,调用 `ToolCatalog(query="select:ExportDocument")`。用户只问可用性时,按查询结果答复。用户请求转换时,仅在目录确认已获授权且 `LoadTools` 可用的情况下,调用 `LoadTools(names=["ExportDocument"])`。工具声明后再调用 `ExportDocument`。
|
||||
|
||||
`path` 是输入文件的绝对路径或相对于当前工作目录的路径。用户指定 PDF 文件名或保存位置时传 `output`。省略后在源文件旁生成同名 PDF。要求目标必须是新建文件时传 `overwrite=false`。导出成功后,告知用户回执中的绝对路径。
|
||||
`path` 是输入文件的绝对路径或相对于当前工作目录的路径。用户指定 PDF 文件名或保存位置时按当前 `ExportDocument` 声明填写目标路径字段。工具尚未声明且目录可用时,可用 `ToolCatalog` 核对。省略后在源文件旁生成同名 PDF。要求目标必须是新建文件时传 `overwrite=false`。导出成功后,告知用户回执中的绝对路径。
|
||||
|
||||
如果 `ExportDocument` 尚未声明且 `ToolCatalog` 不可用,说明当前会话无法核实内置导出工具是否可用。内置转换无法进行时说明限制,仅在用户请求和本次权限允许的情况下采用其他方法。
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
license: "Anthropic Source Available License"
|
||||
name: pptx
|
||||
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Save and reopen editable workbench presentations, review layouts, or export editable PPTX for PowerPoint delivery. Also handles existing PowerPoint files."
|
||||
version: 1.0.12
|
||||
version: 1.0.13
|
||||
type: procedural
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -35,14 +35,14 @@ metadata:
|
||||
short_desc: "制作和回读工作台演示文稿,按交付需要导出可编辑 PPTX"
|
||||
description: "制作或修改演示文稿时,按需要了解主题、用途、受众、篇幅、风格或材料。需要澄清时可以先问,再按需调用 Skill 加载 pptx(参数 {\"skill\":\"pptx\"},省略 source)。在工作台保存、回读可编辑源稿和预览版式,需要 PowerPoint 交付时导出可编辑 PPTX。也处理已有 PowerPoint 文件。"
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:aa5abf759bef6a30
|
||||
source_hash: sha256:4194b5bbc5f24cd6
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Presentation Processing
|
||||
short_desc: "Create and reopen workbench presentations, and export editable PPTX"
|
||||
description: "For presentation creation or revision, clarify the topic, purpose, audience, length, style, or materials as needed. Clarification can come before loading the skill. Call Skill when needed with {\"skill\":\"pptx\"} and omit source. Save and reopen editable workbench presentations, review layouts, or export editable PPTX for PowerPoint delivery. Also handles existing PowerPoint files."
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:aa5abf759bef6a30
|
||||
source_hash: sha256:4194b5bbc5f24cd6
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -83,7 +83,7 @@ Use a consistent grid, palette, and type scale with one focal point per page. Fo
|
||||
|
||||
The canvas is 13.33 × 7.50 inches. Keep the upper area clear for the title. Position the right-hand summary below the cover title (for example x=7.8, y=3.8, width 4.6, height 2.55). For four process cards use x=0.7, 3.85, 7, and 10.15 with width 2.45 and arrows in the gaps. Use short labels and wrap at meaningful boundaries. Set object w and h to at least 0.15 inches. For a thin horizontal rule, use type=line with h=0.15 and set its color with fill. The line is drawn at the midpoint of its height. Use six-digit RGB without #.
|
||||
|
||||
For a visual layout review, preview the deck with RenderSlides using the saved file_ref and etag, mode=workbench, and include_images=true. Each call handles up to four pages. Submit batches for the same revision together in one tool-call batch, such as [1,2,3] and [4,5,6], then review the images together. Check obscured titles, broken words, alignment, and object_outside_canvas. If needed, combine corrections in one EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) and preview the changed pages. For PPTX delivery, export with the latest file_ref and source_etag as etag. For a destination in the same root, copy that file_ref as output_ref and change only its path to the destination .pptx. Attach the files the user needs. Reuse receipts for new drafts and reread on revision conflict. If a requested PowerPoint visual review cannot use the workbench host, use the PowerPoint export preview and tell the user.
|
||||
For a visual layout review, preview the deck with RenderSlides using the saved file_ref and etag, mode=workbench, and include_images=true. Each call handles up to four pages. Submit batches for the same revision together in one tool-call batch, such as [1,2,3] and [4,5,6], then review the images together. Check obscured titles, broken words, alignment, and object_outside_canvas. If needed, combine corrections in one EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) and preview the changed pages. For PPTX delivery, export with the latest file_ref and etag as etag. For a destination in the same root, copy that file_ref as output_ref and change only its path to the destination .pptx. Attach the files the user needs. Reuse receipts for new drafts and reread on revision conflict. If a requested PowerPoint visual review cannot use the workbench host, use the PowerPoint export preview and tell the user.
|
||||
|
||||
## Existing PowerPoint files
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
画布 13.33 × 7.50 英寸。给标题保留上方空间。封面右侧摘要放在标题下方(如 x=7.8、y=3.8,宽 4.6、高 2.55)。四个流程卡用 x=0.7、3.85、7、10.15,宽 2.45,箭头放在间隔。短标签,按词意显式换行。对象 w 和 h 均至少 0.15 英寸。细横线用 type=line、h=0.15,通过 fill 设置线色,线绘制在高度的中间。颜色为不带 # 的六位 RGB。
|
||||
|
||||
需要审阅版式时,用 RenderSlides 传保存回执的 file_ref、etag,以及 mode=workbench、include_images=true,预览全稿。每批最多 4 页;同版本多批可以在同一次工具调用批次提交,例如六页发 [1,2,3] 和 [4,5,6],等图齐后统一审阅。检查标题遮挡、断字、对齐和 object_outside_canvas。发现问题时,用一次 EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) 合并修订,复看变动页。交付 PPTX 时,用最后的 file_ref 与 source_etag(作为 etag)导出。若导出文件与源稿位于同一工作区根目录,将该 file_ref 复制为 output_ref,只把 path 改为目标 .pptx。按用户需要交付相应文件。自建稿沿用回执,遇到版本冲突再回读。需要审阅 PowerPoint 版式而工作台宿主缺失时,可用 PowerPoint 导出预览并向用户说明。
|
||||
需要审阅版式时,用 RenderSlides 传保存回执的 file_ref、etag,以及 mode=workbench、include_images=true,预览全稿。每批最多 4 页;同版本多批可以在同一次工具调用批次提交,例如六页发 [1,2,3] 和 [4,5,6],等图齐后统一审阅。检查标题遮挡、断字、对齐和 object_outside_canvas。发现问题时,用一次 EditSlides({file_ref,etag,operations:[{op:"upsertObject",slideId,object}]}) 合并修订,复看变动页。交付 PPTX 时,用最后的 file_ref 与 etag导出。若导出文件与源稿位于同一工作区根目录,将该 file_ref 复制为 output_ref,只把 path 改为目标 .pptx。按用户需要交付相应文件。自建稿沿用回执,遇到版本冲突再回读。需要审阅 PowerPoint 版式而工作台宿主缺失时,可用 PowerPoint 导出预览并向用户说明。
|
||||
|
||||
## 已有 PowerPoint 文件
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-12-05",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -4,7 +4,7 @@ name: update-agent
|
||||
description: >-
|
||||
安全更新现有智能体的配置、人格、原则、技能与记忆,输出可审阅 diff 并在确认后应用与提交。Use when 用户要求修改 Agent
|
||||
行为、安装/卸载技能、调整配置、回滚变更或修订规则。可选头像生成需配置图像服务,适用供应商条款/额度及独立费用。
|
||||
version: 3.4.0
|
||||
version: 3.4.1
|
||||
compatibility: "DesireCore ManageAgent; optional avatar generation requires a configured image provider under its own terms and quota, with separate charges; unavailable generation retains the existing avatar."
|
||||
type: meta
|
||||
risk_level: low
|
||||
@@ -29,7 +29,7 @@ metadata:
|
||||
description: >-
|
||||
安全更新现有智能体的配置、人格、原则、技能与记忆,输出可审阅 diff 并在确认后应用与提交。Use when 用户要求修改 Agent 行为、安装/卸载技能、调整配置、回滚变更或修订规则。可选头像生成需配置图像服务,适用供应商条款/额度及独立费用。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:b20d14b1dc7d4afb
|
||||
source_hash: sha256:3712b61a595ef9a2
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Update Agent
|
||||
@@ -37,7 +37,7 @@ metadata:
|
||||
description: >-
|
||||
Safely update an existing Agent's config, persona, principles, skills, and memory, producing reviewable diffs that are applied and committed only after confirmation. Use when the user asks to modify Agent behavior, install/uninstall skills, adjust config, roll back changes, or revise rules. Optional avatar generation requires a configured image service under provider terms/quota and separate charges.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:b20d14b1dc7d4afb
|
||||
source_hash: sha256:3712b61a595ef9a2
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -129,26 +129,28 @@ Do not call the HTTP API (unreachable under instance auth), do not operate git d
|
||||
|
||||
Fields and constraints: `name` (1–50 chars), `description` (≤200), `config.llm` / `config.avatar` (shallow-merge deltas), `avatarImage`, `smartRouting`, and `persona` / `principles` (structured object `{L0, L1:{...}, L2}` or markdown string). Calls:
|
||||
|
||||
Use `ToolCatalog(query="select:ManageAgent")` to verify the exact agent ID field in the current declaration. The examples use `agentId`.
|
||||
|
||||
```
|
||||
ManageAgent(action='update', id='<agent-id>', name='New Name')
|
||||
ManageAgent(action='update', id='<agent-id>', persona={ L1: { personality: ["professional","rigorous"] } })
|
||||
ManageAgent(action='update', id='<agent-id>', principles='…full markdown…')
|
||||
ManageAgent(action='update', id='<agent-id>', config={ llm: { reasoning: "high" } })
|
||||
ManageAgent(action='update', id='<agent-id>', avatarImage={ source: "dc-media://<mediaId>" })
|
||||
ManageAgent(action='update', agentId='<agent-id>', name='New Name')
|
||||
ManageAgent(action='update', agentId='<agent-id>', persona={ L1: { personality: ["professional","rigorous"] } })
|
||||
ManageAgent(action='update', agentId='<agent-id>', principles='…full markdown…')
|
||||
ManageAgent(action='update', agentId='<agent-id>', config={ llm: { reasoning: "high" } })
|
||||
ManageAgent(action='update', agentId='<agent-id>', avatarImage={ source: "dc-media://<mediaId>" })
|
||||
```
|
||||
|
||||
**Merge semantics**: structured persona/principles are **field-level merges** (omitted fields keep their original values — passing only `L1.personality` won't clear L0/role); a markdown string is a **full replacement** (whole-file rewrite); `config.llm` is a **shallow-merge delta**. The merged result is validated against the whole schema; invalid config never lands.
|
||||
|
||||
Key points:
|
||||
|
||||
- **Read before write**: first `ManageAgent(action='get', id)` to fetch current values, for diff generation and field-name checking. Structured field names are fixed: persona's `L1.role` / `personality` (string array) / `communication_style`; principles' `L1.must_do` / `must_not` (string arrays) / `priority`; plus top-level `L0` / `L2`.
|
||||
- **Read before write**: first `ManageAgent` with `action='get'` and the Agent ID field in the current declaration to fetch current values, for diff generation and field-name checking. Structured field names are fixed: persona's `L1.role` / `personality` (string array) / `communication_style`; principles' `L1.must_do` / `must_not` (string arrays) / `priority`; plus top-level `L0` / `L2`.
|
||||
- **Confirmation and boundaries**: updating self skips the extra confirmation; updating another agent triggers user confirmation (on top of this skill's diff confirmation); the core agent (`desirecore` / `core`) is refused.
|
||||
- **config whitelist**: `config` accepts only `llm` and `avatar`. `config.llm` currently exposes `reasoning`, `thinkingBudgets`, and `maxRetryDelayMs`; `config.avatar` exposes only `char` and `color`. `mcp_servers`, `tool_permissions`, `version`, `id`, and other fields are rejected with the field named.
|
||||
- **model governance**: concrete `model`, `provider`, `providerId`, and Smart/fixed selection are governed only by the human model selector and cannot be changed through ManageAgent. Adjust Smart workload, required capabilities, and reasoning intent through `smartRouting`.
|
||||
- **reasoning levels**: natural-language requests such as “deepest/highest/max it out” normally map to `xhigh`; use `max` only when explicitly requested and supported. `auto` is an explicit value; use `config.llm.reasoning=null` when the user wants to restore the global default.
|
||||
- **avatars**: character/color settings use `config.avatar`; image avatars use `avatarImage.source`, accepting a current-turn media ID or a PNG/JPEG/WebP file inside the working directory. URLs and base64 are rejected. `avatarImage.remove=true` removes the image and falls back to the declarative avatar.
|
||||
- **Partial write failure**: the tool reports exactly which fields landed / which failed; retry only the failed fields, don't resend everything.
|
||||
- **Rename in one call**: to change the display name, call `ManageAgent(action='update', id, name='Y')` directly (writes agent.json and refreshes the list); if the persona doc title should match, append a persona update in the same turn. **Never claim a rename happened without actually calling ManageAgent.**
|
||||
- **Rename in one call**: to change the display name, call `ManageAgent` with `action='update'`, `name='Y'` and the Agent ID field in the current declaration directly (writes agent.json and refreshes the list); if the persona doc title should match, append a persona update in the same turn. **Never claim a rename happened without actually calling ManageAgent.**
|
||||
|
||||
**Path B · Free-form files → Read/Write** (`memory/` / `skills/` / `tools/`, root `${DESIRECORE_ROOT}/agents/<agentId>/`): Read current values, then Write/Edit, re-read after writing to confirm. Before editing, check `_protected-paths.yaml`; touching a protected path should be blocked with an owner-permission notice. After writing, the backend file watcher auto-commits — no manual git.
|
||||
|
||||
|
||||
@@ -67,26 +67,28 @@ ManageAgent 提供白名单校验、结构化字段合并和回执;既有 Agen
|
||||
|
||||
字段与约束:`name`(1–50 字符)、`description`(≤200)、`config.llm` / `config.avatar`(增量浅合并)、`avatarImage`、`smartRouting`、`persona` / `principles`(结构化对象 `{L0, L1:{...}, L2}` 或 markdown 字符串)。调用:
|
||||
|
||||
先用 `ToolCatalog(query="select:ManageAgent")` 核对本次工具声明的目标 Agent ID 字段。以下示例使用 `agentId`。
|
||||
|
||||
```
|
||||
ManageAgent(action='update', id='<agent-id>', name='新名称')
|
||||
ManageAgent(action='update', id='<agent-id>', persona={ L1: { personality: ["专业","严谨"] } })
|
||||
ManageAgent(action='update', id='<agent-id>', principles='…完整 markdown…')
|
||||
ManageAgent(action='update', id='<agent-id>', config={ llm: { reasoning: "high" } })
|
||||
ManageAgent(action='update', id='<agent-id>', avatarImage={ source: "dc-media://<mediaId>" })
|
||||
ManageAgent(action='update', agentId='<agent-id>', name='新名称')
|
||||
ManageAgent(action='update', agentId='<agent-id>', persona={ L1: { personality: ["专业","严谨"] } })
|
||||
ManageAgent(action='update', agentId='<agent-id>', principles='…完整 markdown…')
|
||||
ManageAgent(action='update', agentId='<agent-id>', config={ llm: { reasoning: "high" } })
|
||||
ManageAgent(action='update', agentId='<agent-id>', avatarImage={ source: "dc-media://<mediaId>" })
|
||||
```
|
||||
|
||||
**合并语义**:结构化 persona/principles 为**字段级合并**(省略字段保留原值,如只传 `L1.personality` 不会清掉 L0/role);markdown 字符串为**整体替换**(整篇重写);`config.llm` 为**增量浅合并**。合并结果整体过 schema 校验,非法配置不落盘。
|
||||
|
||||
要点:
|
||||
|
||||
- **改前先读**:先 `ManageAgent(action='get', id)` 取现值,用于生成 diff、校对字段名。结构化字段名固定:persona 的 `L1.role` / `personality`(字符串数组)/ `communication_style`,principles 的 `L1.must_do` / `must_not`(字符串数组)/ `priority`,加顶层 `L0` / `L2`。
|
||||
- **改前先读**:先 `ManageAgent` 的 `get` 动作,使用当前声明中的 Agent ID 字段 取现值,用于生成 diff、校对字段名。结构化字段名固定:persona 的 `L1.role` / `personality`(字符串数组)/ `communication_style`,principles 的 `L1.must_do` / `must_not`(字符串数组)/ `priority`,加顶层 `L0` / `L2`。
|
||||
- **确认与边界**:更新自身免二次确认;更新其他智能体触发用户确认(与本技能 diff 确认叠加);核心智能体(`desirecore` / `core`)拒绝更新。
|
||||
- **config 白名单**:`config` 只接受 `llm` 与 `avatar`。`config.llm` 当前开放 `reasoning`、`thinkingBudgets`、`maxRetryDelayMs`;`config.avatar` 只开放 `char` 与 `color`。`mcp_servers` / `tool_permissions` / `version` / `id` 等会被拒并指明字段名。
|
||||
- **模型治理**:具体 `model`、`provider`、`providerId` 与 Smart/fixed 模式只由人类模型选择器管理,不能通过 ManageAgent 修改。Smart Agent 的量级、能力与推理意图用 `smartRouting` 更新。
|
||||
- **推理档位**:用户说“最深/最高/拉满”通常对应 `xhigh`;只有明确点名 `max` 且模型支持时才用 `max`。`auto` 是显式值;用户要求恢复全局默认时传 `config.llm.reasoning=null` 清除字段。
|
||||
- **头像**:字符与色系走 `config.avatar`;图片走 `avatarImage.source`,接受本轮媒体 ID 或工作目录内 PNG/JPEG/WebP,不接受 URL/base64。`avatarImage.remove=true` 删除图片头像并回落到字符头像。
|
||||
- **部分写入失败**:工具精确报告已生效/失败字段,仅重试失败字段,不整体重发。
|
||||
- **改名一次调用完成**:用户要改显示名称时直接 `ManageAgent(action='update', id, name='Y')`(写 agent.json 并刷新列表),如需人格文档标题同步可同轮追加 persona 更新。**绝不在未实际调用 ManageAgent 时声称已改名。**
|
||||
- **改名一次调用完成**:用户要改显示名称时直接 `ManageAgent` 的 `update` 动作,填入 `name='Y'` 和当前声明中的目标 Agent ID 字段(写 agent.json 并刷新列表),如需人格文档标题同步可同轮追加 persona 更新。**绝不在未实际调用 ManageAgent 时声称已改名。**
|
||||
|
||||
**路径 B · 自由格式文件 → Read/Write**(`memory/` / `skills/` / `tools/`,根 `${DESIRECORE_ROOT}/agents/<agentId>/`):先 Read 现值,再 Write/Edit,写后重读确认。编辑前对照 `_protected-paths.yaml`,触及受保护路径应阻断并提示需 owner 权限。写入后后端文件监控自动 git 提交,无需手动 git。
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.1",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-10-08",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -6,7 +6,7 @@ description: >-
|
||||
catalog, or connect a catalog MCP service to this Agent. For an MCP server
|
||||
this Agent already has, skip this skill and search ToolCatalog by the server
|
||||
ID. 调用目录里登记的 API、查找本 Agent 尚未接入的现成服务时使用。
|
||||
version: 1.1.0
|
||||
version: 1.1.1
|
||||
type: meta
|
||||
risk_level: low
|
||||
status: enabled
|
||||
@@ -40,7 +40,7 @@ metadata:
|
||||
Find and call HTTP/MCP services registered in the global Apps & Services catalog, or connect a catalog MCP service to this Agent. For an MCP server this Agent already has, skip this skill and search ToolCatalog by the server ID. Use when the user asks to call an API from the catalog or to find an existing service this Agent has not connected yet.
|
||||
body: ./SKILL.md
|
||||
translated_by: human
|
||||
source_hash: sha256:1ed16897ea44ed91
|
||||
source_hash: sha256:f444cfc63824d019
|
||||
market:
|
||||
icon: >-
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="9" width="6" height="6" rx="1.5"/><rect x="15" y="3" width="6" height="6" rx="1.5"/><rect x="15" y="15" width="6" height="6" rx="1.5"/><path d="M9 11.5h3.5V6H15"/><path d="M9 12.5h3.5V18H15"/></svg>
|
||||
@@ -98,9 +98,9 @@ catalog lookup is needed:
|
||||
clients have that section), check there first; a missing section does not
|
||||
mean the server is not connected.
|
||||
2. Search `ToolCatalog` by the server ID, for example
|
||||
`ToolCatalog(query="<server ID>", max_results=20)`. Put only the ID itself in
|
||||
`ToolCatalog(query="<server ID>")`. Put only the ID itself in
|
||||
the query, not a wildcard such as `<ID>__*`: the search has no wildcards and
|
||||
would find nothing. If the number of results equals `max_results`, there may
|
||||
would find nothing. If the number of results equals the declared result limit, there may
|
||||
be more; raise it and search again.
|
||||
3. Once found, use the tool names in the result; do not build names from the
|
||||
naming pattern (see Step 4, item 3). If the result marks a tool as not
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
用户点名的服务(如「用 xxx 这个服务」)可能就是本 Agent 已接入的 MCP 服务端,服务端 ID 就是接入时用的名字。这时不需要查目录:
|
||||
|
||||
1. 系统提示词里若列出了本轮可用的 MCP 服务端(较新的客户端才有这一段),先在其中核对;没有这一段不代表没有接入。
|
||||
2. 用 `ToolCatalog` 按服务端 ID 检索,例如 `ToolCatalog(query="<服务端 ID>", max_results=20)`。query 只写 ID 本身,不要写 `<ID>__*` 这类通配:检索不支持通配,会一个都查不到。返回条数等于 `max_results` 时可能还有更多,调大后再查。
|
||||
2. 用 `ToolCatalog` 按服务端 ID 检索,例如 `ToolCatalog(query="<服务端 ID>")`。query 只写 ID 本身,不要写 `<ID>__*` 这类通配:检索不支持通配,会一个都查不到。返回条数等于 当前声明的条数上限 时可能还有更多,调大后再查。
|
||||
3. 命中后以结果里的工具名为准,不要按命名习惯拼名字(见 Step 4 第 3 条)。结果标明某个工具尚未声明时,按结果给出的加载方式加载,下一次模型请求起再调用;查到的是该服务端的认证工具时,按它的说明先完成认证。到这里就不必继续本技能。
|
||||
4. 查不到时再从 Step 1 查目录。
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-17",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -15,7 +15,7 @@ description: >-
|
||||
新闻、网址、URL、找一下、搜一下、查一下、小红书、B站、微博、飞书、Twitter、
|
||||
推特、X、知乎、公众号、已登录、登录状态。
|
||||
license: MIT
|
||||
version: 3.7.2
|
||||
version: 3.7.3
|
||||
compatibility: Requires a DesireCore build with the bundled external-browser Playwright runtime; Chrome/Edge/Chromium remains separately installed. Builds advertising BrowserExternalLaunch can start it through tool approval in an isolated profile; older builds require manual CDP startup.
|
||||
type: procedural
|
||||
risk_level: low
|
||||
@@ -57,14 +57,14 @@ metadata:
|
||||
short_desc: 联网搜索、网页抓取、内置受管浏览器登录态访问与取文、研究调研工作流
|
||||
description: 联网访问工具包——搜索公开页面、Jina 优化抓取、内置受管浏览器完成登录态访问与取文,以及用户点名时接管他自己的 Chrome/Edge/Chromium。 外部浏览器需单独安装并满足其使用条款;提供启动工具的客户端可经审批启动,旧客户端需手动开启调试。 支持新客户端按显式路径审批启动系统浏览器;原生启动与 CDP 自动化就绪分别核验,依赖从随包资产离线准备。
|
||||
body: ./SKILL.zh-CN.md
|
||||
source_hash: sha256:94fb9908192c9a7c
|
||||
source_hash: sha256:05f6a4d107ba0552
|
||||
translated_by: human
|
||||
en-US:
|
||||
name: Web Access
|
||||
short_desc: Web search, page fetching, logged-in access via the governed built-in browser, research workflows
|
||||
description: A web-access toolkit — search public pages, fetch heavy pages via Jina Reader, reach and read logged-in sites through the governed built-in browser, and drive the user's named Chrome/Edge/Chromium over CDP on request. The external browser is separately installed and subject to its usage terms; clients with the launch tool support approved startup, while older clients require manual debugging startup. New clients support approved native launch by explicit executable path; native startup and CDP automation readiness are verified separately, with automation dependencies prepared from bundled offline assets.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:94fb9908192c9a7c
|
||||
source_hash: sha256:05f6a4d107ba0552
|
||||
translated_by: human
|
||||
market:
|
||||
icon: >-
|
||||
@@ -176,9 +176,9 @@ For advanced CDP interaction, use Probe's returned `automationRuntime.pythonExec
|
||||
|
||||
Map the user's words to an exact probe request:
|
||||
|
||||
- “my Chrome” → `BrowserExternalProbe({ requestedBrowser: 'chrome' })`
|
||||
- “my Edge” → `BrowserExternalProbe({ requestedBrowser: 'edge' })`
|
||||
- “my external/system browser” without a product name → `BrowserExternalProbe({ requestedBrowser: 'any' })`
|
||||
- “my Chrome” → call `BrowserExternalProbe` with `chrome` in its declared browser selector
|
||||
- “my Edge” → call `BrowserExternalProbe` with `edge` in its declared browser selector
|
||||
- “my external/system browser” without a product name → call `BrowserExternalProbe` with `any` in its declared browser selector
|
||||
- “local browser” is ambiguous → ask whether they mean the built-in browser or their external browser before probing
|
||||
|
||||
Handle the structured result exactly:
|
||||
@@ -380,7 +380,7 @@ When what they asked for and what you're giving differ, the wording has to make
|
||||
|
||||
**WebSearch** — discover URLs for an unknown topic:
|
||||
```
|
||||
WebSearch(query="latest typescript 5.5 features 2026", max_results=5)
|
||||
WebSearch(query="latest typescript 5.5 features 2026")
|
||||
```
|
||||
|
||||
Tips:
|
||||
|
||||
@@ -90,9 +90,9 @@ If any fetch fails, explicitly tell the user which URL failed and which fallback
|
||||
|
||||
按用户原话映射精确请求:
|
||||
|
||||
- 「我的 Chrome」→ `BrowserExternalProbe({ requestedBrowser: 'chrome' })`
|
||||
- 「我的 Edge」→ `BrowserExternalProbe({ requestedBrowser: 'edge' })`
|
||||
- 只说「我的外部/系统浏览器」、没点产品名 → `BrowserExternalProbe({ requestedBrowser: 'any' })`
|
||||
- 「我的 Chrome」→ 用 `BrowserExternalProbe`,按声明把浏览器选择字段设为 `chrome`
|
||||
- 「我的 Edge」→ 用 `BrowserExternalProbe`,按声明把浏览器选择字段设为 `edge`
|
||||
- 只说「我的外部/系统浏览器」、没点产品名 → 用 `BrowserExternalProbe`,按声明把浏览器选择字段设为 `any`
|
||||
- 「本地浏览器」语义两可 → 先问是内置浏览器还是用户自己的外部浏览器,再探测
|
||||
|
||||
严格按结构化状态处理:
|
||||
@@ -265,7 +265,7 @@ DesireCore 能驱动**两个**浏览器,它们是平级的选项:
|
||||
|
||||
**WebSearch** — discover URLs for an unknown topic:
|
||||
```
|
||||
WebSearch(query="latest typescript 5.5 features 2026", max_results=5)
|
||||
WebSearch(query="latest typescript 5.5 features 2026")
|
||||
```
|
||||
|
||||
Tips:
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
},
|
||||
"release": {
|
||||
"state": "known",
|
||||
"version": "3.7.2",
|
||||
"version": "3.7.3",
|
||||
"versionScheme": "semver"
|
||||
},
|
||||
"timestamps": {
|
||||
"catalogUpdatedAt": {
|
||||
"state": "known",
|
||||
"value": "2026-11-02",
|
||||
"value": "2026-12-06",
|
||||
"precision": "day"
|
||||
},
|
||||
"releasePublishedAt": {
|
||||
|
||||
@@ -49,7 +49,7 @@ Step 7: Add a "Recommendation" paragraph based on user's stated needs
|
||||
**Goal**: Build a chronological summary of recent events on a topic.
|
||||
|
||||
```
|
||||
Step 1: WebSearch("<topic> news <year>", max_results=10)
|
||||
Step 1: WebSearch("<topic> news <year>")
|
||||
Step 2: Skim snippets, group by date
|
||||
Step 3: WebFetch the 3-5 most substantive articles (parallel)
|
||||
Step 4: Build timeline:
|
||||
|
||||
Reference in new issue
Block a user