weaver-work-cli 0.1.66 → 0.1.67

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 (63) hide show
  1. package/dist/chunks/{attachment-content-NRBGS5XG.js → attachment-content-7SDA6WER.js} +3 -3
  2. package/dist/chunks/{chunk-5FQT7GSN.js → chunk-33ANTJWB.js} +2 -2
  3. package/dist/chunks/{chunk-BZ6HAY2U.js → chunk-4PYLZORW.js} +7 -7
  4. package/dist/chunks/{chunk-YT73QQMS.js → chunk-6ZOSVKMT.js} +1 -1
  5. package/dist/chunks/{chunk-NNXZMBIB.js → chunk-DTJZOAO6.js} +6 -6
  6. package/dist/chunks/{chunk-2BAZJCG7.js → chunk-JU5OPHSY.js} +2 -2
  7. package/dist/chunks/{chunk-GOZ75GHU.js → chunk-KS6LXSCA.js} +38 -38
  8. package/dist/chunks/{chunk-VWQGF3KW.js → chunk-LNWFHNVK.js} +2433 -314
  9. package/dist/chunks/{chunk-SAADVUK6.js → chunk-MRYKV5HN.js} +32 -32
  10. package/dist/chunks/{chunk-AAOYOPHW.js → chunk-R6GGDZ2C.js} +1 -1
  11. package/dist/chunks/{chunk-EYEJW5SG.js → chunk-RU7ZZQQQ.js} +4 -4
  12. package/dist/chunks/{chunk-YFX5JKOY.js → chunk-TXXO4TJT.js} +2 -2
  13. package/dist/chunks/{chunk-M7IEDTRI.js → chunk-XARLZK6C.js} +1 -1
  14. package/dist/chunks/{conflict-LJYKIUJM.js → conflict-DYCSX7CN.js} +2 -2
  15. package/dist/chunks/{create-flow-75MCKXGI.js → create-flow-PABAGCK2.js} +6 -6
  16. package/dist/chunks/{entry-mode-3PI6A7JD.js → entry-mode-C2WPJQJM.js} +3 -3
  17. package/dist/chunks/{env-FI62FOKK.js → env-SEEXUXZF.js} +2 -2
  18. package/dist/chunks/{factory-HLS4SDQM.js → factory-WNLDOLJZ.js} +1 -1
  19. package/dist/chunks/{group-chat-MFBVOLKY.js → group-chat-DOS4XWUN.js} +3 -3
  20. package/dist/chunks/{invoice-MOGNB6HN.js → invoice-SMODTN2D.js} +7 -2
  21. package/dist/chunks/{meeting-ROWDB3DO.js → meeting-2IWXP5IL.js} +11 -11
  22. package/dist/chunks/{minute-doc-ABMO2UDX.js → minute-doc-N4OR5OLP.js} +2 -2
  23. package/dist/chunks/{registry-NLAO2W6T.js → registry-ABKBGGGK.js} +1 -1
  24. package/dist/chunks/{registry-QV6IPRVM.js → registry-XOUVCSV4.js} +11 -11
  25. package/dist/chunks/{room-recommend-P54PQTCN.js → room-recommend-TWIEVY44.js} +4 -4
  26. package/dist/chunks/{schedule-BEBFGMT6.js → schedule-XZ4UUX4E.js} +4 -4
  27. package/dist/chunks/{workflow-LBFFZZN2.js → workflow-D7LBN5MZ.js} +1 -1
  28. package/dist/index.js +3 -3
  29. package/dist/shortcuts/invoice/manifest.js +1 -1
  30. package/dist/shortcuts/invoice/operations/get.js +2 -0
  31. package/dist/shortcuts/invoice/operations/shared.js +2 -0
  32. package/dist/shortcuts/invoice/projection.js +4 -1
  33. package/dist/shortcuts/workflow/endpoints.js +2 -0
  34. package/dist/shortcuts/workflow/operations/aiDeepRead/collect.js +1735 -0
  35. package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +562 -0
  36. package/dist/shortcuts/workflow/operations/deepRead.js +447 -0
  37. package/dist/shortcuts/workflow/operations/read.js +18 -4
  38. package/dist/shortcuts/workflow/operations/registry.js +4 -0
  39. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +9 -0
  40. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +3 -0
  41. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +5 -0
  42. package/docs/invoice.md +2 -0
  43. package/package.json +1 -1
  44. package/scripts/package-skill.mjs +13 -2
  45. package/skills/weaver-e10-workflow/SKILL.md +15 -3
  46. package/skills/weaver-e10-workflow/aiDeepRead/config.json +151 -0
  47. package/skills/weaver-e10-workflow/aiDeepRead/templates//345/215/225/345/215/241/347/211/207-demo.html +64 -0
  48. package/skills/weaver-e10-workflow/aiDeepRead/templates//346/261/207/346/200/273/345/256/241/346/211/271-demo.html +310 -0
  49. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +4 -2
  50. package/skills/weaver-e10-workflow/references/workflow-deep-read.md +201 -0
  51. package/skills/weaver-e10-workflow/tools/ai-deep-read.cjs +80 -0
  52. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +80 -6
  53. package/skills/weaver-e10-yepiaotong/SKILL.md +30 -2
  54. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
  55. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
  56. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +1 -0
  57. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +2 -0
  58. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +4 -4
  59. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +16 -2
  60. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +44 -9
  61. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +3 -1
  62. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +16 -2
  63. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +61 -2
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  fetchEbAppSettings,
5
5
  findCommonFreeSlots
6
- } from "./chunk-NNXZMBIB.js";
6
+ } from "./chunk-DTJZOAO6.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-EYEJW5SG.js";
15
+ } from "./chunk-RU7ZZQQQ.js";
16
16
  import {
17
17
  cacheScopeSuffix,
18
18
  readCache,
19
19
  writeCache
20
- } from "./chunk-YT73QQMS.js";
20
+ } from "./chunk-6ZOSVKMT.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-M7IEDTRI.js";
29
+ } from "./chunk-XARLZK6C.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-QV6IPRVM.js");
197
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.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 ?? [];
@@ -338,7 +338,7 @@ function workflowEnv(env) {
338
338
  async function loadCreateForm(env, workflowId) {
339
339
  const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
340
340
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
341
- const { getWorkflowOperation } = await import("./registry-NLAO2W6T.js");
341
+ const { getWorkflowOperation } = await import("./registry-ABKBGGGK.js");
342
342
  const wfEnv = {
343
343
  ...workflowEnv(env),
344
344
  host: createWorkflowHost(env.ctx),
@@ -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-P54PQTCN.js");
446
+ const { loadRooms: loadRooms2 } = await import("./room-recommend-TWIEVY44.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-QV6IPRVM.js");
477
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.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, options = {}) {
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-QV6IPRVM.js");
589
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.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);
@@ -787,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
787
787
  const missing = [];
788
788
  if (entries.length > 0) {
789
789
  try {
790
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
790
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
791
791
  const search = getMeetingOperation("meeting.eb.crm.search");
792
792
  for (const entry of entries) {
793
793
  if (entry.contacts.length > 0) continue;
@@ -1046,7 +1046,7 @@ function shouldAutoPickFlow(args) {
1046
1046
  async function sendInvitationToGroup(env, groupId, filePath, warnings) {
1047
1047
  const started = Date.now();
1048
1048
  try {
1049
- const { buildImEnv } = await import("./group-chat-MFBVOLKY.js");
1049
+ const { buildImEnv } = await import("./group-chat-DOS4XWUN.js");
1050
1050
  const { getImOperation } = await import("./registry-E5RQJVWN.js");
1051
1051
  const imEnv = await buildImEnv(env);
1052
1052
  const prepared = await getImOperation("im.msg.send.group.prepare").handler(
@@ -1171,7 +1171,7 @@ function needsCrmSelection(name, items) {
1171
1171
  async function buildCrmSelection(args, env) {
1172
1172
  const name = crmPendingNames(args.crm_members)[0];
1173
1173
  if (!name) return null;
1174
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
1174
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1175
1175
  const search = getMeetingOperation("meeting.eb.crm.search");
1176
1176
  const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
1177
1177
  const items = found?.data?.items ?? [];
@@ -1298,14 +1298,14 @@ var ebMeetingCreateFlowPrepare = {
1298
1298
  let entryResolved = "";
1299
1299
  const rawEntry = String(args.entryMode ?? "").trim();
1300
1300
  if (rawEntry === "assist" || rawEntry === "direct_form") {
1301
- const { verifyEntryToken } = await import("./entry-mode-3PI6A7JD.js");
1301
+ const { verifyEntryToken } = await import("./entry-mode-C2WPJQJM.js");
1302
1302
  const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
1303
1303
  const decision = decideEntryMode({ declared: rawEntry, tokenOk });
1304
1304
  if (decision.mode) entryResolved = decision.mode;
1305
1305
  else env.__entryTokenMissing = 1;
1306
1306
  }
1307
1307
  if (!entryResolved && rawEntry === "") {
1308
- const { readEntryChoice } = await import("./entry-mode-3PI6A7JD.js");
1308
+ const { readEntryChoice } = await import("./entry-mode-C2WPJQJM.js");
1309
1309
  const mark2 = await readEntryChoice(env).catch(() => null);
1310
1310
  if (mark2?.choice) entryResolved = mark2.choice;
1311
1311
  }
@@ -1317,7 +1317,7 @@ var ebMeetingCreateFlowPrepare = {
1317
1317
  }
1318
1318
  if (entryResolved === "direct_form") {
1319
1319
  env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
1320
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
1320
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1321
1321
  return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
1322
1322
  }
1323
1323
  const beginRaw = String(args.begin_datetime ?? "").trim();
@@ -1330,7 +1330,7 @@ var ebMeetingCreateFlowPrepare = {
1330
1330
  skipPreflight = true;
1331
1331
  }
1332
1332
  if (!entryResolved && args.skipPreflight !== true) {
1333
- const { createEntryToken } = await import("./entry-mode-3PI6A7JD.js");
1333
+ const { createEntryToken } = await import("./entry-mode-C2WPJQJM.js");
1334
1334
  const tokenDirect = await createEntryToken(env, "direct_form");
1335
1335
  const tokenAssist = await createEntryToken(env, "assist");
1336
1336
  return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
@@ -1432,7 +1432,7 @@ var ebMeetingCreateFlowPrepare = {
1432
1432
  }
1433
1433
  }
1434
1434
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
1435
- const nameToId = nameLike.length > 0 ? await import("./schedule-BEBFGMT6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1435
+ const nameToId = nameLike.length > 0 ? await import("./schedule-XZ4UUX4E.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
1436
1436
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
1437
1437
  if (memberIds.length > 0) {
1438
1438
  const callerToken2 = String(args.caller ?? "").trim();
@@ -1477,7 +1477,7 @@ var ebMeetingCreateFlowPrepare = {
1477
1477
  if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
1478
1478
  const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
1479
1479
  const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
1480
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
1480
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1481
1481
  const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
1482
1482
  {
1483
1483
  dateFrom: day2,
@@ -1647,7 +1647,7 @@ var ebMeetingCreateFlowPrepare = {
1647
1647
  usageFromCache: usageData.fromCache
1648
1648
  };
1649
1649
  }
1650
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
1650
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1651
1651
  const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
1652
1652
  { beginDatetime: beginText, endDatetime: endText, address: room.id },
1653
1653
  env
@@ -1655,7 +1655,7 @@ var ebMeetingCreateFlowPrepare = {
1655
1655
  return { room, ...result?.data ?? {} };
1656
1656
  })().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
1657
1657
  const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
1658
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
1658
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
1659
1659
  return getMeetingOperation("meeting.eb.conflict.member").handler(
1660
1660
  { beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
1661
1661
  env
@@ -2066,7 +2066,7 @@ var ebMeetingCreateFlowPrepare = {
2066
2066
  invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
2067
2067
  } else {
2068
2068
  try {
2069
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2069
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2070
2070
  const publish = getMeetingOperation("meeting.invitation.publish");
2071
2071
  const renderExtra = {};
2072
2072
  if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
@@ -2388,7 +2388,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
2388
2388
  });
2389
2389
  };
2390
2390
  const readBack = async () => {
2391
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2391
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2392
2392
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
2393
2393
  const read = await detail.handler({ id: String(meetingId).trim() }, env);
2394
2394
  return String(read?.data?.data?.crm_members ?? "").trim();
@@ -2415,7 +2415,7 @@ async function renderPreInvitation(payload, env) {
2415
2415
  const fields = payload?.invitationFields ?? {};
2416
2416
  const started = Date.now();
2417
2417
  try {
2418
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2418
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2419
2419
  const render = getMeetingOperation("meeting.invitation.render");
2420
2420
  const rendered = await render.handler(
2421
2421
  {
@@ -2493,7 +2493,7 @@ var ebMeetingCreateFlowApply = {
2493
2493
  const payload = lease?.payload ?? {};
2494
2494
  const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
2495
2495
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
2496
- const { getWorkflowOperation } = await import("./registry-NLAO2W6T.js");
2496
+ const { getWorkflowOperation } = await import("./registry-ABKBGGGK.js");
2497
2497
  const wfEnv = {
2498
2498
  ...workflowEnv(env),
2499
2499
  host: createWorkflowHost(env.ctx),
@@ -2543,7 +2543,7 @@ var ebMeetingCreateFlowApply = {
2543
2543
  const groupPayload2 = payload?.groupChat;
2544
2544
  if (groupPayload2) {
2545
2545
  try {
2546
- const { ensureMeetingGroupChat } = await import("./group-chat-MFBVOLKY.js");
2546
+ const { ensureMeetingGroupChat } = await import("./group-chat-DOS4XWUN.js");
2547
2547
  groupChat2 = {
2548
2548
  ...await ensureMeetingGroupChat(env, {
2549
2549
  meetingName: String(payload.mtName ?? ""),
@@ -2559,7 +2559,7 @@ var ebMeetingCreateFlowApply = {
2559
2559
  }
2560
2560
  if (groupChat2 && groupChat2.ok) {
2561
2561
  try {
2562
- const { savePendingForm } = await import("./group-chat-MFBVOLKY.js");
2562
+ const { savePendingForm } = await import("./group-chat-DOS4XWUN.js");
2563
2563
  await savePendingForm(env, {
2564
2564
  workflowId: String(payload.workflowId ?? ""),
2565
2565
  workflowName: String(payload.workflowName ?? ""),
@@ -2629,7 +2629,7 @@ var ebMeetingCreateFlowApply = {
2629
2629
  let meetingId = "";
2630
2630
  const timings = { submitMs: Date.now() - submitStartedAt };
2631
2631
  if (waitSeconds > 0) {
2632
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2632
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2633
2633
  const list = getMeetingOperation("meeting.eb.meeting.list");
2634
2634
  const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
2635
2635
  const pollStart = Date.now();
@@ -2679,7 +2679,7 @@ var ebMeetingCreateFlowApply = {
2679
2679
  if (groupPayload) {
2680
2680
  const groupStart = Date.now();
2681
2681
  try {
2682
- const { ensureMeetingGroupChat } = await import("./group-chat-MFBVOLKY.js");
2682
+ const { ensureMeetingGroupChat } = await import("./group-chat-DOS4XWUN.js");
2683
2683
  const group = await ensureMeetingGroupChat(env, {
2684
2684
  meetingName: String(payload.mtName ?? ""),
2685
2685
  beginDatetime: String(groupPayload.beginDatetime ?? ""),
@@ -2711,7 +2711,7 @@ var ebMeetingCreateFlowApply = {
2711
2711
  if (meetingId) {
2712
2712
  const invitationStart = Date.now();
2713
2713
  try {
2714
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2714
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2715
2715
  const render = getMeetingOperation("meeting.invitation.render");
2716
2716
  const rendered = await render.handler(
2717
2717
  {
@@ -2872,7 +2872,7 @@ var ebMeetingCreateFlowQuick = {
2872
2872
  ),
2873
2873
  handler: async (args, env) => {
2874
2874
  if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
2875
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
2875
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-XOUVCSV4.js");
2876
2876
  return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
2877
2877
  }
2878
2878
  if (args.confirm !== true) {
@@ -2889,7 +2889,7 @@ var ebMeetingCreateFlowQuick = {
2889
2889
  `\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`
2890
2890
  );
2891
2891
  }
2892
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
2892
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
2893
2893
  const prepareStartedAt = Date.now();
2894
2894
  const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
2895
2895
  const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
@@ -2988,7 +2988,7 @@ var ebMeetingCreateSuggest = {
2988
2988
  const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
2989
2989
  const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
2990
2990
  const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
2991
- const nameToId = nameLike.length > 0 ? await import("./schedule-BEBFGMT6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2991
+ const nameToId = nameLike.length > 0 ? await import("./schedule-XZ4UUX4E.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
2992
2992
  const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
2993
2993
  const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
2994
2994
  const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
@@ -5,7 +5,7 @@ import {
5
5
  ebBusinessSuccess,
6
6
  meetingSuccess,
7
7
  meetingValidationError
8
- } from "./chunk-M7IEDTRI.js";
8
+ } from "./chunk-XARLZK6C.js";
9
9
 
10
10
  // src/shortcuts/meeting/operations/env.ts
11
11
  import { existsSync } from "node:fs";
@@ -4,7 +4,7 @@ import {
4
4
  cacheScopeSuffix,
5
5
  readCache,
6
6
  writeCache
7
- } from "./chunk-YT73QQMS.js";
7
+ } from "./chunk-6ZOSVKMT.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-M7IEDTRI.js";
16
+ } from "./chunk-XARLZK6C.js";
17
17
 
18
18
  // src/shortcuts/meeting/operations/eb/usage-cache.ts
19
19
  var USAGE_TTL_MS = 5 * 60 * 1e3;
@@ -88,7 +88,7 @@ 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-FI62FOKK.js");
91
+ const { meetingStateDir } = await import("./env-SEEXUXZF.js");
92
92
  await rm(join(meetingStateDir(env.ctx), "cache", `${key}.json`), { force: true });
93
93
  } catch {
94
94
  }
@@ -221,7 +221,7 @@ async function loadFrequentRooms(env, options = {}) {
221
221
  const counts = /* @__PURE__ */ new Map();
222
222
  let requests = 0;
223
223
  try {
224
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
224
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
225
225
  const listOp = getMeetingOperation("meeting.eb.meeting.list");
226
226
  let seen = 0;
227
227
  let total = 0;
@@ -2,11 +2,11 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-AAOYOPHW.js";
5
+ } from "./chunk-R6GGDZ2C.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError
9
- } from "./chunk-M7IEDTRI.js";
9
+ } from "./chunk-XARLZK6C.js";
10
10
 
11
11
  // src/shortcuts/meeting/operations/eb/entry-mode.ts
12
12
  import { join, dirname } from "node:path";
@@ -2335,7 +2335,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
2335
2335
  );
2336
2336
  }
2337
2337
  if (endpoint.interfacePk === "create_meeting") {
2338
- const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-LJYKIUJM.js");
2338
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-DYCSX7CN.js");
2339
2339
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2340
2340
  }
2341
2341
  const pkQuery = writePkQuery(endpoint, payload);
@@ -7,8 +7,8 @@ import {
7
7
  findCommonFreeSlots,
8
8
  meetingEbConflictOperations,
9
9
  runEbConflictCheck
10
- } from "./chunk-NNXZMBIB.js";
11
- import "./chunk-M7IEDTRI.js";
10
+ } from "./chunk-DTJZOAO6.js";
11
+ import "./chunk-XARLZK6C.js";
12
12
  import "./chunk-7BDPM5ST.js";
13
13
  import "./chunk-UG5G54VL.js";
14
14
  import "./chunk-BUSC6UAE.js";
@@ -28,12 +28,12 @@ import {
28
28
  resolveWorkflowId,
29
29
  shapeBrowserValues,
30
30
  shouldAutoPickFlow
31
- } from "./chunk-SAADVUK6.js";
32
- import "./chunk-NNXZMBIB.js";
33
- import "./chunk-EYEJW5SG.js";
34
- import "./chunk-YT73QQMS.js";
35
- import "./chunk-AAOYOPHW.js";
36
- import "./chunk-M7IEDTRI.js";
31
+ } from "./chunk-MRYKV5HN.js";
32
+ import "./chunk-DTJZOAO6.js";
33
+ import "./chunk-RU7ZZQQQ.js";
34
+ import "./chunk-6ZOSVKMT.js";
35
+ import "./chunk-R6GGDZ2C.js";
36
+ import "./chunk-XARLZK6C.js";
37
37
  import "./chunk-7BDPM5ST.js";
38
38
  import "./chunk-UG5G54VL.js";
39
39
  import "./chunk-BUSC6UAE.js";
@@ -5,9 +5,9 @@ import {
5
5
  meetingEntryOperations,
6
6
  readEntryChoice,
7
7
  verifyEntryToken
8
- } from "./chunk-YFX5JKOY.js";
9
- import "./chunk-AAOYOPHW.js";
10
- import "./chunk-M7IEDTRI.js";
8
+ } from "./chunk-TXXO4TJT.js";
9
+ import "./chunk-R6GGDZ2C.js";
10
+ import "./chunk-XARLZK6C.js";
11
11
  import "./chunk-7BDPM5ST.js";
12
12
  import "./chunk-UG5G54VL.js";
13
13
  import "./chunk-BUSC6UAE.js";
@@ -6,8 +6,8 @@ import {
6
6
  meetingStateDir,
7
7
  readCache,
8
8
  resolveMeetingEnvMode
9
- } from "./chunk-AAOYOPHW.js";
10
- import "./chunk-M7IEDTRI.js";
9
+ } from "./chunk-R6GGDZ2C.js";
10
+ import "./chunk-XARLZK6C.js";
11
11
  import "./chunk-7BDPM5ST.js";
12
12
  import "./chunk-UG5G54VL.js";
13
13
  import "./chunk-BUSC6UAE.js";
@@ -12,7 +12,7 @@ import {
12
12
  requireConfirm,
13
13
  verifyLease,
14
14
  writeBody
15
- } from "./chunk-M7IEDTRI.js";
15
+ } from "./chunk-XARLZK6C.js";
16
16
  import "./chunk-7BDPM5ST.js";
17
17
  import "./chunk-UG5G54VL.js";
18
18
  import "./chunk-BUSC6UAE.js";
@@ -6,9 +6,9 @@ import {
6
6
  ensureMeetingGroupChat,
7
7
  meetingEbGroupChatOperations,
8
8
  savePendingForm
9
- } from "./chunk-BZ6HAY2U.js";
10
- import "./chunk-AAOYOPHW.js";
11
- import "./chunk-M7IEDTRI.js";
9
+ } from "./chunk-4PYLZORW.js";
10
+ import "./chunk-R6GGDZ2C.js";
11
+ import "./chunk-XARLZK6C.js";
12
12
  import "./chunk-7BDPM5ST.js";
13
13
  import "./chunk-UG5G54VL.js";
14
14
  import "./chunk-BUSC6UAE.js";
@@ -164,6 +164,7 @@ var SUMMARY_OPERATIONS = /* @__PURE__ */ new Set(["invoice.list", "invoice.enter
164
164
  var DETAIL_OPERATIONS = /* @__PURE__ */ new Set(["invoice.get"]);
165
165
  var OUTPUT_VIEWS = ["full", "summary", "detail"];
166
166
  var SUMMARY_ITEM_FIELDS = [
167
+ "id",
167
168
  "fid",
168
169
  "number",
169
170
  "code",
@@ -203,8 +204,10 @@ function summarizeInvoiceItem(raw) {
203
204
  const payer = asRecord2(comm.payer);
204
205
  const modify = asRecord2(item.modify_info);
205
206
  const reimList = Array.isArray(asRecord2(item.oreim).list_reim) ? asRecord2(item.oreim).list_reim : [];
207
+ const fid = text2(item.fid ?? item.id);
206
208
  const summary = {
207
- fid: text2(item.fid ?? item.id),
209
+ id: fid,
210
+ fid,
208
211
  number: text2(item.number),
209
212
  code: text2(item.code),
210
213
  typeName: text2(pro.cname),
@@ -505,7 +508,7 @@ var invoicePartySchema = objectSchema({
505
508
  tcode: { type: "string" }
506
509
  }, [], true);
507
510
  var invoiceInfoSchema = objectSchema({
508
- id: { type: "string" },
511
+ id: { type: "string", description: "\u53D1\u7968\u4E1A\u52A1 ID\uFF1B\u5217\u8868\u548C\u8BE6\u60C5\u8FD4\u56DE\u65F6\u4E0E fid \u4FDD\u6301\u4E00\u81F4\u3002" },
509
512
  fid: { type: "string" },
510
513
  code: { type: "string" },
511
514
  number: { type: "string" },
@@ -2152,6 +2155,7 @@ async function listInvoices(input, host, flag) {
2152
2155
  const result = await host.invoiceRequest({ path: "/api/inc/sync", method: "POST", body });
2153
2156
  const items = (result.infos || []).filter((item) => !isRedReversedInvoice(invoiceRecordOf(item))).map((item) => {
2154
2157
  const record2 = invoiceRecordOf(item);
2158
+ if (record2.fid !== void 0) record2.id = record2.fid;
2155
2159
  const fid = record2.fid ?? record2.id;
2156
2160
  if (fid) record2.detailUrl = invoiceDetailUrl(session.baseUrl, String(fid));
2157
2161
  record2.extInfo = invoiceExtInfo(record2);
@@ -2562,6 +2566,7 @@ var InvoiceGetOperation = class {
2562
2566
  const result = await getDetail(input, host);
2563
2567
  const infos = Array.isArray(result?.infos) ? result.infos : [];
2564
2568
  for (const item of infos) {
2569
+ if (item?.info?.fid !== void 0) item.info.id = item.info.fid;
2565
2570
  const fid = item?.info?.fid ?? item?.info?.id;
2566
2571
  if (fid) item.detailUrl = invoiceDetailUrl(session.baseUrl, String(fid));
2567
2572
  }
@@ -3,21 +3,21 @@ const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  getMeetingOperation,
5
5
  meetingOperationDefinitions
6
- } from "./chunk-GOZ75GHU.js";
7
- import "./chunk-SAADVUK6.js";
8
- import "./chunk-NNXZMBIB.js";
9
- import "./chunk-2BAZJCG7.js";
6
+ } from "./chunk-KS6LXSCA.js";
7
+ import "./chunk-MRYKV5HN.js";
8
+ import "./chunk-DTJZOAO6.js";
9
+ import "./chunk-JU5OPHSY.js";
10
10
  import "./chunk-WMRNO6IU.js";
11
- import "./chunk-BZ6HAY2U.js";
12
- import "./chunk-YFX5JKOY.js";
13
- import "./chunk-5FQT7GSN.js";
14
- import "./chunk-EYEJW5SG.js";
15
- import "./chunk-YT73QQMS.js";
11
+ import "./chunk-4PYLZORW.js";
12
+ import "./chunk-TXXO4TJT.js";
13
+ import "./chunk-33ANTJWB.js";
14
+ import "./chunk-RU7ZZQQQ.js";
15
+ import "./chunk-6ZOSVKMT.js";
16
16
  import {
17
17
  degradeMeetingEnvToStandard,
18
18
  meetingStateDir,
19
19
  readCache
20
- } from "./chunk-AAOYOPHW.js";
20
+ } from "./chunk-R6GGDZ2C.js";
21
21
  import {
22
22
  MeetingCliError,
23
23
  asObject,
@@ -25,7 +25,7 @@ import {
25
25
  meetingAuthError,
26
26
  meetingNetworkError,
27
27
  meetingValidationError
28
- } from "./chunk-M7IEDTRI.js";
28
+ } from "./chunk-XARLZK6C.js";
29
29
  import {
30
30
  reportPlatformError
31
31
  } from "./chunk-6N4JPNFL.js";
@@ -65,8 +65,8 @@ async function ensureMinuteDoc(env, input) {
65
65
  const id = String(input.id ?? "").trim();
66
66
  const mtId = String(input.mtId ?? "").trim();
67
67
  if (!id || !mtId) return null;
68
- const { getMeetingOperation } = await import("./registry-QV6IPRVM.js");
69
- const { meetingStateDir } = await import("./env-FI62FOKK.js");
68
+ const { getMeetingOperation } = await import("./registry-XOUVCSV4.js");
69
+ const { meetingStateDir } = await import("./env-SEEXUXZF.js");
70
70
  const { mkdir, writeFile } = await import("node:fs/promises");
71
71
  const { join } = await import("node:path");
72
72
  const subject = String(input.subject ?? "").trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
@@ -4,7 +4,7 @@ import {
4
4
  getWorkflowOperation,
5
5
  hasWorkflowOperation,
6
6
  workflowOperationDefinitions
7
- } from "./chunk-VWQGF3KW.js";
7
+ } from "./chunk-LNWFHNVK.js";
8
8
  import "./chunk-HP7JIYMT.js";
9
9
  import "./chunk-WRXSAVKO.js";
10
10
  import "./chunk-4WCVRDC5.js";
@@ -4,18 +4,18 @@ import {
4
4
  getMeetingOperation,
5
5
  hasMeetingOperation,
6
6
  meetingOperationDefinitions
7
- } from "./chunk-GOZ75GHU.js";
8
- import "./chunk-SAADVUK6.js";
9
- import "./chunk-NNXZMBIB.js";
10
- import "./chunk-2BAZJCG7.js";
7
+ } from "./chunk-KS6LXSCA.js";
8
+ import "./chunk-MRYKV5HN.js";
9
+ import "./chunk-DTJZOAO6.js";
10
+ import "./chunk-JU5OPHSY.js";
11
11
  import "./chunk-WMRNO6IU.js";
12
- import "./chunk-BZ6HAY2U.js";
13
- import "./chunk-YFX5JKOY.js";
14
- import "./chunk-5FQT7GSN.js";
15
- import "./chunk-EYEJW5SG.js";
16
- import "./chunk-YT73QQMS.js";
17
- import "./chunk-AAOYOPHW.js";
18
- import "./chunk-M7IEDTRI.js";
12
+ import "./chunk-4PYLZORW.js";
13
+ import "./chunk-TXXO4TJT.js";
14
+ import "./chunk-33ANTJWB.js";
15
+ import "./chunk-RU7ZZQQQ.js";
16
+ import "./chunk-6ZOSVKMT.js";
17
+ import "./chunk-R6GGDZ2C.js";
18
+ import "./chunk-XARLZK6C.js";
19
19
  import "./chunk-7BDPM5ST.js";
20
20
  import "./chunk-FDBAFANU.js";
21
21
  import "./chunk-UG5G54VL.js";
@@ -7,10 +7,10 @@ import {
7
7
  loadRooms,
8
8
  recommendRooms,
9
9
  rememberFrequentRoom
10
- } from "./chunk-EYEJW5SG.js";
11
- import "./chunk-YT73QQMS.js";
12
- import "./chunk-AAOYOPHW.js";
13
- import "./chunk-M7IEDTRI.js";
10
+ } from "./chunk-RU7ZZQQQ.js";
11
+ import "./chunk-6ZOSVKMT.js";
12
+ import "./chunk-R6GGDZ2C.js";
13
+ import "./chunk-XARLZK6C.js";
14
14
  import "./chunk-7BDPM5ST.js";
15
15
  import "./chunk-UG5G54VL.js";
16
16
  import "./chunk-BUSC6UAE.js";
@@ -8,10 +8,10 @@ import {
8
8
  resolveMeetingScheduleTypeIds,
9
9
  resolveMemberIdsByName,
10
10
  runScheduleConflictFlow
11
- } from "./chunk-5FQT7GSN.js";
12
- import "./chunk-YT73QQMS.js";
13
- import "./chunk-AAOYOPHW.js";
14
- import "./chunk-M7IEDTRI.js";
11
+ } from "./chunk-33ANTJWB.js";
12
+ import "./chunk-6ZOSVKMT.js";
13
+ import "./chunk-R6GGDZ2C.js";
14
+ import "./chunk-XARLZK6C.js";
15
15
  import "./chunk-7BDPM5ST.js";
16
16
  import "./chunk-UG5G54VL.js";
17
17
  import "./chunk-BUSC6UAE.js";
@@ -17,7 +17,7 @@ import {
17
17
  validateRuleFile,
18
18
  workflowOperationDefinitions,
19
19
  workflowSuccess
20
- } from "./chunk-VWQGF3KW.js";
20
+ } from "./chunk-LNWFHNVK.js";
21
21
  import {
22
22
  createWorkflowContinuationSigner
23
23
  } from "./chunk-HP7JIYMT.js";
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var builtinShortcuts = [
41
41
  lazyShortcut({
42
42
  name: "invoice",
43
43
  description: "E10 \u4E1A\u7968\u901A\u53D1\u7968\u7BA1\u7406 CLI",
44
- load: async () => (await import("./chunks/invoice-MOGNB6HN.js")).invoiceShortcut
44
+ load: async () => (await import("./chunks/invoice-SMODTN2D.js")).invoiceShortcut
45
45
  }),
46
46
  lazyShortcut({
47
47
  name: "ehr",
@@ -96,7 +96,7 @@ var builtinShortcuts = [
96
96
  lazyShortcut({
97
97
  name: "meeting",
98
98
  description: "\u6CDB\u5FAEE10\u4F1A\u8BAE\u7BA1\u7406 CLI\uFF08\u6807\u51C6\u7248\uFF1A\u67E5\u8BE2/\u51B2\u7A81/\u9884\u7EA6/\u56DE\u6267/\u7B7E\u5230\uFF09",
99
- load: async () => (await import("./chunks/meeting-ROWDB3DO.js")).meetingShortcut
99
+ load: async () => (await import("./chunks/meeting-2IWXP5IL.js")).meetingShortcut
100
100
  }),
101
101
  lazyShortcut({
102
102
  name: "okr",
@@ -146,7 +146,7 @@ var builtinShortcuts = [
146
146
  lazyShortcut({
147
147
  name: "workflow",
148
148
  description: "\u6CDB\u5FAEE10\u6D41\u7A0B\u667A\u80FD\u52A9\u624B CLI\uFF08\u67E5\u8BE2/\u67E5\u770B/\u64CD\u4F5C/\u6279\u91CF/\u53D1\u8D77/\u4FEE\u6539\uFF09",
149
- load: async () => (await import("./chunks/workflow-LBFFZZN2.js")).workflowShortcut
149
+ load: async () => (await import("./chunks/workflow-D7LBN5MZ.js")).workflowShortcut
150
150
  }),
151
151
  lazyShortcut({
152
152
  name: "blog",