@social-data/social-neuron-subscription 1.0.0-beta.12 → 1.0.0-beta.13
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/bin/cli.js +3 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -65,7 +65,9 @@ function normalize(body) {
|
|
|
65
65
|
const type = forgeType(body.code);
|
|
66
66
|
let message = body.msg || "";
|
|
67
67
|
if (type === "outdated") message += "(升级后请重新加载 SKILL.md 与 manifest 再调用)";
|
|
68
|
-
|
|
68
|
+
// 网关在 data 里带审计 trace_id 的业务错误(如查询失败):透出供 get-query 回查。
|
|
69
|
+
const extra = body.data && body.data.trace_id ? { trace_id: body.data.trace_id } : {};
|
|
70
|
+
return { ok: false, error: { type, code: body.code, message, ...extra } };
|
|
69
71
|
}
|
|
70
72
|
return { ok: false, error: { type: "api_error", code: "UNKNOWN", message: JSON.stringify(body).slice(0, 200) } };
|
|
71
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@social-data/social-neuron-subscription",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "Social Neuron subscription 能力 CLI —— 一能力一命令(social-neuron-subscription),薄客户端直达 /subscription/{op}。",
|
|
5
5
|
"bin": {
|
|
6
6
|
"social-neuron-subscription": "bin/cli.js"
|