@zhuoyuezs/ml-platform 0.2.7 → 0.2.8

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/checksums.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "files": [
3
3
  {
4
4
  "path": "runtime/business-client/README.md",
5
- "sha256": "sha256:e073c87673f066820cc228ac41868d9894589ea23455836fb462f87efb7f7ca2",
6
- "size_bytes": 16723
5
+ "sha256": "sha256:ef7aabd0a1434dbf5d60018e357b018eeb08099de32a9b6a01a89d1f6764bc20",
6
+ "size_bytes": 17026
7
7
  },
8
8
  {
9
9
  "path": "runtime/business-client/package-lock.json",
@@ -202,8 +202,8 @@
202
202
  },
203
203
  {
204
204
  "path": "skills/prediction-report-management/SKILL.md",
205
- "sha256": "sha256:2f2c5c2889f88de3532727c79c03e59501c28b9fc628aeba7bb8c680d8ebabe8",
206
- "size_bytes": 6204
205
+ "sha256": "sha256:7c751b1c6176a807f287095ece6463747007f9277afa82abad0c6035f7cbdca5",
206
+ "size_bytes": 6489
207
207
  },
208
208
  {
209
209
  "path": "skills/prediction-report-management/agents/openai.yaml",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhuoyuezs/ml-platform",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "ML 数据平台 business CLI 与 Agent Skills 管理工具",
5
5
  "bin": {
6
6
  "ml-platform": "scripts/main.js"
package/release.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "entrypoint": "src/cli.js",
14
14
  "name": "ml-platform",
15
15
  "path": "runtime/business-client",
16
- "sha256": "sha256:0901d0939f9b249c7052879040f9d3d069ad4d19afe2dfe8f97765b168648e9a",
16
+ "sha256": "sha256:eec6e0e65cf300d6fbfbddcc13bdee6af324409567222454c9ba7abc812a79f3",
17
17
  "version": "0.8.6"
18
18
  },
19
19
  "policy_sha256": "sha256:02fbde0134696b78c0c365d6e0b76c9814227208da5b2b3d4e5dbd82dc4a3606",
@@ -25,7 +25,7 @@
25
25
  "ml_data_platform.feature_set/v1",
26
26
  "ml_data_platform.dataset_manifest/v1"
27
27
  ],
28
- "release_version": "0.2.7",
28
+ "release_version": "0.2.8",
29
29
  "runtime_requirements": {
30
30
  "node": ">=18",
31
31
  "os": [
@@ -38,33 +38,33 @@
38
38
  "data-source-exploration": {
39
39
  "path": "skills/data-source-exploration",
40
40
  "requires_cli": ">=0.8.6 <0.9.0",
41
- "revision": "0.2.7",
41
+ "revision": "0.2.8",
42
42
  "sha256": "sha256:6cb1cad3e9531e5098582c532288edd9838c2acab2b324794ec99d2550418f32"
43
43
  },
44
44
  "feature-management": {
45
45
  "path": "skills/feature-management",
46
46
  "requires_cli": ">=0.8.6 <0.9.0",
47
- "revision": "0.2.7",
47
+ "revision": "0.2.8",
48
48
  "sha256": "sha256:91c59ad073fc6d13ae024ba3f2f5652742ebb7dbee8a0ad4573332e8f009a580"
49
49
  },
50
50
  "model-deployment-management": {
51
51
  "path": "skills/model-deployment-management",
52
52
  "requires_cli": ">=0.8.6 <0.9.0",
53
- "revision": "0.2.7",
53
+ "revision": "0.2.8",
54
54
  "sha256": "sha256:a83471a2914210065b4354c50b9ddb8f6e4be582739636a116b9098524948a11"
55
55
  },
56
56
  "model-lifecycle-management": {
57
57
  "path": "skills/model-lifecycle-management",
58
58
  "requires_cli": ">=0.8.6 <0.9.0",
59
- "revision": "0.2.7",
59
+ "revision": "0.2.8",
60
60
  "sha256": "sha256:113c673d383cdfb191d3c0efbc91aa0f950e2db0ca03a163209680c6dc1683a0"
61
61
  },
62
62
  "prediction-report-management": {
63
63
  "path": "skills/prediction-report-management",
64
64
  "requires_cli": ">=0.8.6 <0.9.0",
65
- "revision": "0.2.7",
66
- "sha256": "sha256:54bce4484308db835aeb51eab9a94db1786f45569503a809c7658cf98e3816ab"
65
+ "revision": "0.2.8",
66
+ "sha256": "sha256:671f65e54bf464c7fa46398d4fae31a6317290cf0987fc5c886e56a89309fafc"
67
67
  }
68
68
  },
69
- "source_commit": "8a46673fecd8e599c314f9e1f35cb3f3a3ae8b0d"
69
+ "source_commit": "f05d2c98eddd9a4d2cdf47a1d7a3133fc421ffc9"
70
70
  }
@@ -126,7 +126,8 @@ ml-platform list-deployments --business-domain-id power --scenario-id energy_sto
126
126
  "values": {
127
127
  "source": "predictions", "type": "array",
128
128
  "items": {"fields": {
129
- "time": {"source": "target_time", "type": "string"},
129
+ "time": {"source": "target_time", "format": "%H:%M", "timezone": "Asia/Shanghai",
130
+ "midnight_as_24": true, "type": "string"},
130
131
  "value": {"source": "value", "type": "number", "scale": 1.0, "offset": 0.0}
131
132
  }}
132
133
  }
@@ -158,6 +159,8 @@ ml-platform list-deployments --business-domain-id power --scenario-id energy_sto
158
159
  `target_time`。`source` 引用平台标准预测结果中的字段;`fields` 生成嵌套对象,`items` 将数组逐项转换,
159
160
  `constant` 写入固定值,`template` 可拼接已存在的字符串字段。`format` 可格式化时间;需要按业务时区格式化时,
160
161
  同时设置 `timezone`(IANA 名称),例如 `2026-09-10T16:00:00Z` 配置 `Asia/Shanghai` 后得到 `2026-09-11`;
162
+ 如果目标接口把本地日界的午夜表达为 `24:00`,在包含 `%H` 的时间格式上设置 `midnight_as_24: true`,例如
163
+ `%H:%M` 会将本地 `00:00` 映射为 `24:00`,其他时刻保持不变;
161
164
  `scale` 和 `offset` 可执行受控数值换算,`type` 校验最终类型。`token_path`、业务成功码和
162
165
  `/forecast/report` 只是示例,必须按目标接口的真实响应和路径配置。
163
166
  映射字段缺失或类型不匹配时不会发送请求,Run 会记录 `payload_mapping_failed`。若响应提供有效期,可设置 `expires_in_path` 与 `expires_in_unit`;否则服务端默认按 7200 秒缓存,
@@ -78,7 +78,11 @@ nested objects, `items` for array conversion, `constant` for fixed values,
78
78
  `template` for string composition, and `format`, `timezone`, `scale`, `offset`,
79
79
  and `type` for bounded transformations and validation. `timezone` is an IANA
80
80
  timezone and must be used together with `format`; it converts an aware ISO-8601
81
- timestamp before formatting. For example, use
81
+ timestamp before formatting. For a business endpoint that represents local
82
+ midnight as the end of the previous business day, set `midnight_as_24: true`
83
+ on a time field whose format contains `%H` (for example, `%H:%M`). This maps
84
+ local `00:00` to `24:00` after timezone conversion and leaves other times
85
+ unchanged. For example, use
82
86
  `{"source":"cutoff_time","format":"%Y-%m-%d","timezone":"Asia/Shanghai"}`
83
87
  to map `2026-09-10T16:00:00Z` to `2026-09-11`. Arbitrary code and expressions
84
88
  are not supported. A missing field or type failure produces