weaver-work-cli 0.1.71 → 0.1.73
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-5P33NAUN.js → archive-THZV4ND4.js} +2 -2
- package/dist/chunks/{archive-oa-YTY5D7DG.js → archive-oa-PQ23OLEV.js} +2 -2
- package/dist/chunks/{asset-3Q5MFQBX.js → asset-RGPROZYH.js} +2 -2
- package/dist/chunks/{asset-idle-PQPNYIS7.js → asset-idle-Z2PDX7NA.js} +2 -2
- package/dist/chunks/{attachment-content-7CN7JB6B.js → attachment-content-R3RPVOYE.js} +3 -3
- package/dist/chunks/{blog-MFHHK6ZR.js → blog-7U3QZPIF.js} +2 -2
- package/dist/chunks/{caizhilian-OZ435AYW.js → caizhilian-3AB42GCV.js} +4 -4
- package/dist/chunks/{calendar-TNJXS5UC.js → calendar-KINM64E4.js} +2 -2
- package/dist/chunks/{chunk-VMVMEIL3.js → chunk-2CHGUYMG.js} +4 -4
- package/dist/chunks/{chunk-G7ZM2VOX.js → chunk-2XED2FKY.js} +34 -34
- package/dist/chunks/{chunk-SKWKCLJX.js → chunk-4BXR6CNB.js} +2 -2
- package/dist/chunks/{chunk-EJLP63UO.js → chunk-4I26YMBY.js} +1 -1
- package/dist/chunks/{chunk-OFCF23FY.js → chunk-4YXAK6OA.js} +15 -4
- package/dist/chunks/{chunk-6MMSLE6K.js → chunk-54ST55IJ.js} +5 -1
- package/dist/chunks/{chunk-SSS75WXW.js → chunk-6HT73VOI.js} +2 -2
- package/dist/chunks/{chunk-XLSJC6JZ.js → chunk-7QFVXP2X.js} +6 -6
- package/dist/chunks/{chunk-SUWR5QEG.js → chunk-AMAPQVBT.js} +1 -0
- package/dist/chunks/{chunk-ICNUOWLL.js → chunk-BWYVS62Z.js} +4 -4
- package/dist/chunks/{chunk-UPVAQJKS.js → chunk-DRUND2PJ.js} +130 -79
- package/dist/chunks/{chunk-Q3EXRNB4.js → chunk-F4HM25K4.js} +1 -1
- package/dist/chunks/{chunk-P3AFNAJ6.js → chunk-GAMGDNTF.js} +1 -1
- package/dist/chunks/{chunk-2DNCKZRX.js → chunk-GWJLAF6B.js} +2 -2
- package/dist/chunks/{chunk-VJWVB55R.js → chunk-IBSJJGXL.js} +2 -2
- package/dist/chunks/{chunk-MZVQKQP5.js → chunk-ICP53R52.js} +4 -4
- package/dist/chunks/{chunk-DRJYPXKC.js → chunk-IU6UB2TD.js} +1 -1
- package/dist/chunks/{chunk-OZ7CJC7W.js → chunk-JMJBPP4B.js} +2 -2
- package/dist/chunks/{chunk-B4NINGP2.js → chunk-L7TYG5SN.js} +2 -2
- package/dist/chunks/{chunk-FRMDHZSN.js → chunk-LLCMOZ5L.js} +11 -11
- package/dist/chunks/{chunk-YN5SD4TX.js → chunk-NUP4RYZK.js} +2 -2
- package/dist/chunks/{chunk-OPTJ6IF7.js → chunk-PAFOLIYQ.js} +1 -1
- package/dist/chunks/{chunk-GB2MCJPG.js → chunk-R3MK2RBN.js} +1 -1
- package/dist/chunks/{chunk-X2C5CGGM.js → chunk-TV46Q4NY.js} +50 -50
- package/dist/chunks/{chunk-LU2SPJYY.js → chunk-XZBYRYWX.js} +2 -2
- package/dist/chunks/{chunk-MD5RXRI3.js → chunk-ZWLWXHJC.js} +2 -2
- package/dist/chunks/{conflict-Y4PXZ2YQ.js → conflict-VPAR7E6F.js} +2 -2
- package/dist/chunks/{contract-C3BGUMBM.js → contract-DDXAO2DZ.js} +2 -2
- package/dist/chunks/{cowork-2AWG4QLA.js → cowork-34QCHMDD.js} +2 -2
- package/dist/chunks/{create-flow-LOUOK46Z.js → create-flow-52PU2OBI.js} +6 -6
- package/dist/chunks/{data-BSFYMXVO.js → data-CLQ62QGD.js} +2 -2
- package/dist/chunks/{ebuilder-form-LAAMTD2Y.js → ebuilder-form-W5R7Q22S.js} +3 -3
- package/dist/chunks/{ehr-36KEX5SH.js → ehr-LCNAVMK5.js} +7 -6
- package/dist/chunks/{entry-mode-6N2IGCS4.js → entry-mode-6Z3ZV3DE.js} +3 -3
- package/dist/chunks/{env-QYLS3EB3.js → env-RDKWAARB.js} +2 -2
- package/dist/chunks/{esb-PTYS3E67.js → esb-ANKPUU65.js} +4 -4
- package/dist/chunks/{factory-LPFPKZ4T.js → factory-434B7RAT.js} +1 -1
- package/dist/chunks/{fna-JNHCLRDE.js → fna-AKBSG5HI.js} +2 -2
- package/dist/chunks/{group-chat-QP2WX4QJ.js → group-chat-PROTW22R.js} +3 -3
- package/dist/chunks/{host-7BVR7CQ3.js → host-5R2SNFWD.js} +3 -3
- package/dist/chunks/{host-57LSRSE7.js → host-7FJW4E7R.js} +3 -3
- package/dist/chunks/{host-K2ZKNXME.js → host-CGXUFQO4.js} +3 -3
- package/dist/chunks/{host-NS36QFLR.js → host-PDJAKCT7.js} +3 -3
- package/dist/chunks/{host-C2BLBIID.js → host-WO4L5G5I.js} +3 -3
- package/dist/chunks/{host-QXFKQXNX.js → host-XIYG4F4B.js} +3 -3
- package/dist/chunks/{hrm-FSGO4NSH.js → hrm-WGODDTEH.js} +3 -3
- package/dist/chunks/{im-2BFGS2XO.js → im-YKTKAJU3.js} +3 -3
- package/dist/chunks/{invoice-JKLTTHSZ.js → invoice-PVYCCCVM.js} +3 -3
- package/dist/chunks/{jiuchuanhui-PTABJE7V.js → jiuchuanhui-RKOQW7BY.js} +3 -3
- package/dist/chunks/{lazy-dispatch-YN2ZP3CS.js → lazy-dispatch-DW45AFQ5.js} +5 -5
- package/dist/chunks/{mail-YNO7ZZUK.js → mail-BNB5S4NW.js} +2 -2
- package/dist/chunks/{meeting-NIDHDBCB.js → meeting-O2KDJH66.js} +13 -13
- package/dist/chunks/{minute-doc-G3QAT7DE.js → minute-doc-JUCG56GY.js} +4 -4
- package/dist/chunks/{okr-QC52G6AJ.js → okr-LWFGWOE7.js} +2 -2
- package/dist/chunks/{operations-MQV32ITT.js → operations-532PN5OB.js} +4 -4
- package/dist/chunks/{performance-3MQ3AHDQ.js → performance-7W5COCFU.js} +2 -2
- package/dist/chunks/{plan-ISINIEPY.js → plan-ZVY3IYTL.js} +2 -2
- package/dist/chunks/{project-IJ6DVKT7.js → project-SA62B7MH.js} +2 -2
- package/dist/chunks/{reception-3H5LUG2I.js → reception-NGIONPQ3.js} +113 -44
- package/dist/chunks/{recruit-stage-MIOJXP6W.js → recruit-stage-WOSN6MGP.js} +868 -128
- package/dist/chunks/{registry-NHHKOEU3.js → registry-N7P3W2RD.js} +4 -4
- package/dist/chunks/{registry-3S7AVMXR.js → registry-R72GWXOG.js} +3 -3
- package/dist/chunks/{registry-3GQRYP2R.js → registry-RIQ67ZT7.js} +12 -12
- package/dist/chunks/{room-recommend-IOKBJVYP.js → room-recommend-KCGIVUFR.js} +4 -4
- package/dist/chunks/{schedule-IB6EUARH.js → schedule-6UP27HQ4.js} +4 -4
- package/dist/chunks/{smart-extract-N2TK3CEF.js → smart-extract-DDOQSPRB.js} +3 -3
- package/dist/chunks/{workflow-RINBAL2M.js → workflow-V5ALD6QZ.js} +5 -5
- package/dist/core/output.js +4 -0
- package/dist/index.js +34 -34
- package/dist/shortcuts/ehr/operations/recruit-position.js +4 -3
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +3 -3
- package/dist/shortcuts/ehr/operations/recruit.js +206 -82
- package/dist/shortcuts/ehr/operations/shared.js +31 -0
- package/dist/shortcuts/reception/constants.js +22 -0
- package/dist/shortcuts/reception/index.js +4 -0
- package/dist/shortcuts/reception/manifest.js +15 -1
- package/dist/shortcuts/reception/operations/doc.js +24 -11
- package/dist/shortcuts/reception/operations/docrender.js +18 -1
- package/dist/shortcuts/reception/operations/render-assets.js +93 -22
- package/dist/shortcuts/recruit-stage/context.js +12 -6
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +19 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +454 -22
- package/dist/shortcuts/recruit-stage/operations/list.js +72 -1
- package/dist/shortcuts/recruit-stage/operations/profile.js +13 -5
- package/dist/shortcuts/recruit-stage/operations/registry.js +18 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +192 -26
- package/dist/shortcuts/recruit-stage/operations/search.js +78 -14
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +122 -0
- package/dist/shortcuts/recruit-stage/shared.js +147 -3
- package/dist/shortcuts/workflow/operations/form.js +36 -2
- package/package.json +1 -1
- package/skills/weaver-e10-jucailin/SKILL.md +7 -3
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
- package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
- package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +499 -122
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +67 -44
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +279 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +198 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +697 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +159 -11
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +19 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +19 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +15 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +37 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +62 -33
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +43 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +41 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +25 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +51 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +63 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +58 -33
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +5 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +106 -0
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +325 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +161 -73
- package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
createE10RequestRuntime,
|
|
14
14
|
getE10Session,
|
|
15
15
|
requireE10Session
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IU6UB2TD.js";
|
|
17
17
|
import {
|
|
18
18
|
E10_AUTH_REQUIRED_MESSAGE
|
|
19
19
|
} from "./chunk-IZCQU5D5.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-AMAPQVBT.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
23
23
|
isCliError,
|
|
@@ -59,6 +59,13 @@ var MEETING_OPTIONS = [
|
|
|
59
59
|
{ label: "\u662F\uFF0C\u5B89\u6392\u4F1A\u8BAE\u5BA4", value: "\u662F" },
|
|
60
60
|
{ label: "\u5426\uFF0C\u4E0D\u9700\u8981", value: "\u5426" }
|
|
61
61
|
];
|
|
62
|
+
var DEFAULT_RECEPTION_MODE = "flow";
|
|
63
|
+
function normalizeReceptionMode(value) {
|
|
64
|
+
const text = String(value ?? "").trim().toLowerCase();
|
|
65
|
+
if (text === "plan" || text === "\u65B9\u6848" || text === "document" || text === "doc") return "plan";
|
|
66
|
+
if (text === "flow" || text === "\u6D41\u7A0B" || text === "handbook" || text === "manual") return "flow";
|
|
67
|
+
return DEFAULT_RECEPTION_MODE;
|
|
68
|
+
}
|
|
62
69
|
var SNAPSHOT_KIND = "reception-fields-snapshot";
|
|
63
70
|
var PYTHON_CACHE_TTL_MS = 7 * 24 * 3600 * 1e3;
|
|
64
71
|
|
|
@@ -1370,14 +1377,7 @@ function skillRootFromSnapshot(snapshotPath) {
|
|
|
1370
1377
|
// src/shortcuts/reception/operations/render-assets.ts
|
|
1371
1378
|
var PYTHON_CACHE_FILE = "python.json";
|
|
1372
1379
|
var pythonCache;
|
|
1373
|
-
|
|
1374
|
-
const result = spawnSync(file, args, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024, ...options });
|
|
1375
|
-
return {
|
|
1376
|
-
stdout: String(result.stdout || ""),
|
|
1377
|
-
stderr: String(result.stderr || ""),
|
|
1378
|
-
status: result.status
|
|
1379
|
-
};
|
|
1380
|
-
}
|
|
1380
|
+
var pythonCacheAny;
|
|
1381
1381
|
function runAsync(file, args) {
|
|
1382
1382
|
return new Promise((resolve2) => {
|
|
1383
1383
|
execFile(file, args, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024 }, (error, stdout, stderr) => {
|
|
@@ -1399,32 +1399,46 @@ function lastJsonLine(text) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
return null;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
|
|
1402
|
+
function probePython(file, args) {
|
|
1403
|
+
const result = spawnSync(file, args, { encoding: "utf8", maxBuffer: 1024 * 1024 });
|
|
1404
|
+
if (result.status !== 0) return null;
|
|
1405
|
+
const lines = String(result.stdout || "").trim().split(/\r?\n/).filter(Boolean);
|
|
1406
|
+
const exe = lines.length ? lines[lines.length - 1].trim() : "";
|
|
1407
|
+
return exe || null;
|
|
1408
|
+
}
|
|
1409
|
+
function pickPython(stateDir, requireDocx = true) {
|
|
1410
|
+
if (requireDocx && pythonCache !== void 0) return pythonCache;
|
|
1411
|
+
if (!requireDocx && pythonCacheAny !== void 0) return pythonCacheAny;
|
|
1404
1412
|
if (process.env.RECEPTION_PY) {
|
|
1405
|
-
|
|
1406
|
-
|
|
1413
|
+
const envPy = process.env.RECEPTION_PY;
|
|
1414
|
+
if (requireDocx) pythonCache = envPy;
|
|
1415
|
+
else pythonCacheAny = envPy;
|
|
1416
|
+
return envPy;
|
|
1407
1417
|
}
|
|
1418
|
+
const probe = ["-c", requireDocx ? "import docx, sys; print(sys.executable)" : "import sys; print(sys.executable)"];
|
|
1408
1419
|
const cachePath = join3(stateDir, PYTHON_CACHE_FILE);
|
|
1409
1420
|
const disk = readJson(cachePath);
|
|
1410
1421
|
if (disk?.py && Date.now() - Number(disk.at || 0) < PYTHON_CACHE_TTL_MS) {
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1422
|
+
const hit = probePython(disk.py, probe);
|
|
1423
|
+
if (hit) {
|
|
1424
|
+
if (requireDocx) pythonCache = hit;
|
|
1425
|
+
else pythonCacheAny = hit;
|
|
1426
|
+
return hit;
|
|
1414
1427
|
}
|
|
1415
1428
|
}
|
|
1416
1429
|
for (const candidate of ["python3", "python", "py"]) {
|
|
1417
|
-
const
|
|
1418
|
-
if (
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
return candidate;
|
|
1430
|
+
const exe = probePython(candidate, candidate === "py" ? ["-3", ...probe] : probe);
|
|
1431
|
+
if (!exe) continue;
|
|
1432
|
+
if (requireDocx) pythonCache = exe;
|
|
1433
|
+
else pythonCacheAny = exe;
|
|
1434
|
+
try {
|
|
1435
|
+
writeJson(cachePath, { py: exe, at: Date.now() });
|
|
1436
|
+
} catch {
|
|
1425
1437
|
}
|
|
1438
|
+
return exe;
|
|
1426
1439
|
}
|
|
1427
|
-
pythonCache = null;
|
|
1440
|
+
if (requireDocx) pythonCache = null;
|
|
1441
|
+
else pythonCacheAny = null;
|
|
1428
1442
|
return null;
|
|
1429
1443
|
}
|
|
1430
1444
|
function resolveRenderPy(explicitPath = "", snapshotPath = "") {
|
|
@@ -1508,13 +1522,34 @@ async function renderBoth(options) {
|
|
|
1508
1522
|
parallelMs: Date.now() - startedAt
|
|
1509
1523
|
};
|
|
1510
1524
|
}
|
|
1511
|
-
function
|
|
1512
|
-
|
|
1525
|
+
async function renderMdOnly(options) {
|
|
1526
|
+
ensureDir(options.outDir);
|
|
1527
|
+
const startedAt = Date.now();
|
|
1528
|
+
const mdResult = await renderOnly({ ...options, only: "md" });
|
|
1529
|
+
const elapsed = Date.now() - startedAt;
|
|
1530
|
+
const files = mdResult.files || [];
|
|
1531
|
+
return {
|
|
1532
|
+
result: {
|
|
1533
|
+
...mdResult,
|
|
1534
|
+
files,
|
|
1535
|
+
verify: { ...mdResult.verify || {}, fileCount: files.length }
|
|
1536
|
+
},
|
|
1537
|
+
docxResult: { ok: true, files: [] },
|
|
1538
|
+
mdResult,
|
|
1539
|
+
docxMs: 0,
|
|
1540
|
+
mdMs: elapsed,
|
|
1541
|
+
parallelMs: elapsed
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
function requirePython(stateDir, requireDocx = true) {
|
|
1545
|
+
const python = pickPython(stateDir, requireDocx);
|
|
1513
1546
|
if (!python) {
|
|
1514
1547
|
throw receptionEnvironmentError(
|
|
1515
|
-
"NO_PYTHON_DOCX",
|
|
1516
|
-
"\u7F3A python3 + python-docx\uFF0C\u65E0\u6CD5\u6E32\u67D3 docx",
|
|
1517
|
-
{
|
|
1548
|
+
requireDocx ? "NO_PYTHON_DOCX" : "NO_PYTHON",
|
|
1549
|
+
requireDocx ? "\u7F3A python3 + python-docx\uFF0C\u65E0\u6CD5\u6E32\u67D3 docx" : "\u7F3A python3\uFF0C\u65E0\u6CD5\u6E32\u67D3\u63A5\u5F85\u53C2\u8003\u6587\u6863",
|
|
1550
|
+
{
|
|
1551
|
+
hint: requireDocx ? "pip install python-docx\uFF1B\u79BB\u7EBF\u73AF\u5883\u53EA\u80FD\u4EA4\u4ED8 md" : "\u5B89\u88C5 python3 \u540E\u91CD\u8BD5\uFF1B\u53EA\u51FA\u63A5\u5F85\u65B9\u6848\uFF08--mode plan\uFF09\u540C\u6837\u9700\u8981 python3 \u8DD1 render.py"
|
|
1552
|
+
}
|
|
1518
1553
|
);
|
|
1519
1554
|
}
|
|
1520
1555
|
return python;
|
|
@@ -1582,6 +1617,8 @@ async function doc(input, ctx) {
|
|
|
1582
1617
|
const startedAt = Date.now();
|
|
1583
1618
|
const runIdArg = String(input.runId || "").trim();
|
|
1584
1619
|
const knownArg = input.known || null;
|
|
1620
|
+
const mode = normalizeReceptionMode(input.mode);
|
|
1621
|
+
const planOnly = mode === "plan";
|
|
1585
1622
|
let run = runIdArg ? tryLoadRun(ctx.stateDir, runIdArg) : null;
|
|
1586
1623
|
let rebuilt = false;
|
|
1587
1624
|
if (!run) {
|
|
@@ -1611,7 +1648,7 @@ async function doc(input, ctx) {
|
|
|
1611
1648
|
data: { ...knownArg },
|
|
1612
1649
|
customer: null,
|
|
1613
1650
|
user: null,
|
|
1614
|
-
mode
|
|
1651
|
+
mode
|
|
1615
1652
|
};
|
|
1616
1653
|
}
|
|
1617
1654
|
const answers = input.answers ?? run.answers ?? {};
|
|
@@ -1640,11 +1677,11 @@ async function doc(input, ctx) {
|
|
|
1640
1677
|
const dataHash = sha256(canonical(data)).slice(0, 32);
|
|
1641
1678
|
const dataPath = join4(ctx.stateDir, `doc-data-${dataHash.slice(0, 12)}.json`);
|
|
1642
1679
|
writeJson(dataPath, data);
|
|
1643
|
-
const python = requirePython(ctx.stateDir);
|
|
1680
|
+
const python = requirePython(ctx.stateDir, !planOnly);
|
|
1644
1681
|
const renderPy = resolveRenderPy(input.renderPy || "", input.snapshot || "");
|
|
1645
|
-
const noUpload = input.noUpload === true;
|
|
1682
|
+
const noUpload = planOnly || input.noUpload === true;
|
|
1646
1683
|
const sessionPromise = noUpload ? Promise.resolve(null) : ctx.host.getSession();
|
|
1647
|
-
const renderPromise = renderBoth({ python, renderPy, dataPath, outDir });
|
|
1684
|
+
const renderPromise = planOnly ? renderMdOnly({ python, renderPy, dataPath, outDir }) : renderBoth({ python, renderPy, dataPath, outDir });
|
|
1648
1685
|
const uploadPromise = renderPromise.then(async (rendered2) => {
|
|
1649
1686
|
if (noUpload) return null;
|
|
1650
1687
|
const session = await sessionPromise;
|
|
@@ -1706,11 +1743,12 @@ async function doc(input, ctx) {
|
|
|
1706
1743
|
if (uploadResult.skipped === "NO_SESSION") {
|
|
1707
1744
|
warnings.push("\u672A\u53D6\u5F97 E10 \u4F1A\u8BDD\uFF1A\u9644\u4EF6\u672A\u4E0A\u4F20\uFF0C\u4EA7\u7269\u6309\u672C\u5730\u6587\u4EF6\u4EA4\u4ED8");
|
|
1708
1745
|
}
|
|
1709
|
-
} else if (noUpload) {
|
|
1746
|
+
} else if (noUpload && !planOnly) {
|
|
1710
1747
|
warnings.push("\u5DF2\u6309 --no-upload \u8DF3\u8FC7\u4E0A\u4F20\uFF1A\u9875\u9762\u4E0A\u9700\u8981\u624B\u52A8\u6DFB\u52A0\u9644\u4EF6");
|
|
1711
1748
|
}
|
|
1712
1749
|
run.answers = answers;
|
|
1713
1750
|
run.data = data;
|
|
1751
|
+
run.mode = mode;
|
|
1714
1752
|
run.files = rendered.result.files || [];
|
|
1715
1753
|
if (input.snapshot) run.snapshotPath = input.snapshot;
|
|
1716
1754
|
if (uploadResult && uploadResult.base) run.base = uploadResult.base;
|
|
@@ -1735,6 +1773,7 @@ async function doc(input, ctx) {
|
|
|
1735
1773
|
ok: true,
|
|
1736
1774
|
data: {
|
|
1737
1775
|
runId: run.runId,
|
|
1776
|
+
mode,
|
|
1738
1777
|
rebuilt,
|
|
1739
1778
|
files: (rendered.result.files || []).map((file) => ({ kind: file.kind, path: file.path, size: file.size })),
|
|
1740
1779
|
internalDoc,
|
|
@@ -1753,7 +1792,10 @@ async function doc(input, ctx) {
|
|
|
1753
1792
|
}
|
|
1754
1793
|
},
|
|
1755
1794
|
warnings,
|
|
1756
|
-
next: {
|
|
1795
|
+
next: planOnly ? {
|
|
1796
|
+
command: "\u628A data.internalDoc.content \u5168\u6587\u4F5C\u4E3A\u56DE\u590D\u6B63\u6587",
|
|
1797
|
+
reason: "\u573A\u666F\u4E00\u53EA\u4EA4\u4ED8\u300A\u63A5\u5F85\u4EA4\u6D41\u53C2\u8003\u6587\u6863\u300B\uFF0C\u4E0D\u751F\u6210\u884C\u7A0B\u5355\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\u3001\u4E0D\u6253\u5F00\u586B\u5355\u9875"
|
|
1798
|
+
} : {
|
|
1757
1799
|
command: `weaver-work-cli reception render --run-id ${run.runId}`,
|
|
1758
1800
|
reason: "\u9644\u4EF6 fileid \u5DF2\u5199\u5165 run\uFF0Crender \u4F1A\u81EA\u52A8\u5E26\u4E0A"
|
|
1759
1801
|
}
|
|
@@ -2224,9 +2266,20 @@ var renderOperation = {
|
|
|
2224
2266
|
|
|
2225
2267
|
// src/shortcuts/reception/operations/docrender.ts
|
|
2226
2268
|
async function docRender(input, ctx) {
|
|
2269
|
+
const mode = normalizeReceptionMode(input.mode);
|
|
2227
2270
|
const docResult = await doc(input, ctx);
|
|
2228
2271
|
if (!docResult.ok) return docResult;
|
|
2229
|
-
const
|
|
2272
|
+
const docData = docResult.data || {};
|
|
2273
|
+
if (mode === "plan") {
|
|
2274
|
+
return {
|
|
2275
|
+
state: docResult.state,
|
|
2276
|
+
ok: true,
|
|
2277
|
+
data: { ...docData, mode, renderSkipped: true },
|
|
2278
|
+
warnings: docResult.warnings || [],
|
|
2279
|
+
next: docResult.next
|
|
2280
|
+
};
|
|
2281
|
+
}
|
|
2282
|
+
const runId = String(docData.runId || input.runId || "");
|
|
2230
2283
|
let renderResult;
|
|
2231
2284
|
try {
|
|
2232
2285
|
renderResult = await render({
|
|
@@ -2254,7 +2307,8 @@ async function docRender(input, ctx) {
|
|
|
2254
2307
|
data: {
|
|
2255
2308
|
...docResult.data,
|
|
2256
2309
|
...renderResult.data,
|
|
2257
|
-
runId
|
|
2310
|
+
runId,
|
|
2311
|
+
mode
|
|
2258
2312
|
},
|
|
2259
2313
|
warnings: [...docResult.warnings || [], ...renderResult.warnings || []],
|
|
2260
2314
|
next: renderResult.next
|
|
@@ -2387,6 +2441,11 @@ var receptionOperations = [
|
|
|
2387
2441
|
workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
|
|
2388
2442
|
outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
|
|
2389
2443
|
noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
|
|
2444
|
+
mode: {
|
|
2445
|
+
type: "string",
|
|
2446
|
+
enum: ["plan", "flow"],
|
|
2447
|
+
description: "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\u3002\u9ED8\u8BA4 flow"
|
|
2448
|
+
},
|
|
2390
2449
|
snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF1B\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC\u6280\u80FD\u5305\u5185 render.py \u4F4D\u7F6E" },
|
|
2391
2450
|
renderPy: { type: "string", description: "\u663E\u5F0F\u6307\u5B9A render.py \u8DEF\u5F84" }
|
|
2392
2451
|
},
|
|
@@ -2396,6 +2455,7 @@ var receptionOperations = [
|
|
|
2396
2455
|
type: "object",
|
|
2397
2456
|
properties: {
|
|
2398
2457
|
runId: { type: "string" },
|
|
2458
|
+
mode: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u751F\u6548\u7684\u51FA\u4EF6\u8303\u56F4\uFF1Aplan / flow" },
|
|
2399
2459
|
rebuilt: { type: "boolean" },
|
|
2400
2460
|
files: { type: "array", items: { type: "object" } },
|
|
2401
2461
|
internalDoc: {
|
|
@@ -2453,7 +2513,7 @@ var receptionOperations = [
|
|
|
2453
2513
|
{
|
|
2454
2514
|
name: "reception.docRender",
|
|
2455
2515
|
risk: "read",
|
|
2456
|
-
summary: "\u4E00\u6B21\u5B8C\u6210 doc + render\uFF1A\u51FA docx/md\u3001\u4E0A\u4F20\u9644\u4EF6\u3001\u62FC customParams\u3001\u843D browsertool\u3002\u4E24\u8005\u4E4B\u95F4\u6CA1\u6709\u4EBA\u5DE5\u786E\u8BA4\u70B9\uFF0C\u5408\u5E76\u53EA\u4E3A\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF1B\u5931\u8D25\u8BED\u4E49\u4E0E\u5206\u5F00\u8C03\u7528\u4E00\u81F4\u3002",
|
|
2516
|
+
summary: "\u4E00\u6B21\u5B8C\u6210 doc + render\uFF1A\u51FA docx/md\u3001\u4E0A\u4F20\u9644\u4EF6\u3001\u62FC customParams\u3001\u843D browsertool\u3002\u4E24\u8005\u4E4B\u95F4\u6CA1\u6709\u4EBA\u5DE5\u786E\u8BA4\u70B9\uFF0C\u5408\u5E76\u53EA\u4E3A\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF1B\u5931\u8D25\u8BED\u4E49\u4E0E\u5206\u5F00\u8C03\u7528\u4E00\u81F4\u3002--mode plan \u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u8DF3\u8FC7 render\uFF08\u4E0D\u51FA browsertool\u3001\u4E0D\u505A\u586B\u5355\u786C\u6821\u9A8C\uFF09\u3002",
|
|
2457
2517
|
inputSchema: {
|
|
2458
2518
|
type: "object",
|
|
2459
2519
|
additionalProperties: false,
|
|
@@ -2466,6 +2526,11 @@ var receptionOperations = [
|
|
|
2466
2526
|
workflow: { type: "string", description: "\u76EE\u6807\u6D41\u7A0B\u540D" },
|
|
2467
2527
|
outDir: { type: "string", description: "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55" },
|
|
2468
2528
|
noUpload: { type: "boolean", description: "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6" },
|
|
2529
|
+
mode: {
|
|
2530
|
+
type: "string",
|
|
2531
|
+
enum: ["plan", "flow"],
|
|
2532
|
+
description: "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\u9644\u4EF6\u3001\u4E0D\u6253\u5F00\u586B\u5355\u9875\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\u3002\u9ED8\u8BA4 flow"
|
|
2533
|
+
},
|
|
2469
2534
|
snapshot: { type: "string", description: "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF1B\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC\u6280\u80FD\u5305\u5185 render.py \u4F4D\u7F6E" },
|
|
2470
2535
|
allowMissingRestaurant: { type: "boolean", description: "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u786E\u5B9E\u62FF\u4E0D\u5230\u5305\u53A2\u53F7\u65F6\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09\uFF0C\u9ED8\u8BA4 false \u76F4\u63A5\u62A5 RESTAURANT_DETAIL_MISSING" },
|
|
2471
2536
|
renderPy: { type: "string", description: "\u663E\u5F0F\u6307\u5B9A render.py \u8DEF\u5F84" },
|
|
@@ -2481,6 +2546,8 @@ var receptionOperations = [
|
|
|
2481
2546
|
type: "object",
|
|
2482
2547
|
properties: {
|
|
2483
2548
|
runId: { type: "string" },
|
|
2549
|
+
mode: { type: "string", description: "\u672C\u6B21\u5B9E\u9645\u751F\u6548\u7684\u51FA\u4EF6\u8303\u56F4\uFF1Aplan / flow" },
|
|
2550
|
+
renderSkipped: { type: "boolean", description: "plan \u6A21\u5F0F\u6052\u4E3A true\uFF1A\u6CA1\u6709\u8C03 render\uFF0C\u56DE\u5305\u91CC\u4E0D\u4F1A\u6709 browsertool" },
|
|
2484
2551
|
rebuilt: { type: "boolean" },
|
|
2485
2552
|
files: { type: "array", items: { type: "object" } },
|
|
2486
2553
|
internalDoc: {
|
|
@@ -2667,7 +2734,7 @@ var receptionShortcut = {
|
|
|
2667
2734
|
workflow: textOf(opts, "workflow") || void 0
|
|
2668
2735
|
}, opts);
|
|
2669
2736
|
}));
|
|
2670
|
-
reception.command("doc").description("\u751F\u6210\u884C\u7A0B\u5355 docx + \u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u5E76\u4E0A\u4F20\u9644\u4EF6\uFF08\u96F6\u5199\u8BF7\u6C42\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").action(action(async (ctx, options) => {
|
|
2737
|
+
reception.command("doc").description("\u751F\u6210\u884C\u7A0B\u5355 docx + \u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF0C\u5E76\u4E0A\u4F20\u9644\u4EF6\uFF08\u96F6\u5199\u8BF7\u6C42\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").option("--mode <mode>", "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6E32\u67D3 docx\u3001\u4E0D\u4E0A\u4F20\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\uFF08\u9ED8\u8BA4\uFF09").action(action(async (ctx, options) => {
|
|
2671
2738
|
const opts = asOptions(options);
|
|
2672
2739
|
await runOperation(ctx, "reception.doc", {
|
|
2673
2740
|
runId: textOf(opts, "runId") || void 0,
|
|
@@ -2679,7 +2746,8 @@ var receptionShortcut = {
|
|
|
2679
2746
|
outDir: textOf(opts, "outDir") || void 0,
|
|
2680
2747
|
snapshot: textOf(opts, "snapshot") || void 0,
|
|
2681
2748
|
renderPy: textOf(opts, "renderPy") || void 0,
|
|
2682
|
-
noUpload: opts.upload === false
|
|
2749
|
+
noUpload: opts.upload === false,
|
|
2750
|
+
mode: textOf(opts, "mode") || void 0
|
|
2683
2751
|
}, opts);
|
|
2684
2752
|
}));
|
|
2685
2753
|
reception.command("render").description("\u8F93\u51FA\u586B\u5355\u9875 browsertool\uFF08\u7EAF\u672C\u5730\uFF0C\u4E0D\u8C03\u63A5\u53E3\uFF09").option("--run-id <id>", "ask / doc \u8FD4\u56DE\u7684 runId").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--attachment-fileid <ids>", "\u9644\u4EF6 fileid\uFF0C\u591A\u4E2A\u9017\u53F7\u5206\u9694").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84").option("--allow-missing-restaurant", "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u5305\u53A2\u53F7\u65F6\u4ECD\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09").action(action(async (ctx, options) => {
|
|
@@ -2701,7 +2769,7 @@ var receptionShortcut = {
|
|
|
2701
2769
|
timeoutMs: textOf(opts, "timeoutMs") ? Number(textOf(opts, "timeoutMs")) : void 0
|
|
2702
2770
|
}, opts);
|
|
2703
2771
|
}));
|
|
2704
|
-
reception.command("doc-render").description("\u4E00\u6B21\u5B8C\u6210\u300C\u51FA\u4EF6 + \u4F20\u9644\u4EF6 + \u62FC\u586B\u5355\u53C2\u6570\u300D\uFF08doc \u4E0E render \u5408\u5E76\uFF0C\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").option("--allow-missing-restaurant", "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u5305\u53A2\u53F7\u65F6\u4ECD\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").action(action(async (ctx, options) => {
|
|
2772
|
+
reception.command("doc-render").description("\u4E00\u6B21\u5B8C\u6210\u300C\u51FA\u4EF6 + \u4F20\u9644\u4EF6 + \u62FC\u586B\u5355\u53C2\u6570\u300D\uFF08doc \u4E0E render \u5408\u5E76\uFF0C\u7701\u4E00\u6B21\u5DE5\u5177\u5F80\u8FD4\uFF09").option("--run-id <id>", "ask \u8FD4\u56DE\u7684 runId").option("--known <json>", "run \u5931\u6548\u65F6\u7528\u4E8E\u73B0\u573A\u91CD\u5EFA\u7684 7 \u9879\u62BD\u53D6\u7ED3\u679C").option("--known-file <path>", "\u540C\u4E0A\uFF0CJSON \u6587\u4EF6").option("--answers <json>", "\u9762\u677F\u56DE\u586B\u503C\uFF08\u5185\u8054 JSON\uFF09").option("--answers-file <path>", "\u9762\u677F\u56DE\u586B\u503C\uFF08JSON \u6587\u4EF6\uFF0C\u63A8\u8350\uFF09").option("--cases-file <path>", "\u6848\u4F8B + \u4E13\u5BB6\u68C0\u7D22\u7ED3\u679C JSON").option("--restaurant-rooms-file <path>", "\u5C0F\u98DF\u5802\u5305\u53A2\u5019\u9009\uFF08e10-data ds list \u539F\u59CB\u8F93\u51FA\u6216 [{name,capacity}]\uFF09").option("--workflow <name>", "\u76EE\u6807\u6D41\u7A0B\u540D").option("--out-dir <dir>", "\u4EA7\u7269\u8F93\u51FA\u76EE\u5F55").option("--snapshot <path>", "\u5B57\u6BB5\u5FEB\u7167\u8DEF\u5F84\uFF08\u540C\u65F6\u7528\u4E8E\u63A8\u5BFC render.py\uFF09").option("--render-py <path>", "\u663E\u5F0F\u6307\u5B9A render.py").option("--no-upload", "\u8DF3\u8FC7\u9644\u4EF6\u4E0A\u4F20\uFF0C\u53EA\u51FA\u672C\u5730\u6587\u4EF6").option("--allow-missing-restaurant", "\u63D0\u4E86\u5C0F\u9910\u5385\u4F46\u6CA1\u5305\u53A2\u53F7\u65F6\u4ECD\u653E\u884C\uFF08\u660E\u7EC6\u7559\u7A7A\u8FDB\u5F85\u529E\uFF09").option("--sdk-render <type>", "\u6253\u5F00\u5F62\u6001\uFF1Ainline / popup / drawer\uFF08\u9ED8\u8BA4 drawer\uFF09").option("--mode <mode>", "\u51FA\u4EF6\u8303\u56F4\uFF1Aplan=\u53EA\u51FA\u5185\u90E8\u53C2\u8003\u6587\u6863 md\uFF08\u4E0D\u6253\u5F00\u586B\u5355\u9875\uFF09\uFF1Bflow=\u5B8C\u6574\u94FE\u8DEF\uFF08\u9ED8\u8BA4\uFF09").action(action(async (ctx, options) => {
|
|
2705
2773
|
const opts = asOptions(options);
|
|
2706
2774
|
await runOperation(ctx, "reception.docRender", {
|
|
2707
2775
|
runId: textOf(opts, "runId") || void 0,
|
|
@@ -2715,7 +2783,8 @@ var receptionShortcut = {
|
|
|
2715
2783
|
renderPy: textOf(opts, "renderPy") || void 0,
|
|
2716
2784
|
noUpload: opts.upload === false,
|
|
2717
2785
|
allowMissingRestaurant: opts.allowMissingRestaurant === true,
|
|
2718
|
-
sdkRender: textOf(opts, "sdkRender") || void 0
|
|
2786
|
+
sdkRender: textOf(opts, "sdkRender") || void 0,
|
|
2787
|
+
mode: textOf(opts, "mode") || void 0
|
|
2719
2788
|
}, opts);
|
|
2720
2789
|
}));
|
|
2721
2790
|
}
|