@wirecat/drive-cli 0.47.0 → 0.49.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 (142) 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-WK2XXGPU.js} +5 -5
  7. package/dist/bundle/{anthropic-6T67J2CE.js → anthropic-R354D7GT.js} +3 -3
  8. package/dist/bundle/{app-server-BVBZT3UY.js → app-server-3YHJ757G.js} +46 -46
  9. package/dist/bundle/{bun-O6RL6LRQ.js → bun-JVDJVDHL.js} +2 -2
  10. package/dist/bundle/{bun-sqlite-54W7JUY3.js → bun-sqlite-KZCZWSRZ.js} +2 -2
  11. package/dist/bundle/{chunk-LOTQ2HMT.js → chunk-22LTNYO2.js} +3 -3
  12. package/dist/bundle/{chunk-5MGIL5LW.js → chunk-254VYUWN.js} +18 -15
  13. package/dist/bundle/{chunk-NLEB26GA.js → chunk-2BADVV4A.js} +2 -2
  14. package/dist/bundle/{chunk-XEBFFKXO.js → chunk-2CKGGIWF.js} +1 -1
  15. package/dist/bundle/{chunk-D67JGWSC.js → chunk-2ZFR67KY.js} +6 -3
  16. package/dist/bundle/{chunk-K74PQVQZ.js → chunk-3UHJC6HH.js} +6 -6
  17. package/dist/bundle/{chunk-44FV5JAS.js → chunk-45TPBTR3.js} +18 -18
  18. package/dist/bundle/{chunk-NP3XLLN3.js → chunk-463NMG57.js} +2 -2
  19. package/dist/bundle/{chunk-AOOD3RMK.js → chunk-467AQO7E.js} +5 -5
  20. package/dist/bundle/{chunk-FEULDMWM.js → chunk-46X7Z4FD.js} +1903 -1526
  21. package/dist/bundle/{chunk-IKNU5A5Y.js → chunk-4ORK4UAY.js} +2 -2
  22. package/dist/bundle/{chunk-GOR3Z2FR.js → chunk-5ISHP4TK.js} +1 -1
  23. package/dist/bundle/{chunk-R2A3K7ZF.js → chunk-5KR7BKDV.js} +4 -4
  24. package/dist/bundle/{chunk-GWPKIRNQ.js → chunk-624B6G64.js} +3 -3
  25. package/dist/bundle/{chunk-TRMIV3OA.js → chunk-65AW2AEQ.js} +1 -1
  26. package/dist/bundle/{chunk-BQUPOB5H.js → chunk-6Z3W7LTD.js} +7 -7
  27. package/dist/bundle/{chunk-XF5MFUEB.js → chunk-75VCGSNB.js} +10 -10
  28. package/dist/bundle/{chunk-K7FRUB33.js → chunk-7BA3HL7N.js} +32 -32
  29. package/dist/bundle/{chunk-NDNTLUPS.js → chunk-7WEISHFA.js} +1 -1
  30. package/dist/bundle/{chunk-GNFHZZ55.js → chunk-ABVFH76X.js} +4 -4
  31. package/dist/bundle/{chunk-BEXHAGXH.js → chunk-AN7HENGZ.js} +156 -144
  32. package/dist/bundle/{chunk-CFZWPIVC.js → chunk-BQV3WYXW.js} +26 -18
  33. package/dist/bundle/{chunk-SWMMR3FR.js → chunk-CB5NGX6E.js} +1 -1
  34. package/dist/bundle/{chunk-DL7D6Y3B.js → chunk-CCLDCM7J.js} +3320 -3282
  35. package/dist/bundle/{chunk-BHE7ZY2N.js → chunk-DKJGYYCP.js} +71 -43
  36. package/dist/bundle/{chunk-ZBM4GEV2.js → chunk-E2Y6GJZX.js} +3 -3
  37. package/dist/bundle/{chunk-CVIKKIGE.js → chunk-EF2RCQ3L.js} +1 -1
  38. package/dist/bundle/{chunk-DORXXBFC.js → chunk-EOZPMJJP.js} +5 -5
  39. package/dist/bundle/{chunk-GQW4GRYR.js → chunk-FB7I5JWC.js} +4 -4
  40. package/dist/bundle/{chunk-PDBBBUY7.js → chunk-FUJZ5S2Q.js} +8 -8
  41. package/dist/bundle/{chunk-OWXTPXIQ.js → chunk-FZQSGLHU.js} +10 -10
  42. package/dist/bundle/{chunk-4NGLRHWO.js → chunk-HBYE4EP2.js} +1 -1
  43. package/dist/bundle/{chunk-NB2N6L3R.js → chunk-HD3TFIT4.js} +5 -5
  44. package/dist/bundle/{chunk-HEPIOCHN.js → chunk-HF2T7E67.js} +55 -48
  45. package/dist/bundle/{chunk-NW7IMGRR.js → chunk-HIAO4MPA.js} +1 -1
  46. package/dist/bundle/{chunk-4DW6QGEV.js → chunk-HQ2PGEOK.js} +9 -9
  47. package/dist/bundle/{chunk-PH74B2VZ.js → chunk-HVM5LS5Z.js} +2 -2
  48. package/dist/bundle/{chunk-CKR3DVUK.js → chunk-IEAZAPC3.js} +20 -17
  49. package/dist/bundle/{chunk-GHOWRW7E.js → chunk-IRDGH7DV.js} +8 -1
  50. package/dist/bundle/{chunk-XAZQTJXR.js → chunk-IRNX4CO5.js} +16 -16
  51. package/dist/bundle/{chunk-LHIL46I3.js → chunk-ITZI7T2X.js} +1 -1
  52. package/dist/bundle/{chunk-67BQ3XMH.js → chunk-JMOX454R.js} +1 -1
  53. package/dist/bundle/{chunk-AUS6TKP5.js → chunk-JMRHDZMV.js} +30 -30
  54. package/dist/bundle/{chunk-VHQNVG3J.js → chunk-JZ3SUK2M.js} +2 -2
  55. package/dist/bundle/{chunk-RJ633GFA.js → chunk-KK3BA4IS.js} +1 -1
  56. package/dist/bundle/{chunk-WUFCYDKB.js → chunk-KKZYZ32J.js} +1 -1
  57. package/dist/bundle/{chunk-VYBOYBLX.js → chunk-KYJYOZYG.js} +5 -5
  58. package/dist/bundle/{chunk-JVTVAZ5X.js → chunk-L5RZI2M5.js} +56 -17
  59. package/dist/bundle/{chunk-U2OD7MKK.js → chunk-LF7ACSTK.js} +1 -1
  60. package/dist/bundle/{chunk-CYCQBQBH.js → chunk-MC77UZVA.js} +3 -3
  61. package/dist/bundle/{chunk-QWSRPXCJ.js → chunk-MP2UCK3Z.js} +4 -4
  62. package/dist/bundle/{chunk-LJARCTGL.js → chunk-NFU3OBCC.js} +3 -3
  63. package/dist/bundle/{chunk-3HRDEJJW.js → chunk-NVHB2MHX.js} +4 -4
  64. package/dist/bundle/{chunk-VCYFEWPD.js → chunk-NXFEZQDL.js} +25 -25
  65. package/dist/bundle/{chunk-G3FAOS52.js → chunk-P4NOTS3U.js} +2 -2
  66. package/dist/bundle/{chunk-6T7NSOYC.js → chunk-P4OU3OVF.js} +12 -12
  67. package/dist/bundle/{chunk-RCS2SCX5.js → chunk-P7INAZIT.js} +4 -4
  68. package/dist/bundle/{chunk-3Z7WSD2A.js → chunk-PPXNEHYX.js} +7 -7
  69. package/dist/bundle/{chunk-SMHQA5J6.js → chunk-QEM3MOSB.js} +14 -7
  70. package/dist/bundle/{chunk-KADPV4YA.js → chunk-R235IRSJ.js} +1 -1
  71. package/dist/bundle/{chunk-QTJUH3LS.js → chunk-RAAI3JLI.js} +1 -1
  72. package/dist/bundle/{chunk-KJMBV574.js → chunk-SSD2V4HR.js} +356 -304
  73. package/dist/bundle/{chunk-5TC3NCAF.js → chunk-U77RLMOK.js} +1 -1
  74. package/dist/bundle/{chunk-AIXLOMH4.js → chunk-W5EUHV3J.js} +1 -1
  75. package/dist/bundle/{chunk-IAW5A7OR.js → chunk-W5IDHD6C.js} +30 -26
  76. package/dist/bundle/{chunk-DXKVEOSS.js → chunk-XLJV3ZOH.js} +1 -1
  77. package/dist/bundle/{recognize-IFXOJHEA.js → chunk-XVXXWNAA.js} +6 -6
  78. package/dist/bundle/{chunk-IGMRWQP3.js → chunk-Y2AUB4TJ.js} +29 -25
  79. package/dist/bundle/{chunk-QW36EOAM.js → chunk-YOF5BC4G.js} +2 -2
  80. package/dist/bundle/{chunk-PJ7IQVOM.js → chunk-YYMHFXHK.js} +1 -1
  81. package/dist/bundle/{chunk-DDYR6DYL.js → chunk-ZK7Y5K63.js} +1 -1
  82. package/dist/bundle/command-contract-AEA45IX7.js +38 -0
  83. package/dist/bundle/decode-BE3VDYTJ.js +159 -0
  84. package/dist/bundle/drive.js +4 -4
  85. package/dist/bundle/{echarts-LD3AI55P.js → echarts-4OQHS575.js} +2 -2
  86. package/dist/bundle/{embed-FJKIIM43.js → embed-QR76SJDI.js} +3 -3
  87. package/dist/bundle/{embedder-NNQ5ZC25.js → embedder-EMIDKBYV.js} +6 -6
  88. package/dist/bundle/{entry-ZYSNPDSD.js → entry-FE4REJDO.js} +4 -4
  89. package/dist/bundle/{failure-KZDBSYBR.js → failure-GYOTW6NN.js} +11 -11
  90. package/dist/bundle/{first-run-KA2UPZAU.js → first-run-ALPI62PX.js} +5 -5
  91. package/dist/bundle/first-screen-JLS57PIT.js +36 -0
  92. package/dist/bundle/{google-ZYDFTHLN.js → google-NV75VSCD.js} +4 -4
  93. package/dist/bundle/google-api-6623OUF2.js +82 -0
  94. package/dist/bundle/{identity-7JM62OER.js → identity-NZ7SP6OL.js} +2 -2
  95. package/dist/bundle/{instructions-RZMSW3OC.js → instructions-3QZBKKPF.js} +1 -1
  96. package/dist/bundle/{login-JU6NKW5P.js → login-KNBM6XUX.js} +54 -54
  97. package/dist/bundle/mcp-4NPK6BM3.js +95 -0
  98. package/dist/bundle/{mcp-KWXNBIAI.js → mcp-XY2FGGUM.js} +68 -68
  99. package/dist/bundle/{node-ZRLYQL7J.js → node-R2BLYUSB.js} +2 -2
  100. package/dist/bundle/node-sqlite-PMRVP442.js +62 -0
  101. package/dist/bundle/{oauth-NAIBKERJ.js → oauth-NM2AKRRT.js} +4 -4
  102. package/dist/bundle/{open-3P5EPXPV.js → open-XZH5ZNDA.js} +1 -1
  103. package/dist/bundle/{process-LL77573L.js → process-IX5YWGDP.js} +1 -1
  104. package/dist/bundle/{program-VKHR42BF.js → program-MDWQHGBY.js} +124 -89
  105. package/dist/bundle/{prompt-3TX2SWOY.js → prompt-5K6XGWSK.js} +2 -2
  106. package/dist/bundle/recognize-U7GDD6T2.js +22 -0
  107. package/dist/bundle/{remote-663M42Y5.js → remote-ZWXOGNQX.js} +4 -4
  108. package/dist/bundle/{rerank-OT2F2DBV.js → rerank-YRQBCS63.js} +4 -4
  109. package/dist/bundle/{serve-PDNNI6O6.js → serve-6PQ7K5RK.js} +6 -6
  110. package/dist/bundle/server-O7SS6NAY.js +56 -0
  111. package/dist/bundle/server-WT57TF6S.js +69 -0
  112. package/dist/bundle/{services-5MCTECBU.js → services-QBIQX236.js} +22 -22
  113. package/dist/bundle/{sqlite-runtime-BF3KDM7W.js → sqlite-runtime-7Q5UD2VR.js} +2 -2
  114. package/dist/bundle/{state-SZX65E74.js → state-U72TC26L.js} +3 -3
  115. package/dist/bundle/{store-TCWNLA3V.js → store-B4RAJ63G.js} +10 -10
  116. package/dist/bundle/{store-UKPGGAPW.js → store-FYABCSIH.js} +12 -12
  117. package/dist/bundle/store-maintenance-command-DAF5NI3T.js +57 -0
  118. package/dist/bundle/tokens-DISQJKDM.js +103 -0
  119. package/dist/commands/documents.d.ts +5 -1
  120. package/dist/commands/documents.d.ts.map +1 -1
  121. package/dist/commands/documents.js +11 -5
  122. package/dist/commands/documents.js.map +1 -1
  123. package/dist/commands/remote.d.ts +8 -0
  124. package/dist/commands/remote.d.ts.map +1 -1
  125. package/dist/commands/remote.js +16 -0
  126. package/dist/commands/remote.js.map +1 -1
  127. package/dist/program.d.ts.map +1 -1
  128. package/dist/program.js +4 -1
  129. package/dist/program.js.map +1 -1
  130. package/dist/version.d.ts +1 -1
  131. package/dist/version.js +1 -1
  132. package/package.json +2 -2
  133. package/dist/bundle/command-contract-MXCBV3GJ.js +0 -38
  134. package/dist/bundle/first-screen-VQ3RXDMF.js +0 -36
  135. package/dist/bundle/google-api-2GT5PAW2.js +0 -82
  136. package/dist/bundle/mcp-JOQMFGBC.js +0 -95
  137. package/dist/bundle/node-sqlite-TXPSRROT.js +0 -46
  138. package/dist/bundle/server-BFOEPMR7.js +0 -56
  139. package/dist/bundle/server-K566PJ7H.js +0 -69
  140. package/dist/bundle/store-maintenance-command-QHLUVBTJ.js +0 -57
  141. package/dist/bundle/tokens-DFCFRF7I.js +0 -103
  142. /package/dist/bundle/{chunk-Q2Z3VCM4.js → chunk-YLBNPI7H.js} +0 -0
package/dist/age.d.ts CHANGED
@@ -34,4 +34,40 @@ export declare const staleCopy: (state: Pick<SyncState, "lastSync">, now?: numbe
34
34
  complete: false;
35
35
  };
36
36
  };
37
+ export interface Freshness {
38
+ changed: boolean;
39
+ remote_modified_at: string;
40
+ local_modified_at: string | null;
41
+ }
42
+ export declare const freshness: (remote: string, local: string | undefined) => Freshness;
43
+ export declare const changedCopy: ({ changed, local_modified_at }: Freshness) => {
44
+ missing?: undefined;
45
+ next?: undefined;
46
+ meta?: undefined;
47
+ } | {
48
+ missing: {
49
+ field: string;
50
+ why: string;
51
+ step: string;
52
+ }[];
53
+ next: ({
54
+ kind: "command";
55
+ step: string;
56
+ command: string;
57
+ args: {
58
+ [x: string]: unknown;
59
+ };
60
+ line?: string | undefined;
61
+ why: string;
62
+ safe_to_auto_execute: boolean;
63
+ } | {
64
+ kind: "user_action";
65
+ step: string;
66
+ why: string;
67
+ safe_to_auto_execute: false;
68
+ })[];
69
+ meta: {
70
+ complete: false;
71
+ };
72
+ };
37
73
  //# sourceMappingURL=age.d.ts.map
package/dist/age.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"age.d.ts","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAO3C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,eAAO,MAAM,KAAK,UAAW,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,mBAAqB,OAK5E,CAAA;AAGD,eAAO,MAAM,SAAS,UAAW,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa3D,CAAA"}
1
+ {"version":3,"file":"age.d.ts","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAO3C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,eAAO,MAAM,KAAK,UAAW,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,mBAAqB,OAK5E,CAAA;AAGD,eAAO,MAAM,SAAS,UAAW,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa3D,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,eAAO,MAAM,SAAS,WAAY,MAAM,SAAS,MAAM,GAAG,SAAS,KAAG,SAIpE,CAAA;AAEF,eAAO,MAAM,WAAW,mCAAoC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWpE,CAAA"}
package/dist/age.js CHANGED
@@ -24,4 +24,21 @@ export const staleCopy = (state, now = Date.now()) => {
24
24
  meta: { complete: false },
25
25
  };
26
26
  };
27
+ export const freshness = (remote, local) => ({
28
+ changed: local === undefined || Date.parse(remote) !== Date.parse(local),
29
+ remote_modified_at: remote,
30
+ local_modified_at: local ?? null,
31
+ });
32
+ export const changedCopy = ({ changed, local_modified_at }) => {
33
+ if (!changed)
34
+ return {};
35
+ const why = local_modified_at === null
36
+ ? "the local copy has no modified time, so it cannot be compared with Google"
37
+ : `Google changed the document after the local copy was made (${local_modified_at})`;
38
+ return {
39
+ missing: [{ field: "modified_at", why, step: SYNC.id }],
40
+ next: [stepOf(SYNC)],
41
+ meta: { complete: false },
42
+ };
43
+ };
27
44
  //# sourceMappingURL=age.js.map
package/dist/age.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"age.js","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuB,MAAM,EAAE,MAAM,6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,KAAK,CAAC,KAAK,CAAC;IACxE,kBAAkB,EAAE,MAAM;IAC1B,iBAAiB,EAAE,KAAK,IAAI,IAAI;CACjC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAa,EAAE,EAAE;IACvE,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAA;IACvB,MAAM,GAAG,GACP,iBAAiB,KAAK,IAAI;QACxB,CAAC,CAAC,2EAA2E;QAC7E,CAAC,CAAC,8DAA8D,iBAAiB,GAAG,CAAA;IACxF,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAqB;QAC3E,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAsB;QACzC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAA0B;KAClD,CAAA;AACH,CAAC,CAAA"}
package/dist/bin/drive.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.47.0\n")
12
+ process.stdout.write("0.49.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -29,7 +29,7 @@ if (
29
29
  })
30
30
  }
31
31
  const running = import("../bundle/drive.js")
32
- const chunks = ["../bundle/all-profiles-O7CNQ7FO.js","../bundle/anthropic-6T67J2CE.js","../bundle/app-server-BVBZT3UY.js","../bundle/bun-O6RL6LRQ.js","../bundle/bun-sqlite-54W7JUY3.js","../bundle/command-contract-MXCBV3GJ.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-LD3AI55P.js","../bundle/embed-FJKIIM43.js","../bundle/embedder-NNQ5ZC25.js","../bundle/entry-ZYSNPDSD.js","../bundle/failure-KZDBSYBR.js","../bundle/first-run-KA2UPZAU.js","../bundle/first-screen-VQ3RXDMF.js","../bundle/google-ZYDFTHLN.js","../bundle/google-api-2GT5PAW2.js","../bundle/identity-7JM62OER.js","../bundle/instructions-RZMSW3OC.js","../bundle/login-JU6NKW5P.js","../bundle/mcp-JOQMFGBC.js","../bundle/mcp-KWXNBIAI.js","../bundle/mcp-OQBZXELQ.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-ZRLYQL7J.js","../bundle/node-sqlite-TXPSRROT.js","../bundle/oauth-NAIBKERJ.js","../bundle/open-3P5EPXPV.js","../bundle/process-LL77573L.js","../bundle/program-VKHR42BF.js","../bundle/prompt-3TX2SWOY.js","../bundle/reasons-GF2TYGX6.js","../bundle/recognize-IFXOJHEA.js","../bundle/remote-663M42Y5.js","../bundle/rerank-OT2F2DBV.js","../bundle/serve-PDNNI6O6.js","../bundle/server-BFOEPMR7.js","../bundle/server-K566PJ7H.js","../bundle/services-5MCTECBU.js","../bundle/sqlite-runtime-BF3KDM7W.js","../bundle/state-SZX65E74.js","../bundle/store-TCWNLA3V.js","../bundle/store-UKPGGAPW.js","../bundle/store-maintenance-command-QHLUVBTJ.js","../bundle/terminal-TFCTWLOS.js","../bundle/tokens-DFCFRF7I.js"]
32
+ const chunks = ["../bundle/all-profiles-WK2XXGPU.js","../bundle/anthropic-R354D7GT.js","../bundle/app-server-3YHJ757G.js","../bundle/bun-JVDJVDHL.js","../bundle/bun-sqlite-KZCZWSRZ.js","../bundle/command-contract-AEA45IX7.js","../bundle/decode-BE3VDYTJ.js","../bundle/dist-MWTMOYWT.js","../bundle/dist-PY3MVR3G.js","../bundle/echarts-4OQHS575.js","../bundle/embed-QR76SJDI.js","../bundle/embedder-EMIDKBYV.js","../bundle/entry-FE4REJDO.js","../bundle/failure-GYOTW6NN.js","../bundle/first-run-ALPI62PX.js","../bundle/first-screen-JLS57PIT.js","../bundle/google-NV75VSCD.js","../bundle/google-api-6623OUF2.js","../bundle/identity-NZ7SP6OL.js","../bundle/instructions-3QZBKKPF.js","../bundle/login-KNBM6XUX.js","../bundle/mcp-4NPK6BM3.js","../bundle/mcp-OQBZXELQ.js","../bundle/mcp-XY2FGGUM.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-P4E63KXA.js","../bundle/node-R2BLYUSB.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-PMRVP442.js","../bundle/oauth-NM2AKRRT.js","../bundle/open-XZH5ZNDA.js","../bundle/process-IX5YWGDP.js","../bundle/program-MDWQHGBY.js","../bundle/prompt-5K6XGWSK.js","../bundle/reasons-GF2TYGX6.js","../bundle/recognize-U7GDD6T2.js","../bundle/remote-ZWXOGNQX.js","../bundle/rerank-YRQBCS63.js","../bundle/serve-6PQ7K5RK.js","../bundle/server-O7SS6NAY.js","../bundle/server-WT57TF6S.js","../bundle/services-QBIQX236.js","../bundle/sqlite-runtime-7Q5UD2VR.js","../bundle/state-U72TC26L.js","../bundle/store-B4RAJ63G.js","../bundle/store-FYABCSIH.js","../bundle/store-maintenance-command-DAF5NI3T.js","../bundle/terminal-TFCTWLOS.js","../bundle/tokens-DISQJKDM.js"]
33
33
  // After the server answers its first request, so it starts no later.
34
34
  if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
35
35
  await running
@@ -6,12 +6,12 @@ import {
6
6
  serveAllProfilesOverHttp,
7
7
  serveAllProfilesOverStdio,
8
8
  withProfile
9
- } from "./chunk-QWSRPXCJ.js";
10
- import "./chunk-CVIKKIGE.js";
11
- import "./chunk-G3FAOS52.js";
9
+ } from "./chunk-MP2UCK3Z.js";
10
+ import "./chunk-EF2RCQ3L.js";
11
+ import "./chunk-P4NOTS3U.js";
12
12
  import "./chunk-5FONRUG6.js";
13
- import "./chunk-3Z7WSD2A.js";
14
- import "./chunk-GOR3Z2FR.js";
13
+ import "./chunk-PPXNEHYX.js";
14
+ import "./chunk-5ISHP4TK.js";
15
15
  import "./chunk-O5EHUB2V.js";
16
16
  import "./chunk-VHT2WI4I.js";
17
17
  import "./chunk-BJ3JRO34.js";
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  checkedOptions
5
- } from "./chunk-LHIL46I3.js";
5
+ } from "./chunk-ITZI7T2X.js";
6
6
  import {
7
7
  messagesFor,
8
8
  systemFor
9
- } from "./chunk-KADPV4YA.js";
9
+ } from "./chunk-R235IRSJ.js";
10
10
  import {
11
11
  Anthropic
12
12
  } from "./chunk-ADLS6FVG.js";
@@ -22,7 +22,7 @@ import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // 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/models/anthropic.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/models/anthropic.js
26
26
  var options = strictObject({
27
27
  stop_sequences: optional(array(string()))
28
28
  });
@@ -3,48 +3,48 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  PER_RUN,
5
5
  envelope
6
- } from "./chunk-K7FRUB33.js";
7
- import "./chunk-IGMRWQP3.js";
6
+ } from "./chunk-7BA3HL7N.js";
7
+ import "./chunk-Y2AUB4TJ.js";
8
8
  import {
9
9
  mcpUrlOf
10
- } from "./chunk-SWMMR3FR.js";
10
+ } from "./chunk-CB5NGX6E.js";
11
11
  import {
12
12
  answeredWire
13
- } from "./chunk-CVIKKIGE.js";
13
+ } from "./chunk-EF2RCQ3L.js";
14
14
  import {
15
15
  answered,
16
16
  failed,
17
17
  registerCommands,
18
18
  runCommandForAgent,
19
19
  toolsFromCommands
20
- } from "./chunk-XAZQTJXR.js";
20
+ } from "./chunk-IRNX4CO5.js";
21
21
  import {
22
22
  agentJson,
23
23
  skillResource
24
- } from "./chunk-XF5MFUEB.js";
24
+ } from "./chunk-75VCGSNB.js";
25
25
  import {
26
26
  StdioServerTransport,
27
27
  serveStdio
28
- } from "./chunk-G3FAOS52.js";
29
- import "./chunk-GHOWRW7E.js";
28
+ } from "./chunk-P4NOTS3U.js";
29
+ import "./chunk-IRDGH7DV.js";
30
30
  import {
31
31
  appInstructions
32
- } from "./chunk-DXKVEOSS.js";
32
+ } from "./chunk-XLJV3ZOH.js";
33
33
  import {
34
34
  McpServer
35
35
  } from "./chunk-5FONRUG6.js";
36
36
  import {
37
37
  mcpHttpMarker
38
- } from "./chunk-3HRDEJJW.js";
39
- import "./chunk-IAW5A7OR.js";
40
- import "./chunk-JVTVAZ5X.js";
41
- import "./chunk-NP3XLLN3.js";
42
- import "./chunk-DL7D6Y3B.js";
43
- import "./chunk-VCYFEWPD.js";
44
- import "./chunk-DORXXBFC.js";
45
- import "./chunk-5MGIL5LW.js";
46
- import "./chunk-K74PQVQZ.js";
47
- import "./chunk-BEXHAGXH.js";
38
+ } from "./chunk-NVHB2MHX.js";
39
+ import "./chunk-W5IDHD6C.js";
40
+ import "./chunk-L5RZI2M5.js";
41
+ import "./chunk-463NMG57.js";
42
+ import "./chunk-CCLDCM7J.js";
43
+ import "./chunk-NXFEZQDL.js";
44
+ import "./chunk-EOZPMJJP.js";
45
+ import "./chunk-254VYUWN.js";
46
+ import "./chunk-3UHJC6HH.js";
47
+ import "./chunk-AN7HENGZ.js";
48
48
  import {
49
49
  DEFAULT_OUTPUT_BYTES,
50
50
  changesAuthorityAt,
@@ -52,39 +52,39 @@ import {
52
52
  fetchesOnlyAt,
53
53
  judgedTargets,
54
54
  rootOf2 as rootOf
55
- } from "./chunk-AUS6TKP5.js";
56
- import "./chunk-3Z7WSD2A.js";
55
+ } from "./chunk-JMRHDZMV.js";
56
+ import "./chunk-PPXNEHYX.js";
57
57
  import {
58
58
  describeProgram
59
- } from "./chunk-LOTQ2HMT.js";
60
- import "./chunk-AIXLOMH4.js";
61
- import "./chunk-CFZWPIVC.js";
62
- import "./chunk-GOR3Z2FR.js";
63
- import "./chunk-PJ7IQVOM.js";
64
- import "./chunk-ZBM4GEV2.js";
59
+ } from "./chunk-22LTNYO2.js";
60
+ import "./chunk-W5EUHV3J.js";
61
+ import "./chunk-BQV3WYXW.js";
62
+ import "./chunk-5ISHP4TK.js";
63
+ import "./chunk-YYMHFXHK.js";
64
+ import "./chunk-E2Y6GJZX.js";
65
65
  import "./chunk-A3FU4RR6.js";
66
66
  import "./chunk-MFS52LTZ.js";
67
- import "./chunk-LJARCTGL.js";
67
+ import "./chunk-NFU3OBCC.js";
68
68
  import {
69
69
  readOnlyLockOf
70
- } from "./chunk-RJ633GFA.js";
71
- import "./chunk-WUFCYDKB.js";
72
- import "./chunk-KADPV4YA.js";
73
- import "./chunk-PH74B2VZ.js";
74
- import "./chunk-RCS2SCX5.js";
70
+ } from "./chunk-KK3BA4IS.js";
71
+ import "./chunk-KKZYZ32J.js";
72
+ import "./chunk-R235IRSJ.js";
73
+ import "./chunk-HVM5LS5Z.js";
74
+ import "./chunk-P7INAZIT.js";
75
75
  import "./chunk-5DPV7X27.js";
76
- import "./chunk-GNFHZZ55.js";
77
- import "./chunk-FEULDMWM.js";
78
- import "./chunk-5TC3NCAF.js";
79
- import "./chunk-AOOD3RMK.js";
80
- import "./chunk-NB2N6L3R.js";
81
- import "./chunk-BHE7ZY2N.js";
76
+ import "./chunk-ABVFH76X.js";
77
+ import "./chunk-46X7Z4FD.js";
78
+ import "./chunk-U77RLMOK.js";
79
+ import "./chunk-467AQO7E.js";
80
+ import "./chunk-HD3TFIT4.js";
81
+ import "./chunk-DKJGYYCP.js";
82
82
  import "./chunk-R2QRP7EJ.js";
83
83
  import "./chunk-O5EHUB2V.js";
84
- import "./chunk-BQUPOB5H.js";
85
- import "./chunk-GQW4GRYR.js";
86
- import "./chunk-TRMIV3OA.js";
87
- import "./chunk-VYBOYBLX.js";
84
+ import "./chunk-6Z3W7LTD.js";
85
+ import "./chunk-FB7I5JWC.js";
86
+ import "./chunk-65AW2AEQ.js";
87
+ import "./chunk-KYJYOZYG.js";
88
88
  import {
89
89
  mcpErrorResult
90
90
  } from "./chunk-VHT2WI4I.js";
@@ -92,12 +92,12 @@ import {
92
92
  CliError
93
93
  } from "./chunk-BJ3JRO34.js";
94
94
  import "./chunk-Y5E2WNWB.js";
95
- import "./chunk-NW7IMGRR.js";
95
+ import "./chunk-HIAO4MPA.js";
96
96
  import {
97
97
  __name
98
98
  } from "./chunk-ZVVMGPBJ.js";
99
99
 
100
- // 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/mcp/app-server.js
100
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
101
101
  var EXCLUDED = [["mcp"]];
102
102
  var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
103
103
  const { app } = options;
@@ -212,7 +212,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
212
212
  var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
213
213
  const { app } = options;
214
214
  const { build } = createAppServer(command, context, options);
215
- const { serveOverHttp } = await import("./serve-PDNNI6O6.js");
215
+ const { serveOverHttp } = await import("./serve-6PQ7K5RK.js");
216
216
  const listening = await serveOverHttp(build, {
217
217
  ...http,
218
218
  appName: app.command,
@@ -18,12 +18,12 @@ import {
18
18
  jitCompatCheck,
19
19
  refineSqliteCodecs,
20
20
  sql
21
- } from "./chunk-NW7IMGRR.js";
21
+ } from "./chunk-HIAO4MPA.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-ZVVMGPBJ.js";
25
25
 
26
- // 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/store/sqlite/drizzle/bun.js
26
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
27
27
  import { Database } from "bun:sqlite";
28
28
  var bunSQLiteCodecs = refineSqliteCodecs({
29
29
  "integer:boolean": { normalize: booleanFromInteger },
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  loadVectorExtension,
5
5
  vectorExtension
6
- } from "./chunk-NDNTLUPS.js";
6
+ } from "./chunk-7WEISHFA.js";
7
7
  import "./chunk-VHT2WI4I.js";
8
8
  import "./chunk-BJ3JRO34.js";
9
9
  import {
@@ -13,7 +13,7 @@ import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // 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/store/drivers/bun-sqlite.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
17
17
  var customised = false;
18
18
  var ownLibrary = /* @__PURE__ */ __name(async () => {
19
19
  try {
@@ -3823,7 +3823,7 @@ var commandsDocument = /* @__PURE__ */ __name((root, about) => ({
3823
3823
  exit_codes: { ok: 0, internal_error: GENERIC_FAILURE, ...EXIT_CODES }
3824
3824
  }), "commandsDocument");
3825
3825
 
3826
- // 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/result-fields.js
3826
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
3827
3827
  var named = /* @__PURE__ */ __name((work) => {
3828
3828
  try {
3829
3829
  return work();
@@ -3850,7 +3850,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
3850
3850
  return projectFields(value, fields);
3851
3851
  }), "projectFields");
3852
3852
 
3853
- // 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/output-detail.js
3853
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/output-detail.js
3854
3854
  var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
3855
3855
  var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
3856
3856
  var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
@@ -3880,7 +3880,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
3880
3880
  return value;
3881
3881
  }, "atDetail");
3882
3882
 
3883
- // 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/output.js
3883
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/output.js
3884
3884
  var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
3885
3885
  const interactive = tty ?? process.stdout.isTTY === true;
3886
3886
  const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
@@ -4,7 +4,7 @@ import {
4
4
  organization,
5
5
  project,
6
6
  reminder
7
- } from "./chunk-ZBM4GEV2.js";
7
+ } from "./chunk-E2Y6GJZX.js";
8
8
  import {
9
9
  MIGRATIONS,
10
10
  SnapshotBudget,
@@ -28,16 +28,19 @@ import {
28
28
  tagMemberIds,
29
29
  thingOf,
30
30
  write
31
- } from "./chunk-FEULDMWM.js";
31
+ } from "./chunk-46X7Z4FD.js";
32
32
  import {
33
33
  filesAccountSql,
34
34
  folderProviderOf,
35
35
  folderProviderSql,
36
36
  isDocumentAccountProvider
37
- } from "./chunk-AOOD3RMK.js";
37
+ } from "./chunk-467AQO7E.js";
38
38
  import {
39
39
  queryFieldsOf
40
40
  } from "./chunk-R2QRP7EJ.js";
41
+ import {
42
+ fold
43
+ } from "./chunk-6Z3W7LTD.js";
41
44
  import {
42
45
  CliError
43
46
  } from "./chunk-BJ3JRO34.js";
@@ -45,11 +48,11 @@ import {
45
48
  __name
46
49
  } from "./chunk-ZVVMGPBJ.js";
47
50
 
48
- // 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/store/document-transfer/index.js
51
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
49
52
  import { realpathSync, statSync } from "node:fs";
50
53
  import { resolve } from "node:path";
51
54
 
52
- // 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/store/sqlite/document-transfer/people.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
53
56
  var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
54
57
  const creatable = /* @__PURE__ */ new Set();
55
58
  let people = 0, identities = 0;
@@ -104,7 +107,7 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
104
107
  if (row && Number(row.person_id) !== person.id)
105
108
  throw new CliError("configuration_error", "an identity belongs to another destination person; the transfer was rolled back");
106
109
  if (!row)
107
- row = database.prepare("INSERT INTO identities (provider,external_id,name,username,bot,created_at,updated_at) VALUES (?,?,?,?,?,?,?) RETURNING id").get(String(identity.provider), String(identity.external_id), identity.name ?? null, identity.username ?? null, identity.bot ?? null, identity.created_at ?? now(), identity.updated_at ?? now());
110
+ row = database.prepare("INSERT INTO identities (provider,external_id,name,name_folded,username,bot,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?) RETURNING id").get(String(identity.provider), String(identity.external_id), identity.name ?? null, identity.name == null ? null : fold(String(identity.name)), identity.username ?? null, identity.bot ?? null, identity.created_at ?? now(), identity.updated_at ?? now());
108
111
  if (!database.prepare("SELECT identity_id FROM identity_links WHERE identity_id=?").get(Number(row?.id)))
109
112
  database.prepare("INSERT INTO identity_links (identity_id,person_id,method,confidence,author,source,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?)").run(Number(row?.id), person.id, identity.link_method ?? "transfer", identity.link_confidence ?? 1, identity.link_author ?? "owner", identity.link_source ?? null, identity.link_created_at ?? now(), identity.link_updated_at ?? now());
110
113
  mappings.set(`identity:${String(identity.id)}`, { type: "identity", id: Number(row?.id) });
@@ -112,11 +115,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
112
115
  }
113
116
  }, "copyPeople");
114
117
 
115
- // 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/store/document-transfer/digest.js
118
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
116
119
  import { createHash } from "node:crypto";
117
120
  var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
118
121
 
119
- // 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/store/sqlite/document-transfer/collection.js
122
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
120
123
  var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
121
124
  const colon = collection.indexOf(":");
122
125
  const provider = collection.slice(0, colon);
@@ -160,7 +163,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
160
163
  };
161
164
  }, "currentCollection");
162
165
 
163
- // 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/store/sqlite/document-transfer/plan.js
166
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
164
167
  var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
165
168
  const mappings = /* @__PURE__ */ new Map();
166
169
  const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
@@ -327,7 +330,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
327
330
  };
328
331
  }, "planTransfer");
329
332
 
330
- // 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/store/sqlite/document-transfer/snapshot.js
333
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
331
334
  var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
332
335
  var MAX_ENTITIES = 1e3;
333
336
  var MAX_AUXILIARY = 1e4;
@@ -489,7 +492,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
489
492
  };
490
493
  }), "transferSnapshot");
491
494
 
492
- // 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/store/sqlite/document-transfer/apply.js
495
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
493
496
  var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
494
497
  if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
495
498
  return provider ?? null;
@@ -661,7 +664,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
661
664
  database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
662
665
  }, "remapEntity");
663
666
 
664
- // 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/store/document-transfer/index.js
667
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
665
668
  var locations = /* @__PURE__ */ __name((options) => {
666
669
  for (const value of [options.source, options.destination, options.collection])
667
670
  if (typeof value !== "string" || !value.trim())
@@ -757,7 +760,7 @@ var applyDocumentTransfer = /* @__PURE__ */ __name(async (options) => {
757
760
  }
758
761
  }, "applyDocumentTransfer");
759
762
 
760
- // 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/store/knowledge-query.js
763
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/knowledge-query.js
761
764
  var ORGANIZATIONS_QUERY = {
762
765
  entity: "organization",
763
766
  backend: "sql",
@@ -792,7 +795,7 @@ var REMINDERS_QUERY = {
792
795
  })
793
796
  };
794
797
 
795
- // 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/store/project-transfer/preview.js
798
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
796
799
  var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
797
800
  if (!options || typeof options !== "object" || Array.isArray(options))
798
801
  throw new CliError("validation_error", "project preview options are required");
@@ -814,7 +817,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
814
817
  }
815
818
  }, "previewProjectAnnotationSnapshot");
816
819
 
817
- // 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/store/project-transfer/snapshot.js
820
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
818
821
  var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
819
822
  if (!options || typeof options !== "object" || Array.isArray(options))
820
823
  throw new CliError("validation_error", "snapshot options are required");
@@ -8,12 +8,12 @@ import {
8
8
  ACCESS_SECONDS,
9
9
  REFRESH_SECONDS,
10
10
  readStored
11
- } from "./chunk-3HRDEJJW.js";
11
+ } from "./chunk-NVHB2MHX.js";
12
12
  import {
13
13
  __name
14
14
  } from "./chunk-ZVVMGPBJ.js";
15
15
 
16
- // 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/mcp/http/oauth.js
16
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/mcp/http/oauth.js
17
17
  import { createHash, randomBytes, randomInt, timingSafeEqual } from "node:crypto";
18
18
  import { chmodSync, mkdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
19
19
  import { dirname } from "node:path";
@@ -5,7 +5,7 @@ import {
5
5
  operations,
6
6
  validateApiParams,
7
7
  validateRequest
8
- } from "./chunk-QTJUH3LS.js";
8
+ } from "./chunk-RAAI3JLI.js";
9
9
  import {
10
10
  googleError
11
11
  } from "./chunk-2DLAJGRN.js";
@@ -12,7 +12,7 @@ import {
12
12
  __name
13
13
  } from "./chunk-ZVVMGPBJ.js";
14
14
 
15
- // 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/render/messages.js
15
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/render/messages.js
16
16
  import { styleText } from "node:util";
17
17
  var TIME_WIDTH = 8;
18
18
  var INDENT = " ".repeat(TIME_WIDTH + 2);
@@ -119,9 +119,12 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options) => {
119
119
  let number = 0;
120
120
  const keyboard = attachments.flatMap((attachment) => attachment.buttons ?? []).map((row) => paint("dim", row.map((button) => link(`[${++number} ${singleLine(button.text)}]`, button.url)).join(" ")));
121
121
  const polls = attachments.flatMap((attachment) => attachment.poll ? pollLines(attachment.poll) : []);
122
+ const cards = attachments.flatMap(({ contact }) => contact ? [
123
+ paint("dim", `\u{1F464} ${[contact.name, contact.phone].flatMap((part) => part ? [singleLine(part)] : []).join(" \xB7 ")}`)
124
+ ] : []);
122
125
  const groups = /* @__PURE__ */ new Map();
123
126
  for (const attachment of attachments) {
124
- if (attachment.buttons || attachment.poll)
127
+ if (attachment.buttons || attachment.poll || attachment.contact)
125
128
  continue;
126
129
  const key = singleLine(attachment.name ?? attachment.title ?? attachment.kind);
127
130
  groups.set(key, [...groups.get(key) ?? [], attachment]);
@@ -134,7 +137,7 @@ var attachmentLines = /* @__PURE__ */ __name((attachments, paint, options) => {
134
137
  const each = same.map((attachment, index) => link(String(index + 1), attachment.url)).join(" ");
135
138
  return paint("dim", `\u{1F4CE} ${label} \xD7${same.length} ${each}`);
136
139
  });
137
- return [...polls, ...files, ...keyboard];
140
+ return [...polls, ...cards, ...files, ...keyboard];
138
141
  }, "attachmentLines");
139
142
  var pollLines = /* @__PURE__ */ __name((poll) => {
140
143
  const kind = [
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  ENTITIES
5
- } from "./chunk-BEXHAGXH.js";
5
+ } from "./chunk-AN7HENGZ.js";
6
6
  import {
7
7
  answerSchema
8
- } from "./chunk-AUS6TKP5.js";
8
+ } from "./chunk-JMRHDZMV.js";
9
9
  import {
10
10
  annotate,
11
11
  describeOptions,
12
12
  metaOf
13
- } from "./chunk-LOTQ2HMT.js";
13
+ } from "./chunk-22LTNYO2.js";
14
14
  import {
15
15
  keyForCommand
16
- } from "./chunk-PJ7IQVOM.js";
16
+ } from "./chunk-YYMHFXHK.js";
17
17
  import {
18
18
  CliError,
19
19
  jsonSchemaOf
@@ -22,7 +22,7 @@ import {
22
22
  __name
23
23
  } from "./chunk-ZVVMGPBJ.js";
24
24
 
25
- // 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/answer-entity.js
25
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
26
26
  var schemas = /* @__PURE__ */ new WeakMap();
27
27
  var answerEntity = /* @__PURE__ */ __name((command, name, schema, options = {}) => {
28
28
  if (Object.hasOwn(ENTITIES, name))
@@ -52,7 +52,7 @@ var answerProjectionSchema = /* @__PURE__ */ __name((command) => {
52
52
  return own && metaOf(command).output?.entity === own.name ? own.project : void 0;
53
53
  }, "answerProjectionSchema");
54
54
 
55
- // 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/command-contract.js
55
+ // node_modules/.pnpm/@wirecat+cli-core@0.491.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_1193098e908042dfe6f4070222ac0245/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
56
56
  var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
57
57
  var outputOf = /* @__PURE__ */ __name((command) => {
58
58
  const entity = answerEntitySchema(command);