weaver-work-cli 0.1.76 → 0.1.78
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 +3 -1
- package/dist/chunks/{attachment-content-24RL44SE.js → attachment-content-TFOC3Y3X.js} +3 -3
- package/dist/chunks/{chunk-FEZK536Z.js → chunk-4PBN7NJY.js} +353 -43
- package/dist/chunks/{chunk-SQFKBWTR.js → chunk-5VQ7JHV4.js} +132 -47
- package/dist/chunks/{chunk-KJA7CRES.js → chunk-7SQN5IZR.js} +1 -1
- package/dist/chunks/{chunk-MS7MKBGJ.js → chunk-BP7BONZO.js} +664 -75
- package/dist/chunks/{chunk-L5SCNJKX.js → chunk-DACQKJ6O.js} +1 -1
- package/dist/chunks/{chunk-T7HVQ2WP.js → chunk-E2EY3DMS.js} +2 -2
- package/dist/chunks/{chunk-WJQJ7YEX.js → chunk-FAC4IFGQ.js} +2 -2
- package/dist/chunks/{minute-doc-4BA2R5EA.js → chunk-IBTGXLOT.js} +99 -16
- package/dist/chunks/{chunk-OJ4JPD25.js → chunk-LQLIXBJF.js} +6 -8
- package/dist/chunks/{chunk-H6N6U2D6.js → chunk-SWFTWNWL.js} +7 -7
- package/dist/chunks/{chunk-SU6IJD6D.js → chunk-TD5IOEGN.js} +1 -1
- package/dist/chunks/{chunk-Q7RXCK2Y.js → chunk-USYFVIUR.js} +22 -7
- package/dist/chunks/{chunk-WHI6YAUE.js → chunk-UZ2E3VNI.js} +1 -1
- package/dist/chunks/{chunk-AZC53XSQ.js → chunk-VNEU7OUN.js} +1 -1
- package/dist/chunks/{chunk-5QUTQHXF.js → chunk-WNFDR5PC.js} +198 -80
- package/dist/chunks/{chunk-NZQRW4KL.js → chunk-Z44YFIN6.js} +2 -2
- package/dist/chunks/{chunk-R4PN3OFK.js → chunk-ZOTXXGUM.js} +7 -7
- package/dist/chunks/{cli-DFLV57LO.js → cli-WA7FOQKC.js} +10 -10
- package/dist/chunks/{conflict-72Q6DM4I.js → conflict-D4GVAURN.js} +2 -2
- package/dist/chunks/{contract-IRNRQ5FY.js → contract-GW7US3UF.js} +4399 -3547
- package/dist/chunks/{create-flow-UGTDI7SP.js → create-flow-ERDGW3FZ.js} +10 -6
- package/dist/chunks/{ehr-PHIBBUIG.js → ehr-P6T7OAAV.js} +1 -1
- package/dist/chunks/{entry-mode-5WOXFE67.js → entry-mode-SQU5WTX6.js} +3 -3
- package/dist/chunks/{env-H4ALHESA.js → env-DASBNSEM.js} +2 -2
- package/dist/chunks/{factory-COX6AVK7.js → factory-A3NAKZAA.js} +1 -1
- package/dist/chunks/{group-chat-ZIWQQO4G.js → group-chat-7SEAVAJR.js} +3 -3
- package/dist/chunks/{lazy-dispatch-MZ3EZYDL.js → lazy-dispatch-ZDKLS5MR.js} +3 -3
- package/dist/chunks/{meeting-XE6CTXYA.js → meeting-7AEQGBAT.js} +18 -12
- package/dist/chunks/minute-doc-REI6RUE4.js +20 -0
- package/dist/chunks/{project-XREEXFU2.js → project-6PRGBLO2.js} +38 -14
- package/dist/chunks/{recruit-stage-TSQWOGQD.js → recruit-stage-TLZJUFHD.js} +543 -463
- package/dist/chunks/{registry-F4YFZLOD.js → registry-KQ4TNUWO.js} +1 -1
- package/dist/chunks/{registry-7UDUWYB5.js → registry-UVTI323K.js} +12 -11
- package/dist/chunks/{room-recommend-FO3HLPNB.js → room-recommend-ELEJUYBN.js} +4 -4
- package/dist/chunks/{schedule-DHNNOHVS.js → schedule-XBKY7VEA.js} +4 -4
- package/dist/chunks/{update-AV5VOXGY.js → update-77ZUIYSG.js} +2 -2
- package/dist/chunks/{workflow-MAGCHWYZ.js → workflow-SYCBS5XD.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/internal/update/service.js +9 -8
- package/dist/shortcuts/contract/data/collection-ledger-html.js +109 -33
- package/dist/shortcuts/contract/data/collection-node-catalog.js +26 -2
- package/dist/shortcuts/contract/data/report-renderers.js +75 -31
- package/dist/shortcuts/contract/data/report-spec.js +17 -3
- package/dist/shortcuts/contract/manifest.js +20 -3
- package/dist/shortcuts/contract/operations/bizreview-report.js +23 -2
- package/dist/shortcuts/contract/operations/collection-node.js +116 -1
- package/dist/shortcuts/contract/operations/compare-report.js +27 -5
- package/dist/shortcuts/contract/operations/credit-page.js +11 -2
- package/dist/shortcuts/contract/operations/docx-slots.js +27 -2
- package/dist/shortcuts/contract/operations/draft-submit.js +9 -6
- package/dist/shortcuts/contract/operations/elements-build.js +162 -30
- package/dist/shortcuts/contract/operations/elements-spec.js +50 -0
- package/dist/shortcuts/contract/operations/generated-submit.js +35 -0
- package/dist/shortcuts/contract/operations/ledger-card.js +32 -2
- package/dist/shortcuts/contract/operations/ledger-stat.js +17 -5
- package/dist/shortcuts/contract/operations/ledger.js +88 -16
- package/dist/shortcuts/contract/operations/metrics.js +16 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +359 -27
- package/dist/shortcuts/contract/operations/page.js +23 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +91 -13
- package/dist/shortcuts/contract/operations/quote-submit.js +16 -0
- package/dist/shortcuts/contract/operations/review-report.js +11 -3
- package/dist/shortcuts/contract/operations/save-recognize.js +62 -1
- package/dist/shortcuts/contract/operations/triage.js +18 -3
- package/dist/shortcuts/contract/operations/viewlink.js +17 -1
- package/dist/shortcuts/ehr/operations/recruit.js +255 -90
- package/dist/shortcuts/meeting/confirm-gate.js +42 -0
- package/dist/shortcuts/meeting/continuation.js +6 -2
- package/dist/shortcuts/meeting/minute-doc.js +119 -12
- package/dist/shortcuts/meeting/operations/attachment.js +19 -0
- package/dist/shortcuts/meeting/operations/compose-outcome.js +24 -2
- package/dist/shortcuts/meeting/operations/eb/conflict.js +2 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +162 -19
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +22 -3
- package/dist/shortcuts/meeting/operations/group-share.js +268 -0
- package/dist/shortcuts/meeting/operations/minute-content.js +58 -1
- package/dist/shortcuts/meeting/operations/minute-export.js +295 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/dist/shortcuts/project/operations/read.js +40 -15
- package/dist/shortcuts/recruit-stage/context.js +16 -81
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +89 -53
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +15 -5
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +46 -108
- package/dist/shortcuts/recruit-stage/operations/list.js +203 -74
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -85
- package/dist/shortcuts/recruit-stage/operations/search.js +113 -53
- package/dist/shortcuts/recruit-stage/shared.js +153 -4
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +11 -0
- package/dist/shortcuts/workflow/operations/read.js +24 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +2 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +28 -4
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.js +198 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.js +70 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +15 -5
- package/docs/project.md +1 -1
- package/package.json +1 -1
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +64 -28
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +26 -2
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +9 -8
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +47 -52
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +7 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +44 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +8 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +33 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +17 -3
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +18 -10
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +77 -37
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +7 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +55 -12
- package/skills/weaver-e10-jinchengda/references/contract-review-todo.md +102 -0
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +1 -17
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +11 -8
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +2 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +6 -6
- package/skills/weaver-e10-meeting/SKILL.md +203 -80
- package/skills/weaver-e10-meeting/references/create-quickstart.md +98 -0
- package/skills/weaver-e10-meeting/references/delivery-checklist.md +34 -0
- package/skills/weaver-e10-meeting/references/error-codes.md +44 -0
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +56 -3
- package/skills/weaver-e10-meeting/references/room-recommend.md +2 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +61 -58
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +28 -25
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +20 -14
- package/skills/weaver-e10-recruit-stage/lib/recruit-attach-probe.mjs +127 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +71 -25
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +39 -7
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +2 -2
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +8 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +29 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +4 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +6 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +10 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +2 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +1 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +10 -28
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -1
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +2 -2
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +14 -10
- package/skills/weaver-e10-shijingran/SKILL.md +2 -2
- package/skills/weaver-e10-shijingran/references/operations.md +5 -2
- package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
- package/skills/weaver-e10-workflow/SKILL.md +13 -9
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +33 -8
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +19 -14
- package/skills/weaver-e10-workflow/references/workflow-create.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +4 -2
- package/skills/weaver-e10-workflow/references/workflow-view.md +3 -3
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +132 -42
- package/templates/meeting/minute.docx +0 -0
- package/skills/weaver-e10-yepiaotong.zip +0 -0
|
@@ -229,6 +229,8 @@ var WORKFLOW_ENDPOINTS = {
|
|
|
229
229
|
HRM_RESOURCE_BROWSER: "/api/hrm/common/browser/complete/resource",
|
|
230
230
|
/** 节点浏览按钮 */
|
|
231
231
|
NODE_BROWSER: "/api/workflow/pathdef/common/browser/data/workflowPathNodeBrowser",
|
|
232
|
+
/** 跨工作流节点树浏览按钮(支持不指定 workflowId 的全局节点检索) */
|
|
233
|
+
NODE_TREE_BROWSER: "/api/workflow/pathdef/common/browser/data/nodeTreeBrowser",
|
|
232
234
|
/** 字段选项浏览按钮 */
|
|
233
235
|
FIELD_OPTION_BROWSER: "/api/workflow/core/common/browser/complete/field_option",
|
|
234
236
|
/** 流程列表查询(带表单字段) */
|
|
@@ -575,6 +577,189 @@ function findIndexedItem(index, group, position) {
|
|
|
575
577
|
return list[position - 1] ?? null;
|
|
576
578
|
}
|
|
577
579
|
|
|
580
|
+
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.ts
|
|
581
|
+
var NODE_PAGE_SIZE = 200;
|
|
582
|
+
var NODE_ID = /^\d+$/u;
|
|
583
|
+
var NAME_WITH_ID = /^(.*?)\s*[((]\s*(\d+)\s*[))]\s*$/u;
|
|
584
|
+
function recordOf(value) {
|
|
585
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
586
|
+
}
|
|
587
|
+
function textOf(value) {
|
|
588
|
+
return typeof value === "string" || typeof value === "number" ? String(value).trim() : "";
|
|
589
|
+
}
|
|
590
|
+
function tokensOf(value, field) {
|
|
591
|
+
if (value === void 0 || value === null || value === "") return [];
|
|
592
|
+
if (!Array.isArray(value) && typeof value !== "string" && typeof value !== "number") {
|
|
593
|
+
throw workflowValidationError("input_invalid", `${field} \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u6216\u5B57\u7B26\u4E32\u6570\u7EC4`);
|
|
594
|
+
}
|
|
595
|
+
const values = Array.isArray(value) ? value : [value];
|
|
596
|
+
return values.flatMap((item) => String(item).split(",")).map((item) => item.trim()).filter(Boolean);
|
|
597
|
+
}
|
|
598
|
+
function browserRows(response) {
|
|
599
|
+
const root = recordOf(responseData(response));
|
|
600
|
+
const data = recordOf(root.data);
|
|
601
|
+
const nested = recordOf(data.data);
|
|
602
|
+
const page = { ...root, ...data, ...nested, ...recordOf(data.page ?? root.page ?? nested.page) };
|
|
603
|
+
const candidates = [nested.data, data.data, root.data, data.list, data.result, data.rows, page.result, root.list, root.result];
|
|
604
|
+
const list = candidates.find(Array.isArray);
|
|
605
|
+
if (!Array.isArray(list)) {
|
|
606
|
+
throw workflowApiError("node_metadata_invalid", "\u8282\u70B9\u6D4F\u89C8\u63A5\u53E3\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38\uFF0C\u65E0\u6CD5\u786E\u8BA4\u8282\u70B9\u540D\u79F0", {
|
|
607
|
+
details: { endpoint: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER }
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
return {
|
|
611
|
+
rows: list.filter((item) => item !== null && typeof item === "object" && !Array.isArray(item)),
|
|
612
|
+
page
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
function definitionOf(row, inherited = {}) {
|
|
616
|
+
const id = textOf(row.id ?? row.nodeId ?? row.nodeid);
|
|
617
|
+
const name = textOf(row.name ?? row.content ?? row.richContent ?? row.title ?? row.nodeName ?? row.nodename);
|
|
618
|
+
if (!id || !name) return null;
|
|
619
|
+
const workflowId = textOf(row.workflowId ?? row.workflowid) || inherited.workflowId || "";
|
|
620
|
+
const workflowName = textOf(row.workflowName ?? row.workflowname) || inherited.workflowName || "";
|
|
621
|
+
return { id, name, ...workflowId ? { workflowId } : {}, ...workflowName ? { workflowName } : {} };
|
|
622
|
+
}
|
|
623
|
+
function pageDefinitions(rows) {
|
|
624
|
+
const definitions = [];
|
|
625
|
+
const visit = (row, inherited) => {
|
|
626
|
+
const children = Array.isArray(row.children) ? row.children : Array.isArray(row.childs) ? row.childs : [];
|
|
627
|
+
const ownWorkflowId = textOf(row.workflowId ?? row.workflowid);
|
|
628
|
+
const ownWorkflowName = textOf(row.workflowName ?? row.workflowname);
|
|
629
|
+
const context = {
|
|
630
|
+
workflowId: ownWorkflowId || inherited.workflowId,
|
|
631
|
+
workflowName: ownWorkflowName || inherited.workflowName
|
|
632
|
+
};
|
|
633
|
+
if (children.length) {
|
|
634
|
+
for (const child of children) {
|
|
635
|
+
if (child !== null && typeof child === "object" && !Array.isArray(child)) {
|
|
636
|
+
visit(child, context);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
const definition = definitionOf(row, context);
|
|
642
|
+
if (definition) definitions.push(definition);
|
|
643
|
+
};
|
|
644
|
+
for (const row of rows) visit(row, {});
|
|
645
|
+
return definitions;
|
|
646
|
+
}
|
|
647
|
+
async function exactNodeDefinitions(name, env) {
|
|
648
|
+
const found = /* @__PURE__ */ new Map();
|
|
649
|
+
const related = /* @__PURE__ */ new Map();
|
|
650
|
+
const seenPages = /* @__PURE__ */ new Set();
|
|
651
|
+
let readCount = 0;
|
|
652
|
+
for (let pageNo = 1; ; pageNo += 1) {
|
|
653
|
+
const response = await env.host.workflowRequest({
|
|
654
|
+
method: "POST",
|
|
655
|
+
path: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER,
|
|
656
|
+
operation: "workflow.todoSmartConvert.resolveNodeName",
|
|
657
|
+
body: {
|
|
658
|
+
showHistory: true,
|
|
659
|
+
belongType: 1,
|
|
660
|
+
workflowIdsCondition: "in",
|
|
661
|
+
searchValue: name,
|
|
662
|
+
current: pageNo,
|
|
663
|
+
pageNo,
|
|
664
|
+
pageSize: NODE_PAGE_SIZE
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
const { rows, page } = browserRows(response);
|
|
668
|
+
const definitions = pageDefinitions(rows);
|
|
669
|
+
if (rows.length && !definitions.length) {
|
|
670
|
+
throw workflowApiError("node_metadata_invalid", "\u8282\u70B9\u6D4F\u89C8\u63A5\u53E3\u8FD4\u56DE\u4E86\u7F3A\u5C11\u8282\u70B9 ID \u6216\u540D\u79F0\u7684\u8BB0\u5F55", {
|
|
671
|
+
details: { endpoint: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER, nodeName: name, pageNo }
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
readCount += rows.length;
|
|
675
|
+
const signature = definitions.map((item) => `${item.id}:${item.workflowId ?? ""}`).join("|");
|
|
676
|
+
if (pageNo > 1 && signature && seenPages.has(signature)) {
|
|
677
|
+
throw workflowApiError("node_metadata_pagination", "\u8282\u70B9\u6D4F\u89C8\u63A5\u53E3\u672A\u6B63\u786E\u7FFB\u9875\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5168\u90E8\u540C\u540D\u8282\u70B9", {
|
|
678
|
+
details: { endpoint: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER, nodeName: name, pageNo }
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
if (signature) seenPages.add(signature);
|
|
682
|
+
for (const item of definitions) {
|
|
683
|
+
if (item.name.includes(name) || name.includes(item.name)) {
|
|
684
|
+
related.set(`${item.id}:${item.workflowId ?? ""}`, item);
|
|
685
|
+
}
|
|
686
|
+
if (item.name === name) found.set(`${item.id}:${item.workflowId ?? ""}`, item);
|
|
687
|
+
}
|
|
688
|
+
const hasNext = typeof page.hasNext === "boolean" ? page.hasNext : void 0;
|
|
689
|
+
const totalPages = Number(page.totalPages ?? page.pages);
|
|
690
|
+
const totalCount = Number(page.totalCount ?? page.total);
|
|
691
|
+
const responsePageSize = Number(page.pageSize);
|
|
692
|
+
const pageSize = Number.isSafeInteger(responsePageSize) && responsePageSize > 0 ? responsePageSize : NODE_PAGE_SIZE;
|
|
693
|
+
if (hasNext === false || Number.isSafeInteger(totalPages) && totalPages > 0 && pageNo >= totalPages || Number.isSafeInteger(totalCount) && totalCount >= 0 && readCount >= totalCount) break;
|
|
694
|
+
const expectsMore = hasNext === true || Number.isSafeInteger(totalPages) && pageNo < totalPages || Number.isSafeInteger(totalCount) && readCount < totalCount;
|
|
695
|
+
if (expectsMore) {
|
|
696
|
+
if (!rows.length || pageNo >= 100) {
|
|
697
|
+
throw workflowApiError("node_metadata_pagination", "\u8282\u70B9\u6D4F\u89C8\u63A5\u53E3\u5206\u9875\u6570\u91CF\u4E0E\u8FD4\u56DE\u6570\u636E\u4E0D\u4E00\u81F4\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5168\u90E8\u540C\u540D\u8282\u70B9", {
|
|
698
|
+
details: { endpoint: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER, nodeName: name, pageNo, readCount, totalCount }
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
continue;
|
|
702
|
+
}
|
|
703
|
+
if (rows.length < pageSize) break;
|
|
704
|
+
if (pageNo >= 100) {
|
|
705
|
+
throw workflowApiError("node_metadata_pagination", "\u8282\u70B9\u6D4F\u89C8\u63A5\u53E3\u5206\u9875\u8D85\u8FC7\u5B89\u5168\u4E0A\u9650\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5168\u90E8\u540C\u540D\u8282\u70B9", {
|
|
706
|
+
details: { endpoint: WORKFLOW_ENDPOINTS.NODE_TREE_BROWSER, nodeName: name }
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
return { exact: [...found.values()], candidates: [...related.values()] };
|
|
711
|
+
}
|
|
712
|
+
async function resolveTodoNodeFilter(args, env) {
|
|
713
|
+
const explicitIds = [];
|
|
714
|
+
const requestedNames = tokensOf(args.nodeName, "nodeName");
|
|
715
|
+
if (args.nodeName !== void 0 && !requestedNames.length) {
|
|
716
|
+
throw workflowValidationError("node_name_required", "\u8BF7\u8BF4\u660E\u8981\u67E5\u8BE2\u7684\u8282\u70B9\u540D\u79F0");
|
|
717
|
+
}
|
|
718
|
+
for (const token of tokensOf(args.nodeId, "nodeId")) {
|
|
719
|
+
const withId = NAME_WITH_ID.exec(token);
|
|
720
|
+
if (withId) explicitIds.push(withId[2]);
|
|
721
|
+
else if (NODE_ID.test(token)) explicitIds.push(token);
|
|
722
|
+
else requestedNames.push(token);
|
|
723
|
+
}
|
|
724
|
+
const names = [...new Set(requestedNames)];
|
|
725
|
+
if (names.length && args.nodeIdTerm === "notin") {
|
|
726
|
+
throw workflowValidationError("node_name_notin_unsupported", "\u6309\u8282\u70B9\u540D\u79F0\u67E5\u8BE2\u4E0D\u652F\u6301 nodeIdTerm=notin\uFF0C\u8BF7\u6539\u7528\u660E\u786E\u7684\u8282\u70B9 ID \u6392\u9664");
|
|
727
|
+
}
|
|
728
|
+
if (!names.length) {
|
|
729
|
+
if (!explicitIds.length) return { args, named: false };
|
|
730
|
+
const nodeIds2 = [...new Set(explicitIds)];
|
|
731
|
+
const { nodeName: _nodeName2, ...rest2 } = args;
|
|
732
|
+
const resolution2 = {
|
|
733
|
+
requestedNames: [],
|
|
734
|
+
nodeIds: nodeIds2,
|
|
735
|
+
matchedDefinitions: [],
|
|
736
|
+
nodeDefinitionCount: nodeIds2.length
|
|
737
|
+
};
|
|
738
|
+
return { args: { ...rest2, nodeId: nodeIds2.join(",") }, resolution: resolution2, named: false };
|
|
739
|
+
}
|
|
740
|
+
const resolvedNames = await Promise.all(names.map((name) => exactNodeDefinitions(name, env)));
|
|
741
|
+
const matchedDefinitions = resolvedNames.flatMap((item) => item.exact);
|
|
742
|
+
const matchedNames = new Set(matchedDefinitions.map((item) => item.name));
|
|
743
|
+
const missing = names.filter((name) => !matchedNames.has(name));
|
|
744
|
+
if (missing.length) {
|
|
745
|
+
const candidates = [...new Map(resolvedNames.flatMap((item) => item.candidates).map((item) => [`${item.id}:${item.workflowId ?? ""}`, item])).values()].slice(0, 20);
|
|
746
|
+
throw workflowValidationError("node_name_not_found", `\u672A\u627E\u5230\u8282\u70B9\uFF1A${missing.join("\u3001")}`, {
|
|
747
|
+
nodeNames: missing,
|
|
748
|
+
...candidates.length ? { candidates } : {}
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
const uniqueDefinitions = [...new Map(matchedDefinitions.map((item) => [`${item.id}:${item.workflowId ?? ""}`, item])).values()];
|
|
752
|
+
const nodeIds = [.../* @__PURE__ */ new Set([...explicitIds, ...uniqueDefinitions.map((item) => item.id)])];
|
|
753
|
+
const resolution = {
|
|
754
|
+
requestedNames: names,
|
|
755
|
+
nodeIds,
|
|
756
|
+
matchedDefinitions: uniqueDefinitions,
|
|
757
|
+
nodeDefinitionCount: nodeIds.length
|
|
758
|
+
};
|
|
759
|
+
const { nodeName: _nodeName, ...rest } = args;
|
|
760
|
+
return { args: { ...rest, nodeId: nodeIds.join(",") }, resolution, named: true };
|
|
761
|
+
}
|
|
762
|
+
|
|
578
763
|
// src/shortcuts/workflow/operations/flow-status.ts
|
|
579
764
|
var FLOW_STATUS_OPTIONS = [
|
|
580
765
|
{ code: "finish", meaning: "\u5DF2\u7ED3\u675F" },
|
|
@@ -993,7 +1178,11 @@ async function resolveTerm(env, systemKey, rawValue, label, workflowNameMatch) {
|
|
|
993
1178
|
const parsed = parseNameWithId(text);
|
|
994
1179
|
if (parsed.id) return { id: parsed.id, name: parsed.name || text };
|
|
995
1180
|
if (systemKey === "creator" && CREATOR_SELF_TERMS.has(text)) return null;
|
|
996
|
-
|
|
1181
|
+
let candidates = await resolveNameCandidates(env, SYSTEM_FIELDS[systemKey], text);
|
|
1182
|
+
if (systemKey === "workflowid" && workflowNameMatch === "all" && candidates.length === 0) {
|
|
1183
|
+
const synonym = text.includes("\u8BC4\u4F30") ? text.replaceAll("\u8BC4\u4F30", "\u8BC4\u5BA1") : text.includes("\u8BC4\u5BA1") ? text.replaceAll("\u8BC4\u5BA1", "\u8BC4\u4F30") : "";
|
|
1184
|
+
if (synonym) candidates = await resolveNameCandidates(env, SYSTEM_FIELDS[systemKey], synonym);
|
|
1185
|
+
}
|
|
997
1186
|
const clarificationType = SYSTEM_CLARIFICATION_TYPES[systemKey];
|
|
998
1187
|
if (!candidates.length) {
|
|
999
1188
|
if (systemKey === "workflowid") {
|
|
@@ -1461,6 +1650,8 @@ async function resolveFilterFieldItem(env, raw, fields, workflowLabel, ordinal)
|
|
|
1461
1650
|
);
|
|
1462
1651
|
}
|
|
1463
1652
|
async function buildSearchQuery(env, args, mode, options = {}) {
|
|
1653
|
+
const nodeFilter = await resolveTodoNodeFilter(args, env);
|
|
1654
|
+
args = nodeFilter.args;
|
|
1464
1655
|
const rawJson = args.queryJson;
|
|
1465
1656
|
let query;
|
|
1466
1657
|
if (rawJson && typeof rawJson === "object") {
|
|
@@ -1484,7 +1675,8 @@ async function buildSearchQuery(env, args, mode, options = {}) {
|
|
|
1484
1675
|
if (args.tabid !== void 0 && String(args.tabid).trim() !== "") {
|
|
1485
1676
|
tabid = String(args.tabid).trim();
|
|
1486
1677
|
}
|
|
1487
|
-
|
|
1678
|
+
const hasNodeFilter = !!nodeFilter.resolution || Array.isArray(query.searchParams?.formDatas?.nodeid) && query.searchParams.formDatas.nodeid.length > 0;
|
|
1679
|
+
if (!hasNodeFilter && asString(args.searchMode) === "legacy" && category === "todo" && tabid === DEFAULT_TABID.todo) {
|
|
1488
1680
|
const explicitTab = Boolean(
|
|
1489
1681
|
asString(args.subCategory) || asString(args.tabName) || args.tabid !== void 0 && String(args.tabid).trim() !== ""
|
|
1490
1682
|
);
|
|
@@ -2032,7 +2224,14 @@ var workflowSearch = {
|
|
|
2032
2224
|
requestLevel: { type: "string", description: "\u7D27\u6025\u7A0B\u5EA6\u540D\u79F0\uFF08CLI \u6309\u5F53\u524D\u73AF\u5883\u7B49\u7EA7\u5217\u8868\u8F6C ID\uFF09\uFF1B\u7EAF\u540D\u79F0\u591A\u547D\u4E2D\u8FD4\u56DE\u6F84\u6E05\u5019\u9009\uFF0C0 \u547D\u4E2D\u62A5\u9519\u5E76\u5217\u51FA\u53EF\u9009\u7B49\u7EA7\uFF08\u5BF9\u9F50 V11.3\uFF09" },
|
|
2033
2225
|
requestId: { type: "string", description: "\u6309 requestId \u7CBE\u786E\u8FC7\u6EE4\uFF0C\u9017\u53F7\u5206\u9694" },
|
|
2034
2226
|
exRequestId: { type: "string", description: "\u6392\u9664 requestId\uFF0C\u9017\u53F7\u5206\u9694" },
|
|
2035
|
-
nodeId: {
|
|
2227
|
+
nodeId: {
|
|
2228
|
+
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
|
2229
|
+
description: "\u5F53\u524D\u8282\u70B9\uFF1B\u652F\u6301 ID\u3001\u8282\u70B9\u540D\u79F0\u3001\u540D\u79F0(ID)\uFF0C\u5B57\u7B26\u4E32\u6570\u7EC4\u6216\u9017\u53F7\u5206\u9694\u591A\u503C\uFF0C\u540D\u79F0\u6309\u7CBE\u786E\u5339\u914D\u89E3\u6790\u5168\u90E8\u540C\u540D\u8282\u70B9\u5B9A\u4E49\u3002"
|
|
2230
|
+
},
|
|
2231
|
+
nodeName: {
|
|
2232
|
+
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
|
2233
|
+
description: "\u5F53\u524D\u8282\u70B9\u540D\u79F0\uFF0C\u7CBE\u786E\u5339\u914D\u5E76\u5408\u5E76\u5168\u90E8\u540C\u540D\u8282\u70B9\u5B9A\u4E49\uFF1B\u5B57\u7B26\u4E32\u6570\u7EC4\u6216\u9017\u53F7\u5206\u9694\u591A\u503C\u3002"
|
|
2234
|
+
},
|
|
2036
2235
|
nodeIdTerm: { type: "string", enum: ["in", "notin"] },
|
|
2037
2236
|
flowStatus: { type: "string", description: `\u6D41\u7A0B\u72B6\u6001\uFF08\u9009\u9879\u7C7B\uFF0C\u591A\u9009\uFF09\uFF1A${FLOW_STATUS_HINT}` },
|
|
2038
2237
|
flowStatusTerm: { type: "string", enum: ["in", "notin"] },
|
|
@@ -5348,6 +5547,9 @@ var ATTACH_SIZE_LIMIT_STEPS_MB = [1, 5, 10, 20, 50, 100];
|
|
|
5348
5547
|
var READ_WHOLE_OUTPUT_HINT = "\u8BFB\u53D6\u672C\u8F93\u51FA\u8BF7\u4E00\u6B21\u8BFB\u5B8C\uFF1A\u4E0D\u8981\u7528 head/tail \u7B49\u7BA1\u9053\u622A\u65AD\uFF08\u622A\u65AD\u4F1A\u7834\u574F JSON\uFF0C\u5E76\u5BFC\u81F4\u91CD\u590D\u6267\u884C\u540C\u4E00\u6761\u547D\u4EE4\uFF09\u3002";
|
|
5349
5548
|
var CREATE_FORM_STDOUT_SAFE_CHARS = 2e4;
|
|
5350
5549
|
var DURATION_RESERVE_SENTINEL = 99999999;
|
|
5550
|
+
var XIAOE_CREATE_FORM_TIPS = [
|
|
5551
|
+
"\u6D4F\u89C8\u6309\u94AE\u5B57\u6BB5\uFF1A\u6709\u5BF9\u8C61 id \u65F6\u4F18\u5148\u4F7F\u7528\u300C\u540D\u79F0(ID)\u300D\uFF1B\u6CA1\u6709\u5BF9\u8C61 id \u65F6\u6839\u636E\u7528\u6237\u63CF\u8FF0\u4F7F\u7528\u6700\u53EF\u80FD\u7684\u540D\u79F0\u4F5C\u4E3A\u5B57\u6BB5\u503C\u3002"
|
|
5552
|
+
];
|
|
5351
5553
|
function createFormResultFileNotice(resultFile) {
|
|
5352
5554
|
return `\u5F53\u524D\u8868\u5355\u5185\u5BB9\u8F83\u5927\uFF0C\u5DF2\u4E34\u65F6\u5199\u5165\u6587\u4EF6 ${resultFile}\uFF0C\u8BF7\u76F4\u63A5\u8BFB\u53D6 ${resultFile} \u83B7\u53D6\u5B8C\u6574\u7ED3\u679C`;
|
|
5353
5555
|
}
|
|
@@ -6843,6 +7045,8 @@ async function buildCreateFormData(workflowId, env, options = {}) {
|
|
|
6843
7045
|
},
|
|
6844
7046
|
systemFieldWarning: minorWarning,
|
|
6845
7047
|
requiredInfoWarning: requiredInfoWarningText(context),
|
|
7048
|
+
// 小e 环境额外下发的填写提示(字符串数组):非小e 不出现该键。
|
|
7049
|
+
...isXiaoE ? { tips: XIAOE_CREATE_FORM_TIPS } : {},
|
|
6846
7050
|
// 原 Python 把完整 context 落盘;此处通过 continuation 承载,返回结构保持文档契约。
|
|
6847
7051
|
continuation: token
|
|
6848
7052
|
}
|
|
@@ -10625,9 +10829,11 @@ var ALLOWED_INPUT_KEYS = [
|
|
|
10625
10829
|
"limit",
|
|
10626
10830
|
"pageSize",
|
|
10627
10831
|
"category",
|
|
10832
|
+
"subordinateName",
|
|
10628
10833
|
// originData(2026-11-24 用户定稿):摘要链路把 collect 各页 getTodoListData 原始响应体透出,
|
|
10629
10834
|
// 由 skill 的 tools 脚本落盘 <skill>/originData/,产物 data 里以 originDataId 引用。
|
|
10630
10835
|
"originData",
|
|
10836
|
+
"nodeName",
|
|
10631
10837
|
...COLLECT_FILTER_KEYS,
|
|
10632
10838
|
...COLLECT_ORDER_KEYS,
|
|
10633
10839
|
// smartGroupAdd(2026-11-13):产物落库字段,与 E10 WflSmartGroupAddParamsDto 同名
|
|
@@ -14253,13 +14459,13 @@ import { join as join6 } from "node:path";
|
|
|
14253
14459
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.categoryCounts.ts
|
|
14254
14460
|
import { isDeepStrictEqual } from "node:util";
|
|
14255
14461
|
var CATEGORY_TABS = ["0", "7", "5", "8", "6", "1"];
|
|
14256
|
-
function
|
|
14462
|
+
function recordOf2(value) {
|
|
14257
14463
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
14258
14464
|
}
|
|
14259
14465
|
function readTodoCategoryTotal(response) {
|
|
14260
|
-
const outer =
|
|
14261
|
-
const data =
|
|
14262
|
-
const nested =
|
|
14466
|
+
const outer = recordOf2(response);
|
|
14467
|
+
const data = recordOf2(responseData(response));
|
|
14468
|
+
const nested = recordOf2(data.data);
|
|
14263
14469
|
if ([outer, data, nested].some((part) => part.status === false || part.success === false || part.fail === true)) return null;
|
|
14264
14470
|
for (const candidate of [data.total, data.count, data.totalCount, nested.total, nested.totalCount]) {
|
|
14265
14471
|
if (candidate === void 0 || candidate === null || candidate === "") continue;
|
|
@@ -14277,8 +14483,8 @@ function withoutPagination(query) {
|
|
|
14277
14483
|
}
|
|
14278
14484
|
async function collectTodoCategoryCounts(env, listQuery, knownTotals = []) {
|
|
14279
14485
|
const body = withoutPagination(listQuery);
|
|
14280
|
-
body.params = { ...
|
|
14281
|
-
const params =
|
|
14486
|
+
body.params = { ...recordOf2(body.params) };
|
|
14487
|
+
const params = recordOf2(body.params);
|
|
14282
14488
|
delete params.flowSpareType;
|
|
14283
14489
|
const counts = {};
|
|
14284
14490
|
const currentTab = String(params.tabid ?? "");
|
|
@@ -15291,7 +15497,7 @@ function runGroup(args) {
|
|
|
15291
15497
|
|
|
15292
15498
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.ts
|
|
15293
15499
|
var DEFAULT_REQUEST_SUMMARY_MAX = 50;
|
|
15294
|
-
async function collectRawTodos(args, env) {
|
|
15500
|
+
async function collectRawTodos(args, env, nodeResolution) {
|
|
15295
15501
|
const category = readCategory(args.category);
|
|
15296
15502
|
const priorityFields = priorityRuleFields();
|
|
15297
15503
|
const policy = readCollectPolicy(args.outputMode, args.limit);
|
|
@@ -15315,7 +15521,7 @@ async function collectRawTodos(args, env) {
|
|
|
15315
15521
|
);
|
|
15316
15522
|
if (!explicitTab) searchArgs.tabid = DEFAULT_TABID2;
|
|
15317
15523
|
const warnings = [];
|
|
15318
|
-
if (searchArgs.isremarks === void 0) {
|
|
15524
|
+
if (searchArgs.isremarks === void 0 && !nodeResolution) {
|
|
15319
15525
|
const defaultIsremarks = generalRules()?.identityFilter?.defaultIsremarks?.trim();
|
|
15320
15526
|
if (defaultIsremarks) {
|
|
15321
15527
|
searchArgs.isremarks = defaultIsremarks;
|
|
@@ -15760,7 +15966,7 @@ async function collectRawTodos(args, env) {
|
|
|
15760
15966
|
}
|
|
15761
15967
|
|
|
15762
15968
|
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.ts
|
|
15763
|
-
function
|
|
15969
|
+
function recordOf3(value) {
|
|
15764
15970
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
15765
15971
|
}
|
|
15766
15972
|
function idOf(value) {
|
|
@@ -15768,9 +15974,9 @@ function idOf(value) {
|
|
|
15768
15974
|
return typeof value === "number" && Number.isSafeInteger(value) ? String(value) : "";
|
|
15769
15975
|
}
|
|
15770
15976
|
function successfulData(response) {
|
|
15771
|
-
const outer =
|
|
15772
|
-
const data =
|
|
15773
|
-
const nested =
|
|
15977
|
+
const outer = recordOf3(response);
|
|
15978
|
+
const data = recordOf3(responseData(response));
|
|
15979
|
+
const nested = recordOf3(data.data);
|
|
15774
15980
|
const failed = [outer, data, nested].find((part) => part.status === false || part.success === false || part.fail === true);
|
|
15775
15981
|
if (failed) {
|
|
15776
15982
|
const code = failed.code ?? outer.code;
|
|
@@ -15782,14 +15988,14 @@ function successfulData(response) {
|
|
|
15782
15988
|
}
|
|
15783
15989
|
function displayRows(response) {
|
|
15784
15990
|
const data = successfulData(response);
|
|
15785
|
-
const nested =
|
|
15991
|
+
const nested = recordOf3(data.data);
|
|
15786
15992
|
const rows = nested.displayData ?? data.displayData;
|
|
15787
15993
|
if (!Array.isArray(rows) || rows.some((row) => row === null || typeof row !== "object" || Array.isArray(row))) {
|
|
15788
15994
|
throw workflowApiError("unexpected_response", "\u5F85\u529E\u5217\u8868\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38\uFF0C\u672A\u751F\u6210\u5206\u5E03\u7EDF\u8BA1");
|
|
15789
15995
|
}
|
|
15790
15996
|
return rows;
|
|
15791
15997
|
}
|
|
15792
|
-
async function prepareTodoQuery(args, env) {
|
|
15998
|
+
async function prepareTodoQuery(args, env, nodeResolution) {
|
|
15793
15999
|
const category = readCategory(args.category);
|
|
15794
16000
|
const requestedLimit = args.limit === void 0 || args.limit === null || args.limit === "" ? QUERY_MAX_LIMIT : args.limit;
|
|
15795
16001
|
const policy = readCollectPolicy("query", requestedLimit);
|
|
@@ -15800,7 +16006,7 @@ async function prepareTodoQuery(args, env) {
|
|
|
15800
16006
|
}
|
|
15801
16007
|
const explicitTab = ["tabid", "tabName", "subCategory"].some((key) => searchArgs[key] !== void 0 && String(searchArgs[key]).trim() !== "");
|
|
15802
16008
|
if (!explicitTab) searchArgs.tabid = DEFAULT_TABID2;
|
|
15803
|
-
if (searchArgs.isremarks === void 0) {
|
|
16009
|
+
if (searchArgs.isremarks === void 0 && !nodeResolution) {
|
|
15804
16010
|
const defaultIsremarks = generalRules()?.identityFilter?.defaultIsremarks?.trim();
|
|
15805
16011
|
if (defaultIsremarks) searchArgs.isremarks = defaultIsremarks;
|
|
15806
16012
|
}
|
|
@@ -15831,11 +16037,11 @@ async function prepareTodoQuery(args, env) {
|
|
|
15831
16037
|
if (!(error instanceof WorkflowCliError) || error.type === "permission" || error.type === "authorization" || error.code === 401 || error.code === 403 || error.code === "401" || error.code === "403") throw error;
|
|
15832
16038
|
}
|
|
15833
16039
|
const selectedNames = /* @__PURE__ */ new Map();
|
|
15834
|
-
const workflowConditions =
|
|
16040
|
+
const workflowConditions = recordOf3(recordOf3(listQuery.searchParams).formDatas).workflowid;
|
|
15835
16041
|
for (const condition of Array.isArray(workflowConditions) ? workflowConditions : []) {
|
|
15836
|
-
const browserDatas =
|
|
16042
|
+
const browserDatas = recordOf3(condition).browserDatas;
|
|
15837
16043
|
for (const item of Array.isArray(browserDatas) ? browserDatas : []) {
|
|
15838
|
-
const entry =
|
|
16044
|
+
const entry = recordOf3(item);
|
|
15839
16045
|
const id = idOf(entry.id);
|
|
15840
16046
|
if (id && typeof entry.name === "string" && entry.name.trim()) selectedNames.set(id, entry.name.trim());
|
|
15841
16047
|
}
|
|
@@ -15890,22 +16096,94 @@ async function prepareTodoQuery(args, env) {
|
|
|
15890
16096
|
totalAvailable: total,
|
|
15891
16097
|
filters: Object.fromEntries(Object.entries(searchArgs).filter(([key]) => !["category", "tabid", "sort"].includes(key))),
|
|
15892
16098
|
listQuery,
|
|
16099
|
+
...nodeResolution ? { nodeResolution } : {},
|
|
15893
16100
|
...categoryCounts ? { categoryCounts } : {},
|
|
15894
16101
|
...sort ? { sort } : {}
|
|
15895
16102
|
},
|
|
15896
16103
|
totalCount: total,
|
|
15897
16104
|
distribution: { items: [...counts.values()], readCount: seen.size, totalCount: total, complete, truncated: !complete },
|
|
15898
16105
|
markdown: total === null ? "\u67E5\u8BE2\u6761\u4EF6\u5DF2\u51C6\u5907\uFF0C\u6570\u91CF\u5F85\u5217\u8868\u8FD4\u56DE\u3002" : `\u67E5\u8BE2\u6761\u4EF6\u5DF2\u51C6\u5907\uFF0C\u5339\u914D${total}\u6761\u5F85\u529E\u3002`,
|
|
16106
|
+
...nodeResolution ? { nodeResolution } : {},
|
|
15899
16107
|
...warnings?.length ? { warnings } : {}
|
|
15900
16108
|
};
|
|
15901
16109
|
}
|
|
15902
16110
|
|
|
16111
|
+
// src/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.ts
|
|
16112
|
+
async function resolveTodoSubordinate(input, env) {
|
|
16113
|
+
const { name, id } = parseNameWithId(asString(input) ?? "");
|
|
16114
|
+
if (!name) {
|
|
16115
|
+
throw workflowClarificationError("subordinate", "", "\u8BF7\u95EE\u60A8\u8981\u67E5\u8BE2\u54EA\u4F4D\u4E0B\u5C5E\u7684\u5F85\u529E\uFF1F", [], {
|
|
16116
|
+
clarificationReason: "subordinate_required",
|
|
16117
|
+
missingInput: ["subordinateName"]
|
|
16118
|
+
});
|
|
16119
|
+
}
|
|
16120
|
+
const session = await env.host.getSession();
|
|
16121
|
+
const employeeId = session.userId.trim();
|
|
16122
|
+
if (!/^\d+$/u.test(employeeId)) {
|
|
16123
|
+
throw workflowApiError("current_employee_missing", "\u5F53\u524D\u4F1A\u8BDD\u65E0\u6CD5\u786E\u8BA4\u60A8\u7684\u4EBA\u5458 ID\uFF0C\u65E0\u6CD5\u67E5\u8BE2\u4E0B\u5C5E\u5F85\u529E");
|
|
16124
|
+
}
|
|
16125
|
+
const matches = /* @__PURE__ */ new Map();
|
|
16126
|
+
for (let pageNo = 1; ; pageNo += 1) {
|
|
16127
|
+
const response = await env.host.workflowRequest({
|
|
16128
|
+
method: "GET",
|
|
16129
|
+
path: `/api/bs/hrm/user/myDirectSubordinates/${employeeId}`,
|
|
16130
|
+
operation: "workflow.todoSmartConvert.subordinate",
|
|
16131
|
+
query: { id: employeeId, pageNo, pageSize: 10, virtualId: "1", username: name, isMobile: false },
|
|
16132
|
+
headers: { Referer: `${session.baseUrl.replace(/\/+$/u, "")}/sp/hrm/profileInfo/${employeeId}` }
|
|
16133
|
+
});
|
|
16134
|
+
const data = responseData(response);
|
|
16135
|
+
if (data?.hasRight !== true) {
|
|
16136
|
+
throw workflowApiError("subordinate_no_right", "\u5F53\u524D\u4F1A\u8BDD\u6CA1\u6709\u67E5\u770B\u76F4\u5C5E\u4E0B\u5C5E\u7684\u6743\u9650", { code: 403 });
|
|
16137
|
+
}
|
|
16138
|
+
const page = data.page;
|
|
16139
|
+
if (!Array.isArray(page?.result)) {
|
|
16140
|
+
throw workflowApiError("unexpected_response", "\u76F4\u5C5E\u4E0B\u5C5E\u67E5\u8BE2\u8FD4\u56DE\u7ED3\u6784\u5F02\u5E38");
|
|
16141
|
+
}
|
|
16142
|
+
for (const row of page.result) {
|
|
16143
|
+
if (asString(row?.username) !== name) continue;
|
|
16144
|
+
const rowId = typeof row.employeeId === "string" ? row.employeeId : row.id;
|
|
16145
|
+
if (typeof rowId !== "string" || !/^\d+$/u.test(rowId) || rowId === employeeId) continue;
|
|
16146
|
+
const candidate = { id: rowId, name, department: asString(row.department?.name) };
|
|
16147
|
+
if (id === rowId) return candidate;
|
|
16148
|
+
matches.set(rowId, candidate);
|
|
16149
|
+
}
|
|
16150
|
+
if (page.result.length === 0 || !(page.hasNext || (page.totalPages ?? 0) > pageNo)) break;
|
|
16151
|
+
}
|
|
16152
|
+
const candidates = [...matches.values()];
|
|
16153
|
+
if (!id && candidates.length === 1) return candidates[0];
|
|
16154
|
+
if (!candidates.length || id) {
|
|
16155
|
+
throw workflowClarificationError("subordinate", name, `\u672A\u627E\u5230\u53EF\u67E5\u8BE2\u7684\u76F4\u5C5E\u4E0B\u5C5E\u300C${name}\u300D\uFF0C\u8BF7\u786E\u8BA4\u59D3\u540D\u3002`);
|
|
16156
|
+
}
|
|
16157
|
+
throw workflowClarificationError(
|
|
16158
|
+
"subordinate",
|
|
16159
|
+
name,
|
|
16160
|
+
`\u6709\u591A\u4F4D\u76F4\u5C5E\u4E0B\u5C5E\u540D\u4E3A\u300C${name}\u300D\uFF0C\u8BF7\u786E\u8BA4\u5177\u4F53\u4EBA\u5458\u3002`,
|
|
16161
|
+
candidates.map(({ id: candidateId, name: candidateName, department }, index) => ({
|
|
16162
|
+
id: candidateId,
|
|
16163
|
+
name: candidateName,
|
|
16164
|
+
index: index + 1,
|
|
16165
|
+
label: department ? `${candidateName} \xB7 ${department}` : candidateName,
|
|
16166
|
+
display: `${candidateName}(${candidateId})`
|
|
16167
|
+
}))
|
|
16168
|
+
);
|
|
16169
|
+
}
|
|
16170
|
+
function scopeTodoSubordinate(env, subordinate) {
|
|
16171
|
+
const { host } = env;
|
|
16172
|
+
const paths = [WORKFLOW_ENDPOINTS.TODO_LIST, WORKFLOW_ENDPOINTS.TODO_TOTAL, WORKFLOW_ENDPOINTS.TODO_TREE];
|
|
16173
|
+
return { ...env, host: {
|
|
16174
|
+
workflowRequest: (request) => host.workflowRequest(paths.includes(request.path) ? { ...request, path: `${request.path}/${subordinate.id}` } : request),
|
|
16175
|
+
workflowBinaryRequest: (request) => host.workflowBinaryRequest(request),
|
|
16176
|
+
getSession: () => host.getSession()
|
|
16177
|
+
} };
|
|
16178
|
+
}
|
|
16179
|
+
|
|
15903
16180
|
// src/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.ts
|
|
15904
16181
|
var COUNT_CONCURRENCY = 4;
|
|
15905
|
-
|
|
16182
|
+
var DISCONTINUED_WORKFLOW_NAME = /废弃|作废|停用|失效|已下线/u;
|
|
16183
|
+
function recordOf4(value) {
|
|
15906
16184
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
15907
16185
|
}
|
|
15908
|
-
function
|
|
16186
|
+
function textOf2(value) {
|
|
15909
16187
|
return typeof value === "string" ? value.trim() : "";
|
|
15910
16188
|
}
|
|
15911
16189
|
function rethrowRequiredError(error) {
|
|
@@ -15944,8 +16222,8 @@ async function buildCandidateQuery(candidate, args, env) {
|
|
|
15944
16222
|
workflow: [candidate.display],
|
|
15945
16223
|
workflowTerm: "in"
|
|
15946
16224
|
}, "total");
|
|
15947
|
-
const isremarks =
|
|
15948
|
-
if (isremarks) query.params = { ...
|
|
16225
|
+
const isremarks = textOf2(args.isremarks) || generalRules()?.identityFilter?.defaultIsremarks?.trim() || "";
|
|
16226
|
+
if (isremarks) query.params = { ...recordOf4(query.params), isremarks };
|
|
15949
16227
|
return { candidate, body: query };
|
|
15950
16228
|
} catch (error) {
|
|
15951
16229
|
rethrowRequiredError(error);
|
|
@@ -15964,7 +16242,7 @@ async function loadWorkflowTypes(queries, env) {
|
|
|
15964
16242
|
}
|
|
15965
16243
|
async function fetchWorkflowMetadata(query, env) {
|
|
15966
16244
|
try {
|
|
15967
|
-
const params = { ...
|
|
16245
|
+
const params = { ...recordOf4(query.params) };
|
|
15968
16246
|
delete params.workflowId;
|
|
15969
16247
|
delete params.searchAdWorkflowid;
|
|
15970
16248
|
const flowCenterParam = query.flowCenterParam ?? params.flowCenterParam;
|
|
@@ -15975,15 +16253,15 @@ async function fetchWorkflowMetadata(query, env) {
|
|
|
15975
16253
|
operation: "workflow.todoSmartConvert.workflowMetadata",
|
|
15976
16254
|
body
|
|
15977
16255
|
});
|
|
15978
|
-
const data =
|
|
16256
|
+
const data = recordOf4(responseData(response));
|
|
15979
16257
|
const roots = Array.isArray(data.data) ? data.data : [];
|
|
15980
16258
|
const metadata = /* @__PURE__ */ new Map();
|
|
15981
16259
|
const conflicts = /* @__PURE__ */ new Set();
|
|
15982
16260
|
const visit = (nodes, parentType) => {
|
|
15983
16261
|
for (const value of nodes) {
|
|
15984
|
-
const node =
|
|
15985
|
-
const nodeId =
|
|
15986
|
-
const name =
|
|
16262
|
+
const node = recordOf4(value);
|
|
16263
|
+
const nodeId = textOf2(node.id);
|
|
16264
|
+
const name = textOf2(node.content) || textOf2(node.title);
|
|
15987
16265
|
const type = /^p?type_?-?\d+$/u.test(nodeId) && name ? name : parentType;
|
|
15988
16266
|
const workflow = /^wf_?(\d+)$/u.exec(nodeId);
|
|
15989
16267
|
if (workflow && name) {
|
|
@@ -16024,13 +16302,13 @@ async function loadCandidateCount(query, env) {
|
|
|
16024
16302
|
async function enrichWorkflowClarification(error, args, env) {
|
|
16025
16303
|
if (args.category !== void 0 && args.category !== "todo") return error;
|
|
16026
16304
|
if (!(error instanceof WorkflowCliError) || error.subtype !== CLARIFICATION_SUBTYPE) return error;
|
|
16027
|
-
const details =
|
|
16305
|
+
const details = recordOf4(error.details);
|
|
16028
16306
|
if (details.clarificationType !== "workflow" || !Array.isArray(details.candidates)) return error;
|
|
16029
16307
|
const candidates = [];
|
|
16030
16308
|
for (const value of details.candidates) {
|
|
16031
|
-
const source =
|
|
16032
|
-
const id =
|
|
16033
|
-
const name =
|
|
16309
|
+
const source = recordOf4(value);
|
|
16310
|
+
const id = textOf2(source.id);
|
|
16311
|
+
const name = textOf2(source.name);
|
|
16034
16312
|
if (!/^\d+$/u.test(id) || !name) return error;
|
|
16035
16313
|
candidates.push({
|
|
16036
16314
|
...source,
|
|
@@ -16038,11 +16316,23 @@ async function enrichWorkflowClarification(error, args, env) {
|
|
|
16038
16316
|
name,
|
|
16039
16317
|
display: `${name}(${id})`,
|
|
16040
16318
|
index: candidates.length + 1,
|
|
16041
|
-
workflowTypeName:
|
|
16319
|
+
workflowTypeName: textOf2(source.workflowTypeName) || null,
|
|
16042
16320
|
totalCount: null
|
|
16043
16321
|
});
|
|
16044
16322
|
}
|
|
16045
16323
|
if (candidates.length < 2) return error;
|
|
16324
|
+
const selectable = candidates.filter((candidate) => !DISCONTINUED_WORKFLOW_NAME.test(candidate.name));
|
|
16325
|
+
if (selectable.length === 0) {
|
|
16326
|
+
const question2 = "\u5339\u914D\u5230\u7684\u5DE5\u4F5C\u6D41\u540D\u79F0\u5747\u5E26\u5E9F\u5F03\u6216\u505C\u7528\u6807\u8BC6\uFF0C\u8BF7\u63D0\u4F9B\u5F53\u524D\u4F7F\u7528\u7684\u5DE5\u4F5C\u6D41\u540D\u79F0\u3002";
|
|
16327
|
+
return new WorkflowCliError(error.type, error.subtype, question2, {
|
|
16328
|
+
code: error.code,
|
|
16329
|
+
retryable: error.retryable,
|
|
16330
|
+
stage: error.stage,
|
|
16331
|
+
exitCode: error.exitCode,
|
|
16332
|
+
partialData: error.partialData,
|
|
16333
|
+
details: { ...details, clarificationQuestion: question2, clarificationReason: "workflow_discontinued", candidates: [] }
|
|
16334
|
+
});
|
|
16335
|
+
}
|
|
16046
16336
|
const nameRequests = /* @__PURE__ */ new Map();
|
|
16047
16337
|
const scopedEnv = {
|
|
16048
16338
|
...env,
|
|
@@ -16061,10 +16351,10 @@ async function enrichWorkflowClarification(error, args, env) {
|
|
|
16061
16351
|
getSession: () => env.host.getSession()
|
|
16062
16352
|
}
|
|
16063
16353
|
};
|
|
16064
|
-
const queries = await mapLimited(
|
|
16354
|
+
const queries = await mapLimited(selectable, (candidate) => buildCandidateQuery(candidate, args, scopedEnv));
|
|
16065
16355
|
const countRequests = /* @__PURE__ */ new Map();
|
|
16066
16356
|
const [types, counts] = await Promise.all([
|
|
16067
|
-
|
|
16357
|
+
selectable.some((candidate) => !candidate.workflowTypeName) ? loadWorkflowTypes(queries, env) : Promise.resolve(/* @__PURE__ */ new Map()),
|
|
16068
16358
|
mapLimited(queries, (query) => {
|
|
16069
16359
|
if (query.body === null) return Promise.resolve(null);
|
|
16070
16360
|
const key = JSON.stringify(query.body);
|
|
@@ -16076,7 +16366,7 @@ async function enrichWorkflowClarification(error, args, env) {
|
|
|
16076
16366
|
return pending;
|
|
16077
16367
|
})
|
|
16078
16368
|
]);
|
|
16079
|
-
const enriched =
|
|
16369
|
+
const enriched = selectable.map((candidate, index) => ({
|
|
16080
16370
|
...candidate,
|
|
16081
16371
|
workflowTypeName: candidate.workflowTypeName ?? types.get(candidate.id) ?? null,
|
|
16082
16372
|
totalCount: counts[index]
|
|
@@ -16090,7 +16380,7 @@ async function enrichWorkflowClarification(error, args, env) {
|
|
|
16090
16380
|
return (left.workflowTypeName ?? "").localeCompare(right.workflowTypeName ?? "", "zh-CN") || left.name.localeCompare(right.name, "zh-CN") || left.id.localeCompare(right.id);
|
|
16091
16381
|
});
|
|
16092
16382
|
const excluded = candidates.length - enriched.length;
|
|
16093
|
-
const question = excluded === 0 ? error.message : enriched.length === 0 ? `\
|
|
16383
|
+
const question = excluded === 0 ? error.message : enriched.length === 0 ? `\u4FDD\u7559\u7684${selectable.length}\u4E2A\u5DE5\u4F5C\u6D41\u5728\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u5747\u65E0\u5F85\u529E\uFF0C\u65E0\u9700\u9009\u62E9\u3002` : `\u5DF2\u6392\u9664\u65E0\u5F85\u529E\u6216\u540D\u79F0\u5E26\u5E9F\u5F03\u6807\u8BC6\u7684\u5DE5\u4F5C\u6D41\uFF0C\u8BF7\u786E\u8BA4\u8981\u67E5\u8BE2\u7684\u5DE5\u4F5C\u6D41\uFF08\u5269\u4F59${enriched.length}\u9879\uFF09\u3002`;
|
|
16094
16384
|
return new WorkflowCliError(error.type, error.subtype, question, {
|
|
16095
16385
|
code: error.code,
|
|
16096
16386
|
retryable: error.retryable,
|
|
@@ -17744,6 +18034,7 @@ var inputSchema = schemaOf({
|
|
|
17744
18034
|
description: "\u5E9F\u5F03\u517C\u5BB9\u53C2\u6570\uFF1B\u9875\u5927\u5C0F\u7531 limit \u63A8\u5BFC\uFF0C\u4F20\u5165\u503C\u53EA\u4EA7\u751F warning\u3002"
|
|
17745
18035
|
},
|
|
17746
18036
|
category: { type: "string", enum: [...CATEGORY_VALUES], default: DEFAULT_CATEGORY },
|
|
18037
|
+
subordinateName: { type: "string", description: "\u4EC5\u666E\u901A\u5F85\u529E prepareQuery\uFF1A\u76F4\u5C5E\u4E0B\u5C5E\u5B8C\u6574\u59D3\u540D\uFF0C\u91CD\u540D\u786E\u8BA4\u540E\u4F7F\u7528\u300C\u59D3\u540D(ID)\u300D\u3002" },
|
|
17747
18038
|
tabid: { type: "string" },
|
|
17748
18039
|
tabName: { type: "string" },
|
|
17749
18040
|
subCategory: { type: "string" },
|
|
@@ -17767,7 +18058,14 @@ var inputSchema = schemaOf({
|
|
|
17767
18058
|
requestLevel: { type: "string", description: "\u7D27\u6025\u7A0B\u5EA6\u540D\u79F0\uFF08CLI \u6309\u5F53\u524D\u73AF\u5883\u7B49\u7EA7\u5217\u8868\u8F6C ID\uFF09\uFF1B0 \u547D\u4E2D\u62A5\u9519\u5E76\u5217\u51FA\u53EF\u9009\u7B49\u7EA7" },
|
|
17768
18059
|
requestId: { type: "string", description: "\u6309 requestId \u7CBE\u786E\u8FC7\u6EE4\uFF0C\u9017\u53F7\u5206\u9694" },
|
|
17769
18060
|
exRequestId: { type: "string", description: "\u6392\u9664 requestId\uFF0C\u9017\u53F7\u5206\u9694" },
|
|
17770
|
-
nodeId: {
|
|
18061
|
+
nodeId: {
|
|
18062
|
+
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
|
18063
|
+
description: "\u5F53\u524D\u8282\u70B9\uFF1B\u652F\u6301 ID\u3001\u8282\u70B9\u540D\u79F0\u3001\u540D\u79F0(ID)\uFF0C\u5B57\u7B26\u4E32\u6570\u7EC4\u6216\u9017\u53F7\u5206\u9694\u591A\u503C\uFF0C\u540D\u79F0\u6309\u7CBE\u786E\u5339\u914D\u89E3\u6790\u5168\u90E8\u540C\u540D\u8282\u70B9\u5B9A\u4E49\u3002"
|
|
18064
|
+
},
|
|
18065
|
+
nodeName: {
|
|
18066
|
+
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
|
18067
|
+
description: "\u5F53\u524D\u8282\u70B9\u540D\u79F0\uFF0C\u7CBE\u786E\u5339\u914D\u5E76\u5408\u5E76\u5168\u90E8\u540C\u540D\u8282\u70B9\u5B9A\u4E49\uFF1B\u5B57\u7B26\u4E32\u6570\u7EC4\u6216\u9017\u53F7\u5206\u9694\u591A\u503C\u3002"
|
|
18068
|
+
},
|
|
17771
18069
|
nodeIdTerm: { type: "string", enum: ["in", "notin"] },
|
|
17772
18070
|
flowStatus: { type: "string", description: `\u6D41\u7A0B\u72B6\u6001\uFF08\u9009\u9879\u7C7B\uFF0C\u591A\u9009\uFF09\uFF1A${FLOW_STATUS_HINT}` },
|
|
17773
18071
|
flowStatusTerm: { type: "string", enum: ["in", "notin"] },
|
|
@@ -17843,6 +18141,9 @@ var workflowTodoSmartConvertOperations = [{
|
|
|
17843
18141
|
const outputMode = readOutputMode(args.outputMode);
|
|
17844
18142
|
const startedAt = Date.now();
|
|
17845
18143
|
const stage = args.stage === void 0 || args.stage === null || args.stage === "" ? inferStage(args) : readStage(args.stage);
|
|
18144
|
+
if (args.subordinateName !== void 0 && (stage !== "prepareQuery" || outputMode === "summary" || args.category !== void 0 && args.category !== DEFAULT_CATEGORY)) {
|
|
18145
|
+
throw workflowValidationError("subordinate_query_only", "\u4E0B\u5C5E\u5F85\u529E\u4EC5\u652F\u6301\u666E\u901A\u5F85\u529E\u67E5\u8BE2");
|
|
18146
|
+
}
|
|
17846
18147
|
const hasItems = Array.isArray(args.items);
|
|
17847
18148
|
const resumed = stage === "collect" && hasItems;
|
|
17848
18149
|
const withPriorityView = (data, extraWarnings, options) => {
|
|
@@ -17863,11 +18164,18 @@ var workflowTodoSmartConvertOperations = [{
|
|
|
17863
18164
|
};
|
|
17864
18165
|
};
|
|
17865
18166
|
if (stage === "prepareQuery") {
|
|
18167
|
+
const subordinate = args.subordinateName === void 0 ? void 0 : await resolveTodoSubordinate(args.subordinateName, env);
|
|
18168
|
+
const queryEnv = subordinate ? scopeTodoSubordinate(env, subordinate) : env;
|
|
17866
18169
|
try {
|
|
17867
|
-
const
|
|
18170
|
+
const nodeFilter = await resolveTodoNodeFilter(args, queryEnv);
|
|
18171
|
+
const result = await prepareTodoQuery(nodeFilter.args, queryEnv, nodeFilter.resolution);
|
|
18172
|
+
if (subordinate) {
|
|
18173
|
+
result.query.subordinateId = subordinate.id;
|
|
18174
|
+
result.query.subordinateName = subordinate.name;
|
|
18175
|
+
}
|
|
17868
18176
|
return finish(env, args, startedAt, stage, result, { branch: "todo-query", stage }, result.warnings);
|
|
17869
18177
|
} catch (error) {
|
|
17870
|
-
throw await enrichWorkflowClarification(error, args,
|
|
18178
|
+
throw await enrichWorkflowClarification(error, args, queryEnv);
|
|
17871
18179
|
}
|
|
17872
18180
|
}
|
|
17873
18181
|
if (stage === "view") {
|
|
@@ -18033,7 +18341,9 @@ var workflowTodoSmartConvertOperations = [{
|
|
|
18033
18341
|
if (stage === "collect" || !hasItems) {
|
|
18034
18342
|
let result;
|
|
18035
18343
|
try {
|
|
18036
|
-
|
|
18344
|
+
const nodeFilter = await resolveTodoNodeFilter(args, env);
|
|
18345
|
+
result = await collectRawTodos(nodeFilter.args, env, nodeFilter.resolution);
|
|
18346
|
+
if (nodeFilter.resolution) Object.assign(result, { nodeResolution: nodeFilter.resolution });
|
|
18037
18347
|
} catch (error) {
|
|
18038
18348
|
throw await enrichWorkflowClarification(error, args, env);
|
|
18039
18349
|
}
|