trustbase-seller-backend 0.5.0 → 0.5.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  TrustBase 保障链生态的卖家自托管后端: 商品上链 / 订单 / 支付确认 / 单件质押 的写入口。
4
4
  **单卖家形态** — 签名 key 即卖家身份, 私钥不出本机。
5
5
 
6
- 给「`npx @trustbase/shopxo-init` 一键安装器」当依赖用, 也可以独立运行。
6
+ 给「`npx trustbase-shop-init` 一键安装器」当依赖用, 也可以独立运行。
7
7
 
8
8
  ## 快速开始
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trustbase-seller-backend",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "TrustBase Seller Backend (merchant edition) — 商品上链/订单/支付/质押 write API for TrustBase 保障链生态. 单卖家自托管形态: 签名 key 即卖家身份, 私钥不出门.",
5
5
  "main": "run-unified.js",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * agent-serviceprovider.js — AI Agent 服务商路由 (C5)
4
4
  *
5
- * 契约方: ShopXO trustbasechain 插件 ServiceProviderService.php (pi 2026-09-20, .215 已部署),
5
+ * 契约方(历史): ShopXO trustbasechain 插件 ServiceProviderService.php (pi 2026-09-20; ShopXO 已于 2026-09-22 下架, 该插件契约已废弃, 本路由保留给通用服务商对接),
6
6
  * 字段以插件源码为准, 不可改:
7
7
  * POST /api/agent/serviceprovider/register {provider, wechat_mchid, stake, name}
8
8
  * POST /api/agent/serviceprovider/submit-fact {provider, order_ref, psp_txn_id, amount, evidence_hash}
@@ -178,7 +178,7 @@ img.auprev{display:none;width:100%;max-height:140px;object-fit:cover;border-radi
178
178
  <div class="body">② 备份店铺安全卡
179
179
  <div class="desc">安全卡 = 店铺的全部资产钥匙。丢了它且电脑坏了,谁也找不回 (服务商也不行)。请抄写或打印收好。</div>
180
180
  <div class="ops"><button class="sbtn" onclick="reprintKey()">重新打印安全卡</button><button class="sbtn" onclick="var h=document.getElementById('hint-recover');h.style.display=h.style.display==='block'?'none':'block'">如何恢复店铺</button><button class="sbtn primary" onclick="startBackupVerify()">我已抄好, 验证备份</button></div>
181
- <div class="hintbox" id="hint-reprint">出于安全,24 个安全词只在生成时在本页展示一次。<br>重新打印请在你的电脑上运行: <code>npx @trustbase/shopxo-init print-key</code></div>
181
+ <div class="hintbox" id="hint-reprint">出于安全,24 个安全词只在生成时在本页展示一次。<br>重新打印请在你的电脑上运行: <code>npx trustbase-shop-init print-key</code></div>
182
182
  <div class="hintbox" id="hint-recover">丢了/换电脑,在新机器的入驻页恢复店铺,两种方式:<br>① 扫码: 用手机相机扫安全卡上的二维码,屏幕上会显示 24 个安全词;<br>② 手填: 把安全卡上的 24 个安全词按顺序填到下面。<br>
183
183
  <textarea id="restore-words" rows="3" placeholder="24 个安全词, 按顺序, 空格分隔" style="width:100%;margin-top:8px;padding:10px 12px;border:1px solid #D4CDBF;border-radius:8px;font-size:14px"></textarea>
184
184
  <button class="sbtn primary" style="margin-top:6px" onclick="restoreIdentity()">恢复店铺</button>