weaver-work-cli 0.1.44 → 0.1.46
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 +9 -5
- package/dist/chunks/{archive-P6TBQGKL.js → archive-ZQ4A4TV6.js} +388 -44
- package/dist/chunks/{archive-oa-7TQ2NXOH.js → archive-oa-BBDP7AKJ.js} +2 -2
- package/dist/chunks/{asset-3ELRG37G.js → asset-ZOJVBWZH.js} +2 -2
- package/dist/chunks/{asset-idle-WIGMUFMD.js → asset-idle-XGB5IPGT.js} +2 -2
- package/dist/chunks/{attachment-content-E3276UOV.js → attachment-content-MCXQBD6N.js} +3 -3
- package/dist/chunks/{blog-C5NMZAAC.js → blog-QSHLZSFW.js} +2 -2
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-FI2WNSBO.js → calendar-DLGMRJQA.js} +2 -2
- package/dist/chunks/{chunk-PUQS5MWL.js → chunk-3YV7PKRL.js} +1 -1
- package/dist/chunks/{chunk-FAZTGX7S.js → chunk-4RWS2YYL.js} +5 -5
- package/dist/chunks/{chunk-GM6J7Q4B.js → chunk-6AXKWFKG.js} +32 -12
- package/dist/chunks/{chunk-ETNJSKMM.js → chunk-6NXT4ICB.js} +148 -21
- package/dist/chunks/{chunk-QVSWRLLU.js → chunk-6V5ZPKHV.js} +56 -12
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-PC7VKEB5.js → chunk-76H3IKH6.js} +178 -37
- package/dist/chunks/{chunk-FRZKBMSW.js → chunk-AD46OMQK.js} +239 -41
- package/dist/chunks/{chunk-WSF4NNMR.js → chunk-CZNZKOHR.js} +2 -2
- package/dist/chunks/{chunk-TA7FXXJD.js → chunk-DLY5GUXX.js} +1 -1
- package/dist/chunks/{chunk-BCVYBYYT.js → chunk-GR76ZDDX.js} +2 -2
- package/dist/chunks/{chunk-CWYGFU5B.js → chunk-GSZTA43P.js} +2 -2
- package/dist/chunks/{chunk-GRDRG6HP.js → chunk-HFXK54M4.js} +2 -2
- package/dist/chunks/{chunk-N4M2DDFE.js → chunk-IP4CWQCF.js} +11 -11
- package/dist/chunks/{chunk-GAMZLAG2.js → chunk-IRMIEDXN.js} +1 -1
- package/dist/chunks/{chunk-XNIK66I4.js → chunk-JB34OE7R.js} +790 -77
- package/dist/chunks/{chunk-HIT4Y6OI.js → chunk-JFAWZX53.js} +134 -13
- package/dist/chunks/{chunk-D4ADSZ7H.js → chunk-O6CMPO65.js} +24 -1
- package/dist/chunks/{chunk-Z7VYWPZV.js → chunk-OXHHJWNC.js} +1 -1
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-5XSM2DFP.js → chunk-PGO4ILMQ.js} +41 -521
- package/dist/chunks/{chunk-OF4S23UB.js → chunk-PSOMGA3U.js} +4 -4
- package/dist/chunks/{chunk-F4E4EM35.js → chunk-TGAGQV4I.js} +2 -2
- package/dist/chunks/{chunk-UFIT2UU3.js → chunk-U6R6FZHD.js} +168 -14
- package/dist/chunks/{chunk-XHK4MDR5.js → chunk-UFIFZ4YC.js} +48 -14
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-3YBDYOC4.js → chunk-YIKSL36S.js} +2 -2
- package/dist/chunks/{chunk-IAZ3UPY6.js → chunk-Z6UUBY37.js} +2 -2
- package/dist/chunks/{conflict-ARLSZJ6V.js → conflict-H7EHQXYY.js} +2 -2
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{contract-DNIIW5VJ.js → contract-3QLAGYQL.js} +5793 -4591
- package/dist/chunks/{cowork-GMLRGVIW.js → cowork-3ACICHDQ.js} +2 -2
- package/dist/chunks/{create-flow-J22BO65E.js → create-flow-VRVJEOBX.js} +6 -6
- package/dist/chunks/{ebuilder-form-ANV2FHYV.js → ebuilder-form-GWDTKEI2.js} +5 -5
- package/dist/chunks/{ehr-GSTGAIY3.js → ehr-SH2LM3NK.js} +648 -88
- package/dist/chunks/{employee-22BGJ3QS.js → employee-NOHNXC46.js} +1 -1
- package/dist/chunks/{env-BX3VRFS7.js → env-66FPSJDV.js} +2 -2
- package/dist/chunks/{esb-ATAIASX2.js → esb-4BQHNP5C.js} +4 -4
- package/dist/chunks/{factory-PETTFME6.js → factory-UH2TZBVA.js} +1 -1
- package/dist/chunks/{fna-YEKBSFSX.js → fna-ZVB2IILI.js} +2 -2
- package/dist/chunks/{group-chat-BFVXAYFX.js → group-chat-CAKMMV7K.js} +3 -3
- package/dist/chunks/{host-WIKN2EJ5.js → host-3TNBMDTR.js} +3 -3
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-SZGV4UNT.js → host-7OWWPLM4.js} +3 -3
- package/dist/chunks/{host-HRBXEPDQ.js → host-G3VU7SDW.js} +3 -3
- package/dist/chunks/{host-LR55CTHP.js → host-M4XP5URR.js} +3 -3
- package/dist/chunks/{host-SUOY6VYQ.js → host-TUOIOEMC.js} +3 -3
- package/dist/chunks/{hrm-NRDO4W5G.js → hrm-UNKCCCGP.js} +5 -5
- package/dist/chunks/{im-IQ2HN23S.js → im-NJB7ZYMH.js} +3 -3
- package/dist/chunks/{invoice-MNRW76PP.js → invoice-OQP3TMKQ.js} +3 -3
- package/dist/chunks/{jiuchuanhui-DTRBAX4N.js → jiuchuanhui-ASFZBMPU.js} +2 -2
- package/dist/chunks/{lazy-dispatch-ZVWAI25B.js → lazy-dispatch-DD6ULZ3I.js} +4 -4
- package/dist/chunks/{mail-ZVAUXOJA.js → mail-M3HJF5ER.js} +2 -2
- package/dist/chunks/{meeting-FEVPZ67S.js → meeting-VTBFW4HI.js} +12 -12
- package/dist/chunks/{okr-SDH3E5RA.js → okr-EVX7FB5G.js} +2 -2
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-E35JFDI7.js → plan-2QJQEPBO.js} +2 -2
- package/dist/chunks/{project-73QXBAB2.js → project-XELELW2T.js} +2 -2
- package/dist/chunks/{reception-UWZVACBN.js → reception-5WITA44R.js} +2 -2
- package/dist/chunks/{recruit-stage-4MAOCKFY.js → recruit-stage-CAKZTUA7.js} +1343 -178
- package/dist/chunks/{registry-JDUS4E7D.js → registry-AQVGHUM6.js} +2 -2
- package/dist/chunks/{registry-IM5G23LS.js → registry-JVQBLFQ5.js} +10 -10
- package/dist/chunks/{registry-KNKSCJNT.js → registry-QJCZ2GVG.js} +4 -4
- package/dist/chunks/{registry-PO7SI256.js → registry-VWXWPVAG.js} +2 -2
- package/dist/chunks/{room-recommend-H7KLXA5R.js → room-recommend-5U55FMXZ.js} +6 -4
- package/dist/chunks/{schedule-ESZIBAUO.js → schedule-IDETODCA.js} +4 -4
- package/dist/chunks/{workflow-CWJFJLQU.js → workflow-BSYT5TGL.js} +6 -4
- package/dist/cmd/action.js +14 -10
- package/dist/index.js +30 -30
- package/dist/internal/e10/auth/commands.js +32 -0
- package/dist/internal/e10/auth/error-log.js +156 -26
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/context.js +12 -1
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +19 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/ehr/host.js +2 -2
- package/dist/shortcuts/ehr/index.js +14 -3
- package/dist/shortcuts/ehr/manifest.js +5 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +44 -12
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +146 -43
- package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +154 -36
- package/dist/shortcuts/ehr/operations/recruit.js +196 -12
- package/dist/shortcuts/ehr/operations/registry.js +4 -0
- package/dist/shortcuts/ehr/operations.js +24 -0
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +274 -75
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +63 -11
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +38 -7
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/invitation.js +27 -4
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +356 -29
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +36 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +309 -67
- package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +310 -17
- package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
- package/dist/shortcuts/recruit-stage/shared.js +221 -24
- package/dist/shortcuts/workflow/index.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/docs/contract.md +1 -0
- package/docs/e10-auth.md +4 -2
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jucailin/SKILL.md +12 -3
- package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
- package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -91
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
- package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +55 -11
- package/skills/weaver-e10-meeting/SKILL.md +103 -11
- package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -11
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +26 -8
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +23 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +11 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yimiaoban/SKILL.md +17 -5
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +30 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
createE10RequestRuntime,
|
|
12
12
|
isE10SessionExpiredResponse,
|
|
13
13
|
requireE10Session
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6NXT4ICB.js";
|
|
15
15
|
import {
|
|
16
16
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
17
17
|
getActiveProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U6R6FZHD.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError,
|
|
21
21
|
isCliError,
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
createE10RequestRuntime,
|
|
11
11
|
isE10SessionExpiredResponse,
|
|
12
12
|
requireE10Session
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6NXT4ICB.js";
|
|
14
14
|
import {
|
|
15
15
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
16
16
|
getActiveProfile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U6R6FZHD.js";
|
|
18
18
|
import {
|
|
19
19
|
CliError,
|
|
20
20
|
isCliError,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
createE10RequestRuntime,
|
|
9
9
|
isE10SessionExpiredResponse,
|
|
10
10
|
requireE10Session
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6NXT4ICB.js";
|
|
12
12
|
import {
|
|
13
13
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
14
14
|
getActiveProfile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U6R6FZHD.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
isCliError,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GSZTA43P.js";
|
|
12
|
+
import "./chunk-IRMIEDXN.js";
|
|
13
|
+
import "./chunk-6V5ZPKHV.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
createE10RequestRuntime,
|
|
11
11
|
isE10SessionExpiredResponse,
|
|
12
12
|
requireE10Session
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6NXT4ICB.js";
|
|
14
14
|
import {
|
|
15
15
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
16
16
|
getActiveProfile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U6R6FZHD.js";
|
|
18
18
|
import {
|
|
19
19
|
CliError,
|
|
20
20
|
isCliError,
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
caizhilianManifest,
|
|
5
|
+
caizhilianOperationDefinitions,
|
|
6
|
+
executeCaizhilianOperation
|
|
7
|
+
} from "./chunk-PGO4ILMQ.js";
|
|
8
|
+
import {
|
|
9
|
+
createCaizhilianHost
|
|
10
|
+
} from "./chunk-762M5XJS.js";
|
|
11
|
+
import {
|
|
12
|
+
createCaizhilianContinuationSigner
|
|
13
|
+
} from "./chunk-VRPH24IC.js";
|
|
14
|
+
import {
|
|
15
|
+
caizhilianValidationError
|
|
16
|
+
} from "./chunk-P5GQRWDC.js";
|
|
17
|
+
import {
|
|
18
|
+
reportPlatformError
|
|
19
|
+
} from "./chunk-6N4JPNFL.js";
|
|
20
|
+
import "./chunk-7BDPM5ST.js";
|
|
21
|
+
import "./chunk-6NXT4ICB.js";
|
|
22
|
+
import "./chunk-U6R6FZHD.js";
|
|
23
|
+
import {
|
|
24
|
+
isCliError,
|
|
25
|
+
toErrorEnvelope
|
|
26
|
+
} from "./chunk-UG5G54VL.js";
|
|
27
|
+
import "./chunk-BUSC6UAE.js";
|
|
28
|
+
|
|
29
|
+
// src/shortcuts/caizhilian/index.ts
|
|
30
|
+
import { readFile } from "node:fs/promises";
|
|
31
|
+
function asOptions(value) {
|
|
32
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
33
|
+
}
|
|
34
|
+
async function readStdin() {
|
|
35
|
+
const chunks = [];
|
|
36
|
+
for await (const chunk of process.stdin) {
|
|
37
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
38
|
+
}
|
|
39
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
40
|
+
}
|
|
41
|
+
function stripBom(value) {
|
|
42
|
+
return value.replace(/^\uFEFF+/, "");
|
|
43
|
+
}
|
|
44
|
+
function parseJsonInput(raw, label) {
|
|
45
|
+
try {
|
|
46
|
+
const parsed = JSON.parse(stripBom(raw));
|
|
47
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
48
|
+
throw new Error("input must be an object");
|
|
49
|
+
}
|
|
50
|
+
return parsed;
|
|
51
|
+
} catch {
|
|
52
|
+
throw caizhilianValidationError("input_invalid", `${label} \u4E0D\u662F\u5408\u6CD5 JSON \u5BF9\u8C61`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async function inputFrom(options, extra = {}) {
|
|
56
|
+
const opts = asOptions(options);
|
|
57
|
+
let input = {};
|
|
58
|
+
if (opts.input && opts.inputJson) {
|
|
59
|
+
throw caizhilianValidationError("input_conflict", "\u4E0D\u80FD\u540C\u65F6\u4F20 --input \u548C --input-json");
|
|
60
|
+
}
|
|
61
|
+
if (opts.inputJson) {
|
|
62
|
+
input = parseJsonInput(String(opts.inputJson), "--input-json");
|
|
63
|
+
}
|
|
64
|
+
if (opts.input) {
|
|
65
|
+
let raw;
|
|
66
|
+
try {
|
|
67
|
+
raw = stripBom(opts.input === "-" ? await readStdin() : await readFile(String(opts.input), "utf8"));
|
|
68
|
+
} catch {
|
|
69
|
+
throw caizhilianValidationError("input_unreadable", `\u65E0\u6CD5\u8BFB\u53D6 --input\uFF1A${String(opts.input)}`);
|
|
70
|
+
}
|
|
71
|
+
input = parseJsonInput(raw, "--input");
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
...input,
|
|
75
|
+
...Object.fromEntries(Object.entries(extra).filter(([, value]) => value !== void 0 && value !== ""))
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function successEnvelope(operation, result) {
|
|
79
|
+
return {
|
|
80
|
+
schemaVersion: 1,
|
|
81
|
+
ok: true,
|
|
82
|
+
operation,
|
|
83
|
+
data: result.data === void 0 ? null : result.data,
|
|
84
|
+
...result.meta ? { meta: result.meta } : {},
|
|
85
|
+
warnings: result.warnings ?? []
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function failureEnvelope(error) {
|
|
89
|
+
const structured = error;
|
|
90
|
+
return {
|
|
91
|
+
schemaVersion: 1,
|
|
92
|
+
ok: false,
|
|
93
|
+
...structured?.partialData === void 0 ? {} : { data: structured.partialData },
|
|
94
|
+
error: toErrorEnvelope(error)
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
async function executeAndPrint(ctx, operation, input) {
|
|
98
|
+
try {
|
|
99
|
+
const result = await executeCaizhilianOperation(operation, input, {
|
|
100
|
+
ctx,
|
|
101
|
+
host: createCaizhilianHost(ctx),
|
|
102
|
+
continuation: createCaizhilianContinuationSigner(ctx)
|
|
103
|
+
});
|
|
104
|
+
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
105
|
+
} catch (error) {
|
|
106
|
+
reportPlatformError(error);
|
|
107
|
+
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
108
|
+
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function operationsCatalog() {
|
|
112
|
+
const groups = /* @__PURE__ */ new Map();
|
|
113
|
+
for (const definition of caizhilianOperationDefinitions()) {
|
|
114
|
+
const list = groups.get(definition.resource) ?? [];
|
|
115
|
+
list.push({
|
|
116
|
+
name: definition.name,
|
|
117
|
+
summary: definition.summary,
|
|
118
|
+
risk: definition.risk,
|
|
119
|
+
...definition.requiresConfirmation ? { requiresConfirmation: true } : {},
|
|
120
|
+
sourceOperation: definition.sourceOperation
|
|
121
|
+
});
|
|
122
|
+
groups.set(definition.resource, list);
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
schemaVersion: 1,
|
|
126
|
+
ok: true,
|
|
127
|
+
module: caizhilianManifest.name,
|
|
128
|
+
sourceSkill: caizhilianManifest.sourceSkill,
|
|
129
|
+
total: caizhilianOperationDefinitions().length,
|
|
130
|
+
groups: [...groups.entries()].map(([resource, operations]) => ({ resource, operations })),
|
|
131
|
+
withheldOperations: caizhilianManifest.withheldOperations
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function withJsonInputOptions(command) {
|
|
135
|
+
return command.option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object");
|
|
136
|
+
}
|
|
137
|
+
var caizhilianShortcut = {
|
|
138
|
+
name: "caizhilian",
|
|
139
|
+
description: "\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\uFF08\u6587\u6863\u4E2D\u5FC3\uFF09CLI",
|
|
140
|
+
category: "shortcut",
|
|
141
|
+
register({ program, action }) {
|
|
142
|
+
const caizhilian = program.command("caizhilian").description("\u6CDB\u5FAEE10\u91C7\u77E5\u8FDE\u6587\u6863\u4E2D\u5FC3\uFF08\u6587\u6863/\u6587\u4EF6\u5939/\u6743\u9650\u5171\u4EAB/\u6807\u7B7E/\u53C2\u4E0E\u4EBA/\u9644\u4EF6/\u5C01\u9762/\u6587\u6863\u6BD4\u5BF9\uFF09");
|
|
143
|
+
caizhilian.command("schema").description("Print caizhilian operation manifest for agents").action(
|
|
144
|
+
action((ctx) => {
|
|
145
|
+
ctx.output.write(caizhilianManifest, { json: true });
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
caizhilian.command("operations").description("List caizhilian operations grouped by resource").action(
|
|
149
|
+
action((ctx) => {
|
|
150
|
+
ctx.output.write(operationsCatalog(), { json: true });
|
|
151
|
+
})
|
|
152
|
+
);
|
|
153
|
+
withJsonInputOptions(
|
|
154
|
+
caizhilian.command("run").description("Run a caizhilian operation with JSON input").argument("<operation>", "operation name, e.g. caizhilian.document.search / caizhilian.tag.add.apply").option("--continuation <token>", "prepare \u8FD4\u56DE\u7684\u786E\u8BA4\u7968\u636E\uFF08apply \u5FC5\u586B\uFF09").option("--yes", "confirm the write operation\uFF08apply \u5FC5\u586B\uFF09")
|
|
155
|
+
).action(
|
|
156
|
+
action(async (ctx, operation, options) => {
|
|
157
|
+
const opts = asOptions(options);
|
|
158
|
+
await executeAndPrint(
|
|
159
|
+
ctx,
|
|
160
|
+
String(operation),
|
|
161
|
+
await inputFrom(options, {
|
|
162
|
+
continuation: opts.continuation,
|
|
163
|
+
confirm: opts.yes === true ? true : void 0
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
})
|
|
167
|
+
);
|
|
168
|
+
withJsonInputOptions(
|
|
169
|
+
caizhilian.command("search").description("\u68C0\u7D22\u6587\u6863\uFF08caizhilian.document.search \u8584\u5305\u88C5\uFF09").option("--keywords <kw>", "\u68C0\u7D22\u5173\u952E\u8BCD").option("--folder-id <id>", "\u6587\u4EF6\u5939 ID\uFF1A100=\u7CFB\u7EDF\uFF0C200=\u516C\u5171\uFF0C300=\u4E2A\u4EBA").option("--page-no <n>", "\u9875\u7801\uFF081-indexed\uFF09").option("--page-size <n>", "\u6BCF\u9875\u6761\u6570")
|
|
170
|
+
).action(
|
|
171
|
+
action(async (ctx, options) => {
|
|
172
|
+
const opts = asOptions(options);
|
|
173
|
+
await executeAndPrint(
|
|
174
|
+
ctx,
|
|
175
|
+
"caizhilian.document.search",
|
|
176
|
+
await inputFrom(options, {
|
|
177
|
+
keywords: opts.keywords,
|
|
178
|
+
folder_id: opts.folderId,
|
|
179
|
+
page_no: opts.pageNo,
|
|
180
|
+
page_size: opts.pageSize
|
|
181
|
+
})
|
|
182
|
+
);
|
|
183
|
+
})
|
|
184
|
+
);
|
|
185
|
+
withJsonInputOptions(
|
|
186
|
+
caizhilian.command("get").description("\u67E5\u8BE2\u6587\u6863\u8BE6\u60C5\uFF08caizhilian.document.get \u8584\u5305\u88C5\uFF09").option("--doc-id <id>", "\u6587\u6863 ID\uFF08\u5FC5\u586B\uFF09")
|
|
187
|
+
).action(
|
|
188
|
+
action(async (ctx, options) => {
|
|
189
|
+
const opts = asOptions(options);
|
|
190
|
+
await executeAndPrint(ctx, "caizhilian.document.get", await inputFrom(options, { doc_id: opts.docId }));
|
|
191
|
+
})
|
|
192
|
+
);
|
|
193
|
+
caizhilian.command("health").description("\u91C7\u77E5\u8FDE\u63A5\u53E3\u8FDE\u901A\u6027\u4E0E\u767B\u5F55\u6001\u81EA\u68C0\uFF08caizhilian.system.health \u8584\u5305\u88C5\uFF09").action(
|
|
194
|
+
action(async (ctx) => {
|
|
195
|
+
await executeAndPrint(ctx, "caizhilian.system.health", {});
|
|
196
|
+
})
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
export {
|
|
201
|
+
caizhilianShortcut,
|
|
202
|
+
inputFrom,
|
|
203
|
+
successEnvelope
|
|
204
|
+
};
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
createE10RequestRuntime,
|
|
13
13
|
isE10SessionExpiredResponse,
|
|
14
14
|
requireE10Session
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6NXT4ICB.js";
|
|
16
16
|
import {
|
|
17
17
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
18
18
|
getActiveProfile
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U6R6FZHD.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError,
|
|
22
22
|
isCliError,
|
|
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readCache,
|
|
5
5
|
writeCache
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OXHHJWNC.js";
|
|
7
7
|
import {
|
|
8
8
|
SCHEMA_DATETIME_MINUTE,
|
|
9
9
|
meetingSuccess,
|
|
10
10
|
meetingValidationError,
|
|
11
11
|
schemaOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
13
13
|
|
|
14
14
|
// src/shortcuts/meeting/operations/eb/schedule.ts
|
|
15
15
|
var SCHEDULE_TYPE_PATH = "/api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType";
|
|
@@ -110,9 +110,9 @@ async function runScheduleConflictFlow(env, input) {
|
|
|
110
110
|
if (!employeeId) {
|
|
111
111
|
throw meetingValidationError("schedule_employee_required", "\u53D6\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u7528\u6237 id\uFF0C\u65E0\u6CD5\u89E6\u53D1 ESB \u65E5\u7A0B\u67E5\u8BE2");
|
|
112
112
|
}
|
|
113
|
-
const { createEsbHost } = await import("./host-
|
|
113
|
+
const { createEsbHost } = await import("./host-3TNBMDTR.js");
|
|
114
114
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
115
|
-
const { getEsbOperation } = await import("./registry-
|
|
115
|
+
const { getEsbOperation } = await import("./registry-QJCZ2GVG.js");
|
|
116
116
|
const esbEnv = {
|
|
117
117
|
ctx: env.ctx,
|
|
118
118
|
host: createEsbHost(env.ctx),
|
|
@@ -331,7 +331,7 @@ async function resolveMemberIdsByName(env, names) {
|
|
|
331
331
|
const unique = [...new Set(names)].filter((name) => name !== "");
|
|
332
332
|
if (unique.length === 0) return map;
|
|
333
333
|
try {
|
|
334
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
334
|
+
const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
|
|
335
335
|
const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
|
|
336
336
|
if (!query) return map;
|
|
337
337
|
for (const name of unique) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
cacheScopeSuffix,
|
|
5
5
|
readCache,
|
|
6
6
|
writeCache
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OXHHJWNC.js";
|
|
8
8
|
import {
|
|
9
9
|
EB_BASE,
|
|
10
10
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
meetingSuccess,
|
|
14
14
|
queryBody,
|
|
15
15
|
schemaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
17
17
|
|
|
18
18
|
// src/shortcuts/meeting/operations/eb/usage-cache.ts
|
|
19
19
|
var USAGE_TTL_MS = 5 * 60 * 1e3;
|
|
@@ -88,14 +88,30 @@ async function clearCache(env, key) {
|
|
|
88
88
|
try {
|
|
89
89
|
const { rm } = await import("node:fs/promises");
|
|
90
90
|
const { join } = await import("node:path");
|
|
91
|
-
const { meetingStateDir } = await import("./env-
|
|
91
|
+
const { meetingStateDir } = await import("./env-66FPSJDV.js");
|
|
92
92
|
await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
// src/shortcuts/meeting/operations/eb/room-recommend.ts
|
|
98
|
-
|
|
98
|
+
function inferRoomFloor(name, desc = "") {
|
|
99
|
+
const cnDigits = { \u4E00: 1, \u4E8C: 2, \u4E09: 3, \u56DB: 4, \u4E94: 5, \u516D: 6, \u4E03: 7, \u516B: 8, \u4E5D: 9, \u5341: 10 };
|
|
100
|
+
const fromText = (text) => {
|
|
101
|
+
const cn = text.match(/([一二三四五六七八九十])\s*(?:楼|层)/u);
|
|
102
|
+
if (cn) return cnDigits[cn[1]] ?? null;
|
|
103
|
+
const en = text.match(/(\d{1,2})\s*(?:F|f|楼|层)(?!\d)/u);
|
|
104
|
+
if (en) return Number(en[1]);
|
|
105
|
+
return null;
|
|
106
|
+
};
|
|
107
|
+
const byText = fromText(name) ?? fromText(desc);
|
|
108
|
+
if (byText) return byText;
|
|
109
|
+
const lead = name.match(/^\s*(\d{3,4})/u);
|
|
110
|
+
if (!lead) return null;
|
|
111
|
+
const digits = lead[1];
|
|
112
|
+
return digits.length === 4 ? Number(digits.slice(0, 2)) : Number(digits[0]);
|
|
113
|
+
}
|
|
114
|
+
var ROOMS_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
99
115
|
var STALE_NOTICE_MS = 4 * 60 * 60 * 1e3;
|
|
100
116
|
var FREQUENT_TTL_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
101
117
|
var FREQUENT_WINDOW_DAYS = 180;
|
|
@@ -151,11 +167,12 @@ function normalizeRoom(row) {
|
|
|
151
167
|
// ⛔ 2026-11-04 真机发现:以前没映射 room_desc,`roomDesc` 永远是 undefined,
|
|
152
168
|
// 于是「带客户优先接待类」里**按描述文案判定**那一半从来没生效过(只有名称含「接待」的能命中)。
|
|
153
169
|
// 例:广州会议室四 的描述「用来接待重要来宾…」明明写着,却被当普通房间。
|
|
154
|
-
roomDesc: toText(main.room_desc).trim()
|
|
170
|
+
roomDesc: toText(main.room_desc).trim(),
|
|
171
|
+
floor: inferRoomFloor(toText(main.room_name).trim(), toText(main.room_desc).trim())
|
|
155
172
|
};
|
|
156
173
|
}
|
|
157
174
|
async function loadRooms(env, options = {}) {
|
|
158
|
-
const key = `rooms-
|
|
175
|
+
const key = `rooms-v4-${await cacheScopeSuffix(env)}`;
|
|
159
176
|
const warnings = [];
|
|
160
177
|
if (!options.refresh) {
|
|
161
178
|
const cached = await readCache(env, key, { ttlMs: ROOMS_TTL_MS });
|
|
@@ -204,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
|
|
|
204
221
|
const counts = /* @__PURE__ */ new Map();
|
|
205
222
|
let requests = 0;
|
|
206
223
|
try {
|
|
207
|
-
const { getMeetingOperation } = await import("./registry-
|
|
224
|
+
const { getMeetingOperation } = await import("./registry-JVQBLFQ5.js");
|
|
208
225
|
const listOp = getMeetingOperation("meeting.eb.meeting.list");
|
|
209
226
|
let seen = 0;
|
|
210
227
|
let total = 0;
|
|
@@ -294,7 +311,7 @@ async function recommendRooms(env, input) {
|
|
|
294
311
|
}
|
|
295
312
|
if (requirement.roomAttr && room.roomAttr !== requirement.roomAttr) continue;
|
|
296
313
|
if (requirement.mrType && room.mrType !== requirement.mrType) continue;
|
|
297
|
-
if (
|
|
314
|
+
if (input.floor !== void 0 && input.floor !== null && room.floor !== input.floor) continue;
|
|
298
315
|
if (requirement.nameKeyword && !room.name.includes(requirement.nameKeyword)) continue;
|
|
299
316
|
if (requirement.equipmentsKeyword && !room.equipments.includes(requirement.equipmentsKeyword)) continue;
|
|
300
317
|
const reasons = [];
|
|
@@ -347,6 +364,7 @@ async function recommendRooms(env, input) {
|
|
|
347
364
|
place: room.place,
|
|
348
365
|
equipments: room.equipments,
|
|
349
366
|
roomAttrText: room.roomAttrText,
|
|
367
|
+
...room.floor !== null && room.floor !== void 0 ? { floor: room.floor } : {},
|
|
350
368
|
...String(room.roomDesc ?? "").trim() !== "" ? { roomDesc: String(room.roomDesc).trim() } : {},
|
|
351
369
|
frequentCount: freq?.count ?? 0,
|
|
352
370
|
score,
|
|
@@ -416,12 +434,12 @@ var ebRoomRecommendOperation = {
|
|
|
416
434
|
type: "string",
|
|
417
435
|
description: "\u53C2\u4F1A\u4EBA id \u9017\u53F7\u5206\u9694\uFF08\u53EF\u9009\uFF09\uFF1A\u4E0D\u4F20 memberCount \u65F6\u6309\u5B83\u7684\u4EBA\u6570\u63A8\u7B97"
|
|
418
436
|
},
|
|
419
|
-
placeKeyword: { type: "string", description: "\u5730\u70B9/\u697C\u5C42\u5173\u952E\u8BCD\uFF08\u6A21\u7CCA\u5339\u914D\u4F1A\u8BAE\u5BA4 place\uFF09" },
|
|
420
437
|
nameKeyword: { type: "string", description: "\u4F1A\u8BAE\u5BA4\u540D\u79F0\u5173\u952E\u8BCD" },
|
|
421
438
|
mrType: { type: "string", description: "\u4F1A\u8BAE\u5BA4\u7C7B\u578B id\uFF08mr_type\uFF09" },
|
|
422
439
|
roomAttr: { type: "string", enum: ["0", "1", "2"], description: "\u4F1A\u8BAE\u5BA4\u5C5E\u6027\uFF1A0 \u5B9E\u4F53 / 1 \u865A\u62DF / 2 \u7EC4\u5408" },
|
|
423
440
|
equipmentsKeyword: { type: "string", description: "\u8BBE\u5907\u5173\u952E\u8BCD\uFF08\u6A21\u7CCA\u5339\u914D equipments\uFF0C\u5982 \u6295\u5F71/\u89C6\u9891\uFF09" },
|
|
424
|
-
hasCustomer: { type: "boolean", description: "\u672C\u6B21\u4F1A\u8BAE\u662F\u5426\u5E26\u5BA2\u6237\uFF1Atrue \u65F6\u4F18\u5148\u63A8\u8350\u63A5\u5F85\u7C7B\u4F1A\u8BAE\u5BA4\uFF08\u63CF\u8FF0
|
|
441
|
+
hasCustomer: { type: "boolean", description: "\u672C\u6B21\u4F1A\u8BAE\u662F\u5426\u5E26\u5BA2\u6237\uFF1Atrue \u65F6\u4F18\u5148\u63A8\u8350\u63A5\u5F85\u7C7B\u4F1A\u8BAE\u5BA4\uFF08\u540D\u79F0\u6216\u63CF\u8FF0\u542B \u63A5\u5F85/\u62DB\u5F85/\u8D35\u5BBE/\u5546\u52A1 \u7684\u52A0 35 \u5206\uFF09" },
|
|
442
|
+
floor: { type: "number", description: "\u53EA\u8981\u67D0\u5C42\uFF08\u5982 1 \u8868\u793A\u4E00\u697C\uFF09\uFF1A\u6309\u4F1A\u8BAE\u5BA4\u540D\u79F0/\u63CF\u8FF0\u63A8\u65AD\u697C\u5C42\u8FC7\u6EE4\uFF08120\u4F1A\u8BAE\u5BA4=1\u697C\u30011007\u4F1A\u8BAE\u5BA4=10\u697C\u3001601-8=6\u697C\uFF09" },
|
|
425
443
|
topN: { type: "number", description: "\u8FD4\u56DE\u5019\u9009\u6570\u91CF\uFF08\u9ED8\u8BA4 3\uFF0C\u6700\u591A 10\uFF09" },
|
|
426
444
|
refresh: { type: "boolean", description: "true=\u5237\u65B0\u4F1A\u8BAE\u5BA4\u5168\u91CF\u4E0E\u5E38\u7528\u8BB0\u5F55\u7F13\u5B58" },
|
|
427
445
|
includeBusy: { type: "boolean", description: "true=\u628A\u8BE5\u65F6\u6BB5\u5DF2\u88AB\u5360\u7528\u7684\u4F1A\u8BAE\u5BA4\u4E5F\u8FD4\u56DE\uFF08\u6392\u5728\u6700\u540E\uFF0C\u5E26\u8BF4\u660E\uFF09" }
|
|
@@ -436,7 +454,6 @@ var ebRoomRecommendOperation = {
|
|
|
436
454
|
endDatetime: String(args.endDatetime),
|
|
437
455
|
...Number.isFinite(memberCount) && memberCount > 0 ? { memberCount } : {},
|
|
438
456
|
requirement: {
|
|
439
|
-
...args.placeKeyword ? { placeKeyword: String(args.placeKeyword) } : {},
|
|
440
457
|
...args.nameKeyword ? { nameKeyword: String(args.nameKeyword) } : {},
|
|
441
458
|
...args.mrType ? { mrType: String(args.mrType) } : {},
|
|
442
459
|
...args.roomAttr ? { roomAttr: String(args.roomAttr) } : {},
|
|
@@ -444,6 +461,8 @@ var ebRoomRecommendOperation = {
|
|
|
444
461
|
// 2026-11-04 修:以前漏了它 —— 用户传了 hasCustomer,打分却读 requirement.hasCustomer,永远 false
|
|
445
462
|
...args.hasCustomer === true ? { hasCustomer: true } : {}
|
|
446
463
|
},
|
|
464
|
+
// ⛔ floor 是 RecommendRoomInput 的**顶层**字段(放 requirement 里会被忽略,2026-11-06 踩到)
|
|
465
|
+
...Number.isFinite(Number(args.floor)) ? { floor: Number(args.floor) } : {},
|
|
447
466
|
...args.topN !== void 0 ? { topN: Number(args.topN) } : {},
|
|
448
467
|
...args.refresh === true ? { refreshRooms: true, refreshFrequent: true } : {},
|
|
449
468
|
...args.includeBusy === true ? { includeBusy: true } : {}
|
|
@@ -463,7 +482,7 @@ async function rememberFrequentRoom(env, roomId) {
|
|
|
463
482
|
const id = String(roomId ?? "").trim();
|
|
464
483
|
if (!id) return false;
|
|
465
484
|
const scope = await cacheScopeSuffix(env);
|
|
466
|
-
const roomsCached = await readCache(env, `rooms-
|
|
485
|
+
const roomsCached = await readCache(env, `rooms-v4-${scope}`, { ttlMs: ROOMS_TTL_MS });
|
|
467
486
|
const name = roomsCached?.data?.find((room) => room.id === id)?.name ?? "";
|
|
468
487
|
if (!name) return false;
|
|
469
488
|
const session = await env.host.getSession().catch(() => null);
|
|
@@ -485,6 +504,7 @@ export {
|
|
|
485
504
|
filterUsages,
|
|
486
505
|
loadDayUsages,
|
|
487
506
|
invalidateDayUsages,
|
|
507
|
+
inferRoomFloor,
|
|
488
508
|
loadRooms,
|
|
489
509
|
loadFrequentRooms,
|
|
490
510
|
recommendRooms,
|