weaver-work-cli 0.1.75 → 0.1.76

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 (150) hide show
  1. package/dist/chunks/{archive-OZJ6PYUR.js → archive-ENBSUMHV.js} +1 -1
  2. package/dist/chunks/{archive-oa-BHL5RK2F.js → archive-oa-7BFPQ6M5.js} +1 -1
  3. package/dist/chunks/{asset-HKRFRQR2.js → asset-V5SUD3PW.js} +1 -1
  4. package/dist/chunks/{asset-idle-GGIR4KE7.js → asset-idle-3CEL7WFX.js} +1 -1
  5. package/dist/chunks/{attachment-content-4OV65NK5.js → attachment-content-24RL44SE.js} +3 -3
  6. package/dist/chunks/{blog-HYDP4DV3.js → blog-FLI4SS3P.js} +1 -1
  7. package/dist/chunks/{caizhilian-JS4RQZ6Z.js → caizhilian-7WCTKCCP.js} +3 -3
  8. package/dist/chunks/{calendar-SWRY4DIT.js → calendar-G726HUUH.js} +1 -1
  9. package/dist/chunks/{chunk-5ZJGPEIB.js → chunk-2KW7AI6P.js} +1 -1
  10. package/dist/chunks/{chunk-JOY3HZXL.js → chunk-2UV4IZIT.js} +21 -15
  11. package/dist/chunks/{chunk-VOMDD2C5.js → chunk-5E2FDXBU.js} +1 -1
  12. package/dist/chunks/{chunk-NWYHCZTY.js → chunk-AZC53XSQ.js} +1 -1
  13. package/dist/chunks/{chunk-U6Y32KEV.js → chunk-BWFCTE43.js} +1 -1
  14. package/dist/chunks/{chunk-MXCRKXOP.js → chunk-FPWCCRKT.js} +1 -1
  15. package/dist/chunks/{chunk-2AUFKU2D.js → chunk-H6N6U2D6.js} +10 -10
  16. package/dist/chunks/{chunk-I6NOHKEK.js → chunk-KJA7CRES.js} +1 -1
  17. package/dist/chunks/{chunk-PG5YSNYY.js → chunk-L5SCNJKX.js} +2 -2
  18. package/dist/chunks/{chunk-4FCBEWNB.js → chunk-MS7MKBGJ.js} +49 -49
  19. package/dist/chunks/{chunk-QJWVYOOV.js → chunk-NZQRW4KL.js} +2 -2
  20. package/dist/chunks/{chunk-BNKUHN4N.js → chunk-OVTCWLNQ.js} +2 -2
  21. package/dist/chunks/{chunk-5D2V7ZAN.js → chunk-PMRNIGKZ.js} +1 -1
  22. package/dist/chunks/{chunk-BSR5TM7U.js → chunk-Q7RXCK2Y.js} +4 -4
  23. package/dist/chunks/{chunk-ZWIMLT6P.js → chunk-R4PN3OFK.js} +6 -6
  24. package/dist/chunks/{chunk-OQCK5SAU.js → chunk-RVEKGVZU.js} +1 -1
  25. package/dist/chunks/{chunk-ZUB4M4N3.js → chunk-SQFKBWTR.js} +32 -32
  26. package/dist/chunks/{chunk-KWJEICD4.js → chunk-T7HVQ2WP.js} +2 -2
  27. package/dist/chunks/{chunk-TA2RBUTH.js → chunk-TBCKK6LH.js} +1 -1
  28. package/dist/chunks/{chunk-J7FAAHWH.js → chunk-UDBQJLQF.js} +1 -1
  29. package/dist/chunks/{chunk-ERZY6GYL.js → chunk-WHI6YAUE.js} +1 -1
  30. package/dist/chunks/{chunk-KEA4XQPO.js → chunk-WJQJ7YEX.js} +4 -4
  31. package/dist/chunks/{chunk-LJI4N6FV.js → chunk-XNN5PZTI.js} +1 -1
  32. package/dist/chunks/{cli-FULPXIKJ.js → cli-DFLV57LO.js} +33 -33
  33. package/dist/chunks/{commands-BNWFNTD3.js → commands-J52MJ6NF.js} +3 -3
  34. package/dist/chunks/{conflict-5BKCDV2F.js → conflict-72Q6DM4I.js} +2 -2
  35. package/dist/chunks/{contract-WI23OXVC.js → contract-IRNRQ5FY.js} +1 -1
  36. package/dist/chunks/{cowork-DZBBVNMQ.js → cowork-GZDODGKF.js} +1 -1
  37. package/dist/chunks/{create-flow-7ZRBRKX7.js → create-flow-UGTDI7SP.js} +6 -6
  38. package/dist/chunks/{data-PAZVE6QE.js → data-HTQZRPPI.js} +1 -1
  39. package/dist/chunks/{ebuilder-form-5SQXIGXN.js → ebuilder-form-GHNIZ7ET.js} +2 -2
  40. package/dist/chunks/{ehr-CX5F4ZAU.js → ehr-PHIBBUIG.js} +1 -1
  41. package/dist/chunks/{entry-mode-I2BYNONZ.js → entry-mode-5WOXFE67.js} +3 -3
  42. package/dist/chunks/{env-ZAQZ7EHN.js → env-H4ALHESA.js} +2 -2
  43. package/dist/chunks/{esb-DQTXDIBF.js → esb-ATRKVHCD.js} +3 -3
  44. package/dist/chunks/{factory-XRI6KZ7H.js → factory-COX6AVK7.js} +1 -1
  45. package/dist/chunks/{fna-FK6HQVJL.js → fna-IKYI3SST.js} +1 -1
  46. package/dist/chunks/{group-chat-MLWNYM2P.js → group-chat-ZIWQQO4G.js} +3 -3
  47. package/dist/chunks/{host-MEC4VQZA.js → host-6UOXYOOY.js} +2 -2
  48. package/dist/chunks/{host-KUMU3DDK.js → host-EJSJSLVK.js} +2 -2
  49. package/dist/chunks/{host-3EPREGXS.js → host-EYNLB6S4.js} +2 -2
  50. package/dist/chunks/{host-T6NNQGVZ.js → host-OT4KNR3G.js} +2 -2
  51. package/dist/chunks/{host-VI7Q45PM.js → host-UY4LQPN4.js} +2 -2
  52. package/dist/chunks/{host-J74JGYAW.js → host-XXGDQM7D.js} +2 -2
  53. package/dist/chunks/{hrm-KKVAW4P5.js → hrm-5JQ7QZ6A.js} +2 -2
  54. package/dist/chunks/{im-47CIWQNL.js → im-2YJW3EI5.js} +2 -2
  55. package/dist/chunks/{invoice-CDYRBNIG.js → invoice-37HR6L3W.js} +937 -552
  56. package/dist/chunks/{jiuchuanhui-M7QTRHZK.js → jiuchuanhui-KBWUZ7WT.js} +1 -1
  57. package/dist/chunks/{lazy-dispatch-FKQJZFI5.js → lazy-dispatch-MZ3EZYDL.js} +4 -4
  58. package/dist/chunks/{mail-NRBS5N6Y.js → mail-YBKUM6HM.js} +1 -1
  59. package/dist/chunks/{meeting-WC5LD3IO.js → meeting-XE6CTXYA.js} +12 -12
  60. package/dist/chunks/{minute-doc-OQUMDTKG.js → minute-doc-4BA2R5EA.js} +4 -4
  61. package/dist/chunks/{okr-EHKSKMPL.js → okr-HW7IULIR.js} +1 -1
  62. package/dist/chunks/{operations-V5VM5MS2.js → operations-4P2UYVLH.js} +3 -3
  63. package/dist/chunks/{performance-ZJADXJPN.js → performance-PM2G6L3E.js} +1 -1
  64. package/dist/chunks/{plan-OTDNBDJ7.js → plan-3YYGZ7ZM.js} +1 -1
  65. package/dist/chunks/{project-4XVBQ3HX.js → project-XREEXFU2.js} +1 -1
  66. package/dist/chunks/{reception-3FAHOOH7.js → reception-7G3J2MA6.js} +1 -1
  67. package/dist/chunks/{recruit-stage-3WTVWW2K.js → recruit-stage-TSQWOGQD.js} +1 -1
  68. package/dist/chunks/{registry-TJGCVRCW.js → registry-3VTB3KLV.js} +3 -3
  69. package/dist/chunks/{registry-NBTBXR4L.js → registry-7UDUWYB5.js} +11 -11
  70. package/dist/chunks/{room-recommend-KL62XB2Y.js → room-recommend-FO3HLPNB.js} +4 -4
  71. package/dist/chunks/{schedule-XOISYUPB.js → schedule-DHNNOHVS.js} +4 -4
  72. package/dist/chunks/{smart-extract-UYGNV3BM.js → smart-extract-T5Z4AULN.js} +1 -1
  73. package/dist/chunks/{workflow-V54LJPXL.js → workflow-MAGCHWYZ.js} +2 -2
  74. package/dist/index.js +1 -1
  75. package/dist/shortcuts/invoice/business-response.js +13 -0
  76. package/dist/shortcuts/invoice/calendar.js +24 -0
  77. package/dist/shortcuts/invoice/host.js +26 -15
  78. package/dist/shortcuts/invoice/index.js +2 -2
  79. package/dist/shortcuts/invoice/invoice-record.js +7 -2
  80. package/dist/shortcuts/invoice/manifest.js +179 -155
  81. package/dist/shortcuts/invoice/operations/get.js +9 -3
  82. package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
  83. package/dist/shortcuts/invoice/operations/registry.js +4 -5
  84. package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
  85. package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
  86. package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
  87. package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
  88. package/dist/shortcuts/invoice/operations/reim.js +2 -126
  89. package/dist/shortcuts/invoice/operations/shared.js +15 -17
  90. package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
  91. package/dist/shortcuts/invoice/projection.js +14 -0
  92. package/dist/shortcuts/invoice/read-enrichment.js +123 -0
  93. package/docs/agent-invoice.md +28 -2
  94. package/docs/invoice.md +60 -9
  95. package/package.json +1 -1
  96. package/skill-template/domains/yepiaotong.md +36 -7
  97. package/skills/weaver-e10-recruit-stage/SKILL.md +104 -95
  98. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +43 -33
  99. package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +36 -4
  100. package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +168 -27
  101. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +10 -13
  102. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +1 -1
  103. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +2 -2
  104. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +13 -14
  105. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +2 -2
  106. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +20 -25
  107. package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +1 -1
  108. package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +19 -7
  109. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -30
  110. package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +1 -1
  111. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -1
  112. package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +1 -1
  113. package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
  114. package/skills/weaver-e10-recruit-stage/templates/match-report.html +15 -9
  115. package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
  116. package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
  117. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
  118. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
  119. package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
  120. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
  121. package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
  122. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
  123. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
  124. package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
  125. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
  126. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
  127. package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
  128. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
  129. package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
  130. package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
  131. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
  132. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
  133. package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
  134. package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
  135. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
  136. package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
  137. package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
  138. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
  139. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
  140. package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
  141. package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
  142. package/skills/weaver-e10-yepiaotong.zip +0 -0
  143. package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
  144. package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
  145. package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
  146. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
  147. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
  148. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
  149. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
  150. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
@@ -19,7 +19,7 @@ import {
19
19
  createE10RequestRuntime,
20
20
  isE10SessionExpiredResponse,
21
21
  requireE10Session
22
- } from "./chunk-MXCRKXOP.js";
22
+ } from "./chunk-FPWCCRKT.js";
23
23
  import {
24
24
  E10_SESSION_EXPIRED_MESSAGE
25
25
  } from "./chunk-IZCQU5D5.js";
@@ -16,7 +16,7 @@ import {
16
16
  createE10RequestRuntime,
17
17
  isE10SessionExpiredResponse,
18
18
  requireE10Session
19
- } from "./chunk-MXCRKXOP.js";
19
+ } from "./chunk-FPWCCRKT.js";
20
20
  import {
21
21
  E10_SESSION_EXPIRED_MESSAGE
22
22
  } from "./chunk-IZCQU5D5.js";
@@ -15,7 +15,7 @@ import {
15
15
  createE10RequestRuntime,
16
16
  isE10SessionExpiredResponse,
17
17
  requireE10Session
18
- } from "./chunk-MXCRKXOP.js";
18
+ } from "./chunk-FPWCCRKT.js";
19
19
  import {
20
20
  E10_SESSION_EXPIRED_MESSAGE
21
21
  } from "./chunk-IZCQU5D5.js";
@@ -13,7 +13,7 @@ import {
13
13
  createE10RequestRuntime,
14
14
  isE10SessionExpiredResponse,
15
15
  requireE10Session
16
- } from "./chunk-MXCRKXOP.js";
16
+ } from "./chunk-FPWCCRKT.js";
17
17
  import {
18
18
  E10_SESSION_EXPIRED_MESSAGE
19
19
  } from "./chunk-IZCQU5D5.js";
@@ -8,10 +8,10 @@ import {
8
8
  looksLikeFileId,
9
9
  meetingAttachmentContentOperations,
10
10
  parseFileIdList
11
- } from "./chunk-KWJEICD4.js";
11
+ } from "./chunk-T7HVQ2WP.js";
12
12
  import "./chunk-WMRNO6IU.js";
13
- import "./chunk-I6NOHKEK.js";
14
- import "./chunk-ERZY6GYL.js";
13
+ import "./chunk-KJA7CRES.js";
14
+ import "./chunk-WHI6YAUE.js";
15
15
  import "./chunk-7BDPM5ST.js";
16
16
  import "./chunk-UG5G54VL.js";
17
17
  import "./chunk-BUSC6UAE.js";
@@ -15,7 +15,7 @@ import {
15
15
  createE10RequestRuntime,
16
16
  isE10SessionExpiredResponse,
17
17
  requireE10Session
18
- } from "./chunk-MXCRKXOP.js";
18
+ } from "./chunk-FPWCCRKT.js";
19
19
  import {
20
20
  E10_SESSION_EXPIRED_MESSAGE
21
21
  } from "./chunk-IZCQU5D5.js";
@@ -4,10 +4,10 @@ import {
4
4
  caizhilianManifest,
5
5
  caizhilianOperationDefinitions,
6
6
  executeCaizhilianOperation
7
- } from "./chunk-LJI4N6FV.js";
7
+ } from "./chunk-XNN5PZTI.js";
8
8
  import {
9
9
  createCaizhilianHost
10
- } from "./chunk-5D2V7ZAN.js";
10
+ } from "./chunk-PMRNIGKZ.js";
11
11
  import {
12
12
  createCaizhilianContinuationSigner
13
13
  } from "./chunk-VRPH24IC.js";
@@ -23,7 +23,7 @@ import "./chunk-7BDPM5ST.js";
23
23
  import {
24
24
  reportPlatformError
25
25
  } from "./chunk-MD5CW4B6.js";
26
- import "./chunk-MXCRKXOP.js";
26
+ import "./chunk-FPWCCRKT.js";
27
27
  import "./chunk-IZCQU5D5.js";
28
28
  import "./chunk-QVKRNL7L.js";
29
29
  import "./chunk-Y3C6MDL7.js";
@@ -17,7 +17,7 @@ import {
17
17
  createE10RequestRuntime,
18
18
  isE10SessionExpiredResponse,
19
19
  requireE10Session
20
- } from "./chunk-MXCRKXOP.js";
20
+ } from "./chunk-FPWCCRKT.js";
21
21
  import {
22
22
  E10_SESSION_EXPIRED_MESSAGE
23
23
  } from "./chunk-IZCQU5D5.js";
@@ -11,7 +11,7 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-MXCRKXOP.js";
14
+ } from "./chunk-FPWCCRKT.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
17
  } from "./chunk-IZCQU5D5.js";
@@ -4,7 +4,7 @@ import {
4
4
  createE10RequestRuntime,
5
5
  isE10SessionExpiredResponse,
6
6
  requireE10Session
7
- } from "./chunk-MXCRKXOP.js";
7
+ } from "./chunk-FPWCCRKT.js";
8
8
  import {
9
9
  E10_REAUTH_GUIDANCE,
10
10
  E10_SESSION_EXPIRED_MESSAGE
@@ -163,6 +163,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
163
163
  let e10Session = null;
164
164
  let sessionContext = null;
165
165
  let invoiceToken = null;
166
+ let invoiceTokenPromise = null;
166
167
  let tokenStore = null;
167
168
  const requireSession = dependencies.requireSession || requireE10Session;
168
169
  const tokenStoreFactory = dependencies.tokenStoreFactory || createInvoiceTokenStore;
@@ -182,6 +183,17 @@ function createInvoiceHost(ctx, dependencies = {}) {
182
183
  return sessionContext;
183
184
  }
184
185
  async function ensureInvoiceToken(timeoutMs = 3e4) {
186
+ if (invoiceToken) return invoiceToken;
187
+ if (invoiceTokenPromise) return invoiceTokenPromise;
188
+ const pending = loadInvoiceToken(timeoutMs);
189
+ invoiceTokenPromise = pending;
190
+ try {
191
+ return await pending;
192
+ } finally {
193
+ if (invoiceTokenPromise === pending) invoiceTokenPromise = null;
194
+ }
195
+ }
196
+ async function loadInvoiceToken(timeoutMs) {
185
197
  await ensureSession();
186
198
  const context = await getSession();
187
199
  tokenStore ||= tokenStoreFactory(context);
@@ -203,10 +215,12 @@ function createInvoiceHost(ctx, dependencies = {}) {
203
215
  invoiceToken = token;
204
216
  return token;
205
217
  }
206
- async function ensureContext(needsInvoiceToken, timeoutMs, path) {
207
- await ensureSession();
218
+ async function ensureContext(needsInvoiceToken, timeoutMs, path, operation) {
219
+ const session = await ensureSession();
208
220
  const tokenEndpoint = path === "/api/inc/proxy/getToken" || path === "/api/app/inc/proxy/getToken";
209
221
  if (tokenEndpoint) return void 0;
222
+ const employeeCardPath = `/api/bs/hrm/card/get/${encodeURIComponent(session.userId)}`;
223
+ if (!needsInvoiceToken && path === employeeCardPath) return void 0;
210
224
  if (!needsInvoiceToken) {
211
225
  }
212
226
  return ensureInvoiceToken(timeoutMs);
@@ -255,7 +269,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
255
269
  timeoutMs = 3e4
256
270
  } = request;
257
271
  assertPath(path);
258
- const token = await ensureContext(needsInvoiceToken, timeoutMs, path);
272
+ const token = await ensureContext(needsInvoiceToken, timeoutMs, path, operation);
259
273
  const response = await (await runtime()).requestJson({
260
274
  module: "invoice",
261
275
  operation,
@@ -287,15 +301,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
287
301
  exitCode: 1
288
302
  });
289
303
  }
290
- let value = response.value;
291
- if (request.rewriteJsonText && response.text) {
292
- try {
293
- value = JSON.parse(request.rewriteJsonText(response.text));
294
- } catch {
295
- value = response.value;
296
- }
297
- }
298
- return handleBusinessResponse(value, () => invoiceRequest(request, false), canRetryExpiredToken && Boolean(token));
304
+ return handleBusinessResponse(response.value, () => invoiceRequest(request, false), canRetryExpiredToken && Boolean(token));
299
305
  }
300
306
  async function invoiceMultipartRequest(request, canRetryExpiredToken = true) {
301
307
  const {
@@ -313,7 +319,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
313
319
  throw invoiceValidationError("input_invalid", "multipart \u8BF7\u6C42\u9700\u8981\u6587\u4EF6\u3001URL \u6216\u8868\u5355\u5B57\u6BB5");
314
320
  }
315
321
  assertPath(path);
316
- const token = await ensureContext(needsInvoiceToken, timeoutMs, path);
322
+ const token = await ensureContext(needsInvoiceToken, timeoutMs, path, operation);
317
323
  const form = new FormData();
318
324
  for (const [key, value] of Object.entries(fields)) {
319
325
  if (value === void 0 || value === null) continue;
@@ -360,7 +366,7 @@ function createInvoiceHost(ctx, dependencies = {}) {
360
366
  timeoutMs = 3e4
361
367
  } = request;
362
368
  assertPath(path);
363
- const token = await ensureContext(needsInvoiceToken, timeoutMs, path);
369
+ const token = await ensureContext(needsInvoiceToken, timeoutMs, path, operation);
364
370
  const form = new URLSearchParams();
365
371
  for (const [key, value] of Object.entries(fields)) {
366
372
  if (value === void 0 || value === null) continue;
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  isEsbFlowUnavailable
5
- } from "./chunk-OQCK5SAU.js";
5
+ } from "./chunk-RVEKGVZU.js";
6
6
  import {
7
7
  esbValidationError
8
8
  } from "./chunk-TXUG266F.js";
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-I6NOHKEK.js";
5
+ } from "./chunk-KJA7CRES.js";
6
6
 
7
7
  // src/shortcuts/meeting/operations/eb/cache.ts
8
8
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -11,7 +11,7 @@ import {
11
11
  createE10RequestRuntime,
12
12
  isE10SessionExpiredResponse,
13
13
  requireE10Session
14
- } from "./chunk-MXCRKXOP.js";
14
+ } from "./chunk-FPWCCRKT.js";
15
15
  import {
16
16
  E10_SESSION_EXPIRED_MESSAGE
17
17
  } from "./chunk-IZCQU5D5.js";
@@ -562,7 +562,7 @@ ${baseUrl}`;
562
562
  }
563
563
  var workBuddyLoginInFlight = /* @__PURE__ */ new Map();
564
564
  async function recoverWorkBuddyAuthSession(ctx, login = async (context, options) => {
565
- const { runBrowserLogin } = await import("./commands-BNWFNTD3.js");
565
+ const { runBrowserLogin } = await import("./commands-J52MJ6NF.js");
566
566
  const previousMachineMode = context.logger.machineMode;
567
567
  context.logger.machineMode = true;
568
568
  try {
@@ -2,12 +2,12 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  meetingStateDir
5
- } from "./chunk-I6NOHKEK.js";
5
+ } from "./chunk-KJA7CRES.js";
6
6
  import {
7
7
  meetingSuccess,
8
8
  meetingValidationError,
9
9
  schemaOf
10
- } from "./chunk-ERZY6GYL.js";
10
+ } from "./chunk-WHI6YAUE.js";
11
11
 
12
12
  // src/shortcuts/meeting/operations/eb/group-chat.ts
13
13
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
16
16
  var GROUP_FIELD = "imchat_groupid";
17
17
  var PENDING_DIR = "pending-forms";
18
18
  async function buildEsbEnv(env) {
19
- const { createEsbHost } = await import("./host-KUMU3DDK.js");
19
+ const { createEsbHost } = await import("./host-EJSJSLVK.js");
20
20
  const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
21
21
  return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
22
22
  }
23
23
  async function buildImEnv(env) {
24
- const { createImHost } = await import("./host-J74JGYAW.js");
24
+ const { createImHost } = await import("./host-XXGDQM7D.js");
25
25
  const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
26
26
  return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
27
27
  }
28
28
  async function buildWorkflowEnv(env) {
29
- const { createWorkflowHost } = await import("./host-MEC4VQZA.js");
29
+ const { createWorkflowHost } = await import("./host-6UOXYOOY.js");
30
30
  const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
31
31
  return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
32
32
  }
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
159
159
  if (addressText === "[object Object]") addressText = "";
160
160
  if (addressText) {
161
161
  try {
162
- const { resolveAddressRoom } = await import("./create-flow-7ZRBRKX7.js");
162
+ const { resolveAddressRoom } = await import("./create-flow-UGTDI7SP.js");
163
163
  const room = await resolveAddressRoom(env, addressText);
164
164
  if (room?.name) addressText = room.name;
165
165
  } catch {
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
168
168
  if (addressText) mainTable.address = addressText;
169
169
  }
170
170
  try {
171
- const { getEsbOperation } = await import("./registry-TJGCVRCW.js");
171
+ const { getEsbOperation } = await import("./registry-3VTB3KLV.js");
172
172
  const esbEnv = await buildEsbEnv(env);
173
173
  const prepare = getEsbOperation("esb.trigger.prepare");
174
174
  const apply = getEsbOperation("esb.trigger.apply");
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
201
201
  const group = String(groupId).trim();
202
202
  if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
203
203
  try {
204
- const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-XRI6KZ7H.js");
204
+ const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-COX6AVK7.js");
205
205
  const session = await env.host.getSession();
206
206
  await env.host.request({
207
207
  method: "POST",
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
219
219
  return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
220
220
  }
221
221
  try {
222
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
222
+ const { getMeetingOperation } = await import("./registry-7UDUWYB5.js");
223
223
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
224
224
  const read = await detail.handler({ id }, env);
225
225
  const main = read?.data?.data ?? read?.data?.main ?? {};
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
267
267
  const target = String(requestId).trim();
268
268
  if (target === "") return null;
269
269
  try {
270
- const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
270
+ const { getMeetingOperation } = await import("./registry-7UDUWYB5.js");
271
271
  const list = getMeetingOperation("meeting.eb.meeting.list");
272
272
  const detail = getMeetingOperation("meeting.eb.meeting.detail");
273
273
  const page = await list.handler({ pageSize: 30 }, env);
@@ -5,7 +5,7 @@ import {
5
5
  ebBusinessSuccess,
6
6
  meetingSuccess,
7
7
  meetingValidationError
8
- } from "./chunk-ERZY6GYL.js";
8
+ } from "./chunk-WHI6YAUE.js";
9
9
 
10
10
  // src/shortcuts/meeting/operations/env.ts
11
11
  import { existsSync } from "node:fs";
@@ -21,10 +21,10 @@ import {
21
21
  } from "./chunk-SU6IJD6D.js";
22
22
  import {
23
23
  registerE10AuthCommands
24
- } from "./chunk-BNKUHN4N.js";
24
+ } from "./chunk-OVTCWLNQ.js";
25
25
  import {
26
26
  requireE10Session
27
- } from "./chunk-MXCRKXOP.js";
27
+ } from "./chunk-FPWCCRKT.js";
28
28
  import {
29
29
  E10AuthSession,
30
30
  findAuthFile,