@whyshu/argent-engine 0.8.0-rc.10 → 0.8.0-rc.11

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/MANIFEST.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schema": 1,
3
3
  "package": "@whyshu/argent-engine",
4
4
  "files": {
5
- "VERSION": "2af5839429bd81bfedbd1a3fcc730273b7246b9ddc92e20a94bf07918516e630",
5
+ "VERSION": "bcdea373b517004af0e349e495a2b95101b134a75db57762a1c9726b5c4bd4f1",
6
6
  "agents/catalog.json": "5356a812f2554dfd3115370363d4c3f787a82c9e5928a85d05b2a07c9e4b324d",
7
7
  "configs/_aliases.proposed.json": "3a59edf80563bcc20d410d488decad6fd787bd3de9489321367b0783904cd3e5",
8
8
  "configs/_migration-plan.proposed.json": "dd9f90b0b9b2f217dd23367a618402e57997d44f7fddcfa88a7cadf52e056c0d",
@@ -187,7 +187,7 @@
187
187
  "scripts/invoice_lip_runner.py": "0ce53eb1f6a6de584dc19bc5646ad41965efa201113abb4516486f023b62654d",
188
188
  "scripts/invoice_lip_runner.py.bak-20260922-1710-freready": "95d95e7d3aa9f46cca93e1a70d86f6ffe8f6bca07a9c1ebba1bbf993abdd09e6",
189
189
  "scripts/invoice_ready_audit.py": "f598801d1603d8ea5ca7d433bb4e3eee230eeceb1b99448be6ef75397cb6e8a0",
190
- "scripts/invoice_runner.py": "b8c21b60f5b501abd7d7795429e9887080a346f52afa874e15f8be5079050a4e",
190
+ "scripts/invoice_runner.py": "2d6e79d689416cd03cee31bbdd59fbdd2027ec07e710e72156029403e91aead2",
191
191
  "scripts/invoice_stageb.py": "7f9e6da2966558a5e3d9fa2c13ea1ed22882b61a3138b13fa8d15b85e982387e",
192
192
  "scripts/launchd/com.whyshu.argent-bridge.plist.example": "7b19f77545a9e622bddf5ad443a5fd5c7ddf49540ae8a71bd065e18c8a2b5613",
193
193
  "scripts/launchd/com.whyshu.fulfillment-poll.plist.example": "01c6c1bbd9ad4ab17fcb3029b7f783691ed8f6536b1c020ec64c3f62812f0b9a",
package/engine/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0-rc.10
1
+ 0.8.0-rc.11
@@ -242,12 +242,19 @@ def fix_drawing_xfrm(xlsx_path, ws, img_w, img_h, off_x, off_y, row_idx):
242
242
  tpl_dr = tpl_dr.replace("".join(anchors[1:]), "")
243
243
  tmp = xlsx_path.with_name(xlsx_path.name + ".tmp")
244
244
  with zipfile.ZipFile(xlsx_path) as zin, zipfile.ZipFile(tmp, "w", zipfile.ZIP_DEFLATED) as zout:
245
+ # 2026-11-03:模板 rels 写死 ../media/image1.png,但 openpyxl 按实际图片格式存成
246
+ # image1.jpeg(JPEG 源)⇒ 引用断裂,门户判「图片为空」。这里按实际媒体名改写 rels。
247
+ media = [n for n in zin.namelist() if n.startswith("xl/media/")]
248
+ actual_media = media[0].split("/")[-1] if media else "image1.png"
249
+ rels_bytes = tpl_rels
250
+ if rels_bytes:
251
+ rels_bytes = re.sub(rb"image1\.[A-Za-z0-9]+", actual_media.encode(), rels_bytes)
245
252
  for item in zin.namelist():
246
253
  data = zin.read(item)
247
254
  if item == "xl/drawings/drawing1.xml" and tpl_dr:
248
255
  data = tpl_dr.encode()
249
- elif item == "xl/drawings/_rels/drawing1.xml.rels" and tpl_rels:
250
- data = tpl_rels
256
+ elif item == "xl/drawings/_rels/drawing1.xml.rels" and rels_bytes:
257
+ data = rels_bytes
251
258
  elif item.endswith("worksheets/_rels/sheet1.xml.rels"):
252
259
  xml = data.decode()
253
260
  xml = xml.replace('Target="/xl/drawings/drawing1.xml"', 'Target="../drawings/drawing1.xml"')
@@ -1 +1 @@
1
- export const VERSION = "0.8.0-rc.10"
1
+ export const VERSION = "0.8.0-rc.11"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyshu/argent-engine",
3
- "version": "0.8.0-rc.10",
3
+ "version": "0.8.0-rc.11",
4
4
  "description": "Argent 引擎(L1):流程/台账/重试/守卫/审计/浏览器自动化 —— 逐字节来自 argent-dsh 仓库",
5
5
  "type": "module",
6
6
  "engines": {