@accio-ai/ecommerce-cli 0.0.6-rc.1 → 0.0.6-rc.3

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/CHANGELOG.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  ### Added
8
8
 
9
+ - 新增 eBay US 商品能力,使用当前 Accio workspace 授权完成类目候选查询、原格式素材定义生成、素材包离线预检及 Seller Hub 草稿创建与恢复;草稿结果不代表正式上架。
9
10
  - 新增 `overseas product categories/package`,支持 Amazon、Temu 和 TikTok 的类目查询与素材包定义 JSON 生成;类目证据文件携带 SHA-256,素材定义按当前授权店铺和平台规则生成,缺少输入时返回补充指引。
10
11
  - 新增 `overseas product publish`,读取 Excel、ZIP 或解压素材目录,支持离线预检、可信店铺绑定、素材上传、平台提交与结果核验。TikTok 仅创建并核验草稿,Temu 返回商品创建结果,Amazon 按模板执行创建、更新或 Feed 并核验商品状态;真实店铺发品与 PC 上传仍需联调验收。
11
12
  - CLI 仅加密保存账号 `access_token` 和 `expires_at`,按环境、账号、空间隔离,移除店铺凭据包、授权状态和连接版本的磁盘存储。当前接口仍需为新任务获取完整请求字段,同一 scope 保留内存复用与刷新。`ECOMCTL_CREDENTIAL_CACHE=auto|off` 默认 auto;PC 和业务适配器继续管理店铺授权。
@@ -36,6 +37,8 @@
36
37
 
37
38
  ### Changed
38
39
 
40
+ - 海外商品命令恢复使用 `--store-id` / JSON `store_id`;categories 使用 `--config-file` 和完整参数 `--input-json-file`,不接受 `--config` 或内联 `--input-json`,并恢复通过 `--output-file` 导出类目证据。package 恢复接收外部证据文件及 SHA-256、`amazon_scenario` 和嵌套 `temu` 配置。使用过 `0.0.6-rc.2` 接口的脚本需同步调整,详见 [海外商品命令对接说明](docs/海外商品命令对接说明.md)。
41
+ - 海外商品 publish 自动识别 Excel 中的平台,并按当前授权店铺选择唯一发布目标;移除该命令的 `--platform` / JSON `platform` 输入,保留 Excel、ZIP、解压目录和 `--assets-root` 支持。混合包离线预检按平台分组报告,正式结果返回实际绑定的 `target`。categories/package 的平台参数保持不变。
39
42
  - 国内 `collection plan` 响应收敛为 `status` 与 `await_collect`,待采集项包含 `source_id`、`type`、`dsl_id`;状态改为 `COLLECTION_REQUIRED` / `NO_COLLECTION_REQUIRED`。升级自 `0.0.5-rc.2` 及更早版本的调用方需适配原 `source_ids`、`items` 和 `configuration_issues` 字段的移除。
40
43
  - Paged 每页与 Report 后续鉴权请求前获取当前凭据;明确过期时仅恢复一次安全的当前操作并保留分页位置或 reportId,结果未知的提交不自动重放,401/403/40005 仍按 unauthorized 处理。仅账号 access_token 及到期时间可进入 CLI 专用加密存储,业务 SQLite、日志、任务快照和导出继续禁止保存 token。
41
44
  - 海外采集命令从 `overseas download run/status/ready/retry` 统一更名为 `overseas collection run/status/ready/retry`,Schema ID 和返回的后续动作同步切换,不保留旧命令别名;调用脚本需同步更新。采集框架错误码从 `download_*` 更名为 `collection_*`;报表文件下载专属的 `report_download_failed` 保持原义。
@@ -67,6 +70,7 @@
67
70
 
68
71
  ### Fixed
69
72
 
73
+ - 恢复海外商品 publish 直接读取 Excel、ZIP 和解压素材目录,并保留 `--assets-root`;平台与目标店铺按工作簿内容和当前授权唯一匹配,避免把多平台素材提交到错误目标。
70
74
  - 海外商品请求在当前账号、空间和授权店铺范围内绑定目标,每次平台调用前复核身份;发布记录校验素材摘要并保留结果未知的提交,避免超时或重试造成重复发品。
71
75
  - 对齐 Amazon Feed/更新、Temu 属性与销售规格、TikTok 媒体素材及平台响应校验;类目和素材定义响应同步当前 Schema,并返回实际生成文件的路径、字节数和 SHA-256。
72
76
  - 凭据明确过期时按账号 token 判定刷新,店铺字段变化不再放行原 token;同一作用域保留多次及迟到的店铺拒绝历史,防止旧材料仅延期后恢复。报表通过请求与授权租约传递内存凭据历史,再次调度后仍拦截旧凭据进入任务错误、观测记录和结果。
package/checksums.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
- "version": "0.0.6-rc.1",
2
+ "version": "0.0.6-rc.3",
3
3
  "binaries": {
4
4
  "darwin-arm64": {
5
5
  "package": "@accio-ai/ecommerce-cli-darwin-arm64",
6
6
  "file": "ecomctl",
7
- "sha256": "fce3477306274b54b125faa787c4b928fe145ff9b783a47e1f35634704924ddc"
7
+ "sha256": "370fbf03d2c2712bbd9071e313ea8b55e96b3efb3b3e602cda1cd8e8e11b164c"
8
8
  },
9
9
  "darwin-x64": {
10
10
  "package": "@accio-ai/ecommerce-cli-darwin-x64",
11
11
  "file": "ecomctl",
12
- "sha256": "836680011f21d61f035bd57081b9ab2e0f334aeacd17a7e7ef4e20f63696ae00"
12
+ "sha256": "53a8c36390bf1af8fc24ea08533db92fac183ff858b176dfe6c8a20a34a50dab"
13
13
  },
14
14
  "linux-arm64": {
15
15
  "package": "@accio-ai/ecommerce-cli-linux-arm64",
16
16
  "file": "ecomctl",
17
- "sha256": "eddfe31fa92d40edafa74065ad98fbda4351b4bd05c6973688f26b8419a69277"
17
+ "sha256": "e4cf57cf89e5f207b5bc46486e16aeefdc4eca49d2cd6c313a3f36a4ff5e4ecd"
18
18
  },
19
19
  "linux-x64": {
20
20
  "package": "@accio-ai/ecommerce-cli-linux-x64",
21
21
  "file": "ecomctl",
22
- "sha256": "922a3bfadc79f7678916ed0bce0f0e8644adbdf8128caf1ce60ea883fd289df2"
22
+ "sha256": "d53e0a092eed2c53129061b16511e035b7e701fd2cae2fc56f0e4149d0edad77"
23
23
  },
24
24
  "win32-arm64": {
25
25
  "package": "@accio-ai/ecommerce-cli-win32-arm64",
26
26
  "file": "ecomctl.exe",
27
- "sha256": "5310c2d5d450763296f53dba1f33c28dad67368d9b929a4e4d95f1db704f6af5"
27
+ "sha256": "91d645768ca574da6c91b3b21f39e479e51546f7fa0d1d293bfb4e0a499479e5"
28
28
  },
29
29
  "win32-x64": {
30
30
  "package": "@accio-ai/ecommerce-cli-win32-x64",
31
31
  "file": "ecomctl.exe",
32
- "sha256": "49bf64751efc0d5110d4050b74c95c458b515f1b538955c5db0c4fca1365b013"
32
+ "sha256": "e1833e57f8f11051589b278b7acf552ced4d14c987599a970d9d977a69335077"
33
33
  }
34
34
  }
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accio-ai/ecommerce-cli",
3
- "version": "0.0.6-rc.1",
3
+ "version": "0.0.6-rc.3",
4
4
  "description": "Local, statically compiled ecommerce automation toolkit",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -18,12 +18,12 @@
18
18
  "postinstall": "node postinstall.cjs"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@accio-ai/ecommerce-cli-darwin-arm64": "0.0.6-rc.1",
22
- "@accio-ai/ecommerce-cli-darwin-x64": "0.0.6-rc.1",
23
- "@accio-ai/ecommerce-cli-linux-arm64": "0.0.6-rc.1",
24
- "@accio-ai/ecommerce-cli-linux-x64": "0.0.6-rc.1",
25
- "@accio-ai/ecommerce-cli-win32-arm64": "0.0.6-rc.1",
26
- "@accio-ai/ecommerce-cli-win32-x64": "0.0.6-rc.1"
21
+ "@accio-ai/ecommerce-cli-darwin-arm64": "0.0.6-rc.3",
22
+ "@accio-ai/ecommerce-cli-darwin-x64": "0.0.6-rc.3",
23
+ "@accio-ai/ecommerce-cli-linux-arm64": "0.0.6-rc.3",
24
+ "@accio-ai/ecommerce-cli-linux-x64": "0.0.6-rc.3",
25
+ "@accio-ai/ecommerce-cli-win32-arm64": "0.0.6-rc.3",
26
+ "@accio-ai/ecommerce-cli-win32-x64": "0.0.6-rc.3"
27
27
  },
28
28
  "files": [
29
29
  "bin",