weaver-work-cli 0.1.56 → 0.1.58

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.
Files changed (74) hide show
  1. package/dist/chunks/{attachment-content-QGM5MLQE.js → attachment-content-TP6WDNC6.js} +3 -3
  2. package/dist/chunks/{caizhilian-QJ4FLSQJ.js → caizhilian-5NM4X5HG.js} +1 -1
  3. package/dist/chunks/{chunk-7EBV7Q3R.js → chunk-2FHP4PYS.js} +50 -27
  4. package/dist/chunks/{chunk-DVR2EDUU.js → chunk-6YWHRXEQ.js} +17 -1
  5. package/dist/chunks/{chunk-FDAJC7R4.js → chunk-AQOPPNTR.js} +2 -2
  6. package/dist/chunks/{chunk-6DVL5IN5.js → chunk-CI2RF3AJ.js} +7 -4
  7. package/dist/chunks/{chunk-WHJIUKJW.js → chunk-FM7B5BIR.js} +206 -39
  8. package/dist/chunks/{chunk-L2LMBFG5.js → chunk-I3BFBBP2.js} +1 -1
  9. package/dist/chunks/{chunk-6MS3RLPO.js → chunk-MQBMMJUV.js} +2 -2
  10. package/dist/chunks/{chunk-XU3FL3AW.js → chunk-QNPIY5R6.js} +4 -4
  11. package/dist/chunks/{chunk-AHJZIMCX.js → chunk-U2DWV6JC.js} +1 -1
  12. package/dist/chunks/{chunk-WMB3SMXI.js → chunk-WINR2Q6K.js} +27 -4
  13. package/dist/chunks/{chunk-UI66EMOR.js → chunk-XR5BGFNT.js} +4 -4
  14. package/dist/chunks/{chunk-TJUAGZU7.js → chunk-ZHPCNM2S.js} +6 -6
  15. package/dist/chunks/{conflict-VAFFPUY3.js → conflict-Y3ESXYIA.js} +2 -2
  16. package/dist/chunks/{create-flow-TVYE3IOH.js → create-flow-JHQSA6JF.js} +6 -6
  17. package/dist/chunks/{data-WVICO3DT.js → data-ZVS3BWPT.js} +3 -5
  18. package/dist/chunks/{env-BVVFIN4P.js → env-LQBLL3MZ.js} +2 -2
  19. package/dist/chunks/{factory-RCQ36LLE.js → factory-X7PN6B3B.js} +1 -1
  20. package/dist/chunks/{group-chat-YFZDUUY3.js → group-chat-PPFY7SPV.js} +3 -3
  21. package/dist/chunks/{invoice-V6KD4TZE.js → invoice-7JGSEWT5.js} +18 -6
  22. package/dist/chunks/{lazy-dispatch-JHGFCKJN.js → lazy-dispatch-GCA6HDOB.js} +1 -1
  23. package/dist/chunks/{meeting-JOHV4RH3.js → meeting-GMRQZFJP.js} +16 -12
  24. package/dist/chunks/{minute-doc-JLS4KMFZ.js → minute-doc-JXH3MNC7.js} +5 -5
  25. package/dist/chunks/{operations-ZPWBMYKE.js → operations-6NXJ7RTE.js} +1 -1
  26. package/dist/chunks/{registry-LITYOH2W.js → registry-WZCCBI5L.js} +10 -10
  27. package/dist/chunks/{room-recommend-62MECG4J.js → room-recommend-CKU5NF2E.js} +4 -4
  28. package/dist/chunks/{schedule-6QRXIBGU.js → schedule-DEFAO2RY.js} +4 -4
  29. package/dist/index.js +6 -6
  30. package/dist/internal/e10/auth/commands.js +29 -1
  31. package/dist/shortcuts/caizhilian/operations/files.js +4 -1
  32. package/dist/shortcuts/caizhilian/operations/handlers/document.js +33 -4
  33. package/dist/shortcuts/data/index.js +0 -1
  34. package/dist/shortcuts/data/manifest.js +1 -1
  35. package/dist/shortcuts/data/operations/module.js +2 -3
  36. package/dist/shortcuts/invoice/manifest.js +8 -3
  37. package/dist/shortcuts/invoice/operations/reim.js +10 -3
  38. package/dist/shortcuts/meeting/host.js +6 -1
  39. package/dist/shortcuts/meeting/minute-doc.js +3 -2
  40. package/dist/shortcuts/meeting/operations/compose-outcome.js +4 -0
  41. package/dist/shortcuts/meeting/operations/eb/create-flow.js +29 -3
  42. package/dist/shortcuts/meeting/operations/eb/crm-search.js +20 -0
  43. package/dist/shortcuts/meeting/operations/eb/decision-task-reassign.js +113 -0
  44. package/dist/shortcuts/meeting/operations/eb/decision.js +41 -1
  45. package/dist/shortcuts/meeting/operations/eb/factory.js +4 -4
  46. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  47. package/dist/shortcuts/meeting/operations/eb-fallback.js +3 -0
  48. package/dist/shortcuts/meeting/operations/registry.js +14 -1
  49. package/dist/shortcuts/meeting/operations/shared.js +4 -0
  50. package/docs/data.md +1 -1
  51. package/docs/e10-auth.md +5 -0
  52. package/docs/invoice.md +1 -1
  53. package/package.json +1 -1
  54. package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
  55. package/skills/weaver-e10-caizhilian/references/document.md +1 -1
  56. package/skills/weaver-e10-caizhilian/references/source-manifest.json +2 -2
  57. package/skills/weaver-e10-data/references/config-center.md +0 -1
  58. package/skills/weaver-e10-jucailin/SKILL.md +6 -6
  59. package/skills/weaver-e10-jucailin/references/recruit-read.md +3 -2
  60. package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +1 -1
  61. package/skills/weaver-e10-jucailin/references/recruit-write.md +15 -8
  62. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +3 -1
  63. package/skills/weaver-e10-meeting/SKILL.md +14 -4
  64. package/skills/weaver-e10-recruit-stage/SKILL.md +42 -14
  65. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +61 -20
  66. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +194 -0
  67. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +5 -4
  68. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +4 -5
  69. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +1 -10
  70. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +25 -6
  71. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +3 -2
  72. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1 -0
  73. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +23 -13
  74. package/skills/weaver-e10-yepiaotong.zip +0 -0
@@ -8,10 +8,10 @@ import {
8
8
  looksLikeFileId,
9
9
  meetingAttachmentContentOperations,
10
10
  parseFileIdList
11
- } from "./chunk-6MS3RLPO.js";
11
+ } from "./chunk-MQBMMJUV.js";
12
12
  import "./chunk-WMRNO6IU.js";
13
- import "./chunk-L2LMBFG5.js";
14
- import "./chunk-6DVL5IN5.js";
13
+ import "./chunk-I3BFBBP2.js";
14
+ import "./chunk-CI2RF3AJ.js";
15
15
  import "./chunk-7BDPM5ST.js";
16
16
  import "./chunk-UG5G54VL.js";
17
17
  import "./chunk-BUSC6UAE.js";
@@ -4,7 +4,7 @@ import {
4
4
  caizhilianManifest,
5
5
  caizhilianOperationDefinitions,
6
6
  executeCaizhilianOperation
7
- } from "./chunk-WMB3SMXI.js";
7
+ } from "./chunk-WINR2Q6K.js";
8
8
  import {
9
9
  createCaizhilianHost
10
10
  } from "./chunk-VMCCRWFO.js";
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  fetchEbAppSettings,
5
5
  findCommonFreeSlots
6
- } from "./chunk-XU3FL3AW.js";
6
+ } from "./chunk-QNPIY5R6.js";
7
7
  import {
8
8
  dayOf,
9
9
  filterUsages,
@@ -12,12 +12,12 @@ import {
12
12
  loadDayUsages,
13
13
  loadRooms,
14
14
  recommendRooms
15
- } from "./chunk-UI66EMOR.js";
15
+ } from "./chunk-XR5BGFNT.js";
16
16
  import {
17
17
  cacheScopeSuffix,
18
18
  readCache,
19
19
  writeCache
20
- } from "./chunk-AHJZIMCX.js";
20
+ } from "./chunk-U2DWV6JC.js";
21
21
  import {
22
22
  EB_BASE,
23
23
  SCHEMA_DATETIME_MINUTE,
@@ -26,7 +26,7 @@ import {
26
26
  meetingValidationError,
27
27
  schemaOf,
28
28
  writeBody
29
- } from "./chunk-6DVL5IN5.js";
29
+ } from "./chunk-CI2RF3AJ.js";
30
30
  import {
31
31
  CONTINUATION_TTL_MS,
32
32
  CONTINUATION_TTL_SECONDS
@@ -194,7 +194,7 @@ async function meetingUrlMap(env, ids) {
194
194
  const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
195
195
  if (unique.length === 0) return out;
196
196
  try {
197
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
197
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
198
198
  const link = getMeetingOperation("meeting.link");
199
199
  const result = await link.handler({ type: "meeting", dataIds: unique }, env);
200
200
  const rows = result?.data?.items ?? result?.data?.links ?? [];
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
443
443
  const text = String(input ?? "").trim();
444
444
  if (!text) return null;
445
445
  const ref = parseRoomRef(text);
446
- const { loadRooms: loadRooms2 } = await import("./room-recommend-62MECG4J.js");
446
+ const { loadRooms: loadRooms2 } = await import("./room-recommend-CKU5NF2E.js");
447
447
  let rooms = [];
448
448
  try {
449
449
  rooms = (await loadRooms2(env, {})).rooms;
@@ -474,7 +474,7 @@ async function resolveRoomValue(env, input) {
474
474
  const ref = parseRoomRef(text);
475
475
  if (ref.id) {
476
476
  try {
477
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
477
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
478
478
  const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
479
479
  const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
480
480
  const name = String(main.room_name ?? "").trim() || ref.name || "";
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values) {
586
586
  const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
587
587
  if (nameOnly.length > 0) {
588
588
  try {
589
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
589
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
590
590
  const search = getMeetingOperation("meeting.eb.crm.search");
591
591
  for (const row of nameOnly) {
592
592
  const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
@@ -780,7 +780,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
780
780
  const missing = [];
781
781
  if (entries.length > 0) {
782
782
  try {
783
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
783
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
784
784
  const search = getMeetingOperation("meeting.eb.crm.search");
785
785
  for (const entry of entries) {
786
786
  if (entry.contacts.length > 0) continue;
@@ -1039,7 +1039,7 @@ function shouldAutoPickFlow(args) {
1039
1039
  async function sendInvitationToGroup(env, groupId, filePath, warnings) {
1040
1040
  const started = Date.now();
1041
1041
  try {
1042
- const { buildImEnv } = await import("./group-chat-YFZDUUY3.js");
1042
+ const { buildImEnv } = await import("./group-chat-PPFY7SPV.js");
1043
1043
  const { getImOperation } = await import("./registry-E5RQJVWN.js");
1044
1044
  const imEnv = await buildImEnv(env);
1045
1045
  const prepared = await getImOperation("im.msg.send.group.prepare").handler(
@@ -1069,6 +1069,17 @@ async function resolveWorkflowId(env, args) {
1069
1069
  source: "argument"
1070
1070
  };
1071
1071
  }
1072
+ if (String(args.flowChoice ?? "") !== "ask") {
1073
+ const remembered = await readFlowPick(env).catch(() => null);
1074
+ if (remembered?.workflowId) {
1075
+ return {
1076
+ workflowId: remembered.workflowId,
1077
+ candidates: [remembered.workflowId],
1078
+ source: "memory",
1079
+ ...remembered.name ? { label: remembered.name } : {}
1080
+ };
1081
+ }
1082
+ }
1072
1083
  const fixed = await fixedFlowIdsForEnv(env);
1073
1084
  if (fixed.ids.length > 0) {
1074
1085
  return {
@@ -1229,6 +1240,10 @@ var ebMeetingCreateFlowPrepare = {
1229
1240
  { required: ["mt_name"] }
1230
1241
  ),
1231
1242
  handler: async (args, env) => {
1243
+ const marks = env.__meetingTimings ??= {};
1244
+ const mark = (key, from) => {
1245
+ marks[key] = (marks[key] ?? 0) + (Date.now() - from);
1246
+ };
1232
1247
  let workflowId = "";
1233
1248
  let flowPickNote = null;
1234
1249
  const decisions = {};
@@ -1288,7 +1303,7 @@ var ebMeetingCreateFlowPrepare = {
1288
1303
  }
1289
1304
  }
1290
1305
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
1291
- const nameToId = nameLike.length > 0 ? await import("./schedule-6QRXIBGU.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1306
+ const nameToId = nameLike.length > 0 ? await import("./schedule-DEFAO2RY.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1292
1307
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
1293
1308
  if (memberIds.length > 0) {
1294
1309
  const callerToken2 = String(args.caller ?? "").trim();
@@ -1333,7 +1348,7 @@ var ebMeetingCreateFlowPrepare = {
1333
1348
  if (!beginHasTime || !timeConfirmed) {
1334
1349
  const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
1335
1350
  const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
1336
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
1351
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
1337
1352
  const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
1338
1353
  {
1339
1354
  dateFrom: day2,
@@ -1503,7 +1518,7 @@ var ebMeetingCreateFlowPrepare = {
1503
1518
  usageFromCache: usageData.fromCache
1504
1519
  };
1505
1520
  }
1506
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
1521
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
1507
1522
  const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
1508
1523
  { beginDatetime: beginText, endDatetime: endText, address: room.id },
1509
1524
  env
@@ -1511,7 +1526,7 @@ var ebMeetingCreateFlowPrepare = {
1511
1526
  return { room, ...result?.data ?? {} };
1512
1527
  })().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
1513
1528
  const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
1514
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
1529
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
1515
1530
  return getMeetingOperation("meeting.eb.conflict.member").handler(
1516
1531
  { beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
1517
1532
  env
@@ -1529,12 +1544,14 @@ var ebMeetingCreateFlowPrepare = {
1529
1544
  maxDays: 1,
1530
1545
  includeSchedule: true
1531
1546
  }).catch(noteFailure("\u53C2\u4F1A\u4EBA**\u65E5\u7A0B\u7A7A\u95F2**\u68C0\u6D4B")) : Promise.resolve(null);
1547
+ const enrichStarted = Date.now();
1532
1548
  const [roomRec, memberConflict, free, roomConflict] = await Promise.all([
1533
1549
  roomTask,
1534
1550
  conflictTask,
1535
1551
  availabilityTask,
1536
1552
  roomConflictTask
1537
1553
  ]);
1554
+ mark("enrichMs", enrichStarted);
1538
1555
  timings.parallelMs = Date.now() - startedAt;
1539
1556
  const memberConflicts = memberConflict?.data?.conflicts ?? [];
1540
1557
  if (memberConflicts.length > 0) decisions.memberConflicts = memberConflicts;
@@ -1739,12 +1756,14 @@ var ebMeetingCreateFlowPrepare = {
1739
1756
  const confirmedWhen = `${beginText}~${String(endText).slice(11) || endText}`;
1740
1757
  let candidates = resolved.candidates;
1741
1758
  workflowId = resolved.workflowId;
1742
- let sourceLabel = resolved.source === "argument" ? "\u8C03\u7528\u65B9\u4F20\u5165" : resolved.source === "fixed" ? `\u56FA\u5316\u914D\u7F6E\uFF08${resolved.label ?? "\u9ED8\u8BA4"}\uFF09` : "\u5E94\u7528\u8BBE\u7F6E\u914D\u7F6E";
1759
+ let sourceLabel = resolved.source === "argument" ? "\u8C03\u7528\u65B9\u4F20\u5165" : resolved.source === "fixed" ? `\u56FA\u5316\u914D\u7F6E\uFF08${resolved.label ?? "\u9ED8\u8BA4"}\uFF09` : resolved.source === "memory" ? `\u6CBF\u7528\u4E0A\u6B21\u4F7F\u7528\u7684\u6D41\u7A0B${resolved.label ? `\uFF08${resolved.label}\uFF09` : ""}` : "\u5E94\u7528\u8BBE\u7F6E\u914D\u7F6E";
1743
1760
  let probes = [];
1744
1761
  let loadedForms = /* @__PURE__ */ new Map();
1745
1762
  const autoPick = shouldAutoPickFlow(args);
1746
1763
  if (!workflowId && candidates.length > 1) {
1764
+ const probeStarted = Date.now();
1747
1765
  let probed = await probeWorkflowCandidates(env, candidates);
1766
+ mark("flowProbeMs", probeStarted);
1748
1767
  probes = probed.probes;
1749
1768
  loadedForms = probed.loadedForms;
1750
1769
  let launchable = probes.filter((probe) => probe.launchable);
@@ -1832,7 +1851,9 @@ var ebMeetingCreateFlowPrepare = {
1832
1851
  let form = loadedForms.get(workflowId);
1833
1852
  if (!form) {
1834
1853
  try {
1854
+ const formStarted = Date.now();
1835
1855
  form = await loadCreateForm(env, workflowId);
1856
+ mark("formLoadMs", formStarted);
1836
1857
  } catch (error) {
1837
1858
  throw meetingValidationError(
1838
1859
  "flow_not_launchable",
@@ -1883,9 +1904,10 @@ var ebMeetingCreateFlowPrepare = {
1883
1904
  if (!id) continue;
1884
1905
  const value = main[id];
1885
1906
  if (value === void 0 || value === null || value === "") continue;
1886
- if (field.isMultiple === true && !Array.isArray(value)) {
1907
+ const keepArray = field.isMultiple === true || String(field.componentKey ?? "") === "Ebuilder";
1908
+ if (keepArray && !Array.isArray(value)) {
1887
1909
  main[id] = [value];
1888
- } else if (field.isMultiple !== true && Array.isArray(value) && value.length === 1) {
1910
+ } else if (!keepArray && Array.isArray(value) && value.length === 1) {
1889
1911
  main[id] = value[0];
1890
1912
  }
1891
1913
  }
@@ -1907,7 +1929,7 @@ var ebMeetingCreateFlowPrepare = {
1907
1929
  invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
1908
1930
  } else {
1909
1931
  try {
1910
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
1932
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
1911
1933
  const publish = getMeetingOperation("meeting.invitation.publish");
1912
1934
  const renderExtra = {};
1913
1935
  if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
@@ -2228,7 +2250,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
2228
2250
  });
2229
2251
  };
2230
2252
  const readBack = async () => {
2231
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2253
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
2232
2254
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
2233
2255
  const read = await detail.handler({ id: String(meetingId).trim() }, env);
2234
2256
  return String(read?.data?.data?.crm_members ?? "").trim();
@@ -2255,7 +2277,7 @@ async function renderPreInvitation(payload, env) {
2255
2277
  const fields = payload?.invitationFields ?? {};
2256
2278
  const started = Date.now();
2257
2279
  try {
2258
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2280
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
2259
2281
  const render = getMeetingOperation("meeting.invitation.render");
2260
2282
  const rendered = await render.handler(
2261
2283
  {
@@ -2383,7 +2405,7 @@ var ebMeetingCreateFlowApply = {
2383
2405
  const groupPayload2 = payload?.groupChat;
2384
2406
  if (groupPayload2) {
2385
2407
  try {
2386
- const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
2408
+ const { ensureMeetingGroupChat } = await import("./group-chat-PPFY7SPV.js");
2387
2409
  groupChat2 = {
2388
2410
  ...await ensureMeetingGroupChat(env, {
2389
2411
  meetingName: String(payload.mtName ?? ""),
@@ -2399,7 +2421,7 @@ var ebMeetingCreateFlowApply = {
2399
2421
  }
2400
2422
  if (groupChat2 && groupChat2.ok) {
2401
2423
  try {
2402
- const { savePendingForm } = await import("./group-chat-YFZDUUY3.js");
2424
+ const { savePendingForm } = await import("./group-chat-PPFY7SPV.js");
2403
2425
  await savePendingForm(env, {
2404
2426
  workflowId: String(payload.workflowId ?? ""),
2405
2427
  workflowName: String(payload.workflowName ?? ""),
@@ -2466,7 +2488,7 @@ var ebMeetingCreateFlowApply = {
2466
2488
  let meetingId = "";
2467
2489
  const timings = { submitMs: Date.now() - submitStartedAt };
2468
2490
  if (waitSeconds > 0) {
2469
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2491
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
2470
2492
  const list = getMeetingOperation("meeting.eb.meeting.list");
2471
2493
  const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
2472
2494
  const pollStart = Date.now();
@@ -2516,7 +2538,7 @@ var ebMeetingCreateFlowApply = {
2516
2538
  if (groupPayload) {
2517
2539
  const groupStart = Date.now();
2518
2540
  try {
2519
- const { ensureMeetingGroupChat } = await import("./group-chat-YFZDUUY3.js");
2541
+ const { ensureMeetingGroupChat } = await import("./group-chat-PPFY7SPV.js");
2520
2542
  const group = await ensureMeetingGroupChat(env, {
2521
2543
  meetingName: String(payload.mtName ?? ""),
2522
2544
  beginDatetime: String(groupPayload.beginDatetime ?? ""),
@@ -2548,7 +2570,7 @@ var ebMeetingCreateFlowApply = {
2548
2570
  if (meetingId) {
2549
2571
  const invitationStart = Date.now();
2550
2572
  try {
2551
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2573
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
2552
2574
  const render = getMeetingOperation("meeting.invitation.render");
2553
2575
  const rendered = await render.handler(
2554
2576
  {
@@ -2722,7 +2744,7 @@ var ebMeetingCreateFlowQuick = {
2722
2744
  `\u4F1A\u8BAE\u540D\u79F0/\u5185\u5BB9\u91CC\u63D0\u5230\u5BA2\u6237\u300C${crmMentioned}\u300D\uFF0C\u4F46\u6CA1\u4F20 crm_members \u2014\u2014 \u63D0\u4EA4\u540E\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\u4F1A\u662F\u7A7A\u7684\u3002\u5148 meeting.eb.crm.search {"keyword":"${crmMentioned}"} \u62FF items[].customerId\uFF0C\u518D\u628A crm_members:[{"id":"<customerId>","name":"<\u5B8C\u6574\u5BA2\u6237\u540D>"}] \u4E00\u8D77\u4F20\uFF08\u5FC5\u987B\u5E26\u540D\u79F0\uFF0C\u53EA\u7ED9 id \u4F1A\u88AB\u9759\u9ED8\u5B58\u7A7A\uFF09\uFF1B\u786E\u5B9E\u4E0D\u9700\u8981\u586B\u53C2\u4F1A\u5BA2\u6237\u5C31\u4F20 crm_skip:true\u3002`
2723
2745
  );
2724
2746
  }
2725
- const { getMeetingOperation } = await import("./registry-LITYOH2W.js");
2747
+ const { getMeetingOperation } = await import("./registry-WZCCBI5L.js");
2726
2748
  const prepareStartedAt = Date.now();
2727
2749
  const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
2728
2750
  const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
@@ -2821,7 +2843,7 @@ var ebMeetingCreateSuggest = {
2821
2843
  const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
2822
2844
  const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
2823
2845
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
2824
- const nameToId = nameLike.length > 0 ? await import("./schedule-6QRXIBGU.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2846
+ const nameToId = nameLike.length > 0 ? await import("./schedule-DEFAO2RY.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2825
2847
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
2826
2848
  const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
2827
2849
  const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
@@ -2907,6 +2929,7 @@ var meetingEbCreateFlowOperations = [
2907
2929
  ];
2908
2930
 
2909
2931
  export {
2932
+ meetingUrlMap,
2910
2933
  attachMeetingUrls,
2911
2934
  resolveSelfPerson,
2912
2935
  applySelfPersonDefaults,
@@ -521,7 +521,22 @@ function openUrlWithSystemHandler(url) {
521
521
  });
522
522
  });
523
523
  }
524
- function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType) {
524
+ var PROMOTION_KEYWORD_RULES = [
525
+ { keyword: "xiaoe", aliases: ["xiaoe", "\u5C0Fe", "\u667A\u80FD\u5C0Fe"] },
526
+ { keyword: "workbuddy", aliases: ["workbuddy"] },
527
+ { keyword: "codex", aliases: ["codex", "openaicodex"] },
528
+ { keyword: "doubao", aliases: ["doubao", "\u8C46\u5305", "\u8C46\u5305\u529E\u516C"] },
529
+ { keyword: "qianwen", aliases: ["qwen", "qianwen", "qwenwork", "\u5343\u95EE", "\u901A\u4E49\u5343\u95EE", "\u5343\u95EE\u529E\u516C"] }
530
+ ];
531
+ function resolvePromotionKeyword(agentType) {
532
+ const normalized = normalizeAgentAlias(agentType);
533
+ if (!normalized) return "";
534
+ const matched = PROMOTION_KEYWORD_RULES.find(
535
+ ({ aliases }) => aliases.some((alias) => normalized.startsWith(alias))
536
+ );
537
+ return matched ? matched.keyword : "";
538
+ }
539
+ function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType, promotionKeyword = resolvePromotionKeyword(agentType)) {
525
540
  const authorizeParams = new URLSearchParams({
526
541
  redirect_uri: redirectUri,
527
542
  response_type: "code",
@@ -529,6 +544,7 @@ function buildE10AuthorizeUrl(baseUrl, redirectUri, agentType) {
529
544
  agent_type: agentType,
530
545
  from: agentType
531
546
  });
547
+ if (promotionKeyword) authorizeParams.set("promotionKeyword", promotionKeyword);
532
548
  return `${baseUrl}/papi/sso/oauth2.0/authorize?${authorizeParams.toString()}`;
533
549
  }
534
550
  function isTlsClientHello(error) {
@@ -3,13 +3,13 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  readCache,
5
5
  writeCache
6
- } from "./chunk-AHJZIMCX.js";
6
+ } from "./chunk-U2DWV6JC.js";
7
7
  import {
8
8
  SCHEMA_DATETIME_MINUTE,
9
9
  meetingSuccess,
10
10
  meetingValidationError,
11
11
  schemaOf
12
- } from "./chunk-6DVL5IN5.js";
12
+ } from "./chunk-CI2RF3AJ.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";
@@ -119,6 +119,9 @@ function assertDateTimeMinute(value, label) {
119
119
  return value;
120
120
  }
121
121
  function assertDateTimeSecond(value, label) {
122
+ if (typeof value === "string" && /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(value)) {
123
+ return `${value}:00`;
124
+ }
122
125
  if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(value)) {
123
126
  throw meetingValidationError("datetime_invalid", `${label} \u5FC5\u987B\u662F yyyy-MM-dd HH:mm:ss \u683C\u5F0F\uFF08\u5E26\u79D2\uFF09`);
124
127
  }
@@ -1835,7 +1838,7 @@ function buildReadOperation(endpoint) {
1835
1838
  if (pageRows.length === 0) break;
1836
1839
  collected.push(...pageRows);
1837
1840
  if (totalKnown > 0 && collected.length >= totalKnown) break;
1838
- if (pageRows.length < 10) break;
1841
+ if (pageRows.length === 0) break;
1839
1842
  }
1840
1843
  const allRows = Object.keys(mainTableFilters).length === 0 ? collected : collected.filter((row) => {
1841
1844
  const main = row?.mainTable ?? row ?? {};
@@ -2176,7 +2179,7 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
2176
2179
  const isDate = (endpoint.dateFields ?? []).includes(field);
2177
2180
  const isSecondDate = (endpoint.secondDateFields ?? []).includes(field);
2178
2181
  const required = (endpoint.requiredFields ?? []).includes(field);
2179
- properties[field] = isDate ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm\uFF0C\u4E0D\u5E26\u79D2\uFF09` } : isSecondDate ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm:ss\uFF0C\u5E26\u79D2\uFF09` } : { type: "string", description: `${field}${required ? "\uFF08\u5FC5\u586B\uFF09" : ""}` };
2182
+ properties[field] = isDate ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm\uFF0C\u4E0D\u5E26\u79D2\uFF09` } : isSecondDate ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}(?::\\d{2})?$", description: `${field}\uFF08yyyy-MM-dd HH:mm:ss\uFF0C\u5E26\u79D2\uFF09` } : { type: "string", description: `${field}${required ? "\uFF08\u5FC5\u586B\uFF09" : ""}` };
2180
2183
  }
2181
2184
  for (const spec of endpoint.details ?? []) {
2182
2185
  const requiredFields = spec.requiredFields ?? [];
@@ -2189,7 +2192,7 @@ function buildWriteInputSchema(endpoint, includeConfirm) {
2189
2192
  properties: Object.fromEntries(
2190
2193
  spec.fields.map((field) => [
2191
2194
  field,
2192
- (spec.dateFields ?? []).includes(field) ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm\uFF09` } : (spec.secondDateFields ?? []).includes(field) ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm:ss\uFF0C\u5E26\u79D2\uFF09` } : { type: "string", description: `${field}${requiredFields.includes(field) ? "\uFF08\u5FC5\u586B\uFF09" : ""}` }
2195
+ (spec.dateFields ?? []).includes(field) ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$", description: `${field}\uFF08yyyy-MM-dd HH:mm\uFF09` } : (spec.secondDateFields ?? []).includes(field) ? { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}(?::\\d{2})?$", description: `${field}\uFF08yyyy-MM-dd HH:mm:ss\uFF0C\u5E26\u79D2\uFF09` } : { type: "string", description: `${field}${requiredFields.includes(field) ? "\uFF08\u5FC5\u586B\uFF09" : ""}` }
2193
2196
  ])
2194
2197
  ),
2195
2198
  required: requiredFields
@@ -2332,7 +2335,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2332
2335
  );
2333
2336
  }
2334
2337
  if (endpoint.interfacePk === "create_meeting") {
2335
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-VAFFPUY3.js");
2338
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-Y3ESXYIA.js");
2336
2339
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2337
2340
  }
2338
2341
  const pkQuery = writePkQuery(endpoint, payload);