weaver-work-cli 0.1.26 → 0.1.29

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.
Files changed (163) hide show
  1. package/README.md +7 -2
  2. package/dist/cmd/setup/index.js +1 -1
  3. package/dist/internal/e10/auth/commands.js +1 -6
  4. package/dist/internal/e10/auth/messages.js +3 -0
  5. package/dist/internal/e10/auth/session.js +8 -0
  6. package/dist/internal/e10/auth-recovery.js +148 -0
  7. package/dist/internal/e10/client.js +47 -15
  8. package/dist/internal/e10/context.js +8 -8
  9. package/dist/internal/e10/index.js +1 -0
  10. package/dist/internal/e10/request-runtime.js +51 -9
  11. package/dist/shortcuts/archive/host.js +3 -2
  12. package/dist/shortcuts/archive/manifest.js +1 -1
  13. package/dist/shortcuts/archive-oa/host.js +2 -1
  14. package/dist/shortcuts/archive-oa/manifest.js +1 -1
  15. package/dist/shortcuts/asset/host.js +7 -6
  16. package/dist/shortcuts/blog/host.js +4 -3
  17. package/dist/shortcuts/caizhilian/host.js +3 -2
  18. package/dist/shortcuts/caizhilian/manifest.js +1 -1
  19. package/dist/shortcuts/calendar/host.js +2 -1
  20. package/dist/shortcuts/contract/host.js +34 -59
  21. package/dist/shortcuts/ehr/host.js +2 -1
  22. package/dist/shortcuts/esb/host.js +2 -1
  23. package/dist/shortcuts/fna/host.js +6 -3
  24. package/dist/shortcuts/fna/manifest.js +10 -5
  25. package/dist/shortcuts/fna/operations/expense-chart.js +162 -0
  26. package/dist/shortcuts/fna/operations/registry.js +2 -0
  27. package/dist/shortcuts/hrm/host.js +2 -1
  28. package/dist/shortcuts/im/host.js +3 -2
  29. package/dist/shortcuts/invoice/host.js +9 -7
  30. package/dist/shortcuts/invoice/manifest.js +23 -142
  31. package/dist/shortcuts/invoice/operations/issuing-qys.js +266 -203
  32. package/dist/shortcuts/invoice/operations/registry.js +1 -6
  33. package/dist/shortcuts/jiuchuanhui/host.js +2 -1
  34. package/dist/shortcuts/mail/host.js +2 -1
  35. package/dist/shortcuts/meeting/host.js +2 -1
  36. package/dist/shortcuts/meeting/operations/eb/conflict.js +78 -12
  37. package/dist/shortcuts/okr/host.js +2 -1
  38. package/dist/shortcuts/plan/host.js +2 -1
  39. package/dist/shortcuts/project/host.js +2 -1
  40. package/dist/shortcuts/workflow/host.js +3 -5
  41. package/dist/shortcuts/workflow/index.js +4 -1
  42. package/dist/shortcuts/workflow/operations/chatscene.js +4 -22
  43. package/dist/shortcuts/workflow/operations/form.js +281 -166
  44. package/dist/shortcuts/workflow/operations/read.js +39 -8
  45. package/dist/shortcuts/workflow/operations/registry.js +2 -0
  46. package/dist/shortcuts/workflow/operations/todoSmartConvert/businessRules.js +331 -0
  47. package/dist/shortcuts/workflow/operations/todoSmartConvert/detailFieldRules.js +133 -0
  48. package/dist/shortcuts/workflow/operations/todoSmartConvert/summaryCache.js +326 -0
  49. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.js +113 -0
  50. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailFetcher.js +259 -0
  51. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +64 -0
  52. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoOutputPlanner.js +28 -0
  53. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.aggregate.js +70 -0
  54. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +267 -0
  55. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +392 -0
  56. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.detail.js +165 -0
  57. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +448 -0
  58. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.groupSummary.js +348 -0
  59. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +222 -0
  60. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.pipeline.js +66 -0
  61. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +502 -0
  62. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.summary.js +540 -0
  63. package/dist/shortcuts/workflow/stdout-compact.js +7 -0
  64. package/docs/SKILL.md +1 -1
  65. package/docs/_catalog.md +2 -1
  66. package/docs/agent-invoice.md +1 -1
  67. package/docs/caizhilian.md +1 -1
  68. package/docs/e10-auth.md +1 -1
  69. package/docs/fna.md +7 -3
  70. package/docs/invoice.md +4 -6
  71. package/docs/todo-smart-convert/README.md +171 -0
  72. package/docs/todo-smart-convert/data-contract.md +236 -0
  73. package/docs/todo-smart-convert/mock/ai-todo-query-target.json +209 -0
  74. package/docs/todo-smart-convert/subgroup-rules.md +245 -0
  75. package/package.json +1 -1
  76. package/scripts/package-skill.mjs +1 -1
  77. package/skill-template/business-info.json +4 -1
  78. package/skill-template/domains/caizhilian.md +2 -1
  79. package/skill-template/domains/qiyecheng.md +1 -0
  80. package/skill-template/domains/yepiaotong.md +6 -2
  81. package/skill-template/skill-template.md +1 -0
  82. package/skills/weaver-e10-blog/SKILL.md +6 -1
  83. package/skills/weaver-e10-blog/references/blog-query.md +3 -1
  84. package/skills/weaver-e10-caizhilian/SKILL.md +18 -9
  85. package/skills/weaver-e10-caizhilian/references/action-flow.md +70 -0
  86. package/skills/weaver-e10-caizhilian/references/agent-entry.md +6 -2
  87. package/skills/weaver-e10-caizhilian/references/auth-and-install.md +207 -0
  88. package/skills/weaver-e10-caizhilian/references/file-collection.md +56 -54
  89. package/skills/weaver-e10-caizhilian/references/file-upload.md +4 -4
  90. package/skills/weaver-e10-caizhilian/references/host-executor-prompt.md +32 -0
  91. package/skills/weaver-e10-caizhilian/references/host-platform-integration.md +46 -0
  92. package/skills/weaver-e10-caizhilian/references/rule-index.md +56 -0
  93. package/skills/weaver-e10-caizhilian/references/setting-attach.md +5 -16
  94. package/skills/weaver-e10-caizhilian/references/setting-backup.md +4 -13
  95. package/skills/weaver-e10-caizhilian/references/setting-encrypt.md +6 -15
  96. package/skills/weaver-e10-caizhilian/references/setting-storage-docs-summary.md +126 -0
  97. package/skills/weaver-e10-caizhilian/references/setting-storage-field-map.md +57 -0
  98. package/skills/weaver-e10-caizhilian/references/setting-storage.md +142 -482
  99. package/skills/weaver-e10-caizhilian/references/source-manifest.json +7 -7
  100. package/skills/weaver-e10-caizhilian/references/task-workflow.md +87 -0
  101. package/skills/weaver-e10-caizhilian/references/withheld.md +2 -2
  102. package/skills/weaver-e10-caizhilian/references/write-protocol.md +7 -0
  103. package/skills/weaver-e10-calendar/SKILL.md +6 -1
  104. package/skills/weaver-e10-esb/SKILL.md +8 -0
  105. package/skills/weaver-e10-esb/references/input-format.md +3 -1
  106. package/skills/weaver-e10-esb/references/source-manifest.json +5 -5
  107. package/skills/weaver-e10-hrm/SKILL.md +6 -1
  108. package/skills/weaver-e10-hrm/references/employee.md +1 -1
  109. package/skills/weaver-e10-hrm/references/org.md +1 -1
  110. package/skills/weaver-e10-hrm/references/position.md +1 -1
  111. package/skills/weaver-e10-jinchengda/SKILL.md +2 -1
  112. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +1 -1
  113. package/skills/weaver-e10-jiuchuanhui/SKILL.md +6 -1
  114. package/skills/weaver-e10-jucailin/SKILL.md +6 -1
  115. package/skills/weaver-e10-jucailin/references/hr-contact.md +1 -1
  116. package/skills/weaver-e10-jucailin/references/salary.md +1 -1
  117. package/skills/weaver-e10-mail/SKILL.md +6 -1
  118. package/skills/weaver-e10-meeting/SKILL.md +11 -6
  119. package/skills/weaver-e10-meeting/references/meeting-eb.md +7 -3
  120. package/skills/weaver-e10-meeting/references/meeting-queries.md +3 -1
  121. package/skills/weaver-e10-meeting/references/meeting-verification.md +4 -2
  122. package/skills/weaver-e10-okr/SKILL.md +6 -1
  123. package/skills/weaver-e10-okr/references/source-manifest.json +5 -5
  124. package/skills/weaver-e10-plan/SKILL.md +6 -1
  125. package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +3 -1
  126. package/skills/weaver-e10-plan/references/plan-report-query.md +3 -1
  127. package/skills/weaver-e10-plan/references/source-manifest.json +7 -7
  128. package/skills/weaver-e10-qiyecheng/SKILL.md +16 -6
  129. package/skills/weaver-e10-qiyecheng/references/catalog.md +6 -3
  130. package/skills/weaver-e10-qiyecheng/references/expense-center.md +2 -0
  131. package/skills/weaver-e10-qiyecheng/references/expense-chart.md +78 -0
  132. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +87 -33
  133. package/skills/weaver-e10-shared/SKILL.md +37 -14
  134. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -8
  135. package/skills/weaver-e10-shared/references/non-interactive-environment.md +4 -4
  136. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +3 -1
  137. package/skills/weaver-e10-wenshuding/SKILL.md +6 -1
  138. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  139. package/skills/weaver-e10-workflow/SKILL.md +23 -1
  140. package/skills/weaver-e10-workflow/references/source-manifest.json +1 -2
  141. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +282 -0
  142. package/skills/weaver-e10-workflow/references/workflow-create.md +30 -55
  143. package/skills/weaver-e10-workflow/scripts/todo-summary.cjs +695 -0
  144. package/skills/weaver-e10-yepiaotong/SKILL.md +19 -17
  145. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +75 -78
  146. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +179 -0
  147. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +238 -0
  148. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +7 -7
  149. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +11 -5
  150. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +55 -33
  151. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +102 -23
  152. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +1 -1
  153. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +53 -42
  154. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +94 -214
  155. package/skills/weaver-e10-yimiaoban/SKILL.md +9 -2
  156. package/skills/weaver-e10-yimiaoban/references/file-user-i18n.md +1 -1
  157. package/skills/weaver-e10-yimiaoban/references/msg-read.md +1 -1
  158. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  159. package/skills/weaver-e10-ziguanjia/SKILL.md +6 -1
  160. package/dist/shortcuts/invoice/operations/issuing.js +0 -198
  161. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +0 -161
  162. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-qys-ledger.md +0 -66
  163. package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +0 -107
@@ -466,37 +466,27 @@
466
466
  "id": "invoice.issuing.make",
467
467
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/api-reference.md",
468
468
  "anchor": "source:api-reference.md",
469
- "status": "converted",
470
- "mapsToOperations": [
471
- "invoice.issuing.make.prepare",
472
- "invoice.issuing.make.apply"
473
- ],
474
- "references": [
475
- "references/invoice-issuing.md"
476
- ]
469
+ "status": "withheld",
470
+ "mapsToOperations": [],
471
+ "references": []
477
472
  },
478
473
  {
479
474
  "id": "invoice.issuing.workflow",
480
475
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/workflow.md",
481
476
  "anchor": "source:workflow.md",
482
477
  "status": "converted",
483
- "mapsToOperations": [
484
- "invoice.issuing.make.prepare",
485
- "invoice.issuing.make.apply"
486
- ],
478
+ "mapsToOperations": [],
487
479
  "references": [
488
- "references/invoice-issuing.md"
480
+ "references/invoice-issuing-workflow.md"
489
481
  ]
490
482
  },
491
483
  {
492
484
  "id": "invoice.issuing.field-rules",
493
485
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/field-extraction-rules.md",
494
486
  "anchor": "source:field-extraction-rules.md",
495
- "status": "converted",
487
+ "status": "withheld",
496
488
  "mapsToOperations": [],
497
- "references": [
498
- "references/invoice-issuing-field-rules.md"
499
- ]
489
+ "references": []
500
490
  },
501
491
  {
502
492
  "id": "invoice.issuing.examples",
@@ -510,16 +500,15 @@
510
500
  },
511
501
  {
512
502
  "id": "invoice.issuing.qys",
513
- "sourcePath": "user-provided: 契约锁合同商品信息 /api/ebuilder/form/eblist/getData 字段表与返回样例",
503
+ "sourcePath": "user-provided: 待开票合同数据(含契约锁、泛微及其他合同)字段表与返回样例",
514
504
  "anchor": "source:qys-ledger",
515
505
  "status": "converted",
516
506
  "mapsToOperations": [
517
- "invoice.issuing.qys.list",
518
- "invoice.issuing.qys.prepare",
519
- "invoice.issuing.result"
507
+ "invoice.issuing.qys.list"
520
508
  ],
521
509
  "references": [
522
- "references/invoice-issuing-qys-ledger.md"
510
+ "references/invoice-issuing-workflow.md",
511
+ "references/invoice-issuing-form-fill-rules.md"
523
512
  ]
524
513
  },
525
514
  {
@@ -1390,73 +1379,14 @@
1390
1379
  "workflow.state"
1391
1380
  ]
1392
1381
  },
1393
- "invoice.issuing.make.prepare": {
1394
- "risk": "read-before-write",
1395
- "sourceChunks": [
1396
- "invoice.issuing.make",
1397
- "invoice.issuing.workflow"
1398
- ],
1399
- "references": [
1400
- "references/invoice-issuing-field-rules.md",
1401
- "references/invoice-issuing.md"
1402
- ],
1403
- "requiresConfirmationChain": true,
1404
- "inputFields": [
1405
- "mode",
1406
- "payload"
1407
- ],
1408
- "outputFields": [
1409
- "preview.mode",
1410
- "preview.purchaserName",
1411
- "preview.purchaserTaxNo",
1412
- "preview.invoiceType",
1413
- "preview.externalDocumentNo",
1414
- "preview.totalAmount",
1415
- "preview.taxAmount",
1416
- "preview.totalAmountWithTax",
1417
- "preview.detailCount",
1418
- "normalizedPayload",
1419
- "continuation",
1420
- "expiresInSeconds",
1421
- "workflow.workflow",
1422
- "workflow.version",
1423
- "workflow.state"
1424
- ]
1425
- },
1426
- "invoice.issuing.make.apply": {
1427
- "risk": "high-risk-write",
1428
- "sourceChunks": [
1429
- "invoice.issuing.make",
1430
- "invoice.issuing.workflow"
1431
- ],
1432
- "references": [
1433
- "references/invoice-issuing-field-rules.md",
1434
- "references/invoice-issuing.md"
1435
- ],
1436
- "requiresConfirmationChain": true,
1437
- "inputFields": [
1438
- "payload",
1439
- "continuation",
1440
- "confirm"
1441
- ],
1442
- "outputFields": [
1443
- "mode",
1444
- "serialNo",
1445
- "orderNo",
1446
- "ledgerOnly",
1447
- "result",
1448
- "workflow.workflow",
1449
- "workflow.version",
1450
- "workflow.state"
1451
- ]
1452
- },
1453
1382
  "invoice.issuing.qys.list": {
1454
1383
  "risk": "read",
1455
1384
  "sourceChunks": [
1456
1385
  "invoice.issuing.qys"
1457
1386
  ],
1458
1387
  "references": [
1459
- "references/invoice-issuing-qys-ledger.md"
1388
+ "references/invoice-issuing-workflow.md",
1389
+ "references/invoice-issuing-form-fill-rules.md"
1460
1390
  ],
1461
1391
  "requiresConfirmationChain": false,
1462
1392
  "inputFields": [
@@ -1472,65 +1402,23 @@
1472
1402
  "items[].amount",
1473
1403
  "items[].issuable",
1474
1404
  "items[].blockers",
1405
+ "groups[].contractNo",
1406
+ "groups[].contractFlowId",
1407
+ "groups[].purchaserName",
1408
+ "groups[].rowCount",
1409
+ "groups[].formDataIds",
1410
+ "groups[].totalAmount",
1411
+ "groups[].blockedRows",
1412
+ "groups[].specialInvoiceWithoutTaxNo",
1413
+ "groups[].specifications",
1414
+ "groups[].purchaserBankName",
1415
+ "groups[].purchaserBankAccount",
1416
+ "groups[].warnings",
1475
1417
  "matched",
1476
1418
  "truncated",
1477
1419
  "scanned",
1478
1420
  "scanComplete"
1479
1421
  ]
1480
- },
1481
- "invoice.issuing.qys.prepare": {
1482
- "risk": "read-before-write",
1483
- "sourceChunks": [
1484
- "invoice.issuing.qys"
1485
- ],
1486
- "references": [
1487
- "references/invoice-issuing-qys-ledger.md"
1488
- ],
1489
- "requiresConfirmationChain": true,
1490
- "inputFields": [
1491
- "formDataId",
1492
- "mode"
1493
- ],
1494
- "outputFields": [
1495
- "preview.formDataId",
1496
- "preview.contractNo",
1497
- "preview.externalDocumentNo",
1498
- "preview.totalAmount",
1499
- "preview.taxAmount",
1500
- "preview.totalAmountWithTax",
1501
- "warnings",
1502
- "ledgerRow",
1503
- "normalizedPayload",
1504
- "continuation",
1505
- "expiresInSeconds",
1506
- "workflow.workflow",
1507
- "workflow.version",
1508
- "workflow.state"
1509
- ]
1510
- },
1511
- "invoice.issuing.result": {
1512
- "risk": "read",
1513
- "sourceChunks": [
1514
- "invoice.issuing.qys"
1515
- ],
1516
- "references": [
1517
- "references/invoice-issuing-qys-ledger.md"
1518
- ],
1519
- "requiresConfirmationChain": false,
1520
- "inputFields": [
1521
- "externalDocumentNo",
1522
- "serialNo"
1523
- ],
1524
- "outputFields": [
1525
- "externalDocumentNo",
1526
- "state",
1527
- "returnCode",
1528
- "returnMessage",
1529
- "invoiceNo",
1530
- "invoiceTime",
1531
- "serialNo",
1532
- "result"
1533
- ]
1534
1422
  }
1535
1423
  },
1536
1424
  "withheldOperations": [
@@ -1719,14 +1607,9 @@
1719
1607
  },
1720
1608
  {
1721
1609
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/api-reference.md",
1722
- "status": "converted",
1723
- "operations": [
1724
- "invoice.issuing.make.apply",
1725
- "invoice.issuing.make.prepare"
1726
- ],
1727
- "references": [
1728
- "references/invoice-issuing.md"
1729
- ]
1610
+ "status": "withheld",
1611
+ "operations": [],
1612
+ "references": []
1730
1613
  },
1731
1614
  {
1732
1615
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/examples.md",
@@ -1738,21 +1621,16 @@
1738
1621
  },
1739
1622
  {
1740
1623
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/field-extraction-rules.md",
1741
- "status": "converted",
1624
+ "status": "withheld",
1742
1625
  "operations": [],
1743
- "references": [
1744
- "references/invoice-issuing-field-rules.md"
1745
- ]
1626
+ "references": []
1746
1627
  },
1747
1628
  {
1748
1629
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/references/issuing/workflow.md",
1749
1630
  "status": "converted",
1750
- "operations": [
1751
- "invoice.issuing.make.apply",
1752
- "invoice.issuing.make.prepare"
1753
- ],
1631
+ "operations": [],
1754
1632
  "references": [
1755
- "references/invoice-issuing.md"
1633
+ "references/invoice-issuing-workflow.md"
1756
1634
  ]
1757
1635
  },
1758
1636
  {
@@ -1822,8 +1700,7 @@
1822
1700
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/scripts/date_utils.py",
1823
1701
  "status": "converted",
1824
1702
  "references": [
1825
- "references/reim-workflow.md",
1826
- "references/invoice-issuing-field-rules.md"
1703
+ "references/reim-workflow.md"
1827
1704
  ],
1828
1705
  "reason": "日期处理规则已内化到报销/开票 reference 和 CLI 入参校验。"
1829
1706
  },
@@ -1849,11 +1726,8 @@
1849
1726
  },
1850
1727
  {
1851
1728
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/scripts/parse_document.py",
1852
- "status": "converted",
1853
- "references": [
1854
- "references/invoice-issuing-field-rules.md"
1855
- ],
1856
- "reason": "附件字段提取流程转换为开票字段规则,实际解析需用户确认后由 Agent 执行。"
1729
+ "status": "withheld",
1730
+ "reason": "附件字段提取原用于口述字段直接开票;直接开票接口已于 0.1.27 移除,开票字段一律以待开票合同数据为准。"
1857
1731
  },
1858
1732
  {
1859
1733
  "sourcePath": "weaver-interface/backend/business-apis/inc/weaver-e10-yepiaotong/SKILL.md",
@@ -1879,7 +1753,7 @@
1879
1753
  }
1880
1754
  ],
1881
1755
  "artifactBaseline": {
1882
- "aggregateSha256": "2e109d6e59d77fb5ea21193c438a921403b138e1b975cbba867cc27a3b222dc8",
1756
+ "aggregateSha256": "2e69c7c91fa3eb6270bc34275eef97668bb7f8a261349a8fec64c8287093db0b",
1883
1757
  "files": [
1884
1758
  {
1885
1759
  "path": "docs/_catalog.md",
@@ -1888,23 +1762,23 @@
1888
1762
  },
1889
1763
  {
1890
1764
  "path": "docs/agent-invoice.md",
1891
- "size": 5756,
1892
- "sha256": "00b5f2f6228634142d69ef05b4a1c4a5c9c9f6641e79b5d0617ab7fb696cf59c"
1765
+ "size": 6034,
1766
+ "sha256": "3f58248046021982968ce541e32ce6a34717cd135fbc7d61881d157244ffb81c"
1893
1767
  },
1894
1768
  {
1895
1769
  "path": "docs/invoice.md",
1896
- "size": 8911,
1897
- "sha256": "59dc1b342f66ef683a016d8273c7f9dcbc62d1009aae155da4dafff1d2019fc2"
1770
+ "size": 9520,
1771
+ "sha256": "88a2cc45f8049f879382e153497d1e592454ea4f48a8b6c25a7ee50dd3484612"
1898
1772
  },
1899
1773
  {
1900
1774
  "path": "skill-template/business-info.json",
1901
- "size": 8216,
1902
- "sha256": "370a45e86c6b7e33869c5df1bf08d9f22bd98fa8b157b49716e13bca0e7b63c3"
1775
+ "size": 8532,
1776
+ "sha256": "f0970ca11c0a06a5f2ee5a5113d2b72da9cfea75695247a2048d5d050539387c"
1903
1777
  },
1904
1778
  {
1905
1779
  "path": "skill-template/domains/yepiaotong.md",
1906
- "size": 2493,
1907
- "sha256": "6726bb118b0316eca20e09eb470f2efd2a9ff6490dfb28ffae7f6f42b55e7084"
1780
+ "size": 3391,
1781
+ "sha256": "46da214e9f3206ab799abf69572e3d95f7df540ba97c7ef531770bcccaf29727"
1908
1782
  },
1909
1783
  {
1910
1784
  "path": "skills/weaver-e10-yepiaotong/references/invoice-add.md",
@@ -1928,8 +1802,8 @@
1928
1802
  },
1929
1803
  {
1930
1804
  "path": "skills/weaver-e10-yepiaotong/references/invoice-detail.md",
1931
- "size": 1539,
1932
- "sha256": "ded24c9c3539045fae8d56d88fb186e3040af91e3738674e8791b541d7158893"
1805
+ "size": 3241,
1806
+ "sha256": "3cc7b883eea8c297516f34f874a954b73a31d0a42de65b7123bdd5d88090d4e1"
1933
1807
  },
1934
1808
  {
1935
1809
  "path": "skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md",
@@ -1958,18 +1832,18 @@
1958
1832
  },
1959
1833
  {
1960
1834
  "path": "skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md",
1961
- "size": 2378,
1962
- "sha256": "ff61328d9f326d1495c9ad144d13dea416d1615e36be41819b1d6b304e30db32"
1835
+ "size": 7681,
1836
+ "sha256": "a1abe8262758b85e2558c9eaacfdd875b58b0b179c38be433d74669981a4cb7c"
1963
1837
  },
1964
1838
  {
1965
- "path": "skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md",
1966
- "size": 4303,
1967
- "sha256": "bb5f34edbd6c0d3f2dc03e7b6d46a97f063bade8cd7af55241ab7ff72197a49c"
1839
+ "path": "skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md",
1840
+ "size": 14208,
1841
+ "sha256": "7df18496b018b6e6d3743913f99ad2ee61d4ba5535a3e5988a77c432f24372ce"
1968
1842
  },
1969
1843
  {
1970
- "path": "skills/weaver-e10-yepiaotong/references/invoice-issuing.md",
1971
- "size": 5624,
1972
- "sha256": "234aaff6208b5bdec0728553ae184918d4f765a8a6382a7f5177d117921f8708"
1844
+ "path": "skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md",
1845
+ "size": 16293,
1846
+ "sha256": "27ebf5ecb191e25721e0950609a28abd25b7be104a1962a7dc75cd9a38856b4d"
1973
1847
  },
1974
1848
  {
1975
1849
  "path": "skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md",
@@ -1983,8 +1857,8 @@
1983
1857
  },
1984
1858
  {
1985
1859
  "path": "skills/weaver-e10-yepiaotong/references/invoice-reim.md",
1986
- "size": 5379,
1987
- "sha256": "1fcfb53d390791599a40600b63f50333b290e0dd62e3705cdc61179f358ee617"
1860
+ "size": 7007,
1861
+ "sha256": "1cbf5119d9931ce119b56bf7318d54d4ad41603c2e489af37e4616ec63e6f387"
1988
1862
  },
1989
1863
  {
1990
1864
  "path": "skills/weaver-e10-yepiaotong/references/invoice-update.md",
@@ -1998,23 +1872,23 @@
1998
1872
  },
1999
1873
  {
2000
1874
  "path": "skills/weaver-e10-yepiaotong/references/reim-api-reference.md",
2001
- "size": 46584,
2002
- "sha256": "01999521ec8469eb7c95abac9490230a01891e8c3115bb882a3faecdc1695abb"
1875
+ "size": 37386,
1876
+ "sha256": "a3f771c5e22a68445876c0932aae4c9efcf7e161686d27b4689630bedd763a12"
2003
1877
  },
2004
1878
  {
2005
1879
  "path": "skills/weaver-e10-yepiaotong/references/reim-examples.md",
2006
- "size": 30104,
2007
- "sha256": "7e4efa74e2fff43b60dee0d9fc4f27428a4cbfcc72f02f33406dbc3a6f79b1bb"
1880
+ "size": 30450,
1881
+ "sha256": "a22d74743aeb328e03bc462d9eca0e47995a6e1dcd8c3b5a4165bc5a1cbf7bbf"
2008
1882
  },
2009
1883
  {
2010
1884
  "path": "skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md",
2011
- "size": 2882,
2012
- "sha256": "60b3ef110b172a4ea2af65959ce97022be31a3ad26a78e375a90b4cb024b6c3d"
1885
+ "size": 5034,
1886
+ "sha256": "dfe180db93c861fd197f978a02aaccfc190e5b35526c87b7a9bbccbe43200449"
2013
1887
  },
2014
1888
  {
2015
1889
  "path": "skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md",
2016
- "size": 27867,
2017
- "sha256": "9aed43028dd2eb8c6c732d1af1766cf0d7562104bf5e8fad8eaca16b84b54574"
1890
+ "size": 28152,
1891
+ "sha256": "22f0b2ccfcd082e6e5afa9b429c62c1625dc54ae747996ba81ef9e3b2c4f0d51"
2018
1892
  },
2019
1893
  {
2020
1894
  "path": "skills/weaver-e10-yepiaotong/references/reim-matching-rules.md",
@@ -2023,13 +1897,13 @@
2023
1897
  },
2024
1898
  {
2025
1899
  "path": "skills/weaver-e10-yepiaotong/references/reim-workflow.md",
2026
- "size": 26933,
2027
- "sha256": "e9b57f68c759c6692e3f6f54406cacaffd5724a006ccfc6fe0093acea3dde332"
1900
+ "size": 36495,
1901
+ "sha256": "e0093a731da8765f9c7cd89529b79f782a8d75ce87236fe4c2915622ae08091f"
2028
1902
  },
2029
1903
  {
2030
1904
  "path": "skills/weaver-e10-yepiaotong/SKILL.md",
2031
- "size": 25183,
2032
- "sha256": "f014623ec8ca67d1de5c94beefd7b9af0b75669ef3f47017f453fe190b2fa8d8"
1905
+ "size": 32380,
1906
+ "sha256": "3d06d746d374cc9f2a3af41708ec82beaabfaf49fa25fda05843455e8b246dbe"
2033
1907
  },
2034
1908
  {
2035
1909
  "path": "src/shortcuts/invoice/continuation.ts",
@@ -2043,18 +1917,18 @@
2043
1917
  },
2044
1918
  {
2045
1919
  "path": "src/shortcuts/invoice/host.ts",
2046
- "size": 18439,
2047
- "sha256": "1346531bb2556aa9b95f8a7d033101c80cd5092cdd81e1f9d5c45eaaaca57913"
1920
+ "size": 17978,
1921
+ "sha256": "236580b508c8a76e15e55fc26cdb5881e6fbf6be7c6d09e7f0104dddd4e2bbaf"
2048
1922
  },
2049
1923
  {
2050
1924
  "path": "src/shortcuts/invoice/index.ts",
2051
- "size": 15669,
2052
- "sha256": "25f5fec5a7656beb921738d1c1ce1b66c9950e7f8d645a41d2179e60f43bb6d4"
1925
+ "size": 16561,
1926
+ "sha256": "2e5e0ab2752fbb100b88817e487ba0e4607554a85290a62be136d1ca8b4fa03a"
2053
1927
  },
2054
1928
  {
2055
1929
  "path": "src/shortcuts/invoice/manifest.ts",
2056
- "size": 48875,
2057
- "sha256": "feb43a111c5fc392f27d81c72fcf322a9a49712c4cb4bc2a22a6d8ceb0ccd91d"
1930
+ "size": 51913,
1931
+ "sha256": "c45b620d5a6af77dd3949b846d2facf2e53d93fb2441cc29668fb8b06f4c7092"
2058
1932
  },
2059
1933
  {
2060
1934
  "path": "src/shortcuts/invoice/operations.ts",
@@ -2092,9 +1966,9 @@
2092
1966
  "sha256": "f49aaca7ada73c35973693d4f79f2710b3a4ab2d5ac9d4e94d437dd909e0e3fa"
2093
1967
  },
2094
1968
  {
2095
- "path": "src/shortcuts/invoice/operations/issuing.ts",
2096
- "size": 9442,
2097
- "sha256": "79126500d97101c54ca678b35ea45551c32683216ad242faceaf36cd3ae6cbc6"
1969
+ "path": "src/shortcuts/invoice/operations/issuing-qys.ts",
1970
+ "size": 17278,
1971
+ "sha256": "638464430eb565e295e9d054896954d7269d94273e388eff47abca27718e0c2f"
2098
1972
  },
2099
1973
  {
2100
1974
  "path": "src/shortcuts/invoice/operations/list.ts",
@@ -2108,13 +1982,13 @@
2108
1982
  },
2109
1983
  {
2110
1984
  "path": "src/shortcuts/invoice/operations/registry.ts",
2111
- "size": 3995,
2112
- "sha256": "7fe640ce5efcc09d88e866ccc1f0f58b51b9a915b70304a530a3f90e4fddeb07"
1985
+ "size": 3993,
1986
+ "sha256": "bd3747ddd6595573e3f53c2ceb185022a78edd436cd961a3883a4a8ac37495f7"
2113
1987
  },
2114
1988
  {
2115
1989
  "path": "src/shortcuts/invoice/operations/reim.ts",
2116
- "size": 20298,
2117
- "sha256": "d2fe6961ce749346a9f1c85bacb4fbb74eabe8ae8b8938e834e2f0e75ea0be02"
1990
+ "size": 24202,
1991
+ "sha256": "d196bceb77e0114afea5be0e810e1ffdc570836514d155d482a283e29c3ef2ed"
2118
1992
  },
2119
1993
  {
2120
1994
  "path": "src/shortcuts/invoice/operations/shared.ts",
@@ -2143,18 +2017,23 @@
2143
2017
  },
2144
2018
  {
2145
2019
  "path": "test/business/invoice-host.test.ts",
2146
- "size": 8834,
2147
- "sha256": "d959a51a25c73ab5ffb9bd348af00eabe1b7ab417e67a3fdec583f7962c9a18a"
2020
+ "size": 10406,
2021
+ "sha256": "2a2f59fa1fc31a35de66e5ed92b981cf923fbbaae1a735eff6a2ebe3b5b172ec"
2148
2022
  },
2149
2023
  {
2150
2024
  "path": "test/business/invoice-operations.test.ts",
2151
- "size": 39901,
2152
- "sha256": "10fcd42b741b24242fda0ad20c67eb5a3ac7572ea369af6c5fc2ae2fc2de205f"
2025
+ "size": 38892,
2026
+ "sha256": "46e4e123b519811507adc461983d4c0f79f41ecd78b1c4e9dd941c63648dde71"
2027
+ },
2028
+ {
2029
+ "path": "test/business/invoice-qys.test.ts",
2030
+ "size": 16728,
2031
+ "sha256": "e5a0bacb534d90c22033a645dd4043e42d3da466cdd83bb418bbc0934fd21e62"
2153
2032
  },
2154
2033
  {
2155
2034
  "path": "test/skills/layout.test.ts",
2156
- "size": 33545,
2157
- "sha256": "7e11f8edc8c364ecb75a067e59337d5d0eae6af0ad408f626191aed3d5210345"
2035
+ "size": 36046,
2036
+ "sha256": "c2331bf6ff823e6b5d1a0033fcd69ba420af498beaf8d5d5ef579d9e4f3cd32f"
2158
2037
  }
2159
2038
  ]
2160
2039
  },
@@ -2163,6 +2042,7 @@
2163
2042
  "本次扫描移除旧来源带入的 invoice.customer.* 与 invoice.red.*,因为修正资料包没有客户档案查询或红字发票红冲接口文档。",
2164
2043
  "invoice.import.prepare/apply 对应 invoice-all-in-one.md;filedMap 在 inputSchema 中保留 JSON object,仅在 multipart 提交前序列化。",
2165
2044
  "invoice-share、invoice-transfer、invoice-tag 仍暂缓暴露,需要补稳定人员/标签来源、确认链和写后回查契约。",
2166
- "2026-09-20:补齐 invoice manifest 的 outputSchema,并在 operationImpact.outputFields 记录返回值字段覆盖。"
2045
+ "2026-09-20:补齐 invoice manifest 的 outputSchema,并在 operationImpact.outputFields 记录返回值字段覆盖。",
2046
+ "2026-10-23:AI 开票主链路改为按契约锁台账发起开票流程草稿(invoice-issuing-workflow.md,复用 weaver-e10-workflow 的 createForm/createRequest);invoice.issuing.qys.list 新增 groups 汇总;直接开票降为兜底。"
2167
2047
  ]
2168
2048
  }
@@ -5,7 +5,7 @@ display_name_en: Weaver E10 Yimiaoban IM
5
5
  description: 泛微 E10 易秒办即时通讯能力(单聊/群聊消息、发送与必达、群组管理、会话与系统消息),通过 weaver-work-cli im 命令执行。
6
6
  description_zh: 泛微 E10 易秒办即时通讯能力:拉取单聊/群聊/系统消息、发送与撤回消息、发必达、群组管理(建群/邀人/踢人/退群/解散/公告)、会话列表、文件上传下载与人员解析,全部通过 weaver-work-cli im 命令执行,写操作走 prepare→apply 确认链。
7
7
  description_en: Weaver E10 Yimiaoban (IM) capabilities - fetching single/group/system messages, sending, withdrawing and ding messages, group management, sessions, file upload/download and people resolution, executed through the weaver-work-cli im command with a prepare-then-apply confirmation chain for writes.
8
- version: 1.1.0
8
+ version: 1.1.1
9
9
  author: 泛微网络科技股份有限公司
10
10
  agent_created: true
11
11
  requires:
@@ -26,7 +26,14 @@ cliHelp: "weaver-work-cli im --help"
26
26
 
27
27
  ## 认证与请求头契约
28
28
 
29
- **登录与会话一律由 `weaver-e10-shared` 共享规则和 `weaver-work-cli auth ...` 命令体系托管**(小 E 宿主环境优先 `weaver-work-cli auth xiaoe`,其它环境由用户提供自有域名后走 `weaver-work-cli auth login`)。本技能**不自建登录**:禁止扫码/账号密码/自建 OAuth 取 token,禁止使用浏览器自动化登录,也不接触、打印、转存任何认证文件。
29
+ **登录与会话一律由 `weaver-e10-shared` 共享规则和 `weaver-work-cli auth ...` 命令体系托管**。业务命令返回 `authentication` / `session_expired` 时立即停止,并强制执行以下分流:
30
+
31
+ - Agent 复用任务开始时的宿主判定,禁止调用任何其他登录 Skill。
32
+ - 明确为 XiaoE 时,只执行 `weaver-work-cli auth xiaoe`,不得改用 `auth login`;返回 `xiaoe_credential_unavailable` 时停止,不回退浏览器登录。
33
+ - 非 XiaoE 时不得执行 `auth xiaoe`;取得用户确认的真实 E10 登录域名后,执行 `weaver-work-cli auth login --base-url "<用户确认的 E10 登录域名>" --agent_type "<当前智能体名称>"`。
34
+ - 会话恢复后只读操作可以重放;写操作不得复用旧 continuation,必须重新 prepare 和确认;`partial` / `write_uncertain` 必须先只读回查。
35
+
36
+ 本技能**不自建登录**:禁止扫码/账号密码/自建 OAuth 取 token,禁止使用浏览器自动化登录,也不接触、打印、转存任何认证文件。
30
37
 
31
38
  `weaver-work-cli im` 发往 E10 的每个请求都由 CLI 统一注入请求头三件套,业务入参里不要传这些字段,也不要手工拼装请求头;唯一权威声明见 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md) 的「请求头契约」章节。每个 operation 都已在请求头中带齐,缺任一服务端都无法识别操作者或会判定登录失效。
32
39
 
@@ -50,5 +50,5 @@ weaver-work-cli --json im run im.i18n.labels --input-json '{"ids":["1001","1002"
50
50
 
51
51
  - 文件不存在/过大/类型不支持:按业务错误信息告知用户。
52
52
  - 上传到一半网络中断:CLI 不会假装成功,重试需重新 upload(上传本身无副作用)。
53
- - 下载失败(401/HTTP 非 200):按错误信息告知用户先完成 `weaver-work-cli auth login`;`output_exists` 时换路径,不覆盖既有文件。
53
+ - 下载失败(401/认证错误):停止下载并执行入口 `SKILL.md` 的登录失效强制分流,禁止直接指定登录命令或调用其他登录 Skill;其它 HTTP 非 200 按业务错误报告。`output_exists` 时换路径,不覆盖既有文件。
54
54
  - 只读/上传操作无确认链;认证失败参照共享规则。
@@ -60,4 +60,4 @@ weaver-work-cli --json im run im.msg.top.sync --input-json '{"groupId":"17883342
60
60
 
61
61
  - `error.code=1303` 语义是"无聊天记录",按成功空列表处理(见 `emptyReason`),不要报错重试。
62
62
  - 群不存在/无权限会返回 `1209` 或业务错误,向用户说明该群不可读。
63
- - `context_mismatch`/认证错误:提示先 `weaver-work-cli auth login` 再重试。
63
+ - `context_mismatch` / 认证错误:停止查询并执行入口 `SKILL.md` 的登录失效强制分流;XiaoE 只走 `auth xiaoe`,非 XiaoE 只走 `auth login`,禁止其他登录 Skill。
@@ -2265,7 +2265,7 @@
2265
2265
  }
2266
2266
  },
2267
2267
  "artifactBaseline": {
2268
- "aggregateSha256": "05803f5e794c7c98dfc4b5ab90c50d4e764db8bcb3c694824503038e284bd514",
2268
+ "aggregateSha256": "cf14e51c941443320eddf479be378e81cbde4552413793af946a349285bcd521",
2269
2269
  "files": [
2270
2270
  {
2271
2271
  "path": "docs/im.md",
@@ -2282,8 +2282,8 @@
2282
2282
  {
2283
2283
  "path": "skills/weaver-e10-yimiaoban/SKILL.md",
2284
2284
  "role": "generated-reference",
2285
- "size": 12684,
2286
- "sha256": "b839b301d16b8cdee98b7cde87d853746be51957eff96c3972563de960daaeb1"
2285
+ "size": 13304,
2286
+ "sha256": "a5bb8e8c7f32dd4f8036a548580c6f9ecb384d4f1db5f69c845ba8585d710311"
2287
2287
  },
2288
2288
  {
2289
2289
  "path": "skills/weaver-e10-yimiaoban/references/ding-write.md",
@@ -2306,8 +2306,8 @@
2306
2306
  {
2307
2307
  "path": "skills/weaver-e10-yimiaoban/references/file-user-i18n.md",
2308
2308
  "role": "generated-reference",
2309
- "size": 4439,
2310
- "sha256": "9d7a1e4d3757b15b51bec2020590e5dee7d9742c274c8db1ebc05b92c707543c"
2309
+ "size": 4544,
2310
+ "sha256": "028bc471ddd488210a99c5dc3ef7f97852e966c752b160cea3b0c084dc5e139f"
2311
2311
  },
2312
2312
  {
2313
2313
  "path": "skills/weaver-e10-yimiaoban/references/group-read.md",
@@ -2324,8 +2324,8 @@
2324
2324
  {
2325
2325
  "path": "skills/weaver-e10-yimiaoban/references/msg-read.md",
2326
2326
  "role": "generated-reference",
2327
- "size": 5356,
2328
- "sha256": "1ff0dd805f194d4951b21d6b723b0e00f3c395c624fe42db1b7835044d783878"
2327
+ "size": 5463,
2328
+ "sha256": "a58fc66d996afcc5c1aac6e3ed3d3fe868cb8e048c15ad945c9140e797594b39"
2329
2329
  },
2330
2330
  {
2331
2331
  "path": "skills/weaver-e10-yimiaoban/references/msg-write.md",
@@ -2372,8 +2372,8 @@
2372
2372
  {
2373
2373
  "path": "src/shortcuts/im/host.ts",
2374
2374
  "role": "generated-cli",
2375
- "size": 23007,
2376
- "sha256": "94ad7e6903353915557460e0e86f143a80d8010670cd7776378b7bb6333e9bd5"
2375
+ "size": 22933,
2376
+ "sha256": "a948eb029839bf8a2275a6b45a06d07d75ef606880559377d9c9015cb31c42eb"
2377
2377
  },
2378
2378
  {
2379
2379
  "path": "src/shortcuts/im/index.ts",
@@ -114,7 +114,12 @@ cliHelp: "weaver-work-cli asset --help"
114
114
  - 失败后先看进程退出码、`error.type`、`error.subtype` 和 `error.message`
115
115
  - **除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个 operation**
116
116
  - 写请求已经发出后,遇到结果不确定必须停止;不要把写操作的 apply 当成可重试读操作
117
- - **错误为 `authentication`(未登录)或 `session_expired`(登录态失效)时:立即停止当前操作,按共享规则用宿主提问/弹框让用户输入 E10 登录域名或选择已有 profile,完成登录后再继续原操作。**
117
+ - **错误为 `authentication`(未登录)或 `session_expired`(登录态失效)时:立即停止当前操作并读取共享认证规则。**
118
+ - 登录失效的认证方式必须由 Agent 复用本任务开始时的宿主判定,禁止调用任何其他登录 Skill。
119
+ - 明确为 XiaoE 时,只执行 `weaver-work-cli auth xiaoe`,不得改用 `auth login`。
120
+ - 统一登录返回 `authentication/xiaoe_credential_unavailable` 时停止并反馈宿主凭据不可用,不自动回退浏览器登录。
121
+ - 非 XiaoE 时不得执行 `auth xiaoe`;取得用户确认的真实 E10 登录域名后,执行 `weaver-work-cli auth login --base-url "<用户确认的 E10 登录域名>" --agent_type "<当前智能体名称>"`。
122
+ - 登录恢复后读操作可重新执行;写操作不得复用旧 continuation,必须重新 prepare 并重新确认。已返回 `partial/write_uncertain` 时先只读回查,禁止直接重放写入。
118
123
 
119
124
  ### 4) 写操作确认链
120
125