@alipay/alipay-aipay 1.7.9 → 1.8.1

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.
Files changed (45) hide show
  1. package/package.json +3 -3
  2. package/skill/SKILL.md +34 -3
  3. package/skill/VERSION +1 -1
  4. package/skill/references/integration/flow.md +2 -0
  5. package/skill/references/integration/modules/checklist.md +4 -2
  6. package/skill/references/integration/modules/code-examples/csharp/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +3 -1
  7. package/skill/references/integration/modules/code-examples/java/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemoController.md +3 -1
  8. package/skill/references/integration/modules/code-examples/nodejs/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +6 -2
  9. package/skill/references/integration/modules/code-examples/php/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +3 -1
  10. package/skill/references/integration/modules/code-examples/python/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +8 -3
  11. package/skill/references/integration/modules/interface-contract/aipay-interface-contract.md +3 -1
  12. package/skill/references/integration/modules/interface-contract/apppay-interface-contract.md +3 -3
  13. package/skill/references/integration/modules/interface-contract/common-trade-contract.md +8 -8
  14. package/skill/references/integration/modules/interface-contract/notify-url-contract.md +7 -7
  15. package/skill/references/integration/modules/interface-contract/webpay-interface-contract.md +2 -2
  16. package/skill/references/integration/modules/sandbox/a2m-sandbox-test.md +4 -4
  17. package/skill/references/normal/conversation-telemetry.md +103 -0
  18. package/skill/references/normal/json/customer-messages.json +1 -1
  19. package/skill/references/normal/scripts/conversation_consent.mjs +76 -0
  20. package/skill/references/normal/scripts/conversation_telemetry.mjs +200 -0
  21. package/skill/references/normal/scripts/render_customer_message.mjs +2 -0
  22. package/skill/references/normal/scripts/runtime.mjs +1 -0
  23. package/skill/references/normal/scripts/telemetry.mjs +618 -74
  24. package/skill/references/runtime-entry.md +7 -1
  25. package/skill-pre/VERSION +1 -1
  26. package/skill-pre/references/integration/flow.md +7 -3
  27. package/skill-pre/references/integration/modules/checklist.md +4 -2
  28. package/skill-pre/references/integration/modules/code-examples/csharp/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +3 -1
  29. package/skill-pre/references/integration/modules/code-examples/java/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemoController.md +3 -1
  30. package/skill-pre/references/integration/modules/code-examples/nodejs/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +6 -2
  31. package/skill-pre/references/integration/modules/code-examples/php/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +3 -1
  32. package/skill-pre/references/integration/modules/code-examples/python/4-/346/214/211/351/207/217/344/273/230/350/264/271/A2MPaymentDemo.md +8 -3
  33. package/skill-pre/references/integration/modules/interface-contract/aipay-interface-contract.md +3 -1
  34. package/skill-pre/references/integration/modules/interface-contract/apppay-interface-contract.md +3 -3
  35. package/skill-pre/references/integration/modules/interface-contract/common-trade-contract.md +8 -8
  36. package/skill-pre/references/integration/modules/interface-contract/notify-url-contract.md +7 -7
  37. package/skill-pre/references/integration/modules/interface-contract/webpay-interface-contract.md +2 -2
  38. package/skill-pre/references/integration/modules/sandbox/a2m-sandbox-test.md +4 -4
  39. package/skill-pre/references/integration/modules/sandbox/sandbox-setup-guide.md +2 -2
  40. package/skill-pre/references/normal/conversation-telemetry.md +9 -9
  41. package/skill-pre/references/normal/full-process-routing.md +2 -2
  42. package/skill-pre/references/normal/scripts/conversation_telemetry.mjs +113 -18
  43. package/skill-pre/references/normal/scripts/telemetry.mjs +243 -32
  44. package/skill-pre/references/normal/windows-environment.md +4 -4
  45. package/skill-pre/references/runtime-entry.md +2 -2
@@ -70,7 +70,7 @@ node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" telemetry resolve-sessi
70
70
  node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" windows-entry --root-intent "<ROOT_INTENT>" --agent-platform "<AGENT_PLATFORM>" --session-id "<SESSION_ID>"
71
71
  ```
72
72
 
73
- 用户明确要求安装并通过 Skill 完成签约/开通或完整接入时(包括正式版保留的原任务与用户随后明确同意安装内测版的选择),当前任务已授权准备所需用户级依赖,附加 `--prepare-authorized true`;仅代码开发且未授权准备依赖时先只读检查。用户明确选择站点时才附加 `--site-selected true`。这不构成登录、签约或应用写入授权。只接受退出 0、唯一 `ALIPAY_AIPAY_INTERNAL:WINDOWS_ROUTE=<JSON>` 且 rootIntent 匹配、route 为 `READY|BLOCKED|LEGACY|CODE_ONLY`。非零、缺失或冲突按 `BLOCKED` 停止,不推定站点分支。`BLOCKED` 须说明内部结果给出的实际缺项/失败原因和有限恢复动作;用户修好依赖后先只读复检,必要且获授权时才按环境文档继续准备。只有不支持的执行映射或用户明确选择站点才进入 `LEGACY`。`integration_only/full_process` 因 Git Bash、jq、CLI 等可选工具缺失、不可运行或有限准备失败时可返回 `CODE_ONLY`,继续原生 Node 代码开发,沙箱记 `VERIFY_PENDING`;完整接入的代码部分完成后停在开通前,不宣称完整接入完成。Windows 沙箱项目配置不要求精确 ACL 白名单;CLI 登录凭据目录仅在依赖登录的动作前检查实际可写性,失败只阻断该动作。Node 不足、实际存储故障、状态异常及未知错误仍阻断,不由 Agent 自行降级。所有后续 Windows runtime 命令追加 `--windows-route "<READY|BLOCKED|LEGACY|CODE_ONLY>"`;`BLOCKED` 不进入业务 bootstrap/flow。修复后只有唯一、根意图匹配的 `WINDOWS_ROUTE=READY` 才恢复快速沙箱与本地开通;`LEGACY` 保留原独立开发/手工沙箱及站点开通分支。`CODE_ONLY` 绑定本次根意图;根意图变化必须重新执行 `windows-entry`,不得继承旧分流。用户修好依赖或明确授权准备后,按 Windows 环境文档重新检查;未取得 READY 时继续独立开发,不循环安装。实际业务执行前仍复检能力。环境、沙箱准备或业务失败不修改采集选择、SESSION_ID、run_id、用户输入计数或阶段责任方。
73
+ 用户明确要求安装并通过 Skill 完成签约/开通或完整接入时(包括正式版保留的原任务与用户随后明确同意安装内测版的选择),当前任务已授权准备所需用户级依赖,附加 `--prepare-authorized true`;仅代码开发且未授权准备依赖时先只读检查。用户明确选择站点时才附加 `--site-selected true`。这不构成登录、签约或应用写入授权。只接受退出 0、唯一 `ALIPAY_AIPAY_INTERNAL:WINDOWS_ROUTE=<JSON>` 且 rootIntent 匹配、route 为 `READY|BLOCKED|LEGACY|CODE_ONLY`。非零、缺失或冲突按 `BLOCKED` 停止,不推定站点分支。`BLOCKED` 须说明内部结果给出的实际缺项/失败原因和有限恢复动作;用户修好依赖后先只读复检,必要且获授权时才按环境文档继续准备。只有不支持的执行映射或用户明确选择站点才进入 `LEGACY`。`integration_only/full_process` 因 Git Bash、jq、CLI 等可选工具缺失、不可运行或有限准备失败时可返回 `CODE_ONLY`,继续原生 Node 代码开发,沙箱默认记 `VERIFY_PENDING`;用户主动提供完整有效手工资料并完成项目配置校验后可记沙箱 `READY`,但环境分流仍为 `CODE_ONLY`,测试按实际依赖执行,不因缺少 Git Bash 单独跳过原生 Python 402 联调;完整接入的代码部分完成后停在开通前,不宣称完整接入完成。Windows 沙箱项目配置不要求精确 ACL 白名单;CLI 登录凭据目录仅在依赖登录的动作前检查实际可写性,失败只阻断该动作。Node 不足、实际存储故障、状态异常及未知错误仍阻断,不由 Agent 自行降级。所有后续 Windows runtime 命令追加 `--windows-route "<READY|BLOCKED|LEGACY|CODE_ONLY>"`;`BLOCKED` 不进入业务 bootstrap/flow。修复后只有唯一、根意图匹配的 `WINDOWS_ROUTE=READY` 才恢复快速沙箱与本地开通;`LEGACY` 保留原独立开发/手工沙箱及站点开通分支。`CODE_ONLY` 绑定本次根意图;根意图变化必须重新执行 `windows-entry`,不得继承旧分流。用户修好依赖或明确授权准备后,按 Windows 环境文档重新检查;未取得 READY 时继续独立开发,不循环安装。实际业务执行前仍复检能力。环境、沙箱准备或业务失败不修改采集选择、SESSION_ID、run_id、用户输入计数或阶段责任方。
74
74
 
75
75
 
76
76
  `integration_only` 的 `integration-bootstrap` 在产品已唯一确定时必须携带 `--product-type`,并串行执行 `telemetry start-run` 与 `flow integration entry`;产品尚未唯一确定时省略产品且不创建正式 run,后续由 `integration-message start-confirm` 首次开 run并生成 `clarify_intent`。`onboarding_only` 的 `onboarding-bootstrap` 同理:产品已唯一时携带产品并先启动 run,尚未唯一时由 `mcc resolve-plan` 或 `onboarding-message plan-confirm` 首次启动。两者均为既有无业务写入动作,执行后不得重复原子命令。Windows READY 返回本地 entry 契约;Windows LEGACY 引导渲染依次使用现有平台项目 ID、正式 run_id;两者均不存在时使用已绑定 `SESSION_ID` 的稳定匿名哈希,不提前创建 run。非 Windows 返回 entry 契约。`full_process` 不使用 `integration-bootstrap`;衔接 Onboarding 也不使用带 `start-run` 的 bootstrap,仍执行 `node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" onboarding-message platform-entry --agent-platform "<AGENT_PLATFORM>" --session-id "<SESSION_ID>"` 后按需加载 entry,避免重复 `clarify_intent`。
@@ -103,6 +103,6 @@ node "<SKILL_DIR>/references/normal/scripts/runtime.mjs" windows-entry --root-in
103
103
 
104
104
  扫码页非阻塞:授权最多 12 次/间隔 5 秒,公钥最多 20 次/间隔 2 秒,成功即推进;耗尽后经统一回复判定只查一次,不重启轮询。
105
105
 
106
- `full_process` 代码开发方案送达前只准备项目、语言、系统分支环境和沙箱;Windows LEGACY 未明确要求当前配置时记 `VERIFY_PENDING`,不收资料。方案送达后直接进入 Integration 步骤 3,满足条件自动进 Onboarding;仅沙箱待配置,或 READY 且只剩非阻塞人工验证时可部分通过,其他缺口停在 Integration;收口保留全部待办。用户中断后重新确认当前项目和服务端语言,从实际项目扫描恢复,不恢复旧方案状态。
106
+ `full_process` 代码开发方案送达前只准备项目、语言、系统分支环境和沙箱;Windows LEGACY/CODE_ONLY 未明确要求当前配置且未主动提供资料时记 `VERIFY_PENDING`,不收资料;本轮有效手工配置可记 `READY`,`CODE_ONLY` 仍在开通前停止。方案送达后直接进入 Integration 步骤 3,满足条件自动进 Onboarding;仅沙箱待配置,或 READY 且只剩非阻塞人工验证时可部分通过,其他缺口停在 Integration;收口保留全部待办。用户中断后重新确认当前项目和服务端语言,从实际项目扫描恢复,不恢复旧方案状态。
107
107
 
108
108
  仅代码开发结束时提醒仍需产品开通;仅产品开通结束时提醒仍需代码开发。机器规则、消息目录、fixture 和测试不作为默认必读内容。