@wirecat/drive-cli 0.47.0 → 0.50.0

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 (160) hide show
  1. package/dist/age.d.ts +36 -0
  2. package/dist/age.d.ts.map +1 -1
  3. package/dist/age.js +17 -0
  4. package/dist/age.js.map +1 -1
  5. package/dist/bin/drive.js +2 -2
  6. package/dist/bundle/{all-profiles-O7CNQ7FO.js → all-profiles-WQTVOCIS.js} +8 -8
  7. package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-YCA2AWIJ.js} +5 -5
  8. package/dist/bundle/{app-server-BVBZT3UY.js → app-server-ZQOYUQJH.js} +52 -52
  9. package/dist/bundle/{bun-O6RL6LRQ.js → bun-5NFIDHGM.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-OAQE4M2E.js} +4 -4
  11. package/dist/bundle/{chunk-NLEB26GA.js → chunk-24TOKSZE.js} +2 -2
  12. package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-2M5XEGVE.js} +3413 -3293
  13. package/dist/bundle/{chunk-4NGLRHWO.js → chunk-3CQNJKJT.js} +1 -1
  14. package/dist/bundle/{chunk-CYCQBQBH.js → chunk-3HNUH632.js} +6 -6
  15. package/dist/bundle/{chunk-5TC3NCAF.js → chunk-3XX52F42.js} +2 -2
  16. package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-4J7UGHPK.js} +5 -5
  17. package/dist/bundle/{chunk-GHOWRW7E.js → chunk-4OLWMHS6.js} +10 -3
  18. package/dist/bundle/{chunk-NDNTLUPS.js → chunk-4SSUKRO4.js} +2 -2
  19. package/dist/bundle/{chunk-CVIKKIGE.js → chunk-4VLUX3V5.js} +1 -1
  20. package/dist/bundle/{chunk-AIXLOMH4.js → chunk-53UWCVSU.js} +1 -1
  21. package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-5OMLYNYB.js} +8 -8
  22. package/dist/bundle/{chunk-VCYFEWPD.js → chunk-5WN7JHQE.js} +26 -26
  23. package/dist/bundle/{chunk-GQW4GRYR.js → chunk-5Z63NTC7.js} +6 -6
  24. package/dist/bundle/{chunk-D67JGWSC.js → chunk-5ZJHQ4TN.js} +7 -4
  25. package/dist/bundle/{chunk-XF5MFUEB.js → chunk-652YTDT5.js} +15 -15
  26. package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-6DDXB5WB.js} +2 -2
  27. package/dist/bundle/{chunk-DXKVEOSS.js → chunk-6E4PFCQ4.js} +1 -1
  28. package/dist/bundle/{chunk-G3FAOS52.js → chunk-7SYSC7KX.js} +2 -2
  29. package/dist/bundle/{chunk-BQUPOB5H.js → chunk-AO3NCZNT.js} +8 -8
  30. package/dist/bundle/{chunk-U2OD7MKK.js → chunk-BUALWXBT.js} +1 -1
  31. package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-C4PNAHI4.js} +11 -11
  32. package/dist/bundle/{recognize-IFXOJHEA.js → chunk-CCEVICWU.js} +7 -7
  33. package/dist/bundle/{chunk-IGMRWQP3.js → chunk-CEUEXMIR.js} +86 -35
  34. package/dist/bundle/{chunk-5MGIL5LW.js → chunk-CTIQ77AB.js} +20 -17
  35. package/dist/bundle/{chunk-VHQNVG3J.js → chunk-DTHWL5YU.js} +5 -5
  36. package/dist/bundle/{chunk-67BQ3XMH.js → chunk-E656DAZT.js} +1 -1
  37. package/dist/bundle/{chunk-WUFCYDKB.js → chunk-EXYEDKTX.js} +2 -2
  38. package/dist/bundle/{chunk-BJ3JRO34.js → chunk-EY4CUQW2.js} +7 -7
  39. package/dist/bundle/{chunk-QW36EOAM.js → chunk-FABKIQ24.js} +2 -2
  40. package/dist/bundle/{chunk-SMHQA5J6.js → chunk-FSAM4Y2S.js} +15 -8
  41. package/dist/bundle/{chunk-R2QRP7EJ.js → chunk-G75FZQAZ.js} +13 -9
  42. package/dist/bundle/{chunk-VHT2WI4I.js → chunk-HGWMX7BM.js} +101 -73
  43. package/dist/bundle/{chunk-44FV5JAS.js → chunk-HURI56SB.js} +21 -21
  44. package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-IA6LNKCF.js} +5 -5
  45. package/dist/bundle/{chunk-LHIL46I3.js → chunk-IFM2APQB.js} +2 -2
  46. package/dist/bundle/{chunk-BEXHAGXH.js → chunk-IGG4RBIZ.js} +170 -146
  47. package/dist/bundle/{chunk-PDBBBUY7.js → chunk-INVF3GXW.js} +10 -10
  48. package/dist/bundle/{chunk-KADPV4YA.js → chunk-IUZ4PT2V.js} +2 -2
  49. package/dist/bundle/{chunk-K74PQVQZ.js → chunk-JA2YY7D4.js} +7 -7
  50. package/dist/bundle/{chunk-K7FRUB33.js → chunk-JHBX53SK.js} +35 -35
  51. package/dist/bundle/{chunk-QTJUH3LS.js → chunk-JSMPSOEM.js} +3 -3
  52. package/dist/bundle/{chunk-PH74B2VZ.js → chunk-KEQ35HQQ.js} +3 -3
  53. package/dist/bundle/{chunk-NW7IMGRR.js → chunk-KYMGVMOS.js} +1 -1
  54. package/dist/bundle/{chunk-AOOD3RMK.js → chunk-KZEOWOZV.js} +7 -7
  55. package/dist/bundle/{chunk-VYBOYBLX.js → chunk-LNWRRK2H.js} +6 -6
  56. package/dist/bundle/{chunk-RCS2SCX5.js → chunk-M2D4FXKY.js} +5 -5
  57. package/dist/bundle/{chunk-KJMBV574.js → chunk-M6FQOGUW.js} +392 -319
  58. package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-MMOG7ZVF.js} +2 -2
  59. package/dist/bundle/{chunk-RJ633GFA.js → chunk-NHRJW3PH.js} +2 -2
  60. package/dist/bundle/{chunk-MFS52LTZ.js → chunk-OKSS7YUN.js} +1 -1
  61. package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-OL22OOIW.js} +4 -4
  62. package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-OQEBGY74.js} +74 -46
  63. package/dist/bundle/{chunk-MAXN7COO.js → chunk-P3T2SZW2.js} +1 -1
  64. package/dist/bundle/{chunk-LJARCTGL.js → chunk-P6VN5UB4.js} +4 -4
  65. package/dist/bundle/{chunk-A3FU4RR6.js → chunk-PNUS224S.js} +4 -4
  66. package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-POD2GHQB.js} +58 -19
  67. package/dist/bundle/{chunk-FEULDMWM.js → chunk-Q27HCATD.js} +1980 -1557
  68. package/dist/bundle/{chunk-4DW6QGEV.js → chunk-Q3VG3UYV.js} +11 -11
  69. package/dist/bundle/{chunk-AUS6TKP5.js → chunk-QBECV7NO.js} +33 -32
  70. package/dist/bundle/{chunk-DORXXBFC.js → chunk-QNLD7Y6Z.js} +7 -7
  71. package/dist/bundle/{chunk-3HRDEJJW.js → chunk-QSDXVUJG.js} +4 -4
  72. package/dist/bundle/{chunk-GNFHZZ55.js → chunk-QY3LK3OT.js} +5 -5
  73. package/dist/bundle/{chunk-CFZWPIVC.js → chunk-R7XMCREL.js} +39 -21
  74. package/dist/bundle/{chunk-NP3XLLN3.js → chunk-RTIMGPLN.js} +3 -3
  75. package/dist/bundle/{chunk-SWMMR3FR.js → chunk-T7UZHKAS.js} +2 -2
  76. package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-TATRMMOG.js} +3 -3
  77. package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-UVPKSZSC.js} +4 -4
  78. package/dist/bundle/{chunk-CKR3DVUK.js → chunk-VAETCXRI.js} +54 -26
  79. package/dist/bundle/{chunk-6T7NSOYC.js → chunk-VAK2Q2XG.js} +14 -14
  80. package/dist/bundle/{chunk-DDYR6DYL.js → chunk-XEETGCOC.js} +1 -1
  81. package/dist/bundle/{chunk-XAZQTJXR.js → chunk-XGJUEH5C.js} +27 -27
  82. package/dist/bundle/{chunk-VAGF723Z.js → chunk-Y73IZWRI.js} +1 -1
  83. package/dist/bundle/{chunk-2DLAJGRN.js → chunk-YOABRW2M.js} +1 -1
  84. package/dist/bundle/{chunk-TRMIV3OA.js → chunk-YROVFHPJ.js} +2 -2
  85. package/dist/bundle/{chunk-NB2N6L3R.js → chunk-Z54E5LKF.js} +6 -6
  86. package/dist/bundle/{chunk-IAW5A7OR.js → chunk-ZJBRKR42.js} +32 -28
  87. package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-ZKGYW63J.js} +9 -9
  88. package/dist/bundle/{chunk-XEBFFKXO.js → chunk-ZP735UUT.js} +3 -3
  89. package/dist/bundle/{chunk-HEPIOCHN.js → chunk-ZXD2I5ZQ.js} +58 -51
  90. package/dist/bundle/command-contract-TAWVO2G3.js +38 -0
  91. package/dist/bundle/decode-YZRTP54O.js +159 -0
  92. package/dist/bundle/drive.js +7 -7
  93. package/dist/bundle/{echarts-LD3AI55P.js → echarts-C6HUK2FL.js} +2 -2
  94. package/dist/bundle/{embed-FJKIIM43.js → embed-QRQ7ITFC.js} +5 -5
  95. package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EZDB3JPA.js} +8 -8
  96. package/dist/bundle/{entry-ZYSNPDSD.js → entry-4WQQKSYG.js} +6 -6
  97. package/dist/bundle/failure-EEJGMWEP.js +37 -0
  98. package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ZAS4OV3T.js} +9 -9
  99. package/dist/bundle/first-screen-6ICWD2N3.js +36 -0
  100. package/dist/bundle/{google-ZYDFTHLN.js → google-KNILTIDW.js} +9 -9
  101. package/dist/bundle/google-api-CZACYX5T.js +82 -0
  102. package/dist/bundle/{identity-7JM62OER.js → identity-VBCGUXT5.js} +2 -2
  103. package/dist/bundle/{instructions-RZMSW3OC.js → instructions-II4M2WL3.js} +1 -1
  104. package/dist/bundle/{login-JU6NKW5P.js → login-4JACQVMD.js} +62 -62
  105. package/dist/bundle/mcp-2BR2EX7L.js +95 -0
  106. package/dist/bundle/{mcp-KWXNBIAI.js → mcp-6ZIAWU3N.js} +76 -76
  107. package/dist/bundle/{mcp-OQBZXELQ.js → mcp-ZYZ4DFW2.js} +2 -2
  108. package/dist/bundle/{node-ZRLYQL7J.js → node-LIN7L4VQ.js} +2 -2
  109. package/dist/bundle/node-sqlite-VAH4KZN3.js +62 -0
  110. package/dist/bundle/{oauth-NAIBKERJ.js → oauth-QUE3VCTU.js} +6 -6
  111. package/dist/bundle/{open-3P5EPXPV.js → open-DQ3EVYPB.js} +3 -3
  112. package/dist/bundle/{process-LL77573L.js → process-46XDWPVW.js} +1 -1
  113. package/dist/bundle/{program-VKHR42BF.js → program-X3CZ4XDN.js} +141 -99
  114. package/dist/bundle/{prompt-3TX2SWOY.js → prompt-SAZYCZV3.js} +4 -4
  115. package/dist/bundle/{reasons-GF2TYGX6.js → reasons-366PI7OV.js} +3 -3
  116. package/dist/bundle/recognize-SSBOHOTW.js +22 -0
  117. package/dist/bundle/{remote-663M42Y5.js → remote-EL3FWCQE.js} +6 -6
  118. package/dist/bundle/{rerank-OT2F2DBV.js → rerank-RPIQRJIW.js} +6 -6
  119. package/dist/bundle/{serve-PDNNI6O6.js → serve-AX44DIKK.js} +8 -8
  120. package/dist/bundle/server-DCJIGUW2.js +56 -0
  121. package/dist/bundle/server-WWQSQBFT.js +69 -0
  122. package/dist/bundle/{services-5MCTECBU.js → services-K4UOEMQD.js} +28 -28
  123. package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-N7N3EYGH.js} +4 -4
  124. package/dist/bundle/{state-SZX65E74.js → state-C3S5FD7V.js} +5 -5
  125. package/dist/bundle/{store-TCWNLA3V.js → store-4N3NBUGX.js} +14 -14
  126. package/dist/bundle/{store-UKPGGAPW.js → store-QV4ZNEQ3.js} +16 -16
  127. package/dist/bundle/store-maintenance-command-QL4AECBD.js +57 -0
  128. package/dist/bundle/tokens-Y7HCOXOA.js +103 -0
  129. package/dist/commands/documents.d.ts +5 -1
  130. package/dist/commands/documents.d.ts.map +1 -1
  131. package/dist/commands/documents.js +11 -5
  132. package/dist/commands/documents.js.map +1 -1
  133. package/dist/commands/remote.d.ts +8 -0
  134. package/dist/commands/remote.d.ts.map +1 -1
  135. package/dist/commands/remote.js +16 -0
  136. package/dist/commands/remote.js.map +1 -1
  137. package/dist/commands/session.d.ts.map +1 -1
  138. package/dist/commands/session.js +10 -2
  139. package/dist/commands/session.js.map +1 -1
  140. package/dist/program.d.ts.map +1 -1
  141. package/dist/program.js +4 -1
  142. package/dist/program.js.map +1 -1
  143. package/dist/tokens.d.ts.map +1 -1
  144. package/dist/tokens.js +2 -2
  145. package/dist/tokens.js.map +1 -1
  146. package/dist/version.d.ts +1 -1
  147. package/dist/version.js +1 -1
  148. package/package.json +3 -3
  149. package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
  150. package/dist/bundle/failure-KZDBSYBR.js +0 -37
  151. package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
  152. package/dist/bundle/google-api-2GT5PAW2.js +0 -82
  153. package/dist/bundle/mcp-JOQMFGBC.js +0 -95
  154. package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
  155. package/dist/bundle/server-BFOEPMR7.js +0 -56
  156. package/dist/bundle/server-K566PJ7H.js +0 -69
  157. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
  158. package/dist/bundle/tokens-DFCFRF7I.js +0 -103
  159. /package/dist/bundle/{chunk-O5EHUB2V.js → chunk-2WNDZFGG.js} +0 -0
  160. /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-VDZZ46RT.js} +0 -0
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  AUDIT_MIN_SCORE,
5
5
  throughWrapper
6
- } from "./chunk-DL7D6Y3B.js";
6
+ } from "./chunk-2M5XEGVE.js";
7
7
  import {
8
8
  environmentOf,
9
9
  itemOf,
@@ -11,20 +11,20 @@ import {
11
11
  nextStep,
12
12
  renderAnswer,
13
13
  snakeKeys
14
- } from "./chunk-AUS6TKP5.js";
14
+ } from "./chunk-QBECV7NO.js";
15
15
  import {
16
16
  Command,
17
17
  InvalidArgumentError,
18
18
  Option,
19
19
  annotate,
20
20
  sharedCommand
21
- } from "./chunk-LOTQ2HMT.js";
21
+ } from "./chunk-ZKGYW63J.js";
22
22
  import {
23
23
  readOnlyLockOf
24
- } from "./chunk-RJ633GFA.js";
24
+ } from "./chunk-NHRJW3PH.js";
25
25
  import {
26
26
  formatReference
27
- } from "./chunk-AOOD3RMK.js";
27
+ } from "./chunk-KZEOWOZV.js";
28
28
  import {
29
29
  EVENT_QUERY,
30
30
  MEETING_PROJECT_EVIDENCE_QUERY,
@@ -47,7 +47,7 @@ import {
47
47
  readMeetingProjectEvidence,
48
48
  validateMeetingHitSearch,
49
49
  validateMeetingPassage
50
- } from "./chunk-BHE7ZY2N.js";
50
+ } from "./chunk-OQEBGY74.js";
51
51
  import {
52
52
  OPERATORS_BY_TYPE,
53
53
  dateRange,
@@ -60,7 +60,7 @@ import {
60
60
  timezoneOf,
61
61
  validateQuery,
62
62
  zonedMoment
63
- } from "./chunk-R2QRP7EJ.js";
63
+ } from "./chunk-G75FZQAZ.js";
64
64
  import {
65
65
  CliError,
66
66
  array,
@@ -71,12 +71,12 @@ import {
71
71
  safeParse,
72
72
  strictObject,
73
73
  string
74
- } from "./chunk-BJ3JRO34.js";
74
+ } from "./chunk-EY4CUQW2.js";
75
75
  import {
76
76
  __name
77
77
  } from "./chunk-ZVVMGPBJ.js";
78
78
 
79
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
79
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
80
80
  var COMMAND_NEEDS = {
81
81
  "account update": ["updateProfile", "change the profile"],
82
82
  "account sessions list": ["sessions", "list the account's sessions"],
@@ -126,7 +126,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
126
126
  return group;
127
127
  }, "hideNever");
128
128
 
129
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
129
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
130
130
  var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
131
131
  command.allowUnknownOption();
132
132
  const parse = command.parseOptions.bind(command);
@@ -146,7 +146,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
146
146
  return command;
147
147
  }, "queryWordsAfterOptions");
148
148
 
149
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
149
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
150
150
  var count = /* @__PURE__ */ __name((value) => {
151
151
  if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
152
152
  throw new CliError("validation_error", "expected a nonnegative safe integer");
@@ -188,7 +188,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
188
188
  var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
189
189
  var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
190
190
 
191
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
191
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
192
192
  var integer = /* @__PURE__ */ __name((value) => {
193
193
  if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
194
194
  throw new CliError("validation_error", "expected a positive safe integer");
@@ -211,7 +211,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
211
211
  }, "addMeetingProjectEvidenceCommandDefinition");
212
212
  var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
213
213
 
214
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
214
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
215
215
  var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
216
216
  var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
217
217
  const zone = timezoneOf();
@@ -297,7 +297,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
297
297
  var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
298
298
  var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
299
299
 
300
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
300
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
301
301
  var integer3 = /* @__PURE__ */ __name((text) => {
302
302
  if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
303
303
  throw new InvalidArgumentError("expected a positive integer");
@@ -417,7 +417,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
417
417
  }, "addMeetingCommandsDefinition");
418
418
  var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
419
419
 
420
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/list-query.js
420
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/list-query.js
421
421
  var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
422
422
  var withQuery = /* @__PURE__ */ __name((command, registry) => {
423
423
  const query = defineQuery(registry);
@@ -531,7 +531,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
531
531
  var queryHelp = /* @__PURE__ */ __name((registry) => `
532
532
  ${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
533
533
 
534
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/paging.js
534
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/paging.js
535
535
  var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
536
536
  if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
537
537
  throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
@@ -540,7 +540,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
540
540
  var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
541
541
  var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
542
542
 
543
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
543
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
544
544
  var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
545
545
  var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
546
546
  var settingsOf = /* @__PURE__ */ __name((settings) => defined({
@@ -624,6 +624,38 @@ var contactAnswer = /* @__PURE__ */ __name((account, contact) => {
624
624
  }))
625
625
  });
626
626
  }, "contactAnswer");
627
+ var contactShown = /* @__PURE__ */ __name((account, card, profile) => {
628
+ const { id: _id, name: _name, bio, chats, ...facts } = profile;
629
+ const listed2 = new Map(card.chats.map((chat) => [chat.id, chat]));
630
+ const active = new Set(chats.map(({ id }) => id));
631
+ const shared = [
632
+ ...chats.map((chat) => ({
633
+ ref: chatRef(account, chat.id),
634
+ id: chat.id,
635
+ title: chat.title,
636
+ kind: chat.kind,
637
+ last_message_at: listed2.get(chat.id)?.lastMessageAt ?? chat.lastAt,
638
+ their_messages: chat.theirMessages,
639
+ first_at: chat.firstAt,
640
+ last_at: chat.lastAt,
641
+ complete: chat.complete
642
+ })),
643
+ ...card.chats.filter(({ id }) => !active.has(id)).map((chat) => ({
644
+ ref: chatRef(account, chat.id),
645
+ id: chat.id,
646
+ title: chat.title,
647
+ kind: chat.kind,
648
+ last_message_at: chat.lastMessageAt
649
+ }))
650
+ ];
651
+ const answer = contactAnswer(account, card);
652
+ return {
653
+ ...answer,
654
+ ...snakeKeys(facts),
655
+ description: answer.description ?? bio,
656
+ chats: shared
657
+ };
658
+ }, "contactShown");
627
659
  var chatEventAnswer = /* @__PURE__ */ __name((chatId, event) => defined({
628
660
  chat_id: chatId,
629
661
  time: event.timestamp,
@@ -666,6 +698,11 @@ var pollVoteAnswer = /* @__PURE__ */ __name((vote) => ({
666
698
  answers: vote.answers,
667
699
  voted_at: vote.votedAt
668
700
  }), "pollVoteAnswer");
701
+ var reactorAnswer = /* @__PURE__ */ __name((reactor) => ({
702
+ person: { id: reactor.person.id, name: reactor.person.name, username: reactor.person.username },
703
+ reaction: reactor.reaction,
704
+ reacted_at: reactor.reactedAt
705
+ }), "reactorAnswer");
669
706
  var topicAnswer = /* @__PURE__ */ __name((topic) => defined({
670
707
  id: topic.id,
671
708
  title: topic.title,
@@ -765,7 +802,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
765
802
  ...createdAt === void 0 ? {} : { created_at: createdAt }
766
803
  }), "sessionAnswer");
767
804
 
768
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/background/relay.js
805
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/background/relay.js
769
806
  import { createHash } from "node:crypto";
770
807
  import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
771
808
  import { createConnection, createServer } from "node:net";
@@ -913,7 +950,7 @@ var serve = /* @__PURE__ */ __name(async (socket, request, stdin, signal, run) =
913
950
  }
914
951
  }, "serve");
915
952
 
916
- // node_modules/.pnpm/@wirecat+cli-core@0.473.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_39633e3162553a2c86dde989a9811fcb/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
953
+ // node_modules/.pnpm/@wirecat+cli-core@0.494.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_231e74d5ae3bca45b1b0de971f6f7b9a/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
917
954
  var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
918
955
  close: /* @__PURE__ */ __name(async () => {
919
956
  }, "close"),
@@ -1033,11 +1070,13 @@ export {
1033
1070
  memberAnswer,
1034
1071
  contactRef,
1035
1072
  contactAnswer,
1073
+ contactShown,
1036
1074
  chatEventAnswer,
1037
1075
  memberEventAnswer,
1038
1076
  inviteLinkAnswer,
1039
1077
  joinRequestAnswer,
1040
1078
  pollVoteAnswer,
1079
+ reactorAnswer,
1041
1080
  topicAnswer,
1042
1081
  folderAnswer,
1043
1082
  lines,