@alipay/alipay-aipay 1.6.1 → 1.6.2-beta
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.
package/package.json
CHANGED
package/skill/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.6.
|
|
1
|
+
1.6.2-beta
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
- stage
|
|
2
|
-
- `start-run`
|
|
3
|
-
-
|
|
4
|
-
- `
|
|
5
|
-
-
|
|
6
|
-
- `telemetry upload-status` 只读诊断。网络失败且 outbox 积压时先执行 `telemetry permissioned-flush-needed`;仅 `PERMISSIONED_FLUSH_NEEDED=true` 时申请一次联网运行 `telemetry flush-outbox`,同一 Agent 会话只请求一次。`flush-outbox` 只启动后台补传并立即返回;拒绝、失败或非 2xx 保留 outbox。collector 结果不得作为业务条件。
|
|
1
|
+
- stage/Yuyan 低敏维度以 `scripts/telemetry.mjs` 与测试白名单为准;只含阶段、产品、根意图、时间戳、版本、宿主/模型、匿名机器哈希、run_id、终态计数。禁密钥、账号密码、订单/交易号、截图/凭证、用户输入、路径/URL、响应、命令输出/堆栈原文。遥测失败不影响业务;内部行 `ALIPAY_AIPAY_INTERNAL:`。
|
|
2
|
+
- `start-run` 创建/复用 `run_id`;脚本继承 `PLATFORM_ID=<run_id>`,Agent 不手写环境前缀或 MCP payload。outbox 在系统临时目录,collector 2xx 后才删;维护/测试/Benchmark 禁上传。
|
|
3
|
+
- run 复用:`root_intent + product_type` 判定复用/新建;`UNKNOWN` 补全产品仍复用同一 `run_id`。仅换产品、换根意图或已有终态才重建;“重新开始/重新走流程/作废本轮流程”但组合未变仍复用。`COZE_PROJECT_ID`、`MEOO_PROJECT_ID`、`VITE_APP_ID`/`PLATFORM_ID` 优先作新 run ID。`current-run-id` 只查看,不新建 run。
|
|
4
|
+
- 计数:`user_input_count_total` 从触发当前 `run_id` 的用户消息起;`user_input_count_after_flow_start` 从方案送达并进入正式执行后的下一条用户消息起(`integration_only/full_process=integration.user_confirmed`,`onboarding_only=onboarding.user_confirmed`)。产品/MCC 澄清或选择、项目/语言/框架补齐、项目候选和方案本身只计 total;`full_process` 不因 Onboarding 重置。`flow_start_observed` 表示正式 flow start;用户 kill 未终态不补报。终态只加三项计数参数,不新增业务确认点、stage 或独立上报。`c4=ext_info`,计数合法且有 `root_intent` 才写 JSON,否则省略。
|
|
5
|
+
- 补传:`telemetry upload-status` 只读。最近失败为网络错误(含 `ENOTFOUND|EAI_AGAIN|ETIMEDOUT`)且 outbox 积压时,执行 `telemetry permissioned-flush-needed`;仅 `PERMISSIONED_FLUSH_NEEDED=true` 时可申请最小权限执行 `telemetry flush-outbox`:HTTPS POST `https://collect.alipay.com/yuyan/`(`collect.alipay.com:443`,路径 `/yuyan/`)。说明:`是否允许 Agent 上报 Skill 使用过程的统计信息?只含产品类别、时间、Skill 版本、匿名设备标识、人机交互次数等用于帮助改善用户体验的非敏感信息,不会采集包含源代码、用户输入内容等任何敏感信息。` 同一 Agent 会话只请求一次,状态键抑制 12h。`flush-outbox` 后台补传;拒绝、失败或非 2xx 保留 outbox。collector 结果非业务条件。无 `inspect-outbox`、`--confirm-reviewed`、`alipay-cli whoami` 兜底。
|
|
@@ -48,7 +48,7 @@ node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" render <messageId> --va
|
|
|
48
48
|
|
|
49
49
|
`full_process` 识别根意图后立即执行 `node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" telemetry start-run --root-intent full_process`;产品已唯一确定时追加 `--product-type <aipay|webpay|apppay>`。`integration_only` 和 `onboarding_only` 已由上表各自 bootstrap 包含同一次 `start-run`,不得重复执行本条 telemetry。命令创建/复用当前流程 `run_id`,并在遥测开启时记录 `run.intent_detected`:同一意图和产品继续复用,`UNKNOWN` 补全产品仍复用同一 `run_id`;明确换产品、换根意图或既有 run 已终态才重建。第三方平台项目 ID 仍优先固定为 `run_id`,不得被显式 run ID 或本地生成值覆盖。业务 stage 只由登记 runner/script 异步记录。
|
|
50
50
|
|
|
51
|
-
遥测默认开启,`ALIPAY_AIPAY_TELEMETRY=0|false|off|no` 可关闭 `METRIC_EVENT`、outbox、上传和 flush;私有流程 run context 仍用于 `PLATFORM_ID` 和终态生命周期。落盘/网络/上传/flush 失败静默,不改变业务、消息或确认,stdout 为空且 stderr 内部行不对客。`integration_only` 由 checklist 终结;Onboarding 由 closeout 或登记的提前终止消息终结。Agent 按 `normal/telemetry.md`
|
|
51
|
+
遥测默认开启,`ALIPAY_AIPAY_TELEMETRY=0|false|off|no` 可关闭 `METRIC_EVENT`、outbox、上传和 flush;私有流程 run context 仍用于 `PLATFORM_ID` 和终态生命周期。落盘/网络/上传/flush 失败静默,不改变业务、消息或确认,stdout 为空且 stderr 内部行不对客。`integration_only` 由 checklist 终结;Onboarding 由 closeout 或登记的提前终止消息终结。Agent 按 `normal/telemetry.md` 维护本轮用户输入计数,并只在终态命令追加可选参数,不新增业务确认点或独立上报。after-flow 以方案后 `*.user_confirmed` 为起点;前置澄清和候选选择不计入。脚本始终以当前流程 `run_id` 为 `PLATFORM_ID`,Agent 不手写环境前缀或改 MCP payload;维护诊断、outbox、上传和 flush 细节只在 `normal/telemetry.md` 按需读取。
|
|
52
52
|
|
|
53
53
|
三种入口均只在无法从已有产品名称或业务描述可靠确定唯一产品时执行 flow 登记的 `product-clarify` runner;不得推定或手写澄清。产品明确但 MCC 尚无检索输入时使用 `mcc-clarify`;已有经营描述后先按 Onboarding flow 读取一次当前 `<SKILL_DIR>/references/onboarding/modules/mcc-reference.md` 做 Agent 语义候选,再统一调用 `mcc-resolve-plan` 由 runner 复核、合并和渲染;用户直接提供当前表内完整 MCC 编码时可跳过 Agent 泛化并由 runner 精确校验。不得拆回 `mcc-search + mcc-candidates`、先旧检索失败后临时猜测,或为方案展示再拼 renderer 输入。
|
|
54
54
|
|