weaver-work-cli 0.1.39 → 0.1.42
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 +4 -2
- package/dist/chunks/{archive-ENZYBBME.js → archive-J4I6MCKF.js} +2 -2
- package/dist/chunks/{archive-oa-YWLEC5V4.js → archive-oa-BRZKKTO4.js} +2 -2
- package/dist/chunks/{asset-OOV6DWPA.js → asset-L7D4FAOZ.js} +2 -2
- package/dist/chunks/{asset-idle-RE632MY5.js → asset-idle-DADLLV75.js} +2 -2
- package/dist/chunks/{attachment-content-RWN2FCLL.js → attachment-content-K4C7VLWQ.js} +3 -3
- package/dist/chunks/{blog-PEPOJAL7.js → blog-BVGQ7NZL.js} +2 -2
- package/dist/chunks/{caizhilian-WYIQDVPJ.js → caizhilian-SAADNFD6.js} +2 -2
- package/dist/chunks/{calendar-CIARBAOX.js → calendar-Q7NQY5Z2.js} +61 -23
- package/dist/chunks/{chunk-F2EQXUEE.js → chunk-3KTFS4IA.js} +397 -159
- package/dist/chunks/{chunk-G2JSIUWF.js → chunk-4PD5NWAX.js} +89 -0
- package/dist/chunks/{chunk-HJYVHXUQ.js → chunk-4RAE6JXP.js} +1 -1
- package/dist/chunks/{chunk-CQHGNCK2.js → chunk-72CKAUAG.js} +41 -8
- package/dist/chunks/{chunk-K3RUEEOL.js → chunk-APVFJUQH.js} +2 -2
- package/dist/chunks/{chunk-BJGXMFGD.js → chunk-BBKDXQEC.js} +2 -2
- package/dist/chunks/chunk-BIPYLLVS.js +501 -0
- package/dist/chunks/{chunk-GVPJZXJ2.js → chunk-EKWAQSLU.js} +92 -50
- package/dist/chunks/{chunk-XXJOSZTQ.js → chunk-FOAA27U5.js} +381 -57
- package/dist/chunks/{chunk-I2HB737U.js → chunk-G4UR6NXN.js} +2 -2
- package/dist/chunks/{chunk-YS5DPN4T.js → chunk-GEWYMQME.js} +1 -1
- package/dist/chunks/{chunk-P2DAISYW.js → chunk-GHXCDPTM.js} +1 -1
- package/dist/chunks/{chunk-L4N7B7ZD.js → chunk-IZ7S7QUS.js} +4 -4
- package/dist/chunks/{chunk-NLK2RZKG.js → chunk-JPRO6ER2.js} +122 -2214
- package/dist/chunks/{chunk-36DIFZAH.js → chunk-LADPYOWC.js} +2 -2
- package/dist/chunks/chunk-LDZQPUIA.js +1238 -0
- package/dist/chunks/chunk-NKZRQXST.js +2546 -0
- package/dist/chunks/{chunk-EINRJHQ3.js → chunk-QKNKR4RH.js} +3 -3
- package/dist/chunks/{chunk-T7JDJJ7H.js → chunk-R4CHUSKC.js} +126 -19
- package/dist/chunks/{chunk-EZGFHJFW.js → chunk-SA6VBIHY.js} +88 -15
- package/dist/chunks/{chunk-ZXRNHZTE.js → chunk-TTPJJJC4.js} +2 -2
- package/dist/chunks/{chunk-KTCB5R5H.js → chunk-W7BEHOSR.js} +2 -2
- package/dist/chunks/{chunk-MUQUHKPG.js → chunk-YRSZQUD2.js} +2 -2
- package/dist/chunks/{conflict-DRMDOL56.js → conflict-F2OMZRTO.js} +2 -2
- package/dist/chunks/{contract-73MERZWN.js → contract-5BETHRSG.js} +2 -2
- package/dist/chunks/{cowork-HNGBPD7A.js → cowork-3MN6EQQO.js} +27 -10
- package/dist/chunks/create-flow-5FQNNMVO.js +55 -0
- package/dist/chunks/{ebuilder-form-OY6DVNRK.js → ebuilder-form-SBHOYBUD.js} +3 -3
- package/dist/chunks/{ehr-RAQNEQO7.js → ehr-KMOJULKG.js} +432 -1234
- package/dist/chunks/env-LB7NBL2O.js +19 -0
- package/dist/chunks/{esb-6XV7C7YV.js → esb-W2PJCFCX.js} +4 -4
- package/dist/chunks/factory-6ZFQXQ46.js +30 -0
- package/dist/chunks/{fna-XTSRB7G7.js → fna-ZQPCUV4R.js} +2 -2
- package/dist/chunks/group-chat-2HHAJN46.js +20 -0
- package/dist/chunks/{host-YMBXWFWX.js → host-4CBHGOHT.js} +3 -3
- package/dist/chunks/{host-A7J6GDUP.js → host-ATKVNZAT.js} +3 -3
- package/dist/chunks/{host-3F5UM5GN.js → host-BQH22NTQ.js} +3 -3
- package/dist/chunks/{host-YAQAPYNP.js → host-X2CSLFM6.js} +3 -3
- package/dist/chunks/{host-VGPVP7YF.js → host-YTODKMSL.js} +3 -3
- package/dist/chunks/{hrm-TLHKC545.js → hrm-FFM4UJFS.js} +4 -4
- package/dist/chunks/{im-YOUCFMUK.js → im-VEHKDQPB.js} +8 -8
- package/dist/chunks/{invoice-WNBS2B4C.js → invoice-LVIKSIIF.js} +3 -3
- package/dist/chunks/{jiuchuanhui-XABWS5RN.js → jiuchuanhui-X6DINO5P.js} +2 -2
- package/dist/chunks/{lazy-dispatch-NLZ5UQQI.js → lazy-dispatch-KSWTN5L6.js} +4 -4
- package/dist/chunks/{mail-LRYMBFNL.js → mail-VDKRGUD3.js} +9 -4
- package/dist/chunks/{meeting-ESXL6MFI.js → meeting-CLC6HP3Z.js} +12 -10
- package/dist/chunks/{okr-EOV65SSF.js → okr-CHG4OO3U.js} +2 -2
- package/dist/chunks/{plan-YFPVKW6Y.js → plan-XWR75667.js} +2 -2
- package/dist/chunks/{project-MDVZUYQW.js → project-5BXOOKMG.js} +40 -23
- package/dist/chunks/recruit-stage-DGMFNNDE.js +4507 -0
- package/dist/chunks/{registry-VT5Y2HLA.js → registry-7FFOXIAW.js} +4 -4
- package/dist/chunks/{registry-QCLZEDAP.js → registry-BKBZPBAJ.js} +10 -8
- package/dist/chunks/{registry-YX4CSEMD.js → registry-RHMW6ANW.js} +2 -2
- package/dist/chunks/{registry-NYPYMZXG.js → registry-Z43434VG.js} +1 -1
- package/dist/chunks/{room-recommend-L3MWH4JW.js → room-recommend-62H7ZQQ6.js} +4 -4
- package/dist/chunks/{schedule-UASAVDVD.js → schedule-FNXKH3DQ.js} +4 -4
- package/dist/chunks/{workflow-KDGIUCNW.js → workflow-ADHKCAJK.js} +4 -4
- package/dist/index.js +33 -28
- package/dist/internal/e10/auth/commands.js +110 -56
- package/dist/internal/e10/auth/messages.js +6 -0
- package/dist/internal/e10/auth/session.js +28 -1
- package/dist/internal/e10/auth/xiaoe.js +315 -48
- package/dist/internal/e10/auth-recovery.js +36 -5
- package/dist/internal/e10/client.js +13 -0
- package/dist/internal/e10/context.js +61 -9
- package/dist/internal/e10/index.js +1 -1
- package/dist/internal/e10/network-error.js +93 -0
- package/dist/internal/e10/request-runtime.js +15 -0
- package/dist/shortcuts/calendar/operations/read.js +31 -22
- package/dist/shortcuts/calendar/operations/write.js +45 -1
- package/dist/shortcuts/cowork/operations/discuss-write.js +5 -1
- package/dist/shortcuts/cowork/operations/item-write.js +5 -3
- package/dist/shortcuts/cowork/operations/member-write.js +3 -1
- package/dist/shortcuts/cowork/operations/permission-write.js +5 -1
- package/dist/shortcuts/cowork/operations/shared.js +7 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +43 -1
- package/dist/shortcuts/ehr/operations/hr-contact.js +7 -4
- package/dist/shortcuts/ehr/operations/hr-report.js +13 -7
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +134 -59
- package/dist/shortcuts/ehr/operations/recruit-write.js +262 -17
- package/dist/shortcuts/ehr/operations/recruit.js +10 -4
- package/dist/shortcuts/ehr/operations/shared.js +47 -0
- package/dist/shortcuts/hrm/operations/org.js +118 -0
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/mail/operations/mail-send.js +8 -2
- package/dist/shortcuts/meeting/operations/eb/catalog.js +9 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +461 -127
- package/dist/shortcuts/meeting/operations/eb/crm-search.js +87 -5
- package/dist/shortcuts/meeting/operations/eb/factory.js +33 -0
- package/dist/shortcuts/meeting/operations/eb/flow-memory.js +49 -0
- package/dist/shortcuts/meeting/operations/eb/group-chat.js +605 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +96 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +44 -6
- package/dist/shortcuts/meeting/operations/eb/room-summary.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/usage-cache.js +99 -0
- package/dist/shortcuts/meeting/operations/from-group-chat.js +35 -12
- package/dist/shortcuts/project/operations/read.js +6 -25
- package/dist/shortcuts/project/operations/shared.js +22 -0
- package/dist/shortcuts/project/operations/write.js +28 -2
- package/dist/shortcuts/recruit-stage/context.js +119 -0
- package/dist/shortcuts/recruit-stage/continuation.js +73 -0
- package/dist/shortcuts/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/recruit-stage/host.js +109 -0
- package/dist/shortcuts/recruit-stage/index.js +115 -0
- package/dist/shortcuts/recruit-stage/manifest.js +29 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +722 -0
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +269 -0
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +630 -0
- package/dist/shortcuts/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +38 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +1198 -0
- package/dist/shortcuts/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/recruit-stage/operations/types.js +25 -0
- package/dist/shortcuts/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/recruit-stage/shared.js +608 -0
- package/dist/shortcuts/workflow/operations/form.js +21 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +52 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/detailFieldRules.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/summaryCache.js +19 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailCache.js +17 -24
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoDetailFetcher.js +14 -9
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +78 -10
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +3 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.detail.js +17 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +16 -40
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.groupSummary.js +3 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +52 -15
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.pipeline.js +16 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +151 -63
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subGroup.js +56 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.summary.js +53 -16
- package/docs/e10-auth.md +22 -1
- package/docs/operation-manual.md +8 -0
- package/package.json +1 -1
- package/scripts/install-skill-to-xiaoe.mjs +105 -0
- package/scripts/mcp-meeting.mjs +234 -0
- package/scripts/package-skill.mjs +4 -2
- package/skill-template/business-info.json +24 -0
- package/skill-template/domains/recruit-stage.md +29 -0
- package/skills/weaver-e10-calendar/SKILL.md +2 -1
- package/skills/weaver-e10-calendar/references/calendar-write.md +54 -0
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-cowork/references/cowork-write.md +3 -1
- package/skills/weaver-e10-jucailin/SKILL.md +1 -1
- package/skills/weaver-e10-jucailin/references/attend-write.md +8 -0
- package/skills/weaver-e10-jucailin/references/hr-contact.md +8 -0
- package/skills/weaver-e10-jucailin/references/hr-report.md +8 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-read.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -3
- package/skills/weaver-e10-mail/SKILL.md +1 -1
- package/skills/weaver-e10-mail/references/mail-send.md +2 -0
- package/skills/weaver-e10-meeting/SKILL.md +119 -26
- package/skills/weaver-e10-meeting/references/meeting-minute-file.md +25 -11
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +226 -0
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +119 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +188 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +322 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +127 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +65 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +63 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +73 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +56 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +148 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +59 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +438 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-shared/SKILL.md +2 -2
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
- package/skills/weaver-e10-shijingran/SKILL.md +3 -2
- package/skills/weaver-e10-shijingran/references/operations.md +3 -1
- package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
- package/skills/weaver-e10-shijingran/references/write-operations.md +2 -0
- package/skills/weaver-e10-workflow/SKILL.md +7 -1
- package/skills/weaver-e10-workflow/aigroup/default.json +23 -9
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +37 -21
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +135 -43
- package/skills/weaver-e10-yepiaotong/SKILL.md +9 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +6 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
degradeMeetingEnvToStandard,
|
|
5
|
+
meetingEnvOperations,
|
|
6
|
+
meetingStateDir,
|
|
7
|
+
readCache,
|
|
8
|
+
resolveMeetingEnvMode
|
|
9
|
+
} from "./chunk-GEWYMQME.js";
|
|
10
|
+
import "./chunk-72CKAUAG.js";
|
|
11
|
+
import "./chunk-LUSPKZKY.js";
|
|
12
|
+
import "./chunk-BUSC6UAE.js";
|
|
13
|
+
export {
|
|
14
|
+
degradeMeetingEnvToStandard,
|
|
15
|
+
meetingEnvOperations,
|
|
16
|
+
meetingStateDir,
|
|
17
|
+
readCache,
|
|
18
|
+
resolveMeetingEnvMode
|
|
19
|
+
};
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
assertNoForbiddenKeys,
|
|
10
10
|
esbManifest,
|
|
11
11
|
getEsbOperation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4RAE6JXP.js";
|
|
13
13
|
import {
|
|
14
14
|
createEsbHost
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BBKDXQEC.js";
|
|
16
16
|
import {
|
|
17
17
|
esbValidationError
|
|
18
18
|
} from "./chunk-GPMFD4RD.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SA6VBIHY.js";
|
|
20
|
+
import "./chunk-FOAA27U5.js";
|
|
21
21
|
import {
|
|
22
22
|
isCliError,
|
|
23
23
|
toErrorEnvelope
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
EB_BASE,
|
|
5
|
+
buildEbOperations,
|
|
6
|
+
ebBusinessSuccess,
|
|
7
|
+
extractEbCount,
|
|
8
|
+
extractEbRows,
|
|
9
|
+
fingerprint,
|
|
10
|
+
normalizeEbWrite,
|
|
11
|
+
queryBody,
|
|
12
|
+
requireConfirm,
|
|
13
|
+
verifyLease,
|
|
14
|
+
writeBody
|
|
15
|
+
} from "./chunk-72CKAUAG.js";
|
|
16
|
+
import "./chunk-LUSPKZKY.js";
|
|
17
|
+
import "./chunk-BUSC6UAE.js";
|
|
18
|
+
export {
|
|
19
|
+
EB_BASE,
|
|
20
|
+
buildEbOperations,
|
|
21
|
+
ebBusinessSuccess,
|
|
22
|
+
extractEbCount,
|
|
23
|
+
extractEbRows,
|
|
24
|
+
fingerprint,
|
|
25
|
+
normalizeEbWrite,
|
|
26
|
+
queryBody,
|
|
27
|
+
requireConfirm,
|
|
28
|
+
verifyLease,
|
|
29
|
+
writeBody
|
|
30
|
+
};
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
DEFAULT_MEETING_GROUP_FLOW_ID,
|
|
5
|
+
buildImEnv,
|
|
6
|
+
ensureMeetingGroupChat,
|
|
7
|
+
meetingEbGroupChatOperations,
|
|
8
|
+
savePendingForm
|
|
9
|
+
} from "./chunk-BIPYLLVS.js";
|
|
10
|
+
import "./chunk-GEWYMQME.js";
|
|
11
|
+
import "./chunk-72CKAUAG.js";
|
|
12
|
+
import "./chunk-LUSPKZKY.js";
|
|
13
|
+
import "./chunk-BUSC6UAE.js";
|
|
14
|
+
export {
|
|
15
|
+
DEFAULT_MEETING_GROUP_FLOW_ID,
|
|
16
|
+
buildImEnv,
|
|
17
|
+
ensureMeetingGroupChat,
|
|
18
|
+
meetingEbGroupChatOperations,
|
|
19
|
+
savePendingForm
|
|
20
|
+
};
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YRSZQUD2.js";
|
|
11
11
|
import "./chunk-BYATLLEF.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SA6VBIHY.js";
|
|
13
|
+
import "./chunk-FOAA27U5.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LADPYOWC.js";
|
|
8
8
|
import "./chunk-OOUTBLZ4.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-SA6VBIHY.js";
|
|
10
|
+
import "./chunk-FOAA27U5.js";
|
|
11
11
|
import "./chunk-LUSPKZKY.js";
|
|
12
12
|
import "./chunk-BUSC6UAE.js";
|
|
13
13
|
export {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G4UR6NXN.js";
|
|
11
11
|
import "./chunk-ZEDWSH32.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SA6VBIHY.js";
|
|
13
|
+
import "./chunk-FOAA27U5.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
export {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-APVFJUQH.js";
|
|
9
9
|
import "./chunk-FMPJJYYI.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-SA6VBIHY.js";
|
|
11
|
+
import "./chunk-FOAA27U5.js";
|
|
12
12
|
import "./chunk-LUSPKZKY.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
14
14
|
export {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BBKDXQEC.js";
|
|
10
10
|
import "./chunk-GPMFD4RD.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SA6VBIHY.js";
|
|
12
|
+
import "./chunk-FOAA27U5.js";
|
|
13
13
|
import "./chunk-LUSPKZKY.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
15
15
|
export {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createHrmHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LADPYOWC.js";
|
|
6
6
|
import {
|
|
7
7
|
getHrmOperation,
|
|
8
8
|
hrmOperationDefinitions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4PD5NWAX.js";
|
|
10
10
|
import {
|
|
11
11
|
asObject,
|
|
12
12
|
assertNoForbiddenKeys
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
hrmValidationError
|
|
16
16
|
} from "./chunk-OOUTBLZ4.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SA6VBIHY.js";
|
|
18
|
+
import "./chunk-FOAA27U5.js";
|
|
19
19
|
import {
|
|
20
20
|
isCliError,
|
|
21
21
|
toErrorEnvelope
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createImHost
|
|
5
|
+
} from "./chunk-G4UR6NXN.js";
|
|
6
|
+
import {
|
|
7
|
+
createImContinuationSigner
|
|
8
|
+
} from "./chunk-P26ZWSKU.js";
|
|
3
9
|
import {
|
|
4
10
|
asObject,
|
|
5
11
|
assertNoForbiddenKeys,
|
|
6
12
|
getImOperation,
|
|
7
13
|
imOperationDefinitions
|
|
8
14
|
} from "./chunk-2LV74IWP.js";
|
|
9
|
-
import {
|
|
10
|
-
createImHost
|
|
11
|
-
} from "./chunk-I2HB737U.js";
|
|
12
|
-
import {
|
|
13
|
-
createImContinuationSigner
|
|
14
|
-
} from "./chunk-P26ZWSKU.js";
|
|
15
15
|
import {
|
|
16
16
|
imValidationError
|
|
17
17
|
} from "./chunk-ZEDWSH32.js";
|
|
18
18
|
import "./chunk-YLCYX7LE.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SA6VBIHY.js";
|
|
20
|
+
import "./chunk-FOAA27U5.js";
|
|
21
21
|
import {
|
|
22
22
|
isCliError,
|
|
23
23
|
toErrorEnvelope
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
invoicePartialError,
|
|
8
8
|
invoiceValidationError,
|
|
9
9
|
isInvoiceNetworkError
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-TTPJJJC4.js";
|
|
11
|
+
import "./chunk-SA6VBIHY.js";
|
|
12
|
+
import "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
isCliError,
|
|
15
15
|
toErrorEnvelope
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
createProgram,
|
|
6
6
|
registerCommands,
|
|
7
7
|
toCommandMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EKWAQSLU.js";
|
|
9
9
|
import "./chunk-ZUX3P6BQ.js";
|
|
10
10
|
import "./chunk-AJ62BGAW.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-TTPJJJC4.js";
|
|
12
|
+
import "./chunk-SA6VBIHY.js";
|
|
13
|
+
import "./chunk-FOAA27U5.js";
|
|
14
14
|
import "./chunk-LUSPKZKY.js";
|
|
15
15
|
import "./chunk-BUSC6UAE.js";
|
|
16
16
|
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -843,6 +843,11 @@ var CONTINUATION_TTL_MS = 6e5;
|
|
|
843
843
|
function b64(s) {
|
|
844
844
|
return Buffer.from(s, "utf8").toString("base64");
|
|
845
845
|
}
|
|
846
|
+
function mailViewUrl(baseUrl, mailResourceId) {
|
|
847
|
+
if (!mailResourceId) return null;
|
|
848
|
+
const base = String(baseUrl || "").replace(/\/+$/, "");
|
|
849
|
+
return `${base}/sp/mail/view?mailResourceId=${mailResourceId}`;
|
|
850
|
+
}
|
|
846
851
|
function splitNames(s) {
|
|
847
852
|
if (!s) return [];
|
|
848
853
|
return String(s).split(/[,,;;、\s]+/).map((x) => x.trim()).filter(Boolean);
|
|
@@ -1278,9 +1283,9 @@ var opSendApply = {
|
|
|
1278
1283
|
const value = await env.host.request({ path, method: "POST", body });
|
|
1279
1284
|
const d = value?.data || {};
|
|
1280
1285
|
if (draft) {
|
|
1281
|
-
return mailSuccess("mail.send.apply", { success: d.status === 1, draft: true, mailResourceId: d.mailResourceId, subject: lease.subject }, { savedDraft: true });
|
|
1286
|
+
return mailSuccess("mail.send.apply", { success: d.status === 1, draft: true, mailResourceId: d.mailResourceId, subject: lease.subject, viewUrl: mailViewUrl(session.baseUrl, d.mailResourceId) }, { savedDraft: true });
|
|
1282
1287
|
}
|
|
1283
|
-
return mailSuccess("mail.send.apply", { success: d.success === 1, msg: d.msg || "\u90AE\u4EF6\u5DF2\u53D1\u9001", subject: lease.subject }, { sent: true });
|
|
1288
|
+
return mailSuccess("mail.send.apply", { success: d.success === 1, msg: d.msg || "\u90AE\u4EF6\u5DF2\u53D1\u9001", subject: lease.subject, mailResourceId: d.mailResourceId ?? null, viewUrl: mailViewUrl(session.baseUrl, d.mailResourceId) }, { sent: true });
|
|
1284
1289
|
}
|
|
1285
1290
|
};
|
|
1286
1291
|
var mailSendOperations = [opSendPrepare, opSendApply];
|
|
@@ -3,17 +3,19 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
meetingOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-JPRO6ER2.js";
|
|
7
|
+
import "./chunk-BIPYLLVS.js";
|
|
8
|
+
import "./chunk-NKZRQXST.js";
|
|
9
|
+
import "./chunk-R4CHUSKC.js";
|
|
10
|
+
import "./chunk-IZ7S7QUS.js";
|
|
11
|
+
import "./chunk-GHXCDPTM.js";
|
|
12
|
+
import "./chunk-QKNKR4RH.js";
|
|
13
|
+
import "./chunk-W7BEHOSR.js";
|
|
12
14
|
import {
|
|
13
15
|
degradeMeetingEnvToStandard,
|
|
14
16
|
meetingStateDir,
|
|
15
17
|
readCache
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GEWYMQME.js";
|
|
17
19
|
import {
|
|
18
20
|
MeetingCliError,
|
|
19
21
|
asObject,
|
|
@@ -21,17 +23,17 @@ import {
|
|
|
21
23
|
meetingAuthError,
|
|
22
24
|
meetingNetworkError,
|
|
23
25
|
meetingValidationError
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-72CKAUAG.js";
|
|
25
27
|
import {
|
|
26
28
|
E10ApiError,
|
|
27
29
|
createE10RequestRuntime,
|
|
28
30
|
isE10SessionExpiredResponse,
|
|
29
31
|
requireE10Session
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SA6VBIHY.js";
|
|
31
33
|
import {
|
|
32
34
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
33
35
|
getActiveProfile
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FOAA27U5.js";
|
|
35
37
|
import {
|
|
36
38
|
isCliError,
|
|
37
39
|
toErrorEnvelope
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
createE10RequestRuntime,
|
|
6
6
|
isE10SessionExpiredResponse,
|
|
7
7
|
requireE10Session
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SA6VBIHY.js";
|
|
9
9
|
import {
|
|
10
10
|
E10_SESSION_EXPIRED_MESSAGE,
|
|
11
11
|
getActiveProfile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FOAA27U5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
isCliError,
|
|
@@ -393,15 +393,27 @@ function stableFingerprint(value) {
|
|
|
393
393
|
}
|
|
394
394
|
return `${text.length}:${hash.toString(16)}`;
|
|
395
395
|
}
|
|
396
|
-
|
|
397
|
-
// src/shortcuts/project/operations/read.ts
|
|
398
|
-
var APP_TAG = "weaver-project-eb";
|
|
399
396
|
var DEFAULT_OBJ_IDS = { task: "1020270486210527232", project: "1020275562853482532" };
|
|
400
|
-
var MIN_VERSION = [20, 6, 11];
|
|
401
397
|
function buildCardUrl(baseUrl, objId, dataId) {
|
|
402
398
|
if (!baseUrl || !objId || !dataId || /[\s/\\?#]/u.test(dataId)) return null;
|
|
403
399
|
return `${baseUrl.replace(/\/+$/u, "")}/sp/ebdfpage/card/0/${objId}/${dataId}`;
|
|
404
400
|
}
|
|
401
|
+
async function resolveObjectId(host, value) {
|
|
402
|
+
const response = await host.request({
|
|
403
|
+
method: "GET",
|
|
404
|
+
path: "/api/ebproject/backendConsole/getCurrentObjId",
|
|
405
|
+
query: { objId: DEFAULT_OBJ_IDS[value] },
|
|
406
|
+
operation: "project.object.id"
|
|
407
|
+
});
|
|
408
|
+
assertWeaverSuccess(response, "project.object.id");
|
|
409
|
+
const object = String(response?.data ?? "");
|
|
410
|
+
if (!object) throw new Error("\u63A5\u53E3\u672A\u8FD4\u56DE\u5F53\u524D\u73AF\u5883\u5BF9\u8C61 ID");
|
|
411
|
+
return object;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// src/shortcuts/project/operations/read.ts
|
|
415
|
+
var APP_TAG = "weaver-project-eb";
|
|
416
|
+
var MIN_VERSION = [20, 6, 11];
|
|
405
417
|
var CURRENT_USER_FILTERS = /* @__PURE__ */ new Set([
|
|
406
418
|
"manager",
|
|
407
419
|
"participant",
|
|
@@ -497,7 +509,7 @@ async function decorateDetailUrls(host, operation, datajson) {
|
|
|
497
509
|
const targets = rows.map((row) => row?.mainTable).filter((row) => row?.id !== void 0 && row?.id !== null);
|
|
498
510
|
if (targets.length === 0) return datajson;
|
|
499
511
|
try {
|
|
500
|
-
const objId = await
|
|
512
|
+
const objId = await resolveObjectId(host, operationTable(operation));
|
|
501
513
|
const session = await host.getSession();
|
|
502
514
|
for (const row of targets) {
|
|
503
515
|
const url = buildCardUrl(session.baseUrl, objId, String(row.id));
|
|
@@ -539,18 +551,6 @@ async function getAppId(host) {
|
|
|
539
551
|
if (!appId) throw new Error("\u5F53\u524D\u73AF\u5883\u672A\u5B89\u88C5\u4E8B\u4E95\u7136\u9879\u76EE\u7BA1\u7406\u5E94\u7528");
|
|
540
552
|
return appId;
|
|
541
553
|
}
|
|
542
|
-
async function getObject(host, value) {
|
|
543
|
-
const response = await host.request({
|
|
544
|
-
method: "GET",
|
|
545
|
-
path: "/api/ebproject/backendConsole/getCurrentObjId",
|
|
546
|
-
query: { objId: DEFAULT_OBJ_IDS[value] },
|
|
547
|
-
operation: "project.object.id"
|
|
548
|
-
});
|
|
549
|
-
assertWeaverSuccess(response, "project.object.id");
|
|
550
|
-
const object = String(response?.data ?? "");
|
|
551
|
-
if (!object) throw new Error("\u63A5\u53E3\u672A\u8FD4\u56DE\u5F53\u524D\u73AF\u5883\u5BF9\u8C61 ID");
|
|
552
|
-
return object;
|
|
553
|
-
}
|
|
554
554
|
async function datajsonRequest(host, operation, path, payload, query) {
|
|
555
555
|
const response = await host.request({
|
|
556
556
|
method: "POST",
|
|
@@ -755,7 +755,7 @@ var projectReadOperations = [
|
|
|
755
755
|
),
|
|
756
756
|
handler: async (args, { host }) => {
|
|
757
757
|
const value = table(args.table);
|
|
758
|
-
return projectSuccess("project.object.id", { table: value, objId: await
|
|
758
|
+
return projectSuccess("project.object.id", { table: value, objId: await resolveObjectId(host, value) });
|
|
759
759
|
}
|
|
760
760
|
},
|
|
761
761
|
{
|
|
@@ -789,7 +789,7 @@ var projectReadOperations = [
|
|
|
789
789
|
handler: async (args, { host }) => {
|
|
790
790
|
const value = table(args.table);
|
|
791
791
|
const groupId = args.groupId ? String(args.groupId) : await getAppId(host);
|
|
792
|
-
const sourceId = args.sourceId ? String(args.sourceId) : await
|
|
792
|
+
const sourceId = args.sourceId ? String(args.sourceId) : await resolveObjectId(host, value);
|
|
793
793
|
const response = await host.request({
|
|
794
794
|
method: "POST",
|
|
795
795
|
path: "/api/ebuilder/common/ds/fields",
|
|
@@ -830,7 +830,7 @@ var projectReadOperations = [
|
|
|
830
830
|
handler: async (args, { host }) => {
|
|
831
831
|
const value = table(args.table);
|
|
832
832
|
const groupId = args.groupId ? String(args.groupId) : await getAppId(host);
|
|
833
|
-
const sourceId = args.sourceId ? String(args.sourceId) : await
|
|
833
|
+
const sourceId = args.sourceId ? String(args.sourceId) : await resolveObjectId(host, value);
|
|
834
834
|
const response = await host.request({
|
|
835
835
|
method: "GET",
|
|
836
836
|
path: "/api/ebuilder/common/ds/options",
|
|
@@ -995,6 +995,22 @@ async function sendWrite(host, operation, path, datajsonObject) {
|
|
|
995
995
|
assertDatajsonSuccess(response, operation);
|
|
996
996
|
return response?.datajson ?? null;
|
|
997
997
|
}
|
|
998
|
+
async function decorateCreatedRecords(host, entity, data) {
|
|
999
|
+
if (!data || typeof data !== "object") return data;
|
|
1000
|
+
const value = data;
|
|
1001
|
+
const ids = Array.isArray(value.dataIds) ? value.dataIds.map((item) => String(item)).filter((item) => item !== "") : [];
|
|
1002
|
+
if (ids.length === 0) return data;
|
|
1003
|
+
try {
|
|
1004
|
+
const [objId, session] = await Promise.all([resolveObjectId(host, entity), host.getSession()]);
|
|
1005
|
+
const urls = ids.map((id) => buildCardUrl(session.baseUrl, objId, id));
|
|
1006
|
+
return urls.some((url) => url !== null) ? { ...value, detail_urls: urls } : data;
|
|
1007
|
+
} catch (error) {
|
|
1008
|
+
return {
|
|
1009
|
+
...value,
|
|
1010
|
+
detail_url_warning: `\u8BE6\u60C5\u94FE\u63A5\u6682\u4E0D\u53EF\u7528\uFF1A${error instanceof Error ? error.message : String(error)}\uFF1B\u521B\u5EFA\u5DF2\u6210\u529F\uFF0C\u4E0D\u8981\u56E0\u6B64\u91CD\u8BD5\u3002`
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
998
1014
|
async function verifySession(env, continuation) {
|
|
999
1015
|
if (continuation.userId !== await operatorId(env.host)) {
|
|
1000
1016
|
throw projectValidationError("continuation_mismatch", "continuation \u4E0E\u5F53\u524D\u767B\u5F55\u4F1A\u8BDD\u4E0D\u5339\u914D");
|
|
@@ -1051,7 +1067,8 @@ function createOperations(namePrefix, target) {
|
|
|
1051
1067
|
await verifySession(env, continuation);
|
|
1052
1068
|
const datajson = asObject(continuation.datajson, "continuation.datajson");
|
|
1053
1069
|
const response = await sendWrite(env.host, applyName, target.writePath, datajson);
|
|
1054
|
-
|
|
1070
|
+
const data = await decorateCreatedRecords(env.host, target.entity, response);
|
|
1071
|
+
return projectSuccess(applyName, data, { targetType: target.entity, writeAction: "create" });
|
|
1055
1072
|
}
|
|
1056
1073
|
}
|
|
1057
1074
|
];
|