@amaster.ai/employee-runtime-connector 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { homedir, hostname } from "node:os";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { BUILD_SUPPORTED_CAPABILITIES } from "./amaster-runtime-daemon/capability-registry.mjs";
9
9
 
10
- const CONNECTOR_VERSION = "0.1.9";
10
+ const CONNECTOR_VERSION = "0.1.10";
11
11
 
12
12
  const CONFIG_KEY_MAP = new Map([
13
13
  ["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
@@ -43,8 +43,8 @@
43
43
  },
44
44
  {
45
45
  "name": "内容发布交接单模板.md",
46
- "bytes": 13968,
47
- "sha256": "c86c36e1621e86f01d08ede5ebe93921dd467db49b0d390ad64bcb84c01a335e"
46
+ "bytes": 13965,
47
+ "sha256": "14af71e4ac571ed71b369ec72d5418de661c8477b7b35b806a915324c6549c79"
48
48
  },
49
49
  {
50
50
  "name": "内容计划与排期模板.md",
@@ -45,7 +45,7 @@
45
45
  - 使用当前已提供且获授权的 Wiki 操作,普通用户只需打开已返回的成果链接,不要求进入开发模式。没有可用能力时保留任务成果,明确归档未安排/失败及负责处理方。
46
46
  - 普通运营任务先用 Wiki 读取工具在当前公司默认共享空间查重;不要调用未开放的 `wiki_write`,也不要猜测或索取 operationId。需要归档时先保存一份独立归档文档,包含已确认发布包的准确版本、稳定成果引用、来源任务和确认回执,以及未发布/待审核限制;不修改已确认的清单或媒体。
47
47
  - 归档正文中的来源必须是可点击 Markdown 链接:复用 `mirrorx_read_issue` 返回的 `issue.href`、`interactions[].href`、`documents[].href` 和 `workProducts[].href`;编号仅作为补充,不能代替链接。文档入口指向可变文档,不是固定版本深链:在链接旁注明真实 revision/第 N 版,已确认版本优先链接到绑定该版本的确认卡预览。媒体入口便于查看,仍须保留实际固定文件身份;不持久化临时签名下载地址。
48
- - 使用 `runtime_action.describe(upsert_external_wait)` 获取当前合同,通过 `upsert_external_wait` 提交 `reasonCode=wiki_operation_context_missing`、`ownerType=user`、`actionKind=approval` 和 `wikiPublicationSelection`:绑定归档文档的 `documentKey/expectedRevisionId` 及 `destination` 的默认 Wiki、共享空间和稳定 `wiki/...md` 路径;已有页面更新须提供刚读取的准确 `expectedPageHash`,新页面不覆盖现有内容。这是任务页的受控归档入口,不是外部平台发文。
48
+ - 使用 `runtime_action.describe(upsert_external_wait)` 获取当前合同,通过 `upsert_external_wait` 提交 `reasonCode=wiki_operation_context_missing`、`ownerType=user`、`actionKind=other` 和 `wikiPublicationSelection`:绑定归档文档的 `documentKey/expectedRevisionId` 及 `destination` 的默认 Wiki、共享空间和稳定 `wiki/...md` 路径;已有页面更新须提供刚读取的准确 `expectedPageHash`,新页面不覆盖现有内容。这是任务页的受控归档入口,不是外部平台发文。
49
49
  - 归档等待是本轮最后一个动作;不要通过 `update_parent(status=in_progress)` 写结果说明,该状态由服务端维护。绑定成功时服务端会保存等待归档说明,随后结束本轮。交接记录在提交前只能写“待登记归档”,不能预写成功;后续有真实回执再更新。收到服务端真实成功回执后再读取页面、核对来源与版本、将链接记入独立交接记录;失败、版本变化或成功未关联时保留明确待处理状态,不冒充已归档,不重复提交确认或生成媒体。没有准确归档文档或目标权限时先报告缺口。
50
50
  - 核对目标 Company/空间、来源和读者权限;明确 Wiki 是原验收必交时取得成功页面与版本后才能完成,否则不擅自追加归档门禁。
51
51
  - 原始图片/视频留在成果/附件中,Wiki 保存内容说明与稳定来源引用,不假定任务摄取会复制视频或 Office 原件,不持久化临时签名地址。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/employee-runtime-connector",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "MirrorX runtime connector CLI and daemon",
5
5
  "license": "MIT",
6
6
  "type": "module",