weaver-work-cli 0.1.68 → 0.1.70
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/dist/chunks/{archive-SJTC5265.js → archive-VUTREF3P.js} +4 -4
- package/dist/chunks/{archive-oa-PN46RTI2.js → archive-oa-VXXO4RTB.js} +4 -4
- package/dist/chunks/{asset-XM3Y4FVU.js → asset-45U6TY7I.js} +32 -5
- package/dist/chunks/{asset-idle-DHGP3NYY.js → asset-idle-YCRBMTIT.js} +4 -4
- package/dist/chunks/{attachment-content-IXIBOET6.js → attachment-content-DMU7KNZ7.js} +3 -3
- package/dist/chunks/{blog-JC47AIXK.js → blog-5AML4WMG.js} +4 -4
- package/dist/chunks/{caizhilian-IKIHM77A.js → caizhilian-3P7BUNHT.js} +6 -6
- package/dist/chunks/{calendar-GZTSJ57Y.js → calendar-2HUXM3CZ.js} +4 -4
- package/dist/chunks/{chunk-6OK4LW76.js → chunk-4W6BSNIL.js} +6 -6
- package/dist/chunks/{chunk-3W5NMGDS.js → chunk-727VKJQK.js} +2 -2
- package/dist/chunks/{chunk-QHKY4WZA.js → chunk-7CINV2BU.js} +2 -2
- package/dist/chunks/{chunk-26FCCU5O.js → chunk-DSBV4GRK.js} +3 -3
- package/dist/chunks/{chunk-HWA2A25Y.js → chunk-E7VWE2XI.js} +3 -3
- package/dist/chunks/{chunk-C5IIIT4D.js → chunk-EHH363SP.js} +4 -4
- package/dist/chunks/{chunk-LXXR2RRE.js → chunk-GFOFUH6O.js} +50 -50
- package/dist/chunks/{chunk-TJN4PIYO.js → chunk-GTAFCAVP.js} +2 -0
- package/dist/chunks/{chunk-O7KPHPXQ.js → chunk-GWM5TLIK.js} +34 -34
- package/dist/chunks/{chunk-WSHIOSGM.js → chunk-H2NRTGZR.js} +3 -3
- package/dist/chunks/{chunk-YSEHTSHS.js → chunk-HAORST2G.js} +11 -11
- package/dist/chunks/{chunk-4WCVRDC5.js → chunk-HG6INLH6.js} +13 -0
- package/dist/chunks/{chunk-FDBAFANU.js → chunk-I5XB4MZT.js} +227 -23
- package/dist/chunks/{chunk-BJNSTCJK.js → chunk-IVCOZCAW.js} +1 -1
- package/dist/chunks/{chunk-Y7RGBRLG.js → chunk-KDOJW5LH.js} +1 -1
- package/dist/chunks/{chunk-QO6JYDIW.js → chunk-L2A3COWV.js} +4 -4
- package/dist/chunks/{chunk-X7ZTM4XG.js → chunk-LJE7RZNC.js} +1 -1
- package/dist/chunks/{chunk-FJUOUSV3.js → chunk-LRKKKO5A.js} +36 -9
- package/dist/chunks/{chunk-HLT6B26P.js → chunk-LSVA7QA6.js} +1 -1
- package/dist/chunks/{chunk-6N4JPNFL.js → chunk-MD5CW4B6.js} +1 -1
- package/dist/chunks/{chunk-Q6D6PSMH.js → chunk-QYDSTYGG.js} +3 -3
- package/dist/chunks/{chunk-AFZTMYGC.js → chunk-T24EBWAZ.js} +1 -1
- package/dist/chunks/{chunk-6T5X6YWX.js → chunk-U3OO3IZF.js} +3 -3
- package/dist/chunks/{chunk-VLY5RTVO.js → chunk-UVWW5ABZ.js} +3 -3
- package/dist/chunks/{chunk-NP3ZZFGI.js → chunk-VZUH3LKI.js} +16 -5
- package/dist/chunks/{chunk-OKUJY5YB.js → chunk-X6PMJQGO.js} +64 -21
- package/dist/chunks/{chunk-3NJQTG6X.js → chunk-XIBMZEDB.js} +2 -2
- package/dist/chunks/{conflict-CEXRX2KP.js → conflict-YW5BULJ3.js} +2 -2
- package/dist/chunks/{contract-PM3EUPZC.js → contract-3PMHUASH.js} +164 -5
- package/dist/chunks/{cowork-34CBYVQP.js → cowork-FZBTTBYX.js} +4 -4
- package/dist/chunks/{create-flow-DG6D7U2L.js → create-flow-5OBS3B3V.js} +6 -6
- package/dist/chunks/{data-3G4GQS5P.js → data-2YZ6A6TL.js} +19 -4
- package/dist/chunks/{ebuilder-form-5ENYH7IF.js → ebuilder-form-AWPTMZBZ.js} +5 -5
- package/dist/chunks/{ehr-2CONM7R6.js → ehr-MNPR4TE5.js} +4 -4
- package/dist/chunks/{entry-mode-KMP66KHE.js → entry-mode-L65OWPFM.js} +3 -3
- package/dist/chunks/{env-SW6CTETI.js → env-XW7LYIME.js} +2 -2
- package/dist/chunks/{esb-FQASCY2H.js → esb-GSB5QCEX.js} +6 -6
- package/dist/chunks/{factory-ETQAICPA.js → factory-MHFZZAGH.js} +1 -1
- package/dist/chunks/{fna-FCLVIWAS.js → fna-XBSNUS2V.js} +4 -4
- package/dist/chunks/{group-chat-GTYMCBYS.js → group-chat-EEOLO5NM.js} +3 -3
- package/dist/chunks/{host-P7G22WNM.js → host-2UMNXX5H.js} +4 -4
- package/dist/chunks/{host-XLCBLNJD.js → host-BD44ASOD.js} +4 -4
- package/dist/chunks/{host-2ED2KC4X.js → host-NVDG3NC6.js} +4 -4
- package/dist/chunks/{host-46NYKDQP.js → host-R7BP3CTI.js} +4 -4
- package/dist/chunks/{host-7IPZKIM4.js → host-SYPCA63D.js} +4 -4
- package/dist/chunks/{host-2UYZEY2V.js → host-XVWBOSEN.js} +4 -4
- package/dist/chunks/{hrm-5WSMSKPX.js → hrm-FZUDJAND.js} +17 -11
- package/dist/chunks/{im-P7GNBRG6.js → im-F5NENPD7.js} +4 -4
- package/dist/chunks/{invoice-2QCVNXBG.js → invoice-DS6FLU55.js} +42 -6
- package/dist/chunks/{jiuchuanhui-FHGFYAHU.js → jiuchuanhui-JCBUR563.js} +1332 -1037
- package/dist/chunks/{lazy-dispatch-K25LTKQY.js → lazy-dispatch-F6O2EPGR.js} +7 -7
- package/dist/chunks/{mail-P7VMUKQW.js → mail-ZEOSANEJ.js} +4 -4
- package/dist/chunks/{meeting-3PTTPUSG.js → meeting-PCD5EPBF.js} +15 -15
- package/dist/chunks/{minute-doc-3IMRJDJV.js → minute-doc-WTZJVCHG.js} +4 -4
- package/dist/chunks/{okr-OIWJRYWY.js → okr-OZUMTMCL.js} +4 -4
- package/dist/chunks/{operations-MI2BSKZX.js → operations-UTUWFJTX.js} +5 -5
- package/dist/chunks/{performance-OPEQNW7Y.js → performance-SMVTPK6T.js} +8 -7
- package/dist/chunks/{plan-TJAS4N5X.js → plan-C2NENH42.js} +4 -4
- package/dist/chunks/{project-CYBGU6K6.js → project-FAJ2P3UR.js} +4 -4
- package/dist/chunks/{reception-2VSWJQ5N.js → reception-NH6MJFPR.js} +16 -8
- package/dist/chunks/{recruit-stage-KHJYQE3I.js → recruit-stage-DPEFHLSE.js} +3 -3
- package/dist/chunks/{registry-FXBOGH2X.js → registry-3B3OAJYX.js} +4 -4
- package/dist/chunks/{registry-QRMXRSCT.js → registry-FTPUUHWC.js} +5 -5
- package/dist/chunks/{registry-PHPYTXS4.js → registry-ZQ7OONCB.js} +12 -12
- package/dist/chunks/{room-recommend-BKCPAXQG.js → room-recommend-73NBN3RU.js} +4 -4
- package/dist/chunks/{schedule-Q3MPSZV6.js → schedule-SDBOBBUQ.js} +4 -4
- package/dist/chunks/{smart-extract-TYYKC244.js → smart-extract-GTYKF5TJ.js} +4 -4
- package/dist/chunks/{workflow-GEDHALMY.js → workflow-OWHWLAOX.js} +81 -12
- package/dist/core/error-codes.js +1 -1
- package/dist/core/host-policy.js +56 -0
- package/dist/core/timing.js +227 -0
- package/dist/index.js +39 -36
- package/dist/internal/e10/auth/commands.js +11 -0
- package/dist/internal/e10/auth/error-log.js +13 -0
- package/dist/internal/e10/auth/messages.js +10 -0
- package/dist/internal/e10/auth/xiaoe.js +12 -2
- package/dist/internal/e10/context.js +39 -12
- package/dist/internal/e10/network-error.js +28 -0
- package/dist/internal/e10/tls-policy.js +260 -0
- package/dist/shortcuts/asset/manifest.js +34 -1
- package/dist/shortcuts/contract/manifest.js +166 -1
- package/dist/shortcuts/data/manifest.js +32 -1
- package/dist/shortcuts/hrm/index.js +20 -7
- package/dist/shortcuts/invoice/manifest.js +43 -1
- package/dist/shortcuts/jiuchuanhui/cache.js +49 -35
- package/dist/shortcuts/jiuchuanhui/host.js +109 -5
- package/dist/shortcuts/jiuchuanhui/index.js +43 -7
- package/dist/shortcuts/jiuchuanhui/manifest.js +138 -2
- package/dist/shortcuts/jiuchuanhui/operations/customer-quick.js +110 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +11 -56
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +9 -16
- package/dist/shortcuts/jiuchuanhui/operations/generic.js +8 -30
- package/dist/shortcuts/jiuchuanhui/operations/registry.js +8 -2
- package/dist/shortcuts/jiuchuanhui/operations/shared.js +0 -10
- package/dist/shortcuts/performance/operations/flow-detail.js +5 -4
- package/dist/shortcuts/reception/host.js +19 -5
- package/dist/shortcuts/workflow/index.js +55 -5
- package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +5 -2
- package/dist/shortcuts/workflow/operations/read.js +12 -2
- package/dist/shortcuts/workflow/operations/types.js +7 -1
- package/dist/shortcuts/workflow/operations/write.js +20 -2
- package/dist/shortcuts/workflow/operations.js +19 -1
- package/docs/e10-auth.md +48 -1
- package/docs/jiuchuanhui.md +17 -5
- package/package.json +1 -1
- package/scripts/xiaoe_env.py +18 -3
- package/skills/weaver-e10-asset-idle/SKILL.md +1 -1
- package/skills/weaver-e10-blog/SKILL.md +2 -2
- package/skills/weaver-e10-calendar/SKILL.md +1 -1
- package/skills/weaver-e10-data/SKILL.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +1 -1
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-hrm/SKILL.md +1 -1
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +49 -90
- package/skills/weaver-e10-jiuchuanhui/references/cache.md +17 -13
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +33 -4
- package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +3 -3
- package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +9 -7
- package/skills/weaver-e10-jucailin/SKILL.md +84 -17
- package/skills/weaver-e10-jucailin/agents/openai.yaml +2 -1
- package/skills/weaver-e10-jucailin/references/recruit-create.md +7 -8
- package/skills/weaver-e10-jucailin/references/recruit-implement-INDEX.md +41 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +77 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-guardrails.md +41 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +31 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-form-external.md +43 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +32 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-collect-update-talent.md +93 -0
- package/skills/weaver-e10-jucailin/references/recruit-implement-pattern-external-share-edit.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -11
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -3
- package/skills/weaver-e10-mail/SKILL.md +52 -10
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -2
- package/skills/weaver-e10-meeting/SKILL.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/SKILL.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-performance/SKILL.md +2 -2
- package/skills/weaver-e10-performance/agents/openai.yaml +4 -2
- package/skills/weaver-e10-performance/references/flow-assess.md +19 -6
- package/skills/weaver-e10-plan/SKILL.md +2 -2
- package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +3 -3
- package/skills/weaver-e10-reception-flow/SKILL.md +53 -16
- package/skills/weaver-e10-shared/SKILL.md +4 -9
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
- package/skills/weaver-e10-shijingran/SKILL.md +14 -6
- package/skills/weaver-e10-shijingran/references/source-manifest.json +5 -4
- package/skills/weaver-e10-workflow/SKILL.md +2 -2
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +1 -2
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +8 -3
- package/skills/weaver-e10-ziguanjia/SKILL.md +1 -1
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +1 -2
|
@@ -72,11 +72,22 @@ const INPUT_SCHEMAS = {
|
|
|
72
72
|
},
|
|
73
73
|
'data.attend.statis': { required: [], optional: ['user', 'begin', 'end'] },
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* 少量字段的取值口径。只写会踩坑的:默认全部字段只声明类型,不编说明。
|
|
77
|
+
* `dsl` 走 `readJsonArg`(operations/query.ts),传 SQL 文本会直接被 JSON 解析拒绝。
|
|
78
|
+
*/
|
|
79
|
+
const FIELD_DESCRIPTIONS = {
|
|
80
|
+
'data.dsl.query.dsl': 'DSL 查询体:JSON 字符串,或 @文件路径;CLI 按 JSON 解析,不能传 SQL 文本(会报「--dsl 不是合法 JSON」)',
|
|
81
|
+
};
|
|
75
82
|
function inputSchemaOf(name) {
|
|
76
83
|
const spec = INPUT_SCHEMAS[name] || { required: [], optional: [] };
|
|
77
84
|
const properties = {};
|
|
78
85
|
for (const key of [...spec.required, ...spec.optional]) {
|
|
79
|
-
|
|
86
|
+
const description = FIELD_DESCRIPTIONS[`${name}.${key}`];
|
|
87
|
+
properties[key] = {
|
|
88
|
+
type: key === 'keys' || key === 'ids' || key === 'group_ids' || key === 'item_ids' ? 'array' : 'string',
|
|
89
|
+
...(description ? { description } : {}),
|
|
90
|
+
};
|
|
80
91
|
}
|
|
81
92
|
return {
|
|
82
93
|
type: 'object',
|
|
@@ -86,10 +97,30 @@ function inputSchemaOf(name) {
|
|
|
86
97
|
additionalProperties: false,
|
|
87
98
|
};
|
|
88
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* 写类 operation 的风险标注。
|
|
102
|
+
*
|
|
103
|
+
* 依据执行逻辑逐个核对(`operations/conf.ts`、`operations/module.ts`):
|
|
104
|
+
* - `conf.add` / `conf.add-file` / `conf.update` / `conf.delete` 都走 `POST` 写配置中心,
|
|
105
|
+
* `conf.delete` 直接删键、不可撤销;
|
|
106
|
+
* - `module.call` 透传任意业务模块(method/body 由调用方给),副作用无法在本地枚举。
|
|
107
|
+
*
|
|
108
|
+
* 这五个之外一律 `read`:data 域其余 operation 只做查询与元数据读取。
|
|
109
|
+
* 配置中心是租户级共享数据,写错影响所有使用方,故按 `high-risk-write` 标注,
|
|
110
|
+
* 与文档「至少 5 个配置写操作与只读查询同一标签」的整改要求一致。
|
|
111
|
+
*/
|
|
112
|
+
const WRITE_RISK = new Set([
|
|
113
|
+
'data.conf.add',
|
|
114
|
+
'data.conf.add-file',
|
|
115
|
+
'data.conf.update',
|
|
116
|
+
'data.conf.delete',
|
|
117
|
+
'data.module.call',
|
|
118
|
+
]);
|
|
89
119
|
export const dataOperations = operationDefinitions().map((definition) => ({
|
|
90
120
|
name: definition.name,
|
|
91
121
|
resource: definition.capability,
|
|
92
122
|
summary: definition.summary,
|
|
123
|
+
risk: WRITE_RISK.has(definition.name) ? 'high-risk-write' : 'read',
|
|
93
124
|
command: definition.command,
|
|
94
125
|
inputSchema: inputSchemaOf(definition.name),
|
|
95
126
|
}));
|
|
@@ -149,17 +149,30 @@ export const hrmShortcut = {
|
|
|
149
149
|
ctx.output.write(hrmManifest, { json: true });
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
// 精简版:name + summary + 参数名 + 必填项,供 Agent 快速路由,避免全量 schema
|
|
152
|
+
// 精简版:name + summary + 参数名 + 必填项,供 Agent 快速路由,避免全量 schema 撑爆上下文。
|
|
153
|
+
//
|
|
154
|
+
// `atLeastOne`:查询类的「至少一个收敛条件」用 inputSchema.anyOf 表达,
|
|
155
|
+
// 精简视图原先只打印 required(=[]),看起来像「无需入参」,实测空入参会被
|
|
156
|
+
// E-0003 empty_condition 拒(hrm.employee.query / org.query / position.query)。
|
|
157
|
+
// 这里把 anyOf 各分支的 required 并成扁平列表回给调用方,避免再靠报错反推。
|
|
153
158
|
const brief = {
|
|
154
159
|
schemaVersion: hrmManifest.schemaVersion,
|
|
155
160
|
name: hrmManifest.name,
|
|
156
161
|
version: hrmManifest.version,
|
|
157
|
-
operations: hrmManifest.operations.map((o) =>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
operations: hrmManifest.operations.map((o) => {
|
|
163
|
+
const anyOf = Array.isArray(o.inputSchema?.anyOf) ? o.inputSchema.anyOf : null;
|
|
164
|
+
const atLeastOne = anyOf
|
|
165
|
+
? [...new Set(anyOf.flatMap((branch) => branch?.required ?? []))]
|
|
166
|
+
: [];
|
|
167
|
+
return {
|
|
168
|
+
name: o.name,
|
|
169
|
+
summary: o.summary,
|
|
170
|
+
risk: o.risk,
|
|
171
|
+
params: Object.keys(o.inputSchema?.properties ?? {}),
|
|
172
|
+
required: o.inputSchema?.required ?? [],
|
|
173
|
+
...(atLeastOne.length ? { atLeastOne } : {}),
|
|
174
|
+
};
|
|
175
|
+
}),
|
|
163
176
|
};
|
|
164
177
|
ctx.output.write(brief, { json: true });
|
|
165
178
|
}));
|
|
@@ -562,6 +562,48 @@ const issuingContractDetailOutputSchema = objectSchema({
|
|
|
562
562
|
}, ['docId', 'fileId', 'name'])),
|
|
563
563
|
contractDocIds: { ...nullableText, description: '全部文档 id,英文逗号分隔。开票申请「合同文本」不要填这个字符串' },
|
|
564
564
|
}, ['requestId', 'requestName', 'workflowName', 'customer', 'customerSource', 'contractDocuments', 'contractDocIds']);
|
|
565
|
+
/**
|
|
566
|
+
* 每条 operation 的一句话用途,写入 schema 的 summary。
|
|
567
|
+
*
|
|
568
|
+
* 口径:只描述「做什么 + 关键入参 + 是否写库」,不写未在实现里体现的业务承诺;
|
|
569
|
+
* prepare/apply 成对出现时,prepare 标注「只出预览,不写入」,apply 标注「落库前需确认」。
|
|
570
|
+
*/
|
|
571
|
+
const OPERATION_SUMMARIES = {
|
|
572
|
+
'invoice.list': '分页查询本人票夹的发票列表;可按类型、开票/消费日期区间、关键词过滤',
|
|
573
|
+
'invoice.enterprise.list': '分页查询企业票夹的发票列表(企业抬头下的发票);过滤条件同票夹列表',
|
|
574
|
+
'invoice.get': '按 fid 或票号取单张发票详情',
|
|
575
|
+
'invoice.upload': '上传本地文件或 URL 到发票系统(产出 fileId,尚不入票夹);入参 file/url',
|
|
576
|
+
'invoice.ocr.preview': '对上传的文件做 OCR 预览(不落库);入参 file/url,可指定 upload/is_save',
|
|
577
|
+
'invoice.upload-and-validate': '上传并做发票查验(真假校验),返回查验结果',
|
|
578
|
+
'invoice.import.prepare': '准备把发票导入票夹(只出预览,不写入);入参 file/url/validate/syncToOa',
|
|
579
|
+
'invoice.import.apply': '提交把发票导入票夹(落库前需确认);需 continuation + confirm',
|
|
580
|
+
'invoice.add.prepare': '准备新增发票记录(只出预览,不写入);入参 info/scope',
|
|
581
|
+
'invoice.add.apply': '提交新增发票记录(落库前需确认);需 continuation + confirm',
|
|
582
|
+
'invoice.update.prepare': '准备修改发票记录(只出预览,不写入);入参 fid/scope/changes',
|
|
583
|
+
'invoice.update.apply': '提交修改发票记录(落库前需确认);需 continuation + confirm',
|
|
584
|
+
'invoice.download': '把发票文件下载到本地;入参 fid/fileId/output(写本地文件)',
|
|
585
|
+
'invoice.delete.prepare': '准备删除发票记录(只出预览,不写入);入参 fid/scope',
|
|
586
|
+
'invoice.delete.apply': '提交删除发票记录(落库前需确认);需 continuation + confirm',
|
|
587
|
+
'invoice.reim.file-ocr.preview': '按报销附件 fileId 取发票识别结果(批量,不落库)',
|
|
588
|
+
'invoice.reim.requests.list': '分页查询可报销的流程单(报销申请列表);可按时间与场景过滤',
|
|
589
|
+
'invoice.reim.workflow.resolve': '按流程单 ID 批量解析对应的报销流程定义',
|
|
590
|
+
'invoice.reim.employee-superiors': '取当前员工的上级链(报销审批人候选,无入参)',
|
|
591
|
+
'invoice.reim.field.search': '按关键词检索报销表单字段(含字段 ID 与所属流程/节点)',
|
|
592
|
+
'invoice.reim.customer.search': '按关键词检索客户(报销关联客户候选)',
|
|
593
|
+
'invoice.reim.relation.search': '按目标与关键词检索报销关联关系(客户/项目)',
|
|
594
|
+
'invoice.reim.relation.save': '保存发票与客户/项目的关联关系(写操作,经动作流)',
|
|
595
|
+
'invoice.reim.relation.list': '按发票 fid/fids 查已建立的报销关联关系',
|
|
596
|
+
'invoice.reim.candidates.list': '按消费日期区间查询可参与报销的发票候选(有数量上限)',
|
|
597
|
+
'invoice.reim.subsidy.submit': '提交报销补贴申请并创建报销流程(高风险写操作,会落库发起流程)',
|
|
598
|
+
'invoice.issuing.contracts.list': '按合同卡片/流程 ID 查可开票的合同列表',
|
|
599
|
+
'invoice.issuing.contract.detail': '按 requestId 查开票对应合同的流程明细',
|
|
600
|
+
};
|
|
601
|
+
function withSummaries(operations) {
|
|
602
|
+
return operations.map((item) => ({
|
|
603
|
+
...item,
|
|
604
|
+
summary: item.summary || OPERATION_SUMMARIES[item.name] || '',
|
|
605
|
+
}));
|
|
606
|
+
}
|
|
565
607
|
export const invoiceOperations = [
|
|
566
608
|
{
|
|
567
609
|
name: 'invoice.list',
|
|
@@ -1246,7 +1288,7 @@ export const invoiceManifest = {
|
|
|
1246
1288
|
},
|
|
1247
1289
|
note: '--view 与 --fields 互斥。投影只影响输出,不改变任何请求参数;meta.projection 会说明本次裁剪结果。',
|
|
1248
1290
|
},
|
|
1249
|
-
operations: invoiceOperations,
|
|
1291
|
+
operations: withSummaries(invoiceOperations),
|
|
1250
1292
|
withheldOperations: [
|
|
1251
1293
|
{
|
|
1252
1294
|
name: 'invoice.share',
|
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
15
15
|
import { homedir } from 'node:os';
|
|
16
|
-
import { join } from 'node:path';
|
|
16
|
+
import { dirname, join } from 'node:path';
|
|
17
17
|
import { jiuchuanhuiValidationError } from './errors.js';
|
|
18
18
|
const APP_TAG = 'jch-crm-project';
|
|
19
19
|
const MIN_VERSION = '1.5.11';
|
|
20
|
+
const REGION_CONCURRENCY = 4;
|
|
21
|
+
export function jiuchuanhuiCacheFile(tenantKey, userId) {
|
|
22
|
+
const root = process.env.WEAVER_E10_JIUCHUANHUI_HOME || join(homedir(), '.weaver-e10-jiuchuanhui');
|
|
23
|
+
return join(root, tenantKey, userId, 'weaver-e10-jiuchuanhui.json');
|
|
24
|
+
}
|
|
20
25
|
const MODULE_TAGS = [
|
|
21
26
|
'uf_jch_customer', 'uf_jch_sale', 'uf_jch_clue', 'uf_jch_contact',
|
|
22
27
|
'uf_jch_customer_open_sea', 'uf_jch_remind', 'uf_jch_rival',
|
|
@@ -79,6 +84,17 @@ function semverGte(a, b) {
|
|
|
79
84
|
}
|
|
80
85
|
return true;
|
|
81
86
|
}
|
|
87
|
+
function searchConditionRows(value) {
|
|
88
|
+
if (typeof value === 'string') {
|
|
89
|
+
try {
|
|
90
|
+
value = JSON.parse(value);
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return Array.isArray(value?.datas) ? value.datas : undefined;
|
|
97
|
+
}
|
|
82
98
|
function successCheck(value) {
|
|
83
99
|
if (!value || typeof value !== 'object')
|
|
84
100
|
return false;
|
|
@@ -107,8 +123,8 @@ export class CacheInitOperation {
|
|
|
107
123
|
if (!tenantKey || !userId) {
|
|
108
124
|
throw jiuchuanhuiValidationError('session_context_missing', '无法获取缓存隔离上下文:session 缺少 tenantKey/userId,请确认 E10 登录态');
|
|
109
125
|
}
|
|
110
|
-
const
|
|
111
|
-
const
|
|
126
|
+
const mainFile = jiuchuanhuiCacheFile(tenantKey, String(userId));
|
|
127
|
+
const baseDir = dirname(mainFile);
|
|
112
128
|
const cfgDir = join(baseDir, 'config');
|
|
113
129
|
// 保留旧 region / options / spVersion
|
|
114
130
|
let old = {};
|
|
@@ -180,6 +196,7 @@ export class CacheInitOperation {
|
|
|
180
196
|
}
|
|
181
197
|
// ── 步骤 3:创建/更新接口配置 + 字段 data_key 映射 ───────────────────
|
|
182
198
|
const perPk = {};
|
|
199
|
+
const searchConditions = new Map();
|
|
183
200
|
for (const pk of Object.keys(cfgMap)) {
|
|
184
201
|
const cfgId = cfgMap[pk];
|
|
185
202
|
const resp = await host.request({
|
|
@@ -189,6 +206,11 @@ export class CacheInitOperation {
|
|
|
189
206
|
operation: this.name,
|
|
190
207
|
});
|
|
191
208
|
const detail = resp?.data ?? {};
|
|
209
|
+
if (SEARCH_PKS.includes(pk)) {
|
|
210
|
+
const rows = searchConditionRows(detail.conditions);
|
|
211
|
+
if (rows)
|
|
212
|
+
searchConditions.set(pk, rows);
|
|
213
|
+
}
|
|
192
214
|
if (!detail?.id && !detail?.mainFields)
|
|
193
215
|
continue;
|
|
194
216
|
const allFields = [
|
|
@@ -328,24 +350,18 @@ export class CacheInitOperation {
|
|
|
328
350
|
if (!cfgId)
|
|
329
351
|
continue;
|
|
330
352
|
try {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
try {
|
|
341
|
-
conditions = JSON.parse(conditions);
|
|
342
|
-
}
|
|
343
|
-
catch {
|
|
344
|
-
conditions = null;
|
|
345
|
-
}
|
|
353
|
+
let rows = searchConditions.get(pk);
|
|
354
|
+
if (!rows) {
|
|
355
|
+
const resp = await host.request({
|
|
356
|
+
method: 'GET',
|
|
357
|
+
path: '/api/bs/ebuilder/form/formdata/getRestCfgById',
|
|
358
|
+
query: { apid: appId, id: cfgId },
|
|
359
|
+
operation: this.name,
|
|
360
|
+
});
|
|
361
|
+
rows = searchConditionRows(resp?.data?.conditions);
|
|
346
362
|
}
|
|
347
363
|
const params = [];
|
|
348
|
-
for (const d of
|
|
364
|
+
for (const d of rows ?? []) {
|
|
349
365
|
const value = d?.conditions?.value;
|
|
350
366
|
if (typeof value === 'string') {
|
|
351
367
|
const m = value.match(/\{([^}]+)\}/);
|
|
@@ -375,24 +391,22 @@ export class CacheInitOperation {
|
|
|
375
391
|
}
|
|
376
392
|
// ── 步骤 7:行政区划(按需预取 22 城;失败跳过,保留旧缓存 region)───
|
|
377
393
|
const region = {};
|
|
378
|
-
for (
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
394
|
+
for (let offset = 0; offset < REGION_CITIES.length; offset += REGION_CONCURRENCY) {
|
|
395
|
+
const cities = REGION_CITIES.slice(offset, offset + REGION_CONCURRENCY);
|
|
396
|
+
const results = await Promise.allSettled(cities.map(async (city) => host.request({
|
|
397
|
+
path: '/api/esb/server/event/triggerActionFlow',
|
|
398
|
+
body: {
|
|
399
|
+
customParams: { mainTable: { moduleType: 'administrativeDivision', name: city, fromType: 'agentSkill' } },
|
|
400
|
+
uniqueIndent: '7EC1639D5AC24B4DBCEE8D2CB85D4025',
|
|
401
|
+
employeeId: userId,
|
|
402
|
+
},
|
|
403
|
+
operation: this.name,
|
|
404
|
+
})));
|
|
405
|
+
for (const [index, result] of results.entries()) {
|
|
406
|
+
if (result.status === 'fulfilled' && Number(result.value?.resultCode) === 200) {
|
|
407
|
+
region[`administrativeDivision:${cities[index]}`] = result.value;
|
|
391
408
|
}
|
|
392
409
|
}
|
|
393
|
-
catch {
|
|
394
|
-
// 单城市失败跳过
|
|
395
|
-
}
|
|
396
410
|
}
|
|
397
411
|
// ── 落盘 ───────────────────────────────────────────────────────────
|
|
398
412
|
const cache = { discovery, ebuilder, options, region };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { charsOf, compactForStdout } from '../../core/output.js';
|
|
2
|
+
import { ExitCode } from '../../core/errors.js';
|
|
1
3
|
import { E10_SESSION_EXPIRED_MESSAGE } from '../../internal/e10/auth/messages.js';
|
|
2
4
|
import { requireE10Session } from '../../internal/e10/context.js';
|
|
3
5
|
import { getActiveProfile } from '../../internal/e10/auth/session.js';
|
|
@@ -56,6 +58,83 @@ function businessCode(value) {
|
|
|
56
58
|
return code;
|
|
57
59
|
return undefined;
|
|
58
60
|
}
|
|
61
|
+
/** 错误里透传原始响应时的上限(字符)。失败响应不保证小,必须定量。 */
|
|
62
|
+
const RAW_RESPONSE_BUDGET_CHARS = 4_096;
|
|
63
|
+
const BUSINESS_MESSAGE_KEYS = ['msg', 'message', 'resultMsg', 'reminderMsg', 'failMsg', 'errorMsg'];
|
|
64
|
+
const BUSINESS_MESSAGE_CONTAINERS = ['actionData', 'responseData', 'customData', 'mainTable', 'data', 'result'];
|
|
65
|
+
function deepMessage(value, depth) {
|
|
66
|
+
if (!value || typeof value !== 'object' || Array.isArray(value) || depth > 4)
|
|
67
|
+
return '';
|
|
68
|
+
const record = value;
|
|
69
|
+
for (const key of BUSINESS_MESSAGE_KEYS) {
|
|
70
|
+
const item = record[key];
|
|
71
|
+
if (typeof item === 'string' && item.trim())
|
|
72
|
+
return item.trim();
|
|
73
|
+
}
|
|
74
|
+
for (const key of BUSINESS_MESSAGE_CONTAINERS) {
|
|
75
|
+
const found = deepMessage(record[key], depth + 1);
|
|
76
|
+
if (found)
|
|
77
|
+
return found;
|
|
78
|
+
}
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* ESB 动作流失败时,顶层 `resultMsg` 往往只是框架给的「执行失败!」;
|
|
83
|
+
* 真正原因藏在出参里(`actionData.responseData.customData.mainTable.msg`,
|
|
84
|
+
* 例如「您对当前客户无领取权限,无法领取。」)。
|
|
85
|
+
*
|
|
86
|
+
* 只在**比顶层文案更有信息量**时返回,避免与 `message` 重复。
|
|
87
|
+
* 注意:本函数只补充 `details`,不改动 `message` 原文。
|
|
88
|
+
*/
|
|
89
|
+
export function jiuchuanhuiBusinessDetailMessage(value) {
|
|
90
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
91
|
+
return '';
|
|
92
|
+
const root = value;
|
|
93
|
+
const top = jiuchuanhuiBusinessMessage(value);
|
|
94
|
+
for (const key of BUSINESS_MESSAGE_CONTAINERS) {
|
|
95
|
+
const found = deepMessage(root[key], 0);
|
|
96
|
+
if (found && found !== top)
|
|
97
|
+
return found;
|
|
98
|
+
}
|
|
99
|
+
return '';
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 原始响应超出预算时逐档压缩;压缩后仍超线就只留键名,绝不把 stderr 撑爆
|
|
103
|
+
* (错误通道不过 `Output.prepare`,没有落盘与预算兜底)。
|
|
104
|
+
*/
|
|
105
|
+
function boundedResponse(value) {
|
|
106
|
+
if (value === undefined)
|
|
107
|
+
return undefined;
|
|
108
|
+
const chars = charsOf(value);
|
|
109
|
+
if (chars <= RAW_RESPONSE_BUDGET_CHARS)
|
|
110
|
+
return value;
|
|
111
|
+
const compacted = compactForStdout(value, RAW_RESPONSE_BUDGET_CHARS);
|
|
112
|
+
if (charsOf(compacted) <= RAW_RESPONSE_BUDGET_CHARS) {
|
|
113
|
+
return { note: `原始响应 ${chars} 字符,已按预算压缩为预览`, preview: compacted };
|
|
114
|
+
}
|
|
115
|
+
const keys = value && typeof value === 'object' && !Array.isArray(value)
|
|
116
|
+
? Object.keys(value).slice(0, 20)
|
|
117
|
+
: [];
|
|
118
|
+
return { note: `原始响应 ${chars} 字符,超过 ${RAW_RESPONSE_BUDGET_CHARS} 字符预算,未内联`, keys };
|
|
119
|
+
}
|
|
120
|
+
/** 业务失败时的 details:保留原有 code/message,另带可执行的业务原因与原始响应。 */
|
|
121
|
+
function failureDetails(value, code, message) {
|
|
122
|
+
const businessMessage = jiuchuanhuiBusinessDetailMessage(value);
|
|
123
|
+
return {
|
|
124
|
+
code,
|
|
125
|
+
message,
|
|
126
|
+
...(businessMessage ? { businessMessage } : {}),
|
|
127
|
+
response: boundedResponse(value),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function claimPermissionMessage(value) {
|
|
131
|
+
const messages = [
|
|
132
|
+
value?.actionData?.responseData?.customData?.mainTable?.msg,
|
|
133
|
+
value?.responseData?.customData?.mainTable?.msg,
|
|
134
|
+
];
|
|
135
|
+
return messages.find((message) => typeof message === 'string'
|
|
136
|
+
&& /^您对当前客户无领取权限[,,]\s*无法领取[。.]?$/u.test(message.trim()))?.trim();
|
|
137
|
+
}
|
|
59
138
|
export function assertJiuchuanhuiPath(requestPath) {
|
|
60
139
|
if (typeof requestPath !== 'string' || !requestPath.startsWith('/') || requestPath.startsWith('//')) {
|
|
61
140
|
throw jiuchuanhuiValidationError('path_invalid', '请求路径必须是相对绝对路径');
|
|
@@ -109,7 +188,7 @@ export function createJiuchuanhuiHost(ctx, dependencies = {}) {
|
|
|
109
188
|
fetch: dependencies.fetch,
|
|
110
189
|
});
|
|
111
190
|
}
|
|
112
|
-
async function
|
|
191
|
+
async function send(request) {
|
|
113
192
|
const { method, path, query, body, operation, timeoutMs = 30_000, } = request;
|
|
114
193
|
assertJiuchuanhuiPath(path);
|
|
115
194
|
const resolvedMethod = method || 'POST';
|
|
@@ -131,6 +210,29 @@ export function createJiuchuanhuiHost(ctx, dependencies = {}) {
|
|
|
131
210
|
if (isE10SessionExpiredResponse(response)) {
|
|
132
211
|
throw jiuchuanhuiAuthError('session_expired', E10_SESSION_EXPIRED_MESSAGE, { httpStatus: response.status });
|
|
133
212
|
}
|
|
213
|
+
return response;
|
|
214
|
+
}
|
|
215
|
+
async function query(request) {
|
|
216
|
+
const response = await send(request);
|
|
217
|
+
const value = response.parseError ? response.text : response.text ? response.value : null;
|
|
218
|
+
return {
|
|
219
|
+
httpStatus: response.status,
|
|
220
|
+
// Keep the JSON text for stdout so exact types and long numeric IDs survive serialization.
|
|
221
|
+
json: response.parseError ? JSON.stringify(response.text) : response.text || 'null',
|
|
222
|
+
value,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
async function request(request) {
|
|
226
|
+
const response = await send(request);
|
|
227
|
+
if (request.operation === 'jiuchuanhui.customer.open-sea.claim.apply') {
|
|
228
|
+
const message = claimPermissionMessage(response.value);
|
|
229
|
+
if (message) {
|
|
230
|
+
throw new JiuchuanhuiCliError('permission', 'claim_forbidden', message, {
|
|
231
|
+
exitCode: ExitCode.PolicyError,
|
|
232
|
+
stage: 'esb-response',
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
134
236
|
if (response.parseError) {
|
|
135
237
|
if (response.status < 200 || response.status >= 300) {
|
|
136
238
|
throw new JiuchuanhuiCliError('api', 'http_error', `泛微接口 HTTP ${response.status}`, {
|
|
@@ -142,20 +244,22 @@ export function createJiuchuanhuiHost(ctx, dependencies = {}) {
|
|
|
142
244
|
throw jiuchuanhuiNetworkError('protocol', `接口返回不是合法 JSON(HTTP ${response.status})`, { retryable: false });
|
|
143
245
|
}
|
|
144
246
|
if (response.status < 200 || response.status >= 300) {
|
|
247
|
+
const message = jiuchuanhuiBusinessMessage(response.value);
|
|
145
248
|
throw new JiuchuanhuiCliError('api', 'http_error', `泛微接口 HTTP ${response.status}`, {
|
|
146
249
|
code: response.status,
|
|
147
|
-
details: { status: response.status,
|
|
250
|
+
details: { status: response.status, ...failureDetails(response.value, response.status, message) },
|
|
148
251
|
exitCode: 1,
|
|
149
252
|
});
|
|
150
253
|
}
|
|
151
254
|
if (!isJiuchuanhuiSuccess(response.value)) {
|
|
152
|
-
|
|
255
|
+
const message = jiuchuanhuiBusinessMessage(response.value);
|
|
256
|
+
throw new JiuchuanhuiCliError('api', 'business_error', message, {
|
|
153
257
|
code: businessCode(response.value),
|
|
154
|
-
details:
|
|
258
|
+
details: failureDetails(response.value, businessCode(response.value), message),
|
|
155
259
|
exitCode: 1,
|
|
156
260
|
});
|
|
157
261
|
}
|
|
158
262
|
return response.value;
|
|
159
263
|
}
|
|
160
|
-
return { request, getSession };
|
|
264
|
+
return { request, query, getSession };
|
|
161
265
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../../core/errors.js';
|
|
3
|
-
import { reportPlatformError } from '../../core/error-codes.js';
|
|
3
|
+
import { reportPlatformError, shouldReportPlatformError, toPlatformError } from '../../core/error-codes.js';
|
|
4
4
|
import { createJiuchuanhuiContinuationSigner } from './continuation.js';
|
|
5
5
|
import { createJiuchuanhuiHost } from './host.js';
|
|
6
|
-
import { jiuchuanhuiManifest } from './manifest.js';
|
|
6
|
+
import { getJiuchuanhuiOperationContract, jiuchuanhuiManifest } from './manifest.js';
|
|
7
7
|
import { executeJiuchuanhuiOperation } from './operations.js';
|
|
8
8
|
import { jiuchuanhuiValidationError } from './errors.js';
|
|
9
9
|
function asOptions(value) {
|
|
@@ -74,17 +74,44 @@ function failureEnvelope(error) {
|
|
|
74
74
|
error: toErrorEnvelope(error),
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
+
export function queryEnvelope(operation, { response, countResponse }) {
|
|
78
|
+
const envelope = JSON.stringify({
|
|
79
|
+
schemaVersion: 1,
|
|
80
|
+
ok: true,
|
|
81
|
+
operation,
|
|
82
|
+
meta: {
|
|
83
|
+
status: 'COMPLETE',
|
|
84
|
+
httpStatus: response.httpStatus,
|
|
85
|
+
...(countResponse ? { countHttpStatus: countResponse.httpStatus } : {}),
|
|
86
|
+
},
|
|
87
|
+
warnings: [],
|
|
88
|
+
});
|
|
89
|
+
const count = countResponse ? `,"countResponse":${countResponse.json}` : '';
|
|
90
|
+
return `${envelope.slice(0, -1)},"data":${response.json}${count}}`;
|
|
91
|
+
}
|
|
77
92
|
async function executeAndPrint(ctx, operation, input) {
|
|
78
93
|
try {
|
|
79
94
|
const result = await executeJiuchuanhuiOperation(operation, input, {
|
|
80
95
|
host: createJiuchuanhuiHost(ctx),
|
|
81
96
|
continuation: createJiuchuanhuiContinuationSigner(ctx),
|
|
82
97
|
});
|
|
83
|
-
|
|
98
|
+
if ('response' in result) {
|
|
99
|
+
ctx.output.raw(queryEnvelope(operation, result));
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
103
|
+
}
|
|
84
104
|
}
|
|
85
105
|
catch (error) {
|
|
86
|
-
|
|
87
|
-
|
|
106
|
+
const envelope = failureEnvelope(error);
|
|
107
|
+
if (ctx.getGlobalOptions().json) {
|
|
108
|
+
const platformError = shouldReportPlatformError(error) ? toPlatformError(error) : {};
|
|
109
|
+
console.error(JSON.stringify({ ...envelope, ...platformError }));
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
reportPlatformError(error);
|
|
113
|
+
console.error(JSON.stringify(envelope, null, 2));
|
|
114
|
+
}
|
|
88
115
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
89
116
|
}
|
|
90
117
|
}
|
|
@@ -96,8 +123,17 @@ export const jiuchuanhuiShortcut = {
|
|
|
96
123
|
const jiuchuanhui = program.command('jiuchuanhui').description('泛微E10九氚汇营销管理');
|
|
97
124
|
jiuchuanhui.command('schema')
|
|
98
125
|
.description('Print jiuchuanhui operation manifest for agents')
|
|
99
|
-
.
|
|
100
|
-
|
|
126
|
+
.option('--operation <name>', 'print the contract for one operation')
|
|
127
|
+
.action(action((ctx, options) => {
|
|
128
|
+
const { operation } = asOptions(options);
|
|
129
|
+
if (operation === undefined) {
|
|
130
|
+
ctx.output.write(jiuchuanhuiManifest, { json: true });
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const contract = getJiuchuanhuiOperationContract(operation);
|
|
134
|
+
if (!contract)
|
|
135
|
+
throw jiuchuanhuiValidationError('operation_unknown', `九氚汇不支持操作:${operation}`);
|
|
136
|
+
ctx.output.write(contract, { json: true });
|
|
101
137
|
}));
|
|
102
138
|
jiuchuanhui.command('run')
|
|
103
139
|
.description('Run a jiuchuanhui operation with JSON input')
|