weaver-work-cli 0.1.64 → 0.1.66

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 (91) hide show
  1. package/dist/chunks/{attachment-content-JQDW3BIB.js → attachment-content-NRBGS5XG.js} +3 -3
  2. package/dist/chunks/{chunk-RMOH2GMF.js → chunk-2BAZJCG7.js} +2 -2
  3. package/dist/chunks/{chunk-SHX7XBYR.js → chunk-4WCVRDC5.js} +83 -33
  4. package/dist/chunks/{chunk-KDFEHDIB.js → chunk-5FQT7GSN.js} +2 -2
  5. package/dist/chunks/{chunk-3PCXBG4H.js → chunk-AAOYOPHW.js} +1 -1
  6. package/dist/chunks/{chunk-5QQKLR6H.js → chunk-BZ6HAY2U.js} +7 -7
  7. package/dist/chunks/{chunk-I3MOFD6Q.js → chunk-EYEJW5SG.js} +4 -4
  8. package/dist/chunks/{chunk-SCMHG23G.js → chunk-GOZ75GHU.js} +38 -38
  9. package/dist/chunks/{chunk-4AFWOGOV.js → chunk-M7IEDTRI.js} +1 -1
  10. package/dist/chunks/{chunk-XHSEK2VM.js → chunk-NNXZMBIB.js} +6 -6
  11. package/dist/chunks/{chunk-K7QKQRSL.js → chunk-NP3ZZFGI.js} +24 -24
  12. package/dist/chunks/{chunk-INVYKG4I.js → chunk-SAADVUK6.js} +32 -32
  13. package/dist/chunks/{chunk-YTFNMQO4.js → chunk-VWQGF3KW.js} +103 -19
  14. package/dist/chunks/{chunk-AGSO3PIK.js → chunk-YFX5JKOY.js} +2 -2
  15. package/dist/chunks/{chunk-KYDXWYFB.js → chunk-YT73QQMS.js} +1 -1
  16. package/dist/chunks/{conflict-UUC7AFUI.js → conflict-LJYKIUJM.js} +2 -2
  17. package/dist/chunks/{contract-INMS7SYQ.js → contract-N5WNHKHI.js} +94 -30
  18. package/dist/chunks/{create-flow-YOR4QTAJ.js → create-flow-75MCKXGI.js} +6 -6
  19. package/dist/chunks/{entry-mode-S2ENJ6GZ.js → entry-mode-3PI6A7JD.js} +3 -3
  20. package/dist/chunks/{env-ZSAXU5PJ.js → env-FI62FOKK.js} +2 -2
  21. package/dist/chunks/{factory-N76QQA53.js → factory-HLS4SDQM.js} +1 -1
  22. package/dist/chunks/{group-chat-UM665WDZ.js → group-chat-MFBVOLKY.js} +3 -3
  23. package/dist/chunks/{lazy-dispatch-4WOIL3ZQ.js → lazy-dispatch-K25LTKQY.js} +2 -2
  24. package/dist/chunks/{meeting-MMTYDHXA.js → meeting-ROWDB3DO.js} +11 -11
  25. package/dist/chunks/{minute-doc-LCSBWGJ3.js → minute-doc-ABMO2UDX.js} +2 -2
  26. package/dist/chunks/{registry-BAWCWV4D.js → registry-NLAO2W6T.js} +2 -2
  27. package/dist/chunks/{registry-FNI5E76J.js → registry-QV6IPRVM.js} +11 -11
  28. package/dist/chunks/{room-recommend-I7QQRHEL.js → room-recommend-P54PQTCN.js} +4 -4
  29. package/dist/chunks/{schedule-3P7EWGNZ.js → schedule-BEBFGMT6.js} +4 -4
  30. package/dist/chunks/{smart-extract-FOBSVNYW.js → smart-extract-DEBLJPCQ.js} +11 -11
  31. package/dist/chunks/{workflow-U2KKTVQY.js → workflow-LBFFZZN2.js} +2 -2
  32. package/dist/cmd/refs/index.js +24 -23
  33. package/dist/core/output.js +134 -41
  34. package/dist/index.js +7 -7
  35. package/dist/shortcuts/contract/manifest.js +11 -4
  36. package/dist/shortcuts/contract/operations/first-screen.js +41 -19
  37. package/dist/shortcuts/contract/operations/flow.js +2 -0
  38. package/dist/shortcuts/contract/operations/ledger.js +58 -8
  39. package/dist/shortcuts/contract/operations/quote-recognize.js +31 -9
  40. package/dist/shortcuts/contract/operations/quote-submit.js +4 -1
  41. package/dist/shortcuts/contract/operations/upload.js +21 -1
  42. package/dist/shortcuts/contract/upload-cache.js +2 -2
  43. package/dist/shortcuts/smart-extract/operations/fill.js +14 -14
  44. package/dist/shortcuts/workflow/index.js +2 -2
  45. package/dist/shortcuts/workflow/operations/form.js +28 -4
  46. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.categoryCounts.js +64 -0
  47. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +15 -0
  48. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -0
  49. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +4 -0
  50. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -0
  51. package/docs/agent-io-channel-design.md +21 -10
  52. package/docs/smart-extract.md +1 -1
  53. package/docs/todo-smart-convert/data-contract.md +1 -1
  54. package/package.json +1 -1
  55. package/skills/weaver-e10-jinchengda/SKILL.md +67 -31
  56. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +18 -18
  57. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +4 -4
  58. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
  59. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +2 -2
  60. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +6 -6
  61. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +3 -3
  62. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
  63. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +6 -6
  64. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +7 -7
  65. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +9 -9
  66. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +3 -3
  67. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +11 -11
  68. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +18 -18
  69. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +4 -4
  70. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -15
  71. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +51 -28
  72. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +6 -6
  73. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +1 -1
  74. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +20 -9
  75. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +18 -18
  76. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +9 -9
  77. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +4 -4
  78. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +42 -30
  79. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
  80. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +8 -8
  81. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +1 -1
  82. package/skills/weaver-e10-jinchengda/references/orchestration.md +2 -2
  83. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +1 -1
  84. package/skills/weaver-e10-shared/references/json-output-contract.md +4 -3
  85. package/skills/weaver-e10-smart-extract/SKILL.md +1 -1
  86. package/skills/weaver-e10-workflow/SKILL.md +40 -16
  87. package/skills/weaver-e10-workflow/aigroup/default.json +1 -1
  88. package/skills/weaver-e10-workflow/references/todo-dialogue.md +30 -27
  89. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +90 -22
  90. package/skills/weaver-e10-workflow/references/workflow-view.md +18 -2
  91. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +240 -43
@@ -10,44 +10,44 @@ import {
10
10
  resolvePersonTokens,
11
11
  resolveSelfPerson,
12
12
  resolveWorkflowId
13
- } from "./chunk-INVYKG4I.js";
13
+ } from "./chunk-SAADVUK6.js";
14
14
  import {
15
15
  ebMeetingWritePreflight,
16
16
  meetingEbConflictOperations
17
- } from "./chunk-XHSEK2VM.js";
17
+ } from "./chunk-NNXZMBIB.js";
18
18
  import {
19
19
  listMeetingAttachments,
20
20
  meetingAttachmentContentOperations
21
- } from "./chunk-RMOH2GMF.js";
21
+ } from "./chunk-2BAZJCG7.js";
22
22
  import {
23
23
  PENDING_MARK,
24
24
  renderDocx
25
25
  } from "./chunk-WMRNO6IU.js";
26
26
  import {
27
27
  meetingEbGroupChatOperations
28
- } from "./chunk-5QQKLR6H.js";
28
+ } from "./chunk-BZ6HAY2U.js";
29
29
  import {
30
30
  meetingEntryOperations
31
- } from "./chunk-AGSO3PIK.js";
31
+ } from "./chunk-YFX5JKOY.js";
32
32
  import {
33
33
  meetingEbScheduleOperations
34
- } from "./chunk-KDFEHDIB.js";
34
+ } from "./chunk-5FQT7GSN.js";
35
35
  import {
36
36
  ebRoomRecommendOperation,
37
37
  inferRoomFloor,
38
38
  recommendRooms,
39
39
  rememberFrequentRoom
40
- } from "./chunk-I3MOFD6Q.js";
40
+ } from "./chunk-EYEJW5SG.js";
41
41
  import {
42
42
  cacheScopeSuffix,
43
43
  readCache,
44
44
  writeCache
45
- } from "./chunk-KYDXWYFB.js";
45
+ } from "./chunk-YT73QQMS.js";
46
46
  import {
47
47
  meetingEnvOperations,
48
48
  meetingStateDir,
49
49
  resolveMeetingEnvMode
50
- } from "./chunk-3PCXBG4H.js";
50
+ } from "./chunk-AAOYOPHW.js";
51
51
  import {
52
52
  EB_BASE,
53
53
  EB_ENDPOINTS,
@@ -79,7 +79,7 @@ import {
79
79
  toIdString,
80
80
  verifyLease,
81
81
  writeBody
82
- } from "./chunk-4AFWOGOV.js";
82
+ } from "./chunk-M7IEDTRI.js";
83
83
  import {
84
84
  CONTINUATION_TTL_SECONDS
85
85
  } from "./chunk-7BDPM5ST.js";
@@ -2247,7 +2247,7 @@ var meetingAttachmentAttach = {
2247
2247
  if (mode === "append" && existingIds.length === 0) {
2248
2248
  existingIds.push(...beforeIds);
2249
2249
  }
2250
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2250
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
2251
2251
  const list = getMeetingOperation2("meeting.eb.meeting.list");
2252
2252
  let fileId = incomingFileId;
2253
2253
  let name = String(args.name ?? "").trim();
@@ -2335,7 +2335,7 @@ function textOf(value) {
2335
2335
  return value === void 0 || value === null ? "" : String(value);
2336
2336
  }
2337
2337
  async function readMinute(env, id) {
2338
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2338
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
2339
2339
  const detail = getMeetingOperation2("meeting.eb.minute.detail");
2340
2340
  const result = await detail.handler({ id }, env);
2341
2341
  const row = result?.data?.data;
@@ -2418,7 +2418,7 @@ var meetingMinuteWriteContent = {
2418
2418
  } else {
2419
2419
  statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
2420
2420
  }
2421
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2421
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
2422
2422
  const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
2423
2423
  const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
2424
2424
  const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
@@ -2434,8 +2434,8 @@ var meetingMinuteWriteContent = {
2434
2434
  let minuteDoc = null;
2435
2435
  if (args.with_doc !== false) {
2436
2436
  try {
2437
- const { buildMinuteDocx } = await import("./minute-doc-LCSBWGJ3.js");
2438
- const { meetingStateDir: meetingStateDir2 } = await import("./env-ZSAXU5PJ.js");
2437
+ const { buildMinuteDocx } = await import("./minute-doc-ABMO2UDX.js");
2438
+ const { meetingStateDir: meetingStateDir2 } = await import("./env-FI62FOKK.js");
2439
2439
  const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
2440
2440
  const { join: join3 } = await import("node:path");
2441
2441
  const subject = textOf(after.mt_minutes_subject).trim() || `\u4F1A\u8BAE\u7EAA\u8981-${mtId}`;
@@ -2472,7 +2472,7 @@ var meetingMinuteWriteContent = {
2472
2472
  }
2473
2473
  if (args.with_doc !== false) {
2474
2474
  try {
2475
- const { ensureMinuteDoc } = await import("./minute-doc-LCSBWGJ3.js");
2475
+ const { ensureMinuteDoc } = await import("./minute-doc-ABMO2UDX.js");
2476
2476
  const better = await ensureMinuteDoc(env, {
2477
2477
  id,
2478
2478
  mtId,
@@ -2843,7 +2843,7 @@ var meetingMinuteFromGroupChat = {
2843
2843
  const mtId = textOf2(args.mt_id).trim();
2844
2844
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
2845
2845
  const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
2846
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
2846
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
2847
2847
  const ctx = env.ctx;
2848
2848
  let stepStart = Date.now();
2849
2849
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
@@ -2937,7 +2937,7 @@ var meetingMinuteFromGroupChat = {
2937
2937
  try {
2938
2938
  const { readFile: readFile4 } = await import("node:fs/promises");
2939
2939
  const buffer = await readFile4(file);
2940
- const { extractText } = await import("./attachment-content-JQDW3BIB.js");
2940
+ const { extractText } = await import("./attachment-content-NRBGS5XG.js");
2941
2941
  const extracted = extractText(buffer, file, "");
2942
2942
  if (extracted.text.trim()) {
2943
2943
  extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
@@ -3112,8 +3112,8 @@ ${groupTranscript}` : ""
3112
3112
  if (args.with_doc !== false) {
3113
3113
  const docStarted = Date.now();
3114
3114
  try {
3115
- const { buildMinuteDocx } = await import("./minute-doc-LCSBWGJ3.js");
3116
- const { meetingStateDir: meetingStateDir2 } = await import("./env-ZSAXU5PJ.js");
3115
+ const { buildMinuteDocx } = await import("./minute-doc-ABMO2UDX.js");
3116
+ const { meetingStateDir: meetingStateDir2 } = await import("./env-FI62FOKK.js");
3117
3117
  const { mkdir: mkdir4, writeFile: writeFile4 } = await import("node:fs/promises");
3118
3118
  const { join: join3 } = await import("node:path");
3119
3119
  const body = textOf2(row.parse_content) || textOf2(row.minutes_content) || transcript;
@@ -3300,7 +3300,7 @@ var meetingDecisionNotifyGroup = {
3300
3300
  const warnings = [];
3301
3301
  const mtId = textOf3(args.mt_id).trim();
3302
3302
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
3303
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3303
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
3304
3304
  const ctx = env.ctx;
3305
3305
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
3306
3306
  { mt_id: mtId, pageNo: 1, pageSize: 1 },
@@ -3602,7 +3602,7 @@ var meetingPipelineRun = {
3602
3602
  const needsConfirm = level === "tasks" || level === "notify";
3603
3603
  const confirmed = args.confirm === true;
3604
3604
  const executedLevel = needsConfirm && !confirmed ? "document" : level;
3605
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3605
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
3606
3606
  const ctx = env.ctx;
3607
3607
  let stepStart = Date.now();
3608
3608
  const reuseMinuteId = textOf4(args.minuteId).trim();
@@ -3974,7 +3974,7 @@ function formatTimeRange(start, end) {
3974
3974
  }
3975
3975
  async function loadAgendaFromTopics(env, mtId) {
3976
3976
  try {
3977
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
3977
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
3978
3978
  const operation = getMeetingOperation2("meeting.eb.topic.list");
3979
3979
  const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
3980
3980
  const rows = result.data?.rows ?? [];
@@ -4125,7 +4125,7 @@ async function supplementRowFromDetail(row, mtId, env) {
4125
4125
  const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
4126
4126
  if (missing.length === 0) return { row, filled: [] };
4127
4127
  try {
4128
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4128
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
4129
4129
  const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
4130
4130
  const result = await detailOperation.handler({ id: mtId }, env);
4131
4131
  const flat = result?.data?.data ?? result?.data ?? {};
@@ -4299,7 +4299,7 @@ var meetingInvitationRender = {
4299
4299
  };
4300
4300
  dataSource = "payload";
4301
4301
  } else {
4302
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4302
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
4303
4303
  const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
4304
4304
  try {
4305
4305
  const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
@@ -4643,7 +4643,7 @@ var meetingInvitationPublish = {
4643
4643
  "\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
4644
4644
  );
4645
4645
  }
4646
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
4646
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
4647
4647
  const render = getMeetingOperation2("meeting.invitation.render");
4648
4648
  const rendered = await render.handler(
4649
4649
  {
@@ -5358,7 +5358,7 @@ var meetingSummaryGet = {
5358
5358
  const mtId = textOf5(args.mt_id).trim();
5359
5359
  if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
5360
5360
  const ctx = env.ctx;
5361
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
5361
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
5362
5362
  const warnings = [];
5363
5363
  const timings = {};
5364
5364
  const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
@@ -5679,7 +5679,7 @@ var MT_STATUS_OVER = "8";
5679
5679
  var CANCELLED_MARK_DELAY_MS = 800;
5680
5680
  async function isCancelledMeeting(env, mtId) {
5681
5681
  try {
5682
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
5682
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
5683
5683
  const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
5684
5684
  // withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
5685
5685
  { mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
@@ -5724,7 +5724,7 @@ async function resolveDecisionPeople(env, input, ownerId) {
5724
5724
  }
5725
5725
  let nameToId = /* @__PURE__ */ new Map();
5726
5726
  if (nameTokens.size > 0) {
5727
- const { resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
5727
+ const { resolveMemberIdsByName } = await import("./schedule-BEBFGMT6.js");
5728
5728
  nameToId = await resolveMemberIdsByName(env, [...nameTokens]).catch(() => /* @__PURE__ */ new Map());
5729
5729
  }
5730
5730
  const unresolved = [];
@@ -6768,7 +6768,7 @@ var deleteMany = {
6768
6768
  if (args.confirm !== true) {
6769
6769
  throw meetingValidationError("confirmation_required", "\u6279\u91CF\u5220\u9664\u4E0D\u53EF\u6062\u590D\uFF0C\u5FC5\u987B\u4F20 confirm=true");
6770
6770
  }
6771
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
6771
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
6772
6772
  const listOp = getMeetingOperation2("meeting.eb.decisionTask.list");
6773
6773
  const prepareOp = getMeetingOperation2("meeting.eb.decisionTask.delete.prepare");
6774
6774
  const applyOp = getMeetingOperation2("meeting.eb.decisionTask.delete.apply");
@@ -6903,7 +6903,7 @@ var reassign = {
6903
6903
  },
6904
6904
  handler: async (args, env) => {
6905
6905
  if (args.confirm === false) throw meetingValidationError("confirmation_required", "confirm=false\uFF0C\u672A\u6267\u884C");
6906
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
6906
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
6907
6907
  const mtId = String(args.mt_id ?? "").trim();
6908
6908
  const target = await resolveEmployeeId(env, String(args.to_executor ?? ""));
6909
6909
  const from = String(args.from_executor ?? "").trim();
@@ -7202,7 +7202,7 @@ var formLink = {
7202
7202
  pushValue("crm_members", "##" + first.id);
7203
7203
  } else {
7204
7204
  try {
7205
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7205
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
7206
7206
  const search = getMeetingOperation2("meeting.eb.crm.search");
7207
7207
  const found = await search.handler({ keyword: first.name, pageSize: 10 }, env);
7208
7208
  const rows = found?.data?.items ?? [];
@@ -7357,7 +7357,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
7357
7357
  const mtId = String(context.dataIds?.[0] ?? "").trim();
7358
7358
  if (!isCreate || !enabled || !mtId) return association;
7359
7359
  try {
7360
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7360
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
7361
7361
  const render = getMeetingOperation2("meeting.invitation.render");
7362
7362
  const result = await render.handler({ mtId }, context.env);
7363
7363
  return { ...association ?? {}, invitation: result?.data ?? null };
@@ -7393,7 +7393,7 @@ var ebOperationsWithLinks = ebBaseOperations.map((operation) => {
7393
7393
  const raw = String(args.member).trim();
7394
7394
  let uid = /^\d+$/.test(raw) ? raw : "";
7395
7395
  if (!uid) {
7396
- const { resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
7396
+ const { resolveMemberIdsByName } = await import("./schedule-BEBFGMT6.js");
7397
7397
  const map = await resolveMemberIdsByName(env, [raw]).catch(() => /* @__PURE__ */ new Map());
7398
7398
  uid = String(map.get(raw) ?? "");
7399
7399
  }
@@ -7432,7 +7432,7 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
7432
7432
  if (!String(nextArgs.mt_minutes_subject ?? "").trim() && nextArgs.mt_id) {
7433
7433
  let meetingName = "";
7434
7434
  try {
7435
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7435
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
7436
7436
  const detailOp = getMeetingOperation2("meeting.eb.meeting.detail");
7437
7437
  const detail = await detailOp.handler({ id: String(nextArgs.mt_id) }, env);
7438
7438
  const row = detail?.data?.data ?? {};
@@ -7452,8 +7452,8 @@ var ebOperationsWithMinuteDoc = ebOperationsWithLinks.map((operation) => {
7452
7452
  handler: async (args, env) => {
7453
7453
  const result = await operation.handler(args, env);
7454
7454
  try {
7455
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7456
- const { ensureMinuteDoc } = await import("./minute-doc-LCSBWGJ3.js");
7455
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
7456
+ const { ensureMinuteDoc } = await import("./minute-doc-ABMO2UDX.js");
7457
7457
  const minuteId = String((result?.data?.dataIds ?? [])[0] ?? "").trim();
7458
7458
  if (minuteId) {
7459
7459
  const detail = await getMeetingOperation2("meeting.eb.minute.detail").handler({ id: minuteId }, env);
@@ -7577,7 +7577,7 @@ var composeOutcome = {
7577
7577
  if (args.confirm === false) {
7578
7578
  throw meetingValidationError("confirmation_required", "\u4F20\u4E86 confirm=false\uFF0C\u5DF2\u963B\u6B62\u5199\u5165");
7579
7579
  }
7580
- const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
7580
+ const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-QV6IPRVM.js");
7581
7581
  let mtId = String(args.mt_id ?? "").trim();
7582
7582
  if (!mtId) {
7583
7583
  const listOp2 = getMeetingOperation2("meeting.eb.meeting.list");
@@ -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-UUC7AFUI.js");
2338
+ const { fetchEbAppSettings, assertEbCreatePathAllowed } = await import("./conflict-LJYKIUJM.js");
2339
2339
  assertEbCreatePathAllowed(await fetchEbAppSettings(env, applyName));
2340
2340
  }
2341
2341
  const pkQuery = writePkQuery(endpoint, payload);
@@ -12,7 +12,7 @@ import {
12
12
  meetingValidationError,
13
13
  queryBody,
14
14
  toIdCsv
15
- } from "./chunk-4AFWOGOV.js";
15
+ } from "./chunk-M7IEDTRI.js";
16
16
 
17
17
  // src/shortcuts/meeting/operations/eb/conflict.ts
18
18
  var ACTIVE_MT_STATUS = "1,2,8,9";
@@ -146,7 +146,7 @@ async function collectMemberConflicts(members, begin, end, excludeMtId, env, ope
146
146
  let candidates = allCandidates;
147
147
  let prefilterSkipped = 0;
148
148
  try {
149
- const { resolveEmployeeNames } = await import("./create-flow-YOR4QTAJ.js");
149
+ const { resolveEmployeeNames } = await import("./create-flow-75MCKXGI.js");
150
150
  const names = await resolveEmployeeNames(env, members);
151
151
  const tokens = [...members, ...names.values()].map((token) => String(token ?? "").trim()).filter((token) => token !== "");
152
152
  if (tokens.length > 0) {
@@ -315,7 +315,7 @@ var ebMeetingWritePreflight = async ({ endpoint, payload, args, env, extras }) =
315
315
  const items = rawMembers.split(/[,;,;]+/u).map((item) => item.trim()).filter((item) => item !== "");
316
316
  const nameLike = items.filter((item) => !/^\d+$/u.test(item));
317
317
  if (nameLike.length > 0) {
318
- const { resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
318
+ const { resolveMemberIdsByName } = await import("./schedule-BEBFGMT6.js");
319
319
  const idsByName = await resolveMemberIdsByName(env, nameLike);
320
320
  const resolved = items.map((item) => idsByName.get(item) ?? item);
321
321
  payload.mainTable.hrm_members = [...new Set(resolved)].join(",");
@@ -448,7 +448,7 @@ var ebConflictRoom = {
448
448
  let addressId = String(args.address ?? "").trim();
449
449
  let resolvedRoom = null;
450
450
  if (!addressId && String(args.room_name ?? "").trim()) {
451
- const { resolveAddressRoom } = await import("./create-flow-YOR4QTAJ.js");
451
+ const { resolveAddressRoom } = await import("./create-flow-75MCKXGI.js");
452
452
  const resolved = await resolveAddressRoom(env, String(args.room_name));
453
453
  if (!resolved?.id) {
454
454
  throw meetingValidationError(
@@ -637,7 +637,7 @@ async function findCommonFreeSlots(env, input) {
637
637
  let meetings = allMeetings;
638
638
  let prefilterSkipped = 0;
639
639
  try {
640
- const { resolveEmployeeNames } = await import("./create-flow-YOR4QTAJ.js");
640
+ const { resolveEmployeeNames } = await import("./create-flow-75MCKXGI.js");
641
641
  const names2 = await resolveEmployeeNames(env, members);
642
642
  const tokens = [...members, ...names2.values()].map((token) => String(token ?? "").trim()).filter((token) => token !== "");
643
643
  if (tokens.length > 0 && process.env.WEAVER_MEETING_NO_PREFILTER !== "1") {
@@ -675,7 +675,7 @@ async function findCommonFreeSlots(env, input) {
675
675
  const scheduleItems = [];
676
676
  if (includeSchedule) {
677
677
  try {
678
- const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-3P7EWGNZ.js");
678
+ const { runScheduleConflictFlow, parseScheduleConflictMessage, resolveMemberIdsByName } = await import("./schedule-BEBFGMT6.js");
679
679
  const dayBegin = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 0, 0, 0, 0);
680
680
  const dayEnd = new Date(rangeStart.getFullYear(), rangeStart.getMonth(), rangeStart.getDate(), 23, 59, 0, 0);
681
681
  const flow = await runScheduleConflictFlow(env, {
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
- DEFAULT_RESULT_THRESHOLD_BYTES,
5
4
  Output,
6
5
  RefError,
7
- bytesOf,
6
+ charsOf,
7
+ defaultResultThresholdChars,
8
8
  listRefs,
9
9
  pickValue,
10
10
  pruneRefs,
@@ -14,8 +14,8 @@ import {
14
14
  refMaxBytes,
15
15
  refMaxCount,
16
16
  resolveRefInput,
17
- resultThresholdBytes
18
- } from "./chunk-SHX7XBYR.js";
17
+ resultThresholdChars
18
+ } from "./chunk-4WCVRDC5.js";
19
19
  import {
20
20
  refsDir
21
21
  } from "./chunk-AJ62BGAW.js";
@@ -1585,9 +1585,9 @@ var refsCommand = {
1585
1585
  const id = String(refId ?? "").trim();
1586
1586
  if (!id) throw new CliError("refId \u4E0D\u80FD\u4E3A\u7A7A", 2 /* UsageError */);
1587
1587
  const record = readRef(ctx, id);
1588
- const configuredLimit = resultThresholdBytes(ctx);
1589
- const displayLimit = configuredLimit > 0 ? configuredLimit : DEFAULT_RESULT_THRESHOLD_BYTES;
1590
- if (bytesOf(record.envelope) > displayLimit) {
1588
+ const configuredLimit = resultThresholdChars(ctx);
1589
+ const displayLimit = configuredLimit > 0 ? configuredLimit : defaultResultThresholdChars();
1590
+ if (charsOf(record.envelope) > displayLimit) {
1591
1591
  throw new CliError(
1592
1592
  `\u7ED3\u679C\u592A\u5927\uFF0C\u4E0D\u80FD\u5B89\u5168\u5730\u4E00\u6B21\u663E\u793A\u3002\u8BF7\u7528 refs get ${id} <json-path> \u8BFB\u53D6\u9700\u8981\u7684\u5B57\u6BB5\u3002`,
1593
1593
  2 /* UsageError */
@@ -1623,19 +1623,19 @@ var refsCommand = {
1623
1623
  }
1624
1624
  const record = readRef(ctx, id);
1625
1625
  const picked = pickValue(record.envelope, jsonPath);
1626
- const configuredLimit = resultThresholdBytes(ctx);
1627
- const displayLimit = configuredLimit > 0 ? configuredLimit : DEFAULT_RESULT_THRESHOLD_BYTES;
1626
+ const configuredLimit = resultThresholdChars(ctx);
1627
+ const displayLimit = configuredLimit > 0 ? configuredLimit : defaultResultThresholdChars();
1628
1628
  if (typeof picked === "string") {
1629
1629
  if (hasArrayWindow) {
1630
1630
  throw new CliError("\u5B57\u7B26\u4E32\u8BF7\u4F7F\u7528 --char-offset / --char-limit \u5206\u6BB5\u8BFB\u53D6", 2 /* UsageError */);
1631
1631
  }
1632
- const bytes2 = bytesOf(picked);
1633
- if (!hasTextWindow && bytes2 <= displayLimit) {
1632
+ const chars2 = charsOf(picked);
1633
+ if (!hasTextWindow && chars2 <= displayLimit) {
1634
1634
  ctx.output.write(picked, { json: true, persist: false });
1635
1635
  return;
1636
1636
  }
1637
1637
  const totalChars = Array.from(picked).length;
1638
- const perChar = totalChars > 0 ? Math.max(1, Math.ceil(bytes2 / totalChars)) : 1;
1638
+ const perChar = totalChars > 0 ? Math.max(1, Math.ceil(chars2 / totalChars)) : 1;
1639
1639
  const autoLimit2 = Math.max(1, Math.floor((displayLimit - 2048) / perChar));
1640
1640
  const pageOf2 = (size3) => {
1641
1641
  const window = readTextWindow(picked, charOffset, size3);
@@ -1656,9 +1656,9 @@ var refsCommand = {
1656
1656
  let size2 = requestedCharLimit ?? autoLimit2;
1657
1657
  let page2 = pageOf2(size2);
1658
1658
  for (let round = 0; round < 8; round += 1) {
1659
- const pageBytes = bytesOf(page2);
1660
- if (pageBytes <= displayLimit || size2 <= 1) break;
1661
- size2 = Math.max(1, Math.floor(size2 * displayLimit / pageBytes) - 1);
1659
+ const pageChars = charsOf(page2);
1660
+ if (pageChars <= displayLimit || size2 <= 1) break;
1661
+ size2 = Math.max(1, Math.floor(size2 * displayLimit / pageChars) - 1);
1662
1662
  page2 = pageOf2(size2);
1663
1663
  }
1664
1664
  ctx.output.write(page2, { json: true, persist: false });
@@ -1671,10 +1671,10 @@ var refsCommand = {
1671
1671
  if (hasArrayWindow) {
1672
1672
  throw new CliError("--offset / --limit \u53EA\u80FD\u7528\u4E8E\u6570\u7EC4\u5B57\u6BB5", 2 /* UsageError */);
1673
1673
  }
1674
- const bytes2 = bytesOf(picked);
1675
- if (bytes2 > displayLimit) {
1674
+ const chars2 = charsOf(picked);
1675
+ if (chars2 > displayLimit) {
1676
1676
  throw new CliError(
1677
- `${jsonPath} \u662F\u5355\u4E2A\u975E\u6587\u672C\u503C\uFF0C\u7EA6 ${bytes2} \u5B57\u8282\uFF0C\u8D85\u8FC7\u5355\u6B21\u8F93\u51FA\u9884\u7B97 ${displayLimit} \u5B57\u8282\u3002\u8BF7\u6539\u7528\u66F4\u7EC6\u7684 JSON \u8DEF\u5F84\u53D6\u503C\uFF0C\u6216\u8D70\u4E1A\u52A1\u547D\u4EE4\u7684\u5BFC\u51FA\u80FD\u529B\u3002`,
1677
+ `${jsonPath} \u662F\u5355\u4E2A\u975E\u6587\u672C\u503C\uFF0C\u7EA6 ${chars2} \u5B57\u7B26\uFF0C\u8D85\u8FC7\u5355\u6B21\u8F93\u51FA\u9884\u7B97 ${displayLimit} \u5B57\u7B26\u3002\u8BF7\u6539\u7528\u66F4\u7EC6\u7684 JSON \u8DEF\u5F84\u53D6\u503C\uFF0C\u6216\u8D70\u4E1A\u52A1\u547D\u4EE4\u7684\u5BFC\u51FA\u80FD\u529B\u3002`,
1678
1678
  2 /* UsageError */
1679
1679
  );
1680
1680
  }
@@ -1682,8 +1682,8 @@ var refsCommand = {
1682
1682
  return;
1683
1683
  }
1684
1684
  const total = picked.length;
1685
- const bytes = bytesOf(picked);
1686
- const perItem = total > 0 ? Math.max(1, Math.ceil(bytes / total)) : 1;
1685
+ const chars = charsOf(picked);
1686
+ const perItem = total > 0 ? Math.max(1, Math.ceil(chars / total)) : 1;
1687
1687
  const autoLimit = Math.max(1, Math.floor((displayLimit - 2048) / perItem));
1688
1688
  const pageOf = (size2) => {
1689
1689
  const window = readWindow(picked, offset, size2);
@@ -1700,12 +1700,12 @@ var refsCommand = {
1700
1700
  ...nextHint === void 0 ? {} : { largeOutputNotice: nextHint }
1701
1701
  };
1702
1702
  };
1703
- let size = requestedLimit ?? (bytes > displayLimit ? autoLimit : Math.max(total - offset, 1));
1703
+ let size = requestedLimit ?? (chars > displayLimit ? autoLimit : Math.max(total - offset, 1));
1704
1704
  let page = pageOf(size);
1705
1705
  for (let round = 0; round < 4; round += 1) {
1706
- const pageBytes = bytesOf(page);
1707
- if (pageBytes <= displayLimit || size <= 1) break;
1708
- size = Math.max(1, Math.floor(size * displayLimit / pageBytes) - 1);
1706
+ const pageChars = charsOf(page);
1707
+ if (pageChars <= displayLimit || size <= 1) break;
1708
+ size = Math.max(1, Math.floor(size * displayLimit / pageChars) - 1);
1709
1709
  page = pageOf(size);
1710
1710
  }
1711
1711
  ctx.output.write(page, { json: true, persist: false });