@wirecat/mail-cli 0.38.0 → 0.39.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.
- package/CHANGELOG.md +27 -0
- package/README.md +9 -7
- package/contracts/wirecat.json +63 -2
- package/dist/bin/mail.js +11 -11
- package/dist/bundle/{chunk-HIKPVWCL.js → chunk-BXH2YUBR.js} +32 -5
- package/dist/bundle/mail.js +4 -166
- package/dist/bundle/program-ZSF2VJI6.js +17329 -0
- package/dist/commands/account-remove.js +1 -2
- package/dist/commands/account.js +1 -1
- package/dist/commands/attachments.js +1 -2
- package/dist/commands/context.js +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/drafts-send.js +1 -2
- package/dist/commands/drafts.js +1 -2
- package/dist/commands/export.js +1 -2
- package/dist/commands/folders.js +1 -2
- package/dist/commands/import.js +1 -1
- package/dist/commands/messages.js +1 -1
- package/dist/commands/organising.js +1 -2
- package/dist/commands/read.js +2 -4
- package/dist/commands/restore.js +1 -1
- package/dist/commands/rules.js +1 -2
- package/dist/commands/send.js +1 -2
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session.js +1 -1
- package/dist/commands/stats.js +1 -1
- package/dist/commands/status.js +3 -5
- package/dist/commands/sync.js +1 -1
- package/dist/commands/tags.js +1 -2
- package/dist/config.js +1 -1
- package/dist/identity.js +26 -0
- package/dist/mail/changes.js +3 -2
- package/dist/mail/cleanup.js +3 -2
- package/dist/mail/domain-age.js +1 -1
- package/dist/mail/memo-trash.js +47 -0
- package/dist/mail/organise.js +1 -1
- package/dist/mail/save.js +1 -1
- package/dist/mail/send.js +1 -1
- package/dist/oauth.js +1 -3
- package/dist/profile.js +1 -1
- package/dist/program.js +1 -2
- package/dist/providers.js +4 -4
- package/dist/store.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/dist/bin/mail.d.ts +0 -3
- package/dist/bin/mail.d.ts.map +0 -1
- package/dist/bin/mail.js.map +0 -1
- package/dist/bundle/agent-U43CYLAP.js +0 -41
- package/dist/bundle/all-profiles-OCUZMXMI.js +0 -320
- package/dist/bundle/anthropic-CABWJABQ.js +0 -90
- package/dist/bundle/app-server-TTWPIGWG.js +0 -257
- package/dist/bundle/bun-F4M4KCNA.js +0 -169
- package/dist/bundle/bun-sqlite-YKYG25CR.js +0 -75
- package/dist/bundle/chunk-24UGTK32.js +0 -185
- package/dist/bundle/chunk-2HDXD6LM.js +0 -615
- package/dist/bundle/chunk-2SQLHBDP.js +0 -54
- package/dist/bundle/chunk-2YO3PLOE.js +0 -2843
- package/dist/bundle/chunk-3TYER5IK.js +0 -80
- package/dist/bundle/chunk-4FXDUXZP.js +0 -192
- package/dist/bundle/chunk-5ICUC66S.js +0 -76
- package/dist/bundle/chunk-725OPCHI.js +0 -4070
- package/dist/bundle/chunk-77YTUOKN.js +0 -1255
- package/dist/bundle/chunk-7ECP5ZQR.js +0 -2
- package/dist/bundle/chunk-7EJWHADX.js +0 -323
- package/dist/bundle/chunk-7KO5FSAW.js +0 -64
- package/dist/bundle/chunk-A3KNH3Q4.js +0 -353
- package/dist/bundle/chunk-AGO3OVKW.js +0 -40856
- package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
- package/dist/bundle/chunk-BA5B5ZF4.js +0 -12177
- package/dist/bundle/chunk-C4PUDTGD.js +0 -106
- package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
- package/dist/bundle/chunk-CJJFOT7W.js +0 -52
- package/dist/bundle/chunk-CLTFTGBP.js +0 -560
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DKGKPJA3.js +0 -3752
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DPV53EZC.js +0 -206
- package/dist/bundle/chunk-DYCE72XB.js +0 -794
- package/dist/bundle/chunk-EDWY73H7.js +0 -133
- package/dist/bundle/chunk-EJQAP6A6.js +0 -1007
- package/dist/bundle/chunk-ESNZL7SB.js +0 -330
- package/dist/bundle/chunk-FFER7KJI.js +0 -407
- package/dist/bundle/chunk-FTH6WGYO.js +0 -24
- package/dist/bundle/chunk-FWGNDKJK.js +0 -195
- package/dist/bundle/chunk-G46PNDWL.js +0 -58
- package/dist/bundle/chunk-G5HG7ZWQ.js +0 -1169
- package/dist/bundle/chunk-G6NY7LFB.js +0 -230
- package/dist/bundle/chunk-GMWKNWWY.js +0 -388
- package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
- package/dist/bundle/chunk-HFDDVGDH.js +0 -9512
- package/dist/bundle/chunk-HFRH5YJ6.js +0 -86
- package/dist/bundle/chunk-HI6MTNID.js +0 -338
- package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HUAHLO6N.js +0 -29
- package/dist/bundle/chunk-HYUUAH2N.js +0 -188
- package/dist/bundle/chunk-I4AWLFYH.js +0 -377
- package/dist/bundle/chunk-I4PZOWYG.js +0 -334
- package/dist/bundle/chunk-IDCZ4LWS.js +0 -150
- package/dist/bundle/chunk-ISQ23VKV.js +0 -123
- package/dist/bundle/chunk-KLRCTMES.js +0 -100
- package/dist/bundle/chunk-KP5JDYY6.js +0 -2669
- package/dist/bundle/chunk-KYRYD4CR.js +0 -38
- package/dist/bundle/chunk-LB2CF3GG.js +0 -730
- package/dist/bundle/chunk-LC7ZD2RW.js +0 -92
- package/dist/bundle/chunk-M65NILSA.js +0 -259
- package/dist/bundle/chunk-NQFG7AES.js +0 -364
- package/dist/bundle/chunk-OAO3JKQD.js +0 -463
- package/dist/bundle/chunk-OEEWVKJX.js +0 -53
- package/dist/bundle/chunk-OVHC7OV4.js +0 -218
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PT4VLN3K.js +0 -161
- package/dist/bundle/chunk-QETNCUWB.js +0 -1703
- package/dist/bundle/chunk-QK3Z7BCC.js +0 -95
- package/dist/bundle/chunk-QWF3TFW4.js +0 -1342
- package/dist/bundle/chunk-RHEDE7D4.js +0 -80
- package/dist/bundle/chunk-RI5YZ23Y.js +0 -1068
- package/dist/bundle/chunk-ROUZN6UQ.js +0 -1997
- package/dist/bundle/chunk-RQD7CAGF.js +0 -288
- package/dist/bundle/chunk-S6JG4YUH.js +0 -72
- package/dist/bundle/chunk-SBLHQAH3.js +0 -360
- package/dist/bundle/chunk-SXLIADMY.js +0 -52
- package/dist/bundle/chunk-SYCM6SQ5.js +0 -2470
- package/dist/bundle/chunk-T3W4V4A6.js +0 -63
- package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
- package/dist/bundle/chunk-TES7MB6I.js +0 -82
- package/dist/bundle/chunk-TQDSBLQB.js +0 -2
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-UGFMQWAZ.js +0 -1044
- package/dist/bundle/chunk-VA6PHTMV.js +0 -690
- package/dist/bundle/chunk-VK24UQSD.js +0 -142
- package/dist/bundle/chunk-VUHH4MQW.js +0 -73464
- package/dist/bundle/chunk-W3BOR6AT.js +0 -2333
- package/dist/bundle/chunk-WA53OJ7V.js +0 -160
- package/dist/bundle/chunk-XGVMQMTS.js +0 -1197
- package/dist/bundle/chunk-XQUUANA2.js +0 -24600
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-YP4FYLFI.js +0 -170
- package/dist/bundle/chunk-ZDBWBCEO.js +0 -108
- package/dist/bundle/chunk-ZKVUAH5N.js +0 -274
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/command-contract-V2WIL6RL.js +0 -40
- package/dist/bundle/command-server-entry-ZC5YF4EC.js +0 -169
- package/dist/bundle/decode-NXAGEUAD.js +0 -296
- package/dist/bundle/dispatch-USKS7J74.js +0 -411
- package/dist/bundle/dist-HFUVURJG.js +0 -7577
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XN2CRP3U.js +0 -318
- package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
- package/dist/bundle/embed-3P3LSM2O.js +0 -37
- package/dist/bundle/embedder-2SANUF2X.js +0 -110
- package/dist/bundle/failure-D4FGOIWF.js +0 -24
- package/dist/bundle/first-run-HEZKQLJL.js +0 -28
- package/dist/bundle/first-screen-7TQZ4I6X.js +0 -41
- package/dist/bundle/instructions-4H7UREH2.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-HF2NL4PU.js +0 -26
- package/dist/bundle/meeting-model-B7RVFB7L.js +0 -24
- package/dist/bundle/meeting-semantic-YQTL7YVQ.js +0 -21
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-P3PUHKYH.js +0 -176
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-OFHTCHJH.js +0 -73
- package/dist/bundle/oauth-IVB5RP7T.js +0 -19
- package/dist/bundle/open-KDGDLCWV.js +0 -22
- package/dist/bundle/openai-NVUBKA7Z.js +0 -237
- package/dist/bundle/process-AFIXYXWL.js +0 -91
- package/dist/bundle/program-JQ7EFODJ.js +0 -47008
- package/dist/bundle/prompt-QG7FC2SA.js +0 -16
- package/dist/bundle/public-FBD7MQUM.js +0 -204
- package/dist/bundle/recognize-ZBR5KNID.js +0 -25
- package/dist/bundle/remote-QOTHNO2M.js +0 -30
- package/dist/bundle/rerank-JD2NIUW6.js +0 -51
- package/dist/bundle/serve-QZT3FKK7.js +0 -198
- package/dist/bundle/server-M6JJ7IKS.js +0 -219
- package/dist/bundle/server-TAMXMWK6.js +0 -87
- package/dist/bundle/sqlite-runtime-N2PY7C7J.js +0 -19
- package/dist/bundle/state-OGRUMU7P.js +0 -35
- package/dist/bundle/store-7UE63OQR.js +0 -313
- package/dist/bundle/store-DGJKE4ZJ.js +0 -186
- package/dist/bundle/store-maintenance-command-WIDKMZLK.js +0 -74
- package/dist/bundle/surface-LTEEEZU4.js +0 -73
- package/dist/commands/account-remove.d.ts +0 -3
- package/dist/commands/account-remove.d.ts.map +0 -1
- package/dist/commands/account-remove.js.map +0 -1
- package/dist/commands/account.d.ts +0 -3
- package/dist/commands/account.d.ts.map +0 -1
- package/dist/commands/account.js.map +0 -1
- package/dist/commands/attachments.d.ts +0 -3
- package/dist/commands/attachments.d.ts.map +0 -1
- package/dist/commands/attachments.js.map +0 -1
- package/dist/commands/context.d.ts +0 -79
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -68
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drafts-send.d.ts +0 -7
- package/dist/commands/drafts-send.d.ts.map +0 -1
- package/dist/commands/drafts-send.js.map +0 -1
- package/dist/commands/drafts.d.ts +0 -3
- package/dist/commands/drafts.d.ts.map +0 -1
- package/dist/commands/drafts.js.map +0 -1
- package/dist/commands/export.d.ts +0 -3
- package/dist/commands/export.d.ts.map +0 -1
- package/dist/commands/export.js.map +0 -1
- package/dist/commands/folders.d.ts +0 -3
- package/dist/commands/folders.d.ts.map +0 -1
- package/dist/commands/folders.js.map +0 -1
- package/dist/commands/import.d.ts +0 -3
- package/dist/commands/import.d.ts.map +0 -1
- package/dist/commands/import.js.map +0 -1
- package/dist/commands/login.d.ts +0 -5
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/mailbox.d.ts +0 -17
- package/dist/commands/mailbox.d.ts.map +0 -1
- package/dist/commands/mailbox.js.map +0 -1
- package/dist/commands/messages.d.ts +0 -4
- package/dist/commands/messages.d.ts.map +0 -1
- package/dist/commands/messages.js.map +0 -1
- package/dist/commands/organising.d.ts +0 -98
- package/dist/commands/organising.d.ts.map +0 -1
- package/dist/commands/organising.js.map +0 -1
- package/dist/commands/read.d.ts +0 -6
- package/dist/commands/read.d.ts.map +0 -1
- package/dist/commands/read.js.map +0 -1
- package/dist/commands/restore.d.ts +0 -3
- package/dist/commands/restore.d.ts.map +0 -1
- package/dist/commands/restore.js.map +0 -1
- package/dist/commands/rules.d.ts +0 -3
- package/dist/commands/rules.d.ts.map +0 -1
- package/dist/commands/rules.js.map +0 -1
- package/dist/commands/send.d.ts +0 -51
- package/dist/commands/send.d.ts.map +0 -1
- package/dist/commands/send.js.map +0 -1
- package/dist/commands/server-search.d.ts +0 -8
- package/dist/commands/server-search.d.ts.map +0 -1
- package/dist/commands/server-search.js.map +0 -1
- package/dist/commands/session-start.d.ts +0 -3
- package/dist/commands/session-start.d.ts.map +0 -1
- package/dist/commands/session-start.js.map +0 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.d.ts.map +0 -1
- package/dist/commands/session.js.map +0 -1
- package/dist/commands/stats.d.ts +0 -3
- package/dist/commands/stats.d.ts.map +0 -1
- package/dist/commands/stats.js.map +0 -1
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -11
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/tags.d.ts +0 -3
- package/dist/commands/tags.d.ts.map +0 -1
- package/dist/commands/tags.js.map +0 -1
- package/dist/commands/words.d.ts +0 -8
- package/dist/commands/words.d.ts.map +0 -1
- package/dist/commands/words.js.map +0 -1
- package/dist/config.d.ts +0 -239
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/discovery.d.ts +0 -31
- package/dist/discovery.d.ts.map +0 -1
- package/dist/discovery.js.map +0 -1
- package/dist/export/format.d.ts +0 -19
- package/dist/export/format.d.ts.map +0 -1
- package/dist/export/format.js.map +0 -1
- package/dist/export/journal.d.ts +0 -34
- package/dist/export/journal.d.ts.map +0 -1
- package/dist/export/journal.js.map +0 -1
- package/dist/export/write.d.ts +0 -14
- package/dist/export/write.d.ts.map +0 -1
- package/dist/export/write.js.map +0 -1
- package/dist/identity.d.ts +0 -7
- package/dist/identity.d.ts.map +0 -1
- package/dist/identity.js.map +0 -1
- package/dist/mail/backend.d.ts +0 -138
- package/dist/mail/backend.d.ts.map +0 -1
- package/dist/mail/backend.js.map +0 -1
- package/dist/mail/changes.d.ts +0 -99
- package/dist/mail/changes.d.ts.map +0 -1
- package/dist/mail/changes.js.map +0 -1
- package/dist/mail/cleanup.d.ts +0 -41
- package/dist/mail/cleanup.d.ts.map +0 -1
- package/dist/mail/cleanup.js.map +0 -1
- package/dist/mail/compose.d.ts +0 -75
- package/dist/mail/compose.d.ts.map +0 -1
- package/dist/mail/compose.js.map +0 -1
- package/dist/mail/domain-age.d.ts +0 -29
- package/dist/mail/domain-age.d.ts.map +0 -1
- package/dist/mail/domain-age.js.map +0 -1
- package/dist/mail/drafts.d.ts +0 -54
- package/dist/mail/drafts.d.ts.map +0 -1
- package/dist/mail/drafts.js.map +0 -1
- package/dist/mail/imap/account.d.ts +0 -5
- package/dist/mail/imap/account.d.ts.map +0 -1
- package/dist/mail/imap/account.js.map +0 -1
- package/dist/mail/imap/connection.d.ts +0 -72
- package/dist/mail/imap/connection.d.ts.map +0 -1
- package/dist/mail/imap/connection.js.map +0 -1
- package/dist/mail/imap/errors.d.ts +0 -11
- package/dist/mail/imap/errors.d.ts.map +0 -1
- package/dist/mail/imap/errors.js.map +0 -1
- package/dist/mail/imap/index.d.ts +0 -7
- package/dist/mail/imap/index.d.ts.map +0 -1
- package/dist/mail/imap/index.js.map +0 -1
- package/dist/mail/imap/messages.d.ts +0 -17
- package/dist/mail/imap/messages.d.ts.map +0 -1
- package/dist/mail/imap/messages.js.map +0 -1
- package/dist/mail/imap/read.d.ts +0 -7
- package/dist/mail/imap/read.d.ts.map +0 -1
- package/dist/mail/imap/read.js.map +0 -1
- package/dist/mail/imap/search.d.ts +0 -19
- package/dist/mail/imap/search.d.ts.map +0 -1
- package/dist/mail/imap/search.js.map +0 -1
- package/dist/mail/imap/write.d.ts +0 -5
- package/dist/mail/imap/write.d.ts.map +0 -1
- package/dist/mail/imap/write.js.map +0 -1
- package/dist/mail/locate.d.ts +0 -32
- package/dist/mail/locate.d.ts.map +0 -1
- package/dist/mail/locate.js.map +0 -1
- package/dist/mail/mbox.d.ts +0 -9
- package/dist/mail/mbox.d.ts.map +0 -1
- package/dist/mail/mbox.js.map +0 -1
- package/dist/mail/organise.d.ts +0 -101
- package/dist/mail/organise.d.ts.map +0 -1
- package/dist/mail/organise.js.map +0 -1
- package/dist/mail/restore.d.ts +0 -22
- package/dist/mail/restore.d.ts.map +0 -1
- package/dist/mail/restore.js.map +0 -1
- package/dist/mail/rethread.d.ts +0 -14
- package/dist/mail/rethread.d.ts.map +0 -1
- package/dist/mail/rethread.js.map +0 -1
- package/dist/mail/rules/apply.d.ts +0 -48
- package/dist/mail/rules/apply.d.ts.map +0 -1
- package/dist/mail/rules/apply.js.map +0 -1
- package/dist/mail/rules/file.d.ts +0 -9
- package/dist/mail/rules/file.d.ts.map +0 -1
- package/dist/mail/rules/file.js.map +0 -1
- package/dist/mail/rules/filters.d.ts +0 -11
- package/dist/mail/rules/filters.d.ts.map +0 -1
- package/dist/mail/rules/filters.js.map +0 -1
- package/dist/mail/rules/folders.d.ts +0 -11
- package/dist/mail/rules/folders.d.ts.map +0 -1
- package/dist/mail/rules/folders.js.map +0 -1
- package/dist/mail/rules/query.d.ts +0 -16
- package/dist/mail/rules/query.d.ts.map +0 -1
- package/dist/mail/rules/query.js.map +0 -1
- package/dist/mail/rules/store.d.ts +0 -9
- package/dist/mail/rules/store.d.ts.map +0 -1
- package/dist/mail/rules/store.js.map +0 -1
- package/dist/mail/save.d.ts +0 -9
- package/dist/mail/save.d.ts.map +0 -1
- package/dist/mail/save.js.map +0 -1
- package/dist/mail/send-as.d.ts +0 -21
- package/dist/mail/send-as.d.ts.map +0 -1
- package/dist/mail/send-as.js.map +0 -1
- package/dist/mail/send.d.ts +0 -76
- package/dist/mail/send.d.ts.map +0 -1
- package/dist/mail/send.js.map +0 -1
- package/dist/mail/smtp.d.ts +0 -4
- package/dist/mail/smtp.d.ts.map +0 -1
- package/dist/mail/smtp.js.map +0 -1
- package/dist/oauth.d.ts +0 -75
- package/dist/oauth.d.ts.map +0 -1
- package/dist/oauth.js.map +0 -1
- package/dist/profile.d.ts +0 -20
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js.map +0 -1
- package/dist/program.d.ts +0 -6
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js.map +0 -1
- package/dist/providers.d.ts +0 -255
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js.map +0 -1
- package/dist/reasons.d.ts +0 -9
- package/dist/reasons.d.ts.map +0 -1
- package/dist/reasons.js.map +0 -1
- package/dist/secret.d.ts +0 -31
- package/dist/secret.d.ts.map +0 -1
- package/dist/secret.js.map +0 -1
- package/dist/store.d.ts +0 -12
- package/dist/store.d.ts.map +0 -1
- package/dist/store.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/wcat.d.ts +0 -3
- package/dist/wcat.d.ts.map +0 -1
- package/dist/wcat.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.39.0 — 28.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **WireCat Desktop can run this tool's MCP server.** The manifest names the server's port, 8753, so Desktop starts
|
|
10
|
+
and stops the server from the tool page, like the other WireCat tools. Before, Desktop had no port for it and offered
|
|
11
|
+
no server. It needs a Desktop that reads the port from the manifest.
|
|
12
|
+
- **The manifest says how Desktop signs in and how often it syncs.** Three sign-in methods, as Desktop's own list has
|
|
13
|
+
them: Microsoft, Gmail and another mail server, each `{profile} session start --json --answer-stdin` with
|
|
14
|
+
`--address`. Gmail also takes `--client-file` and `--method oauth`, and Microsoft names the `microsoft_client_id`
|
|
15
|
+
setting. The sync timer starts at every 5 minutes, with choices from 5 minutes to 24 hours. Desktop keeps its own
|
|
16
|
+
list only as a fallback.
|
|
17
|
+
- **Built on cli-base 1.2.0** (was 1.0.0), which writes the port, the sign-in methods and the timer into the manifest.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **The mailbox steps `session start` prints are plainer.** They no longer say what a provider's help page leaves
|
|
22
|
+
out, and the Microsoft 365 step names its IMAP server outright.
|
|
23
|
+
- **The guides say plainly what an agent over MCP may do.** A change set to `ask` runs without a question once the
|
|
24
|
+
agent passes `--yes`; `deny` or `readonly` stops it. The main guide, the settings, the security page and the
|
|
25
|
+
troubleshooting page say so, and the troubleshooting page is now grouped by what went wrong.
|
|
26
|
+
- **memo's old cleanup runs are read from the wcat folder.** memo is now `wcat`, and its state folder moves from
|
|
27
|
+
`cli-memo` to `wcat`. mail-cli reads `mail-trash` there. When only the old `cli-memo/mail-trash` exists, mail-cli
|
|
28
|
+
moves it first. When both exist, nothing is merged: it warns once and reads the new one.
|
|
29
|
+
- mail no longer carries its own copy of cli-core: built on @wirecat/cli-core 3.0.0 and @wirecat/cli-base 2.1.0,
|
|
30
|
+
needed for WireCat store version 79.
|
|
31
|
+
|
|
5
32
|
## 0.38.0 — 27.11.2026
|
|
6
33
|
|
|
7
34
|
### Added
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ mail personal search messages invoice # search the stored mail
|
|
|
35
35
|
mail skill install # optional: instructions for your AI agent
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Now the mail is in the store. `messages show` with the `ref` a search hit gives reads that email whole. [memo](https://
|
|
38
|
+
Now the mail is in the store. `messages show` with the `ref` a search hit gives reads that email whole. [memo](https://wirecat.dev/en/docs/memo/mail)
|
|
39
39
|
searches it together with your messages and notes: `memo search all "invoice"`.
|
|
40
40
|
|
|
41
41
|
You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no install, run
|
|
@@ -49,7 +49,7 @@ You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no instal
|
|
|
49
49
|
query language of every WireCat CLI, with `list:` for mailing lists; `messages show` gives an email whole with its
|
|
50
50
|
attachments' text, `conversations list|show` its threads. It searches the profile's mailbox only; it also asks the mail server
|
|
51
51
|
for mail `sync` has not read yet, and `--backend archive` keeps to the store.
|
|
52
|
-
[memo](https://
|
|
52
|
+
[memo](https://wirecat.dev/en/docs/memo/mail) searches every mailbox together with your messages and notes.
|
|
53
53
|
- **Export to mbox or Maildir.** `messages export 'from:ann@example.com' --output-dir ~/mail-backup` reads the original
|
|
54
54
|
messages from the server into a private folder, one mbox file per folder or a Maildir++ tree for mu and notmuch;
|
|
55
55
|
it can be resumed and bounded. `stats messages top --by list` ranks senders, lists and domains.
|
|
@@ -90,7 +90,8 @@ mail personal mcp config # the entry for Claude Desktop,
|
|
|
90
90
|
`mcp add` stops until you pass `--allow-writes`, because the server's `write` tool runs commands that change the
|
|
91
91
|
mailbox (`messages move`, `messages delete`, `folders create`) and local settings (`config set`, `skill install`).
|
|
92
92
|
`sync` runs through `read`: it writes only into the store. Check the profile's permissions first: a deletion, or a
|
|
93
|
-
change of many messages, answers with a preview until the call says `yes
|
|
93
|
+
change of many messages, answers with a preview until the call says `yes`, and then it runs without asking you. Set
|
|
94
|
+
`mail personal config set permissions.messages.delete deny` to keep an agent from deleting mail.
|
|
94
95
|
|
|
95
96
|
Every command except `mcp serve` takes `--json` and answers one JSON value on stdout; errors are JSON on stderr with a code to branch
|
|
96
97
|
on. Over MCP an agent finds the commands with a search tool and runs them through a `read` and a `write` tool; the
|
|
@@ -105,9 +106,10 @@ as data, never as instructions.
|
|
|
105
106
|
search in memo finds a person's mail and messages together.
|
|
106
107
|
- **Changes you can undo.** `messages delete` goes to Trash, and every change run keeps a record that
|
|
107
108
|
`messages restore` plays back. What is lost for good is named so and previewed first: `drafts delete`, and
|
|
108
|
-
`folders delete` of a folder that holds mail, which only the owner can run (`--allow-dangerous`). The profile's permissions
|
|
109
|
-
`MAIL_READ_ONLY=1`
|
|
110
|
-
MCP mails only you until you
|
|
109
|
+
`folders delete` of a folder that holds mail, which only the owner can run (`--allow-dangerous`). The profile's permissions
|
|
110
|
+
and `MAIL_READ_ONLY=1` stand between an agent and the mailbox: over MCP a change set to `ask` runs once the agent
|
|
111
|
+
confirms it, so set `deny` or `readonly` for what an agent must not do. An agent over MCP mails only you until you
|
|
112
|
+
allow more.
|
|
111
113
|
- **It works with the mailbox you have.** The [providers](https://github.com/WireCatLabs/mail-cli/blob/main/docs/providers.md)
|
|
112
114
|
it knows, and other servers with IMAP and app passwords; the server of a domain it does not know is found for you.
|
|
113
115
|
|
|
@@ -185,7 +187,7 @@ See [when something goes wrong](https://github.com/WireCatLabs/mail-cli/blob/mai
|
|
|
185
187
|
| Section | Pages |
|
|
186
188
|
|---|---|
|
|
187
189
|
| Start | [overview](https://github.com/WireCatLabs/mail-cli/blob/main/docs/index.md) · [install](https://github.com/WireCatLabs/mail-cli/blob/main/docs/installation.md) |
|
|
188
|
-
| Guides | [use
|
|
190
|
+
| Guides | [everyday use](https://github.com/WireCatLabs/mail-cli/blob/main/docs/usage.md) · [prepare the mailbox](https://github.com/WireCatLabs/mail-cli/blob/main/docs/providers.md) · [connect Outlook](https://github.com/WireCatLabs/mail-cli/blob/main/docs/outlook.md) |
|
|
189
191
|
| Reference | [all commands](https://github.com/WireCatLabs/mail-cli/blob/main/docs/commands.md) · [settings](https://github.com/WireCatLabs/mail-cli/blob/main/docs/configuration.md) |
|
|
190
192
|
| When something goes wrong | [troubleshooting](https://github.com/WireCatLabs/mail-cli/blob/main/docs/troubleshooting.md) · [security](https://github.com/WireCatLabs/mail-cli/blob/main/docs/security.md) |
|
|
191
193
|
| Project | [roadmap](https://github.com/WireCatLabs/mail-cli/blob/main/docs/roadmap.md) · [changelog](https://github.com/WireCatLabs/mail-cli/blob/main/CHANGELOG.md) |
|
package/contracts/wirecat.json
CHANGED
|
@@ -1230,7 +1230,51 @@
|
|
|
1230
1230
|
],
|
|
1231
1231
|
"signIn": {
|
|
1232
1232
|
"gives": "Lets your agent read and search your mail, and sort and send it as far as your settings allow. A Microsoft sign-in may not grant sending.",
|
|
1233
|
-
"asks": "Your mail address and an app password, or a Microsoft or Google sign-in in the browser."
|
|
1233
|
+
"asks": "Your mail address and an app password, or a Microsoft or Google sign-in in the browser.",
|
|
1234
|
+
"methods": [
|
|
1235
|
+
{
|
|
1236
|
+
"id": "microsoft",
|
|
1237
|
+
"label": "Microsoft",
|
|
1238
|
+
"words": [
|
|
1239
|
+
"{profile}",
|
|
1240
|
+
"session",
|
|
1241
|
+
"start",
|
|
1242
|
+
"--json",
|
|
1243
|
+
"--answer-stdin"
|
|
1244
|
+
],
|
|
1245
|
+
"address": "--address",
|
|
1246
|
+
"clientId": "microsoft_client_id"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"id": "gmail",
|
|
1250
|
+
"label": "Gmail",
|
|
1251
|
+
"words": [
|
|
1252
|
+
"{profile}",
|
|
1253
|
+
"session",
|
|
1254
|
+
"start",
|
|
1255
|
+
"--json",
|
|
1256
|
+
"--answer-stdin"
|
|
1257
|
+
],
|
|
1258
|
+
"address": "--address",
|
|
1259
|
+
"clientFile": "--client-file",
|
|
1260
|
+
"oauth": [
|
|
1261
|
+
"--method",
|
|
1262
|
+
"oauth"
|
|
1263
|
+
]
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"id": "imap",
|
|
1267
|
+
"label": "Another mail server",
|
|
1268
|
+
"words": [
|
|
1269
|
+
"{profile}",
|
|
1270
|
+
"session",
|
|
1271
|
+
"start",
|
|
1272
|
+
"--json",
|
|
1273
|
+
"--answer-stdin"
|
|
1274
|
+
],
|
|
1275
|
+
"address": "--address"
|
|
1276
|
+
}
|
|
1277
|
+
]
|
|
1234
1278
|
},
|
|
1235
1279
|
"skill": {
|
|
1236
1280
|
"status": [
|
|
@@ -1254,6 +1298,7 @@
|
|
|
1254
1298
|
]
|
|
1255
1299
|
},
|
|
1256
1300
|
"mcpServer": {
|
|
1301
|
+
"port": 8753,
|
|
1257
1302
|
"start": [
|
|
1258
1303
|
"mcp",
|
|
1259
1304
|
"server",
|
|
@@ -1319,7 +1364,23 @@
|
|
|
1319
1364
|
],
|
|
1320
1365
|
"lastShape": "runs",
|
|
1321
1366
|
"what": "mail",
|
|
1322
|
-
"note": null
|
|
1367
|
+
"note": null,
|
|
1368
|
+
"schedule": {
|
|
1369
|
+
"every": "5m",
|
|
1370
|
+
"choices": [
|
|
1371
|
+
"5m",
|
|
1372
|
+
"15m",
|
|
1373
|
+
"30m",
|
|
1374
|
+
"1h",
|
|
1375
|
+
"2h",
|
|
1376
|
+
"4h",
|
|
1377
|
+
"8h",
|
|
1378
|
+
"24h"
|
|
1379
|
+
],
|
|
1380
|
+
"args": [
|
|
1381
|
+
"sync"
|
|
1382
|
+
]
|
|
1383
|
+
}
|
|
1323
1384
|
},
|
|
1324
1385
|
"storeInfo": null,
|
|
1325
1386
|
"storeTables": null,
|
package/dist/bin/mail.js
CHANGED
|
@@ -9,15 +9,13 @@ 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.
|
|
12
|
+
process.stdout.write("0.39.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
16
16
|
const serves = ((words) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.slice(0, 4)
|
|
20
|
-
.some((word, at) => word === "serve" || word === "watch" || (word === "mcp" && plain[at + 1] === undefined));
|
|
17
|
+
const plain = words.filter((word) => !word.startsWith("-"));
|
|
18
|
+
return plain.slice(0, 4).some((word, at) => word === "serve" || word === "watch" || word === "mcp" && plain[at + 1] === void 0);
|
|
21
19
|
})(words)
|
|
22
20
|
if (serves && module.registerHooks) {
|
|
23
21
|
const bundle = new URL("../bundle/", import.meta.url).href
|
|
@@ -28,13 +26,15 @@ if (
|
|
|
28
26
|
: next(specifier, context),
|
|
29
27
|
})
|
|
30
28
|
}
|
|
31
|
-
const chunks = ["../bundle/
|
|
32
|
-
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const chunks = ["../bundle/program-ZSF2VJI6.js"]
|
|
30
|
+
const preload = () =>
|
|
31
|
+
Promise.allSettled([
|
|
32
|
+
...chunks.map((chunk) => import(chunk)),
|
|
33
|
+
...["@wirecat/cli-core/preload","@wirecat/cli-base/preload"].map((name) => import(name).then((loaded) => loaded.preload())),
|
|
34
|
+
])
|
|
35
|
+
if (((words) => words.filter((word) => !word.startsWith("-")).slice(0, 2).includes("upgrade"))(words)) await preload()
|
|
36
36
|
const running = import("../bundle/mail.js")
|
|
37
37
|
// After the server answers its first request, so it starts no later.
|
|
38
|
-
if (serves) setTimeout(() => void
|
|
38
|
+
if (serves) setTimeout(() => void preload(), 2000).unref()
|
|
39
39
|
await running
|
|
40
40
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./chunk-KP5JDYY6.js";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
5
|
|
|
7
6
|
// dist/reasons.js
|
|
7
|
+
import { defineReasons } from "@wirecat/cli-base/standards";
|
|
8
8
|
var ENTRIES = [
|
|
9
9
|
["mail.login-refused", "authentication_error", "the mail server refused the login"],
|
|
10
10
|
["mail.app-password-required", "authentication_error", "the server takes an app password, not the account password"],
|
|
@@ -57,7 +57,7 @@ var ENTRIES = [
|
|
|
57
57
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
58
58
|
|
|
59
59
|
// dist/version.js
|
|
60
|
-
var VERSION = "0.
|
|
60
|
+
var VERSION = "0.39.0";
|
|
61
61
|
|
|
62
62
|
// dist/identity.js
|
|
63
63
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -101,16 +101,43 @@ var DESKTOP = {
|
|
|
101
101
|
"smtp-mail.outlook.com"
|
|
102
102
|
],
|
|
103
103
|
userHosts: "the mail server you sign in to, your domain's autoconfig file, and each sender domain's registry from IANA's list",
|
|
104
|
+
// One port per WireCat tool, so two servers never collide (wirecat-desktop docs/dev/cli-registry.md).
|
|
105
|
+
mcpPort: 8753,
|
|
104
106
|
tagline: "Your mailbox over IMAP, searchable on your computer",
|
|
105
107
|
syncs: "mail",
|
|
108
|
+
syncSchedule: { every: "5m", choices: ["5m", "15m", "30m", "1h", "2h", "4h", "8h", "24h"], args: ["sync"] },
|
|
106
109
|
signIn: {
|
|
107
110
|
gives: "Lets your agent read and search your mail, and sort and send it as far as your settings allow. A Microsoft sign-in may not grant sending.",
|
|
108
|
-
asks: "Your mail address and an app password, or a Microsoft or Google sign-in in the browser."
|
|
111
|
+
asks: "Your mail address and an app password, or a Microsoft or Google sign-in in the browser.",
|
|
112
|
+
methods: [
|
|
113
|
+
{
|
|
114
|
+
id: "microsoft",
|
|
115
|
+
label: "Microsoft",
|
|
116
|
+
words: ["{profile}", "session", "start", "--json", "--answer-stdin"],
|
|
117
|
+
address: "--address",
|
|
118
|
+
clientId: "microsoft_client_id"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: "gmail",
|
|
122
|
+
label: "Gmail",
|
|
123
|
+
words: ["{profile}", "session", "start", "--json", "--answer-stdin"],
|
|
124
|
+
address: "--address",
|
|
125
|
+
clientFile: "--client-file",
|
|
126
|
+
oauth: ["--method", "oauth"]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "imap",
|
|
130
|
+
label: "Another mail server",
|
|
131
|
+
words: ["{profile}", "session", "start", "--json", "--answer-stdin"],
|
|
132
|
+
address: "--address"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
109
135
|
}
|
|
110
136
|
};
|
|
111
137
|
var SKILL = new URL("../skills/mail-cli/SKILL.md", new URL("../identity.js", import.meta.url).href);
|
|
112
138
|
|
|
113
139
|
export {
|
|
140
|
+
__name,
|
|
114
141
|
PACKAGE,
|
|
115
142
|
IDENTITY,
|
|
116
143
|
DESKTOP,
|
package/dist/bundle/mail.js
CHANGED
|
@@ -3,181 +3,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
installerOf
|
|
9
|
-
} from "./chunk-TXDR6YSF.js";
|
|
10
|
-
import "./chunk-DNCLQPOM.js";
|
|
11
|
-
import {
|
|
12
|
-
DESCRIBE_FLAG,
|
|
13
|
-
DISPATCH_FLAG,
|
|
14
|
-
PROGRAM_PREFIX,
|
|
15
|
-
SHIM_FORMAT,
|
|
16
|
-
describeAnswer,
|
|
17
|
-
exists,
|
|
18
|
-
fileState,
|
|
19
|
-
shimFiles,
|
|
20
|
-
writeShim
|
|
21
|
-
} from "./chunk-DPV53EZC.js";
|
|
22
|
-
import "./chunk-2YO3PLOE.js";
|
|
23
|
-
import {
|
|
24
|
-
catchCrashes
|
|
25
|
-
} from "./chunk-KP5JDYY6.js";
|
|
26
|
-
import "./chunk-Y5E2WNWB.js";
|
|
27
|
-
import "./chunk-S6JG4YUH.js";
|
|
28
|
-
import {
|
|
29
|
-
__name
|
|
30
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
} from "./chunk-BXH2YUBR.js";
|
|
31
7
|
|
|
32
8
|
// dist/bin/mail.js
|
|
33
9
|
import { enableCompileCache } from "node:module";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import { createHash } from "node:crypto";
|
|
37
|
-
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
38
|
-
import { dirname as dirname2, join as join2 } from "node:path";
|
|
39
|
-
import { fileURLToPath } from "node:url";
|
|
40
|
-
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
|
|
42
|
-
import { readFileSync } from "node:fs";
|
|
43
|
-
import { basename, dirname, join, resolve } from "node:path";
|
|
44
|
-
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
45
|
-
var pnpmHome = /* @__PURE__ */ __name((path, env) => {
|
|
46
|
-
const home = env.PNPM_HOME;
|
|
47
|
-
return home && path.startsWith(`${posix(home).replace(/\/+$/, "")}/`) ? home : void 0;
|
|
48
|
-
}, "pnpmHome");
|
|
49
|
-
var layoutFolders = /* @__PURE__ */ __name((script, env) => {
|
|
50
|
-
const path = posix(script);
|
|
51
|
-
const home = pnpmHome(path, env);
|
|
52
|
-
if (home)
|
|
53
|
-
return [join(home, "bin"), home];
|
|
54
|
-
switch (installerOf(script)) {
|
|
55
|
-
case "bun":
|
|
56
|
-
return [`${path.slice(0, path.indexOf("/install/global/node_modules/"))}/bin`];
|
|
57
|
-
case "npm": {
|
|
58
|
-
const root = path.slice(0, path.indexOf("/node_modules/"));
|
|
59
|
-
return [basename(root) === "lib" ? join(dirname(root), "bin") : root];
|
|
60
|
-
}
|
|
61
|
-
default:
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
}, "layoutFolders");
|
|
65
|
-
var binFolder = /* @__PURE__ */ __name(({ name, argv1, script, env, platform }) => {
|
|
66
|
-
if (!["npm", "pnpm", "bun"].includes(installerOf(script)) && !pnpmHome(posix(script), env))
|
|
67
|
-
return void 0;
|
|
68
|
-
const extensions = platform === "win32" ? [".cmd", ".exe"] : [""];
|
|
69
|
-
const candidates = [argv1 ? dirname(argv1) : void 0, ...layoutFolders(script, env)];
|
|
70
|
-
for (const dir of new Set(candidates)) {
|
|
71
|
-
if (dir === void 0 || basename(dir) === ".bin")
|
|
72
|
-
continue;
|
|
73
|
-
for (const extension of extensions) {
|
|
74
|
-
const program = `${PROGRAM_PREFIX}${name}${extension}`;
|
|
75
|
-
if (exists(join(dir, program)))
|
|
76
|
-
return { dir, program };
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return void 0;
|
|
80
|
-
}, "binFolder");
|
|
81
|
-
var installed = /* @__PURE__ */ __name((dir, program) => {
|
|
82
|
-
if (!exists(join(dir, program)))
|
|
83
|
-
return false;
|
|
84
|
-
if (!program.toLowerCase().endsWith(".exe"))
|
|
85
|
-
return true;
|
|
86
|
-
let script;
|
|
87
|
-
try {
|
|
88
|
-
script = readFileSync(join(dir, `${program.slice(0, -4)}.bunx`)).toString("utf16le").split('"')[0] ?? "";
|
|
89
|
-
} catch {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
if (script === "" || exists(resolve(dir, script)))
|
|
93
|
-
return true;
|
|
94
|
-
const at = posix(script).lastIndexOf("/install/global/node_modules/");
|
|
95
|
-
return at < 0 || exists(join(dirname(dir), posix(script).slice(at + 1)));
|
|
96
|
-
}, "installed");
|
|
97
|
-
var NAME = "wcat";
|
|
98
|
-
var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
99
|
-
try {
|
|
100
|
-
if (!exists(join(dir, program)))
|
|
101
|
-
return "failed";
|
|
102
|
-
const mine = shimFiles("launcher", { dir, name: NAME, target: program, platform });
|
|
103
|
-
const states = mine.map((file) => fileState(file.path));
|
|
104
|
-
if (states.some((one) => one.state === "foreign"))
|
|
105
|
-
return "foreign";
|
|
106
|
-
const ours = states.flatMap((one) => one.state === "ours" ? [one] : []);
|
|
107
|
-
if (ours.some(({ mark }) => mark.format > SHIM_FORMAT))
|
|
108
|
-
return "newer";
|
|
109
|
-
if (ours.some(({ mark }) => mark.kind !== "launcher"))
|
|
110
|
-
return "foreign";
|
|
111
|
-
const current = ours.find(({ mark }) => installed(dir, mark.target))?.mark.target;
|
|
112
|
-
const wanted = shimFiles("launcher", { dir, name: NAME, target: current ?? program, platform });
|
|
113
|
-
const stale = wanted.filter((file, at) => {
|
|
114
|
-
const state = states[at];
|
|
115
|
-
return state?.state !== "ours" || state.text !== file.text;
|
|
116
|
-
});
|
|
117
|
-
if (stale.length === 0)
|
|
118
|
-
return "kept";
|
|
119
|
-
for (const file of stale)
|
|
120
|
-
writeShim(file);
|
|
121
|
-
return "written";
|
|
122
|
-
} catch {
|
|
123
|
-
return "failed";
|
|
124
|
-
}
|
|
125
|
-
}, "ensureLauncher");
|
|
126
|
-
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
|
|
128
|
-
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
129
|
-
const argv = io.argv ?? process.argv;
|
|
130
|
-
const env = io.env ?? process.env;
|
|
131
|
-
const platform = io.platform ?? process.platform;
|
|
132
|
-
const stdout = io.stdout ?? process.stdout;
|
|
133
|
-
const [first, ...rest] = argv.slice(2);
|
|
134
|
-
if (first === DESCRIBE_FLAG) {
|
|
135
|
-
stdout.write(`${JSON.stringify(describeAnswer(tool, shippedManifest(argv[1])))}
|
|
136
|
-
`);
|
|
137
|
-
return { code: 0 };
|
|
138
|
-
}
|
|
139
|
-
if (first === DISPATCH_FLAG) {
|
|
140
|
-
const { runWcat } = await import("./dispatch-USKS7J74.js");
|
|
141
|
-
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
142
|
-
return { code };
|
|
143
|
-
}
|
|
144
|
-
const folder = binFolder({
|
|
145
|
-
name: tool.command,
|
|
146
|
-
argv1: argv[1],
|
|
147
|
-
script: io.script ?? fileURLToPath(new URL("wcat/start.js", import.meta.resolve("@wirecat/cli-base")).href),
|
|
148
|
-
env,
|
|
149
|
-
platform
|
|
150
|
-
});
|
|
151
|
-
return folder ? { launcher: ensureLauncher({ ...folder, platform }) } : {};
|
|
152
|
-
}, "wcatStart");
|
|
153
|
-
var shippedManifest = /* @__PURE__ */ __name((bin) => {
|
|
154
|
-
if (!bin)
|
|
155
|
-
return void 0;
|
|
156
|
-
try {
|
|
157
|
-
for (let dir = dirname2(realpathSync(bin)); ; dir = dirname2(dir)) {
|
|
158
|
-
if (existsSync(join2(dir, "package.json"))) {
|
|
159
|
-
const bytes = readFileSync2(join2(dir, "contracts", "wirecat.json"));
|
|
160
|
-
const { wcat_manifest: format, desktop } = JSON.parse(bytes.toString("utf8"));
|
|
161
|
-
if (format !== 2 || typeof desktop !== "object" || desktop === null)
|
|
162
|
-
return void 0;
|
|
163
|
-
return { desktop, sha256: createHash("sha256").update(bytes).digest("hex") };
|
|
164
|
-
}
|
|
165
|
-
if (dirname2(dir) === dir)
|
|
166
|
-
return void 0;
|
|
167
|
-
}
|
|
168
|
-
} catch {
|
|
169
|
-
return void 0;
|
|
170
|
-
}
|
|
171
|
-
}, "shippedManifest");
|
|
172
|
-
|
|
173
|
-
// dist/bin/mail.js
|
|
10
|
+
import { catchCrashes } from "@wirecat/cli-base";
|
|
11
|
+
import { wcatStart } from "@wirecat/cli-base/wcat/start";
|
|
174
12
|
enableCompileCache();
|
|
175
13
|
var wcat = await wcatStart(DESKTOP);
|
|
176
14
|
if (wcat.code !== void 0) {
|
|
177
15
|
process.exitCode = wcat.code;
|
|
178
16
|
} else {
|
|
179
17
|
const stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
|
|
180
|
-
const { run } = await import("./program-
|
|
18
|
+
const { run } = await import("./program-ZSF2VJI6.js");
|
|
181
19
|
try {
|
|
182
20
|
process.exitCode = await run(process.argv.slice(2));
|
|
183
21
|
} finally {
|