weaver-work-cli 0.1.50 → 0.1.53

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 (191) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/{attachment-content-EJYIOJPH.js → attachment-content-W3TSJC3Y.js} +3 -3
  3. package/dist/chunks/{chunk-BFKLQLBK.js → chunk-2J3XY4ED.js} +7 -7
  4. package/dist/chunks/{chunk-K67FODVC.js → chunk-6GCXWKG6.js} +1 -1
  5. package/dist/chunks/{chunk-WNJUGI2F.js → chunk-76PRVYH4.js} +1 -1
  6. package/dist/chunks/{chunk-RYFRGTUV.js → chunk-DEHJ7PMA.js} +4 -4
  7. package/dist/chunks/{chunk-3NCFFHB2.js → chunk-IF33CG4V.js} +1 -1
  8. package/dist/chunks/{chunk-YB3AJYPY.js → chunk-PE334WL3.js} +4 -4
  9. package/dist/chunks/{chunk-MCZG6HPM.js → chunk-QQXMHM3J.js} +2 -2
  10. package/dist/chunks/{chunk-7ECB22G3.js → chunk-U7ROML5E.js} +23 -23
  11. package/dist/chunks/{chunk-7AYQJSFY.js → chunk-WTLQGS6D.js} +2 -2
  12. package/dist/chunks/{chunk-6T53BSWZ.js → chunk-XPQN4E5O.js} +50 -19
  13. package/dist/chunks/{chunk-HARQF5IP.js → chunk-Z4G7LLDD.js} +25 -25
  14. package/dist/chunks/{conflict-C4UDHCWV.js → conflict-57WDJWL7.js} +2 -2
  15. package/dist/chunks/{contract-VUC6JOPG.js → contract-LJRAXVZU.js} +8587 -1421
  16. package/dist/chunks/{create-flow-6OG2LYBD.js → create-flow-3FMMZBCA.js} +6 -6
  17. package/dist/chunks/{data-QO7QWOIV.js → data-WK5CQXNF.js} +17 -32
  18. package/dist/chunks/{env-WP57TF2S.js → env-JYZE3BZB.js} +2 -2
  19. package/dist/chunks/{factory-VUXI7N5C.js → factory-66SCIKW3.js} +1 -1
  20. package/dist/chunks/{group-chat-UQRGXILK.js → group-chat-MNRYMLNG.js} +3 -3
  21. package/dist/chunks/{invoice-E7GOITEU.js → invoice-V7ZTITUO.js} +725 -205
  22. package/dist/chunks/{meeting-4BBLVAWM.js → meeting-IIY4UAJL.js} +10 -10
  23. package/dist/chunks/{recruit-stage-FKWS5UQF.js → recruit-stage-XCMVEQA2.js} +718 -131
  24. package/dist/chunks/{registry-V4CHRQDI.js → registry-CJOVECZD.js} +1 -1
  25. package/dist/chunks/{registry-5CRCN2TV.js → registry-METZ2LWE.js} +10 -10
  26. package/dist/chunks/{room-recommend-AYR3UG7R.js → room-recommend-YFY7HTOF.js} +4 -4
  27. package/dist/chunks/{schedule-JZEFIXUS.js → schedule-6I63TERA.js} +4 -4
  28. package/dist/chunks/smart-extract-FOUYNIG3.js +2882 -0
  29. package/dist/chunks/{workflow-3ZAF2J5E.js → workflow-YHXFIU63.js} +1 -1
  30. package/dist/index.js +11 -6
  31. package/dist/shortcuts/contract/manifest.js +251 -0
  32. package/dist/shortcuts/contract/ooxml/docx-table.js +233 -0
  33. package/dist/shortcuts/contract/operations/card-action.js +1165 -0
  34. package/dist/shortcuts/contract/operations/card-ebdf-list.js +571 -0
  35. package/dist/shortcuts/contract/operations/card-plan.js +327 -0
  36. package/dist/shortcuts/contract/operations/card-risk-report.js +565 -0
  37. package/dist/shortcuts/contract/operations/card.js +6 -5
  38. package/dist/shortcuts/contract/operations/docx-fillfromquote.js +532 -0
  39. package/dist/shortcuts/contract/operations/docx-verify.js +258 -0
  40. package/dist/shortcuts/contract/operations/elements-build.js +761 -0
  41. package/dist/shortcuts/contract/operations/elements-spec.js +216 -0
  42. package/dist/shortcuts/contract/operations/first-screen.js +588 -0
  43. package/dist/shortcuts/contract/operations/flow.js +81 -25
  44. package/dist/shortcuts/contract/operations/ledger.js +438 -0
  45. package/dist/shortcuts/contract/operations/modeltext.js +132 -0
  46. package/dist/shortcuts/contract/operations/op-resolver.js +22 -0
  47. package/dist/shortcuts/contract/operations/performance.js +104 -3
  48. package/dist/shortcuts/contract/operations/quote.js +131 -25
  49. package/dist/shortcuts/contract/operations/quotescreen.js +529 -0
  50. package/dist/shortcuts/contract/operations/registry.js +30 -0
  51. package/dist/shortcuts/contract/operations/review.js +73 -58
  52. package/dist/shortcuts/contract/operations/summary-validate.js +293 -0
  53. package/dist/shortcuts/contract/operations/summary.js +4 -2
  54. package/dist/shortcuts/contract/operations/triage.js +1100 -0
  55. package/dist/shortcuts/contract/operations/upload.js +48 -7
  56. package/dist/shortcuts/contract/prewarm-cache.js +90 -0
  57. package/dist/shortcuts/contract/prewarm.js +88 -0
  58. package/dist/shortcuts/contract/upload-cache.js +49 -4
  59. package/dist/shortcuts/data/index.js +1 -6
  60. package/dist/shortcuts/data/manifest.js +2 -2
  61. package/dist/shortcuts/data/operations/index.js +1 -1
  62. package/dist/shortcuts/data/operations/query.js +23 -46
  63. package/dist/shortcuts/index.js +5 -0
  64. package/dist/shortcuts/invoice/index.js +0 -12
  65. package/dist/shortcuts/invoice/manifest.js +200 -49
  66. package/dist/shortcuts/invoice/operations/registry.js +4 -2
  67. package/dist/shortcuts/invoice/operations/reim-relation.js +438 -0
  68. package/dist/shortcuts/invoice/operations/shared.js +3 -19
  69. package/dist/shortcuts/invoice/operations/upload-and-validate.js +109 -73
  70. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -2
  71. package/dist/shortcuts/recruit-stage/operations/jd-create.js +6 -2
  72. package/dist/shortcuts/recruit-stage/operations/list.js +217 -1
  73. package/dist/shortcuts/recruit-stage/operations/resume-import.js +144 -158
  74. package/dist/shortcuts/recruit-stage/operations/search.js +348 -0
  75. package/dist/shortcuts/recruit-stage/shared.js +5 -0
  76. package/dist/shortcuts/recruit-stage/tag-lookup.js +136 -0
  77. package/dist/shortcuts/smart-extract/constants.js +79 -0
  78. package/dist/shortcuts/smart-extract/continuation.js +71 -0
  79. package/dist/shortcuts/smart-extract/errors.js +68 -0
  80. package/dist/shortcuts/smart-extract/host.js +191 -0
  81. package/dist/shortcuts/smart-extract/index.js +105 -0
  82. package/dist/shortcuts/smart-extract/ledger.js +70 -0
  83. package/dist/shortcuts/smart-extract/manifest.js +35 -0
  84. package/dist/shortcuts/smart-extract/operations/attachment.js +212 -0
  85. package/dist/shortcuts/smart-extract/operations/batch.js +67 -0
  86. package/dist/shortcuts/smart-extract/operations/config.js +118 -0
  87. package/dist/shortcuts/smart-extract/operations/fill.js +492 -0
  88. package/dist/shortcuts/smart-extract/operations/preview.js +174 -0
  89. package/dist/shortcuts/smart-extract/operations/registry.js +34 -0
  90. package/dist/shortcuts/smart-extract/operations/save.js +355 -0
  91. package/dist/shortcuts/smart-extract/operations/shared.js +191 -0
  92. package/dist/shortcuts/smart-extract/operations/structure.js +401 -0
  93. package/dist/shortcuts/smart-extract/operations/target.js +167 -0
  94. package/dist/shortcuts/smart-extract/operations/types.js +22 -0
  95. package/dist/shortcuts/smart-extract/operations/validate.js +454 -0
  96. package/dist/shortcuts/workflow/operations/form.js +68 -33
  97. package/dist/shortcuts/workflow/operations/read.js +19 -1
  98. package/docs/SKILL.md +1 -1
  99. package/docs/_catalog.md +3 -0
  100. package/docs/agent-invoice.md +5 -7
  101. package/docs/data.md +5 -1
  102. package/docs/fna.md +14 -1
  103. package/docs/invoice.md +7 -5
  104. package/docs/smart-extract.md +156 -0
  105. package/package.json +1 -1
  106. package/skill-template/business-info.json +16 -1
  107. package/skill-template/domains/qiyecheng.md +2 -0
  108. package/skill-template/domains/smart-extract.md +16 -0
  109. package/skill-template/domains/yepiaotong.md +2 -2
  110. package/skills/weaver-e10-data/references/scene-and-misc.md +4 -3
  111. package/skills/weaver-e10-jinchengda/SKILL.md +223 -35
  112. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +47 -481
  113. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +11 -11
  114. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +3 -3
  115. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
  116. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +32 -16
  117. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +478 -0
  118. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
  119. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +2 -2
  120. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +39 -61
  121. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +18 -13
  122. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +2 -2
  123. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -6
  124. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +6 -4
  125. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +3 -3
  126. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +263 -0
  127. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +525 -0
  128. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +36 -0
  129. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +128 -0
  130. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +87 -0
  131. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +80 -54
  132. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +110 -14
  133. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +19 -21
  134. package/skills/weaver-e10-jinchengda/references/orchestration.md +12 -12
  135. package/skills/weaver-e10-jinchengda/references/source-manifest.json +1 -6
  136. package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +2 -1
  137. package/skills/weaver-e10-qiyecheng/SKILL.md +37 -0
  138. package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +14 -0
  139. package/skills/weaver-e10-qiyecheng/references/budget.md +14 -0
  140. package/skills/weaver-e10-qiyecheng/references/catalog.md +25 -0
  141. package/skills/weaver-e10-qiyecheng/references/expense-center.md +8 -0
  142. package/skills/weaver-e10-qiyecheng/references/expense-chart.md +9 -0
  143. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +13 -0
  144. package/skills/weaver-e10-qiyecheng/references/loan-management.md +14 -0
  145. package/skills/weaver-e10-qiyecheng/references/self-hosted-mode.md +239 -0
  146. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +34 -27
  147. package/skills/weaver-e10-recruit-stage/SKILL.md +62 -4
  148. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +42 -8
  149. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +79 -0
  150. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +11 -3
  151. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +3 -2
  152. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +153 -0
  153. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +7 -4
  154. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
  155. package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +66 -0
  156. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +156 -42
  157. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +122 -0
  158. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +36 -8
  159. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +157 -0
  160. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +35 -0
  161. package/skills/weaver-e10-smart-extract/SKILL.md +180 -0
  162. package/skills/weaver-e10-smart-extract/references/api-contract.md +71 -0
  163. package/skills/weaver-e10-smart-extract/references/result-format.md +102 -0
  164. package/skills/weaver-e10-smart-extract/references/troubleshooting.md +106 -0
  165. package/skills/weaver-e10-workflow/references/workflow-create.md +6 -5
  166. package/skills/weaver-e10-workflow/references/workflow-edit.md +1 -1
  167. package/skills/weaver-e10-workflow/references/workflow-query.md +1 -1
  168. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  169. package/skills/weaver-e10-yepiaotong/SKILL.md +46 -33
  170. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -0
  171. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +1 -1
  172. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +19 -2
  173. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +8 -2
  174. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +407 -0
  175. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +12 -8
  176. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +97 -39
  177. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +91 -2
  178. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +1 -1
  179. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +12 -12
  180. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +8 -4
  181. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +136 -91
  182. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +109 -23
  183. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +110 -43
  184. package/dist/shortcuts/invoice/operations/validate-preview.js +0 -40
  185. package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +0 -279
  186. package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +0 -450
  187. package/skills/weaver-e10-jinchengda/scripts/render_ebdf_list_card.py +0 -265
  188. package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +0 -358
  189. package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +0 -588
  190. package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +0 -118
  191. package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +0 -40
package/README.md CHANGED
@@ -478,7 +478,7 @@ weaver-work-cli --json invoice enterprise list --input-json '{"page_size":10,"st
478
478
  weaver-work-cli --json invoice get --fid INVOICE_FID
479
479
  weaver-work-cli --json invoice upload --file ./invoice.pdf
480
480
  weaver-work-cli --json invoice ocr preview --file ./invoice.pdf
481
- weaver-work-cli --json invoice validate preview --fid INVOICE_FID --scope personal
481
+ weaver-work-cli --json invoice run invoice.upload-and-validate --input-json '{"file":"./invoice.pdf"}'
482
482
  weaver-work-cli --json invoice download --fid INVOICE_FID --file-id FILE_ID --output ./invoice.pdf
483
483
  ```
484
484
 
@@ -8,9 +8,9 @@ import {
8
8
  looksLikeFileId,
9
9
  meetingAttachmentContentOperations,
10
10
  parseFileIdList
11
- } from "./chunk-7AYQJSFY.js";
12
- import "./chunk-3NCFFHB2.js";
13
- import "./chunk-K67FODVC.js";
11
+ } from "./chunk-WTLQGS6D.js";
12
+ import "./chunk-IF33CG4V.js";
13
+ import "./chunk-6GCXWKG6.js";
14
14
  import "./chunk-7BDPM5ST.js";
15
15
  import "./chunk-UG5G54VL.js";
16
16
  import "./chunk-BUSC6UAE.js";
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-3NCFFHB2.js";
5
+ } from "./chunk-IF33CG4V.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-K67FODVC.js";
10
+ } from "./chunk-6GCXWKG6.js";
11
11
 
12
12
  // src/shortcuts/meeting/operations/eb/group-chat.ts
13
13
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
159
159
  if (addressText === "[object Object]") addressText = "";
160
160
  if (addressText) {
161
161
  try {
162
- const { resolveAddressRoom } = await import("./create-flow-6OG2LYBD.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-3FMMZBCA.js");
163
163
  const room = await resolveAddressRoom(env, addressText);
164
164
  if (room?.name) addressText = room.name;
165
165
  } catch {
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
201
201
  const group = String(groupId).trim();
202
202
  if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
203
203
  try {
204
- const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-VUXI7N5C.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-66SCIKW3.js");
205
205
  const session = await env.host.getSession();
206
206
  await env.host.request({
207
207
  method: "POST",
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
219
219
  return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
220
220
  }
221
221
  try {
222
- const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
222
+ const { getMeetingOperation } = await import("./registry-METZ2LWE.js");
223
223
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
224
224
  const read = await detail.handler({ id }, env);
225
225
  const main = read?.data?.data ?? read?.data?.main ?? {};
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
235
235
  }
236
236
  async function searchMyRequests(env, options = {}) {
237
237
  try {
238
- const { getWorkflowOperation } = await import("./registry-V4CHRQDI.js");
238
+ const { getWorkflowOperation } = await import("./registry-CJOVECZD.js");
239
239
  const op = getWorkflowOperation("workflow.search");
240
240
  const wfEnv = await buildWorkflowEnv(env);
241
241
  const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
267
267
  const target = String(requestId).trim();
268
268
  if (target === "") return null;
269
269
  try {
270
- const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
270
+ const { getMeetingOperation } = await import("./registry-METZ2LWE.js");
271
271
  const list = getMeetingOperation("meeting.eb.meeting.list");
272
272
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
273
273
  const page = await list.handler({ pageSize: 30 }, env);
@@ -2329,7 +2329,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2329
2329
  );
2330
2330
  }
2331
2331
  if (endpoint.interfacePk === "create_meeting") {
2332
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-C4UDHCWV.js");
2332
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-57WDJWL7.js");
2333
2333
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2334
2334
  }
2335
2335
  const pkQuery = writePkQuery(endpoint, payload);
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-3NCFFHB2.js";
5
+ } from "./chunk-IF33CG4V.js";
6
6
 
7
7
  // src/shortcuts/meeting/operations/eb/cache.ts
8
8
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -12,7 +12,7 @@ import {
12
12
  meetingValidationError,
13
13
  queryBody,
14
14
  toIdCsv
15
- } from "./chunk-K67FODVC.js";
15
+ } from "./chunk-6GCXWKG6.js";
16
16
 
17
17
  // src/shortcuts/meeting/operations/eb/conflict.ts
18
18
  var ACTIVE_MT_STATUS = "1,2,8,9";
@@ -296,7 +296,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
296
296
  const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
297
297
  const nameLike = items.filter((item) => !/^\d+$/u.test(item));
298
298
  if (nameLike.length > 0) {
299
- const { resolveMemberIdsByName } = await import("./schedule-JZEFIXUS.js");
299
+ const { resolveMemberIdsByName } = await import("./schedule-6I63TERA.js");
300
300
  const idsByName = await resolveMemberIdsByName(env, nameLike);
301
301
  const resolved = items.map((item) => idsByName.get(item) ?? item);
302
302
  payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
@@ -429,7 +429,7 @@ var ebConflictRoom = {
429
429
  let addressId = String(args.address ?? "").trim();
430
430
  let resolvedRoom = null;
431
431
  if (!addressId && String(args.room_name ?? "").trim()) {
432
- const { resolveAddressRoom } = await import("./create-flow-6OG2LYBD.js");
432
+ const { resolveAddressRoom } = await import("./create-flow-3FMMZBCA.js");
433
433
  const resolved = await resolveAddressRoom(env, String(args.room_name));
434
434
  if (!resolved?.id) {
435
435
  throw meetingValidationError(
@@ -639,7 +639,7 @@ async function findCommonFreeSlots(env, input) {
639
639
  const scheduleItems = [];
640
640
  if (includeSchedule) {
641
641
  try {
642
- const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-JZEFIXUS.js");
642
+ const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-6I63TERA.js");
643
643
  const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
644
644
  const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
645
645
  const flow = await runScheduleConflictFlow(env, {
@@ -5,7 +5,7 @@ import {
5
5
  ebBusinessSuccess,
6
6
  meetingSuccess,
7
7
  meetingValidationError
8
- } from "./chunk-K67FODVC.js";
8
+ } from "./chunk-6GCXWKG6.js";
9
9
 
10
10
  // src/shortcuts/meeting/operations/env.ts
11
11
  import { existsSync } from "node:fs";
@@ -4,7 +4,7 @@ import {
4
4
  cacheScopeSuffix,
5
5
  readCache,
6
6
  writeCache
7
- } from "./chunk-WNJUGI2F.js";
7
+ } from "./chunk-76PRVYH4.js";
8
8
  import {
9
9
  EB_BASE,
10
10
  SCHEMA_DATETIME_MINUTE,
@@ -13,7 +13,7 @@ import {
13
13
  meetingSuccess,
14
14
  queryBody,
15
15
  schemaOf
16
- } from "./chunk-K67FODVC.js";
16
+ } from "./chunk-6GCXWKG6.js";
17
17
 
18
18
  // src/shortcuts/meeting/operations/eb/usage-cache.ts
19
19
  var USAGE_TTL_MS = 5 * 60 * 1e3;
@@ -88,7 +88,7 @@ async function clearCache(env, key) {
88
88
  try {
89
89
  const { rm } = await import("node:fs/promises");
90
90
  const { join } = await import("node:path");
91
- const { meetingStateDir } = await import("./env-WP57TF2S.js");
91
+ const { meetingStateDir } = await import("./env-JYZE3BZB.js");
92
92
  await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
93
93
  } catch {
94
94
  }
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
221
221
  const counts = /* @__PURE__ */ new Map();
222
222
  let requests = 0;
223
223
  try {
224
- const { getMeetingOperation } = await import("./registry-5CRCN2TV.js");
224
+ const { getMeetingOperation } = await import("./registry-METZ2LWE.js");
225
225
  const listOp = getMeetingOperation("meeting.eb.meeting.list");
226
226
  let seen = 0;
227
227
  let total = 0;
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  readCache,
5
5
  writeCache
6
- } from "./chunk-WNJUGI2F.js";
6
+ } from "./chunk-76PRVYH4.js";
7
7
  import {
8
8
  SCHEMA_DATETIME_MINUTE,
9
9
  meetingSuccess,
10
10
  meetingValidationError,
11
11
  schemaOf
12
- } from "./chunk-K67FODVC.js";
12
+ } from "./chunk-6GCXWKG6.js";
13
13
 
14
14
  // src/shortcuts/meeting/operations/eb/schedule.ts
15
15
  var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
@@ -5,35 +5,35 @@ import {
5
5
  listMeetingAttachments,
6
6
  meetingAttachmentContentOperations,
7
7
  renderDocx
8
- } from "./chunk-7AYQJSFY.js";
8
+ } from "./chunk-WTLQGS6D.js";
9
9
  import {
10
10
  meetingEbGroupChatOperations
11
- } from "./chunk-BFKLQLBK.js";
11
+ } from "./chunk-2J3XY4ED.js";
12
12
  import {
13
13
  meetingEbCreateFlowOperations
14
- } from "./chunk-HARQF5IP.js";
14
+ } from "./chunk-Z4G7LLDD.js";
15
15
  import {
16
16
  ebMeetingWritePreflight,
17
17
  meetingEbConflictOperations
18
- } from "./chunk-RYFRGTUV.js";
18
+ } from "./chunk-DEHJ7PMA.js";
19
19
  import {
20
20
  meetingEbScheduleOperations
21
- } from "./chunk-MCZG6HPM.js";
21
+ } from "./chunk-QQXMHM3J.js";
22
22
  import {
23
23
  ebRoomRecommendOperation,
24
24
  recommendRooms,
25
25
  rememberFrequentRoom
26
- } from "./chunk-YB3AJYPY.js";
26
+ } from "./chunk-PE334WL3.js";
27
27
  import {
28
28
  cacheScopeSuffix,
29
29
  readCache,
30
30
  writeCache
31
- } from "./chunk-WNJUGI2F.js";
31
+ } from "./chunk-76PRVYH4.js";
32
32
  import {
33
33
  meetingEnvOperations,
34
34
  meetingStateDir,
35
35
  resolveMeetingEnvMode
36
- } from "./chunk-3NCFFHB2.js";
36
+ } from "./chunk-IF33CG4V.js";
37
37
  import {
38
38
  EB_BASE,
39
39
  EB_ENDPOINTS,
@@ -65,7 +65,7 @@ import {
65
65
  toIdString,
66
66
  verifyLease,
67
67
  writeBody
68
- } from "./chunk-K67FODVC.js";
68
+ } from "./chunk-6GCXWKG6.js";
69
69
  import {
70
70
  CONTINUATION_TTL_SECONDS
71
71
  } from "./chunk-7BDPM5ST.js";
@@ -2229,7 +2229,7 @@ var meetingAttachmentAttach = {
2229
2229
  if (mode === "append" && existingIds.length === 0) {
2230
2230
  existingIds.push(...beforeIds);
2231
2231
  }
2232
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2232
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
2233
2233
  const list = getMeetingOperation2("meeting.eb.meeting.list");
2234
2234
  let fileId = incomingFileId;
2235
2235
  let name = String(args.name ?? "").trim();
@@ -2317,7 +2317,7 @@ function textOf(value) {
2317
2317
  return value === void 0 || value === null ? "" : String(value);
2318
2318
  }
2319
2319
  async function readMinute(env, id) {
2320
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2320
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
2321
2321
  const detail = getMeetingOperation2("meeting.eb.minute.detail");
2322
2322
  const result = await detail.handler({ id }, env);
2323
2323
  const row = result?.data?.data;
@@ -2396,7 +2396,7 @@ var meetingMinuteWriteContent = {
2396
2396
  } else {
2397
2397
  statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
2398
2398
  }
2399
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2399
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
2400
2400
  const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
2401
2401
  const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
2402
2402
  const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
@@ -2762,7 +2762,7 @@ var meetingMinuteFromGroupChat = {
2762
2762
  const mtId = textOf2(args.mt_id).trim();
2763
2763
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
2764
2764
  const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
2765
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
2765
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
2766
2766
  const ctx = env.ctx;
2767
2767
  let stepStart = Date.now();
2768
2768
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
@@ -2856,7 +2856,7 @@ var meetingMinuteFromGroupChat = {
2856
2856
  try {
2857
2857
  const { readFile: readFile4 } = await import("node:fs/promises");
2858
2858
  const buffer = await readFile4(file);
2859
- const { extractText } = await import("./attachment-content-EJYIOJPH.js");
2859
+ const { extractText } = await import("./attachment-content-W3TSJC3Y.js");
2860
2860
  const extracted = extractText(buffer, file, "");
2861
2861
  if (extracted.text.trim()) {
2862
2862
  extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
@@ -3175,7 +3175,7 @@ var meetingDecisionNotifyGroup = {
3175
3175
  const warnings = [];
3176
3176
  const mtId = textOf3(args.mt_id).trim();
3177
3177
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
3178
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3178
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
3179
3179
  const ctx = env.ctx;
3180
3180
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
3181
3181
  { mt_id: mtId, pageNo: 1, pageSize: 1 },
@@ -3477,7 +3477,7 @@ var meetingPipelineRun = {
3477
3477
  const needsConfirm = level === "tasks" || level === "notify";
3478
3478
  const confirmed = args.confirm === true;
3479
3479
  const executedLevel = needsConfirm && !confirmed ? "document" : level;
3480
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3480
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
3481
3481
  const ctx = env.ctx;
3482
3482
  let stepStart = Date.now();
3483
3483
  const reuseMinuteId = textOf4(args.minuteId).trim();
@@ -3849,7 +3849,7 @@ function formatTimeRange(start, end) {
3849
3849
  }
3850
3850
  async function loadAgendaFromTopics(env, mtId) {
3851
3851
  try {
3852
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
3852
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
3853
3853
  const operation = getMeetingOperation2("meeting.eb.topic.list");
3854
3854
  const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
3855
3855
  const rows = result.data?.rows ?? [];
@@ -4000,7 +4000,7 @@ async function supplementRowFromDetail(row, mtId, env) {
4000
4000
  const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
4001
4001
  if (missing.length === 0) return { row, filled: [] };
4002
4002
  try {
4003
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
4003
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
4004
4004
  const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
4005
4005
  const result = await detailOperation.handler({ id: mtId }, env);
4006
4006
  const flat = result?.data?.data ?? result?.data ?? {};
@@ -4174,7 +4174,7 @@ var meetingInvitationRender = {
4174
4174
  };
4175
4175
  dataSource = "payload";
4176
4176
  } else {
4177
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
4177
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
4178
4178
  const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
4179
4179
  try {
4180
4180
  const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
@@ -4518,7 +4518,7 @@ var meetingInvitationPublish = {
4518
4518
  "\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
4519
4519
  );
4520
4520
  }
4521
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
4521
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
4522
4522
  const render = getMeetingOperation2("meeting.invitation.render");
4523
4523
  const rendered = await render.handler(
4524
4524
  {
@@ -5233,7 +5233,7 @@ var meetingSummaryGet = {
5233
5233
  const mtId = textOf5(args.mt_id).trim();
5234
5234
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
5235
5235
  const ctx = env.ctx;
5236
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
5236
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
5237
5237
  const warnings = [];
5238
5238
  const timings = {};
5239
5239
  const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
@@ -5554,7 +5554,7 @@ var MT_STATUS_OVER = "8";
5554
5554
  var CANCELLED_MARK_DELAY_MS = 800;
5555
5555
  async function isCancelledMeeting(env, mtId) {
5556
5556
  try {
5557
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
5557
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
5558
5558
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
5559
5559
  // withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
5560
5560
  { mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
@@ -6579,7 +6579,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
6579
6579
  const mtId = String(context.dataIds?.[0] ?? "").trim();
6580
6580
  if (!isCreate || !enabled || !mtId) return association;
6581
6581
  try {
6582
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-5CRCN2TV.js");
6582
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-METZ2LWE.js");
6583
6583
  const render = getMeetingOperation2("meeting.invitation.render");
6584
6584
  const result = await render.handler({ mtId }, context.env);
6585
6585
  return { ...association ?? {}, invitation: result?.data ?? null };
@@ -2,13 +2,13 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-3NCFFHB2.js";
5
+ } from "./chunk-IF33CG4V.js";
6
6
  import {
7
7
  SCHEMA_ID,
8
8
  meetingSuccess,
9
9
  meetingValidationError,
10
10
  schemaOf
11
- } from "./chunk-K67FODVC.js";
11
+ } from "./chunk-6GCXWKG6.js";
12
12
 
13
13
  // src/shortcuts/meeting/operations/attachment-content.ts
14
14
  import { mkdir, writeFile } from "node:fs/promises";
@@ -1776,6 +1776,10 @@ function slimIndexItem(item) {
1776
1776
  for (const key of SLIM_INDEX_ITEM_KEYS) {
1777
1777
  if (key in item) slim[key] = item[key];
1778
1778
  }
1779
+ const currentNodeId = item.nodeid;
1780
+ if (currentNodeId !== void 0 && currentNodeId !== null && String(currentNodeId).trim() !== "") {
1781
+ slim.currentNodeId = String(currentNodeId).trim();
1782
+ }
1779
1783
  return slim;
1780
1784
  }
1781
1785
  function stripHeavyPayload(result) {
@@ -3249,6 +3253,10 @@ function normalizeDetailResponse(response) {
3249
3253
  const other = data.otherInfo && typeof data.otherInfo === "object" ? data.otherInfo : {};
3250
3254
  const currentNodes = toArray(base.currentNodeList ?? []);
3251
3255
  const currentNode = currentNodes.map((n) => pickText(n, "nodeName", "name")).filter(Boolean).join("\u3001");
3256
+ const currentNodeList = currentNodes.filter((n) => n && typeof n === "object").map((n) => ({
3257
+ id: pickText(n, "id", "nodeId", "nodeid"),
3258
+ name: pickText(n, "nodeName", "name")
3259
+ })).filter((n) => n.id || n.name);
3252
3260
  const basicInfo = {
3253
3261
  requestTitle: pickText(base, "requestName", "requestNameTitle") || pickText(other, "multiReqName"),
3254
3262
  flowName: pickText(base, "requestName", "requestNameTitle") || pickText(other, "multiReqName"),
@@ -3257,6 +3265,7 @@ function normalizeDetailResponse(response) {
3257
3265
  creatorName: pickText(base, "creatorLastName", "createrName", "creatorName"),
3258
3266
  createdAt: pickText(base, "createDateTime", "createTime"),
3259
3267
  currentNode: currentNode || pickText(base, "currentNodeName", "nodeName"),
3268
+ currentNodeList,
3260
3269
  // 这两项的口径与列表侧(本文件 `:1396`/`:1432`)一致,也与 V11.3 `normalize_workflow_detail_response`
3261
3270
  // (`:3716`/`:3721`)逐字对齐:接口的 `flowStatus` 是 `{code,desc,...}` 对象、`requestLevel` 是
3262
3271
  // `0/1/2` 编码,**必须先过归一化函数**。旧写法直接 `asString(...)` ⇒ 详情面板里流程状态显示成
@@ -7080,27 +7089,48 @@ function serializeValue(field, value, mappings, row, browserHints = {}) {
7080
7089
  return [detail, options.map((o) => ({ id: o.optionId, name: o.content }))];
7081
7090
  }
7082
7091
  if (field.isBrowser) {
7092
+ if (!Array.isArray(value)) {
7093
+ throw new ValueAmbiguity({
7094
+ kind: "BROWSER",
7095
+ fieldId: field.id,
7096
+ fieldName: field.name,
7097
+ input: value,
7098
+ reason: "VALUE_NOT_ARRAY",
7099
+ resolution: '\u6D4F\u89C8\u6309\u94AE\u5B57\u6BB5\u7684\u503C\u5FC5\u987B\u662F\u6570\u7EC4\uFF0C\u6BCF\u4E2A\u5143\u7D20\u662F\u4E00\u4E2A\u503C\uFF08\u5355\u9009\u5B57\u6BB5\u4E5F\u53EA\u53D6\u6570\u7EC4\u7684\u7B2C\u4E00\u4E2A\u5143\u7D20\uFF09\u3002\u5143\u7D20\u5199\u5B57\u7B26\u4E32\u65F6\uFF0C\u5B57\u7B26\u4E32\u5185\u7684\u82F1\u6587\u9017\u53F7\u8868\u793A**\u540C\u4E00\u4E2A\u5BF9\u8C61**\u7684\u591A\u4E2A\u8BF4\u6CD5\uFF1B\u5199 {"id":\u2026,"name":\u2026} \u65F6\u76F4\u63A5\u6309 ID \u53D6\uFF1B\u5199 {"name":"\u7532,\u7532\u522B\u79F0"} \u65F6\u6309\u540D\u79F0\u89E3\u6790\u3002'
7100
+ });
7101
+ }
7083
7102
  const options = [];
7084
- for (const item of listValues(value)) {
7085
- if (item && typeof item === "object" && item.id) {
7086
- options.push({ optionId: String(item.id), content: String(item.name ?? item.content ?? item.id) });
7087
- continue;
7088
- }
7089
- const raw = String(item).trim();
7090
- const rowIndex = String((row && row.dataIndex) ?? "0");
7091
- const lookup = (term) => {
7092
- const key = `${field.id}_${rowIndex}_${term}`;
7093
- return { mapped: mappings[key] || [], completed: browserHints[key] || [] };
7094
- };
7095
- if (field.isMultiple) {
7096
- for (const term of lookupTermsOf(field, raw)) {
7097
- const pickedOne = resolveBrowserAliases(field, term, lookup);
7098
- if (options.some((o) => o.optionId === pickedOne.id)) continue;
7099
- options.push({ optionId: pickedOne.id, content: pickedOne.name });
7103
+ const rowIndex = String((row && row.dataIndex) ?? "0");
7104
+ const lookup = (term) => {
7105
+ const key = `${field.id}_${rowIndex}_${term}`;
7106
+ return { mapped: mappings[key] || [], completed: browserHints[key] || [] };
7107
+ };
7108
+ for (const item of field.isMultiple ? value : value.slice(0, 1)) {
7109
+ let raw;
7110
+ if (item && typeof item === "object") {
7111
+ const id = String(item.id ?? item.optionId ?? "").trim();
7112
+ const name = String(item.name ?? item.content ?? "").trim();
7113
+ if (id) {
7114
+ options.push({ optionId: id, content: name || id });
7115
+ continue;
7100
7116
  }
7101
- continue;
7117
+ if (!name) {
7118
+ throw new ValueAmbiguity({
7119
+ kind: "BROWSER",
7120
+ fieldId: field.id,
7121
+ fieldName: field.name,
7122
+ input: item,
7123
+ reason: "VALUE_NOT_RESOLVABLE",
7124
+ resolution: '\u8BE5\u5143\u7D20\u65E2\u6CA1\u6709 id \u4E5F\u6CA1\u6709 name\u3002\u8BF7\u5199 {"id":\u2026,"name":\u2026} \u6216 {"name":"\u540D\u79F0"}\uFF08\u540D\u79F0\u5185\u53EF\u7528\u82F1\u6587\u9017\u53F7\u5E76\u5217\u591A\u4E2A\u8BF4\u6CD5\uFF09\u3002'
7125
+ });
7126
+ }
7127
+ raw = name;
7128
+ } else {
7129
+ raw = String(item ?? "").trim();
7102
7130
  }
7131
+ if (!raw) continue;
7103
7132
  const picked = resolveBrowserAliases(field, raw, lookup);
7133
+ if (options.some((o) => o.optionId === picked.id)) continue;
7104
7134
  options.push({ optionId: picked.id, content: picked.name });
7105
7135
  }
7106
7136
  assertMultiplicity(field, options);
@@ -7255,9 +7285,10 @@ async function resolveEntryValues(env, entries, formId) {
7255
7285
  const row = entry.row && typeof entry.row === "object" ? entry.row : null;
7256
7286
  const rowIndex = String((row && row.dataIndex) ?? "0");
7257
7287
  const isDetail = Boolean(row);
7258
- for (const item of listValues(entry.value)) {
7288
+ if (!Array.isArray(entry.value)) continue;
7289
+ for (const item of field.isMultiple ? entry.value : entry.value.slice(0, 1)) {
7259
7290
  if (item && typeof item === "object" && (item.id || item.optionId)) continue;
7260
- const raw = String(item).trim();
7291
+ const raw = item && typeof item === "object" ? String(item.name ?? item.content ?? "").trim() : String(item).trim();
7261
7292
  if (!raw) continue;
7262
7293
  const terms = lookupTermsOf(field, raw);
7263
7294
  const hasBrowserChannel = Boolean(field.browserModule && field.browserType);