@wirecat/mail-cli 0.38.0 → 0.40.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 +38 -0
- package/README.md +12 -10
- package/contracts/wirecat.json +63 -2
- package/dist/bin/mail.js +11 -11
- package/dist/bundle/{chunk-HIKPVWCL.js → chunk-VI5G3S4Y.js} +32 -5
- package/dist/bundle/mail.js +4 -166
- package/dist/bundle/program-DWRLBUW5.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 +3 -5
- package/dist/commands/restore.js +2 -2
- package/dist/commands/rules.js +3 -4
- 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 +3 -4
- 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/skills/mail-cli/SKILL.md +3 -3
- 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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__name
|
|
5
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
-
|
|
7
|
-
// cli-dev-bundle:from:cli-dev-bundle:from
|
|
8
|
-
import * as module from "node:module";
|
|
9
|
-
import { dirname } from "node:path";
|
|
10
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
11
|
-
var resolveFrom = /* @__PURE__ */ __name((parent, specifier) => {
|
|
12
|
-
if (globalThis.Bun) {
|
|
13
|
-
if (specifier.includes(":")) return import.meta.resolve(specifier);
|
|
14
|
-
try {
|
|
15
|
-
return pathToFileURL(globalThis.Bun.resolveSync(specifier, dirname(fileURLToPath(parent)))).href;
|
|
16
|
-
} catch {
|
|
17
|
-
return import.meta.resolve(specifier);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (!module.registerHooks) return import.meta.resolve(specifier);
|
|
21
|
-
const hooks = module.registerHooks({
|
|
22
|
-
resolve: /* @__PURE__ */ __name((asked, context, next) => next(asked, asked === specifier ? { ...context, parentURL: parent } : context), "resolve")
|
|
23
|
-
});
|
|
24
|
-
try {
|
|
25
|
-
return import.meta.resolve(specifier);
|
|
26
|
-
} finally {
|
|
27
|
-
hooks.deregister();
|
|
28
|
-
}
|
|
29
|
-
}, "resolveFrom");
|
|
30
|
-
var importFrom = /* @__PURE__ */ __name(async (parent, specifier) => import(resolveFrom(parent, specifier)), "importFrom");
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
resolveFrom,
|
|
34
|
-
importFrom
|
|
35
|
-
};
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
formatMeetingReference
|
|
5
|
-
} from "./chunk-725OPCHI.js";
|
|
6
|
-
import {
|
|
7
|
-
CliError
|
|
8
|
-
} from "./chunk-S6JG4YUH.js";
|
|
9
|
-
import {
|
|
10
|
-
__name
|
|
11
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
12
|
-
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
|
-
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
|
-
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
|
-
throw new CliError("validation_error", `Invalid ${name}`);
|
|
17
|
-
return value;
|
|
18
|
-
}, "positive");
|
|
19
|
-
var cancel = /* @__PURE__ */ __name((signal) => {
|
|
20
|
-
if (signal?.aborted)
|
|
21
|
-
throw new CliError("cancelled", "Meeting semantic operation was cancelled");
|
|
22
|
-
}, "cancel");
|
|
23
|
-
var account = /* @__PURE__ */ __name((accountId) => positive(accountId, "authorized meeting account", Number.MAX_SAFE_INTEGER), "account");
|
|
24
|
-
var descriptor = /* @__PURE__ */ __name((model) => {
|
|
25
|
-
if (!model || typeof model.key !== "string" || !model.key.trim() || model.key.length > 1e3 || typeof model.model !== "string" || !model.model.trim() || !["local", "remote"].includes(model.kind))
|
|
26
|
-
throw new CliError("validation_error", "An explicit meeting embedding model is required");
|
|
27
|
-
return { key: model.key, model: model.model, kind: model.kind, dims: positive(model.dims, "model dimensions", 8192) };
|
|
28
|
-
}, "descriptor");
|
|
29
|
-
var textBudget = /* @__PURE__ */ __name((options) => ({
|
|
30
|
-
maxRows: positive(options.maxRows ?? 1e4, "transcript row budget", 1e5),
|
|
31
|
-
maxTextBytes: positive(options.maxTextBytes ?? 4 * 1024 * 1024, "transcript text byte budget", 64 * 1024 * 1024)
|
|
32
|
-
}), "textBudget");
|
|
33
|
-
var validateVector = /* @__PURE__ */ __name((vector, dims) => {
|
|
34
|
-
if (!(vector instanceof Float32Array) || vector.length !== dims || !vector.some((value) => value !== 0) || vector.some((value) => !Number.isFinite(value)))
|
|
35
|
-
throw new CliError("invalid_response", "Meeting model returned an invalid vector");
|
|
36
|
-
return vector;
|
|
37
|
-
}, "validateVector");
|
|
38
|
-
var readMeetingSemantic = /* @__PURE__ */ __name(async (store, accountId, query, embedder, options = {}) => {
|
|
39
|
-
const accountIdSnapshot = account(accountId);
|
|
40
|
-
const model = descriptor(embedder);
|
|
41
|
-
if (typeof query !== "string" || !query.trim() || Buffer.byteLength(query, "utf8") > 64 * 1024)
|
|
42
|
-
throw new CliError("validation_error", "Meeting semantic query requires 1\u201365536 UTF-8 bytes");
|
|
43
|
-
const limit = positive(options.limit ?? 20, "semantic result limit", 1e3);
|
|
44
|
-
const maxChunks = positive(options.maxChunks ?? 1e3, "semantic candidate budget", 1e4);
|
|
45
|
-
const afterChunkId = options.afterChunkId === void 0 ? void 0 : positive(options.afterChunkId, "semantic candidate cursor", Number.MAX_SAFE_INTEGER);
|
|
46
|
-
const budget = textBudget(options);
|
|
47
|
-
const signal = options.signal;
|
|
48
|
-
cancel(signal);
|
|
49
|
-
const vectors = await embedder.embed([query], "query");
|
|
50
|
-
cancel(signal);
|
|
51
|
-
if (vectors.length !== 1)
|
|
52
|
-
throw new CliError("invalid_response", "Meeting query model returned another vector count");
|
|
53
|
-
const vector = validateVector(vectors[0], model.dims);
|
|
54
|
-
const result = await store.nearest(model.key, vector, {
|
|
55
|
-
accountId: accountIdSnapshot,
|
|
56
|
-
limit,
|
|
57
|
-
maxChunks,
|
|
58
|
-
...budget,
|
|
59
|
-
...afterChunkId === void 0 ? {} : { afterChunkId },
|
|
60
|
-
...signal ? { signal } : {}
|
|
61
|
-
});
|
|
62
|
-
cancel(signal);
|
|
63
|
-
const items = result.items.map((hit) => {
|
|
64
|
-
positive(hit.meetingId, "semantic meeting ID", Number.MAX_SAFE_INTEGER);
|
|
65
|
-
positive(hit.transcriptId, "semantic transcript ID", Number.MAX_SAFE_INTEGER);
|
|
66
|
-
if (!Number.isSafeInteger(hit.firstPosition) || hit.firstPosition < 0 || !Number.isSafeInteger(hit.lastPosition) || hit.lastPosition < hit.firstPosition || !Number.isFinite(hit.score))
|
|
67
|
-
throw new CliError("invalid_response", "Meeting semantic hit contains invalid provenance");
|
|
68
|
-
const ref = {
|
|
69
|
-
type: "meeting",
|
|
70
|
-
accountId: accountIdSnapshot,
|
|
71
|
-
meetingId: hit.meetingId,
|
|
72
|
-
transcriptId: hit.transcriptId
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
...hit,
|
|
76
|
-
reference: formatMeetingReference(ref),
|
|
77
|
-
firstCueReference: formatMeetingReference({ ...ref, cuePosition: hit.firstPosition }),
|
|
78
|
-
lastCueReference: formatMeetingReference({ ...ref, cuePosition: hit.lastPosition })
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
return {
|
|
82
|
-
...result,
|
|
83
|
-
accountId: accountIdSnapshot,
|
|
84
|
-
model,
|
|
85
|
-
items,
|
|
86
|
-
coverage: {
|
|
87
|
-
scope: "current-indexed-vectors",
|
|
88
|
-
candidateScanComplete: result.complete,
|
|
89
|
-
indexCompleteness: "unknown",
|
|
90
|
-
archiveCompleteness: "unknown"
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}, "readMeetingSemantic");
|
|
94
|
-
var proposeMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, selected, options = {}) => {
|
|
95
|
-
const accountIdSnapshot = account(accountId);
|
|
96
|
-
const model = descriptor(selected);
|
|
97
|
-
const signal = options.signal;
|
|
98
|
-
cancel(signal);
|
|
99
|
-
const status = await store.status({ accountId: accountIdSnapshot, model: model.key, ...signal ? { signal } : {} });
|
|
100
|
-
cancel(signal);
|
|
101
|
-
return {
|
|
102
|
-
accountId: accountIdSnapshot,
|
|
103
|
-
model,
|
|
104
|
-
status,
|
|
105
|
-
applied: false,
|
|
106
|
-
scope: "existing-current-chunks",
|
|
107
|
-
rebuildRequired: "explicit"
|
|
108
|
-
};
|
|
109
|
-
}, "proposeMeetingEmbedding");
|
|
110
|
-
var applyMeetingEmbedding = /* @__PURE__ */ __name(async (store, accountId, embedder, options = {}) => {
|
|
111
|
-
const accountIdSnapshot = account(accountId);
|
|
112
|
-
const model = descriptor(embedder);
|
|
113
|
-
const maxChunks = positive(options.maxChunks ?? 100, "embedding chunk budget", 1e3);
|
|
114
|
-
const budget = textBudget(options);
|
|
115
|
-
const maxVectorBytes = positive(options.maxVectorBytes ?? 8 * 1024 * 1024, "vector payload byte budget", 64 * 1024 * 1024);
|
|
116
|
-
const afterHash = options.afterHash;
|
|
117
|
-
if (afterHash !== void 0 && !/^[0-9a-f]{64}$/.test(afterHash))
|
|
118
|
-
throw new CliError("validation_error", "Invalid embedding chunk cursor");
|
|
119
|
-
const signal = options.signal;
|
|
120
|
-
cancel(signal);
|
|
121
|
-
const page = await store.chunksToEmbed(model.key, {
|
|
122
|
-
accountId: accountIdSnapshot,
|
|
123
|
-
limit: maxChunks,
|
|
124
|
-
...budget,
|
|
125
|
-
...afterHash === void 0 ? {} : { afterHash },
|
|
126
|
-
...signal ? { signal } : {}
|
|
127
|
-
});
|
|
128
|
-
cancel(signal);
|
|
129
|
-
if (typeof page.hasMore !== "boolean" || page.nextHash !== void 0 && !/^[0-9a-f]{64}$/.test(page.nextHash) || page.hasMore && (page.items.length === 0 || page.nextHash === void 0))
|
|
130
|
-
throw new CliError("invalid_response", "Meeting chunk page cannot advance");
|
|
131
|
-
if (page.items.length > maxChunks || page.items.length * model.dims * 4 > maxVectorBytes)
|
|
132
|
-
throw new CliError("validation_error", "Embedding batch exceeds its chunk or vector payload budget");
|
|
133
|
-
const items = page.items.map(({ hash, text }) => ({ hash, text }));
|
|
134
|
-
if (items.some(({ hash, text }) => !/^[0-9a-f]{64}$/.test(hash) || typeof text !== "string") || new Set(items.map(({ hash }) => hash)).size !== items.length)
|
|
135
|
-
throw new CliError("invalid_response", "Meeting chunk page is invalid");
|
|
136
|
-
if (items.reduce((bytes, item) => bytes + Buffer.byteLength(item.text, "utf8"), 0) > budget.maxTextBytes)
|
|
137
|
-
throw new CliError("validation_error", "Embedding batch exceeds its text byte budget");
|
|
138
|
-
if (!items.length)
|
|
139
|
-
return {
|
|
140
|
-
accountId: accountIdSnapshot,
|
|
141
|
-
model,
|
|
142
|
-
saved: 0,
|
|
143
|
-
skipped: 0,
|
|
144
|
-
hasMore: page.hasMore,
|
|
145
|
-
...page.nextHash === void 0 ? {} : { nextHash: page.nextHash }
|
|
146
|
-
};
|
|
147
|
-
const vectors = await embedder.embed(items.map(({ text }) => text), "passage");
|
|
148
|
-
cancel(signal);
|
|
149
|
-
if (vectors.length !== items.length)
|
|
150
|
-
throw new CliError("invalid_response", "Meeting model returned another vector count");
|
|
151
|
-
const rows = items.map(({ hash }, index) => ({ hash, vector: validateVector(vectors[index], model.dims) }));
|
|
152
|
-
const saved = await store.saveCurrent(model.key, model.dims, rows, {
|
|
153
|
-
accountId: accountIdSnapshot,
|
|
154
|
-
...signal ? { signal } : {}
|
|
155
|
-
});
|
|
156
|
-
return {
|
|
157
|
-
accountId: accountIdSnapshot,
|
|
158
|
-
model,
|
|
159
|
-
...saved,
|
|
160
|
-
hasMore: page.hasMore,
|
|
161
|
-
...page.nextHash === void 0 ? {} : { nextHash: page.nextHash }
|
|
162
|
-
};
|
|
163
|
-
}, "applyMeetingEmbedding");
|
|
164
|
-
|
|
165
|
-
export {
|
|
166
|
-
validateVector,
|
|
167
|
-
readMeetingSemantic,
|
|
168
|
-
proposeMeetingEmbedding,
|
|
169
|
-
applyMeetingEmbedding
|
|
170
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CLIENT_INFO_META_KEY
|
|
5
|
-
} from "./chunk-PL5P7UKW.js";
|
|
6
|
-
import {
|
|
7
|
-
agentOf,
|
|
8
|
-
clientHash,
|
|
9
|
-
currentCaller
|
|
10
|
-
} from "./chunk-NQFG7AES.js";
|
|
11
|
-
import {
|
|
12
|
-
__name
|
|
13
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
-
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
|
-
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
|
-
const client = caller?.agent?.client?.name;
|
|
18
|
-
if (client && client !== "unknown")
|
|
19
|
-
return client;
|
|
20
|
-
const kind = caller?.agent?.kind;
|
|
21
|
-
return kind && kind !== "mcp-client" ? kind : fallback;
|
|
22
|
-
}, "callingAgent");
|
|
23
|
-
var CALLER_META_KEY = "wirecat.dev/caller";
|
|
24
|
-
var PROXY_CLIENT_NAME = "all-profiles";
|
|
25
|
-
var NAME = /^[\w .@()/+-]{1,64}$/;
|
|
26
|
-
var plain = /* @__PURE__ */ __name((value) => typeof value === "string" && NAME.test(value.trim()) ? value.trim() : void 0, "plain");
|
|
27
|
-
var clientFrom = /* @__PURE__ */ __name((value) => {
|
|
28
|
-
if (!value || typeof value !== "object")
|
|
29
|
-
return void 0;
|
|
30
|
-
const { name, version } = value;
|
|
31
|
-
const named = plain(name);
|
|
32
|
-
if (!named)
|
|
33
|
-
return void 0;
|
|
34
|
-
const versioned = plain(version);
|
|
35
|
-
return { name: named, ...versioned ? { version: versioned } : {} };
|
|
36
|
-
}, "clientFrom");
|
|
37
|
-
var callerOf = /* @__PURE__ */ __name((ctx, tool, source) => {
|
|
38
|
-
const meta = ctx?.mcpReq?._meta;
|
|
39
|
-
const requestId = ctx?.mcpReq?.id;
|
|
40
|
-
const initialized = source.client?.();
|
|
41
|
-
const proxied = initialized?.name === PROXY_CLIENT_NAME && !ctx?.http ? passedOn(meta?.[CALLER_META_KEY], tool) : void 0;
|
|
42
|
-
if (proxied)
|
|
43
|
-
return proxied;
|
|
44
|
-
const client = clientFrom(meta?.[CLIENT_INFO_META_KEY]) ?? clientFrom(initialized);
|
|
45
|
-
const mcp = /* @__PURE__ */ __name((connection) => ({
|
|
46
|
-
tool,
|
|
47
|
-
...requestId === void 0 ? {} : { request_id: String(requestId) },
|
|
48
|
-
...connection ? { connection_id: connection } : {}
|
|
49
|
-
}), "mcp");
|
|
50
|
-
const auth = ctx?.http?.authInfo;
|
|
51
|
-
if (auth) {
|
|
52
|
-
const registered = plain(auth.extra?.clientName);
|
|
53
|
-
return {
|
|
54
|
-
via: "mcp-http",
|
|
55
|
-
agent: {
|
|
56
|
-
kind: "mcp-client",
|
|
57
|
-
session_id: ctx?.sessionId ?? null,
|
|
58
|
-
client: {
|
|
59
|
-
name: registered ?? client?.name ?? "unknown",
|
|
60
|
-
...client?.version ? { version: client.version } : {},
|
|
61
|
-
id: clientHash(auth.clientId)
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
mcp: mcp(ctx?.sessionId)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const agent = agentOf(source.env) ?? { kind: "mcp-client", session_id: null };
|
|
68
|
-
return { via: "mcp-stdio", agent: { ...agent, ...client ? { client } : {} }, mcp: mcp(source.connectionId) };
|
|
69
|
-
}, "callerOf");
|
|
70
|
-
var passedOn = /* @__PURE__ */ __name((value, tool) => {
|
|
71
|
-
if (!value || typeof value !== "object")
|
|
72
|
-
return void 0;
|
|
73
|
-
const { via, agent, mcp } = value;
|
|
74
|
-
if (via !== "mcp-stdio" && via !== "mcp-http")
|
|
75
|
-
return void 0;
|
|
76
|
-
const a = agent && typeof agent === "object" ? agent : void 0;
|
|
77
|
-
const kind = plain(a?.kind);
|
|
78
|
-
const session = typeof a?.session_id === "string" && /^[A-Za-z0-9._:-]{1,128}$/.test(a.session_id) ? a.session_id : null;
|
|
79
|
-
const client = clientFrom(a?.client);
|
|
80
|
-
const id = a?.client && typeof a.client === "object" ? a.client.id : void 0;
|
|
81
|
-
const m = mcp && typeof mcp === "object" ? mcp : {};
|
|
82
|
-
const request = plain(m.request_id);
|
|
83
|
-
const connection = typeof m.connection_id === "string" && /^[\w-]{1,128}$/.test(m.connection_id) ? m.connection_id : void 0;
|
|
84
|
-
return {
|
|
85
|
-
via,
|
|
86
|
-
...kind ? {
|
|
87
|
-
agent: {
|
|
88
|
-
kind,
|
|
89
|
-
session_id: session,
|
|
90
|
-
...a?.from_chat === true ? { from_chat: true } : {},
|
|
91
|
-
...client ? { client: { ...client, ...typeof id === "string" && /^[0-9a-f]{8}$/.test(id) ? { id } : {} } } : {}
|
|
92
|
-
}
|
|
93
|
-
} : {},
|
|
94
|
-
mcp: {
|
|
95
|
-
tool,
|
|
96
|
-
...request ? { request_id: request } : {},
|
|
97
|
-
...connection ? { connection_id: connection } : {},
|
|
98
|
-
proxied: true
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}, "passedOn");
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
callingAgent,
|
|
105
|
-
CALLER_META_KEY,
|
|
106
|
-
PROXY_CLIENT_NAME,
|
|
107
|
-
callerOf
|
|
108
|
-
};
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
wirecatDirectory
|
|
5
|
-
} from "./chunk-2SQLHBDP.js";
|
|
6
|
-
import {
|
|
7
|
-
CliError
|
|
8
|
-
} from "./chunk-S6JG4YUH.js";
|
|
9
|
-
import {
|
|
10
|
-
__name
|
|
11
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
12
|
-
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
|
-
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
|
-
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
17
|
-
var parakeet = huggingFace("sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8", "2bda32ec70b097a55adaa07d9a7173915b43cc78");
|
|
18
|
-
var MODELS = [
|
|
19
|
-
{
|
|
20
|
-
id: "gigaam-v3",
|
|
21
|
-
title: "GigaAM v3, with punctuation",
|
|
22
|
-
languages: "Russian \u2014 the best of the three for Russian",
|
|
23
|
-
language: "ru",
|
|
24
|
-
featureDim: 64,
|
|
25
|
-
files: [
|
|
26
|
-
{
|
|
27
|
-
name: "encoder.int8.onnx",
|
|
28
|
-
url: gigaam("encoder.int8.onnx"),
|
|
29
|
-
sha256: "369f35a71bf288d3b8e0391fabd8dba5f2314088d440bca474056b7b4b6e66bf",
|
|
30
|
-
bytes: 224570820
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "decoder.onnx",
|
|
34
|
-
url: gigaam("decoder.onnx"),
|
|
35
|
-
sha256: "38fc7475443ea2a26f63211ca350f73ac50fff824ab7a3876ee2bd610c53bbc4",
|
|
36
|
-
bytes: 4600132
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "joiner.onnx",
|
|
40
|
-
url: gigaam("joiner.onnx"),
|
|
41
|
-
sha256: "602ff7017a93311aad34df1437c8d7f49911353c13d6eae7a6ee7b041339465c",
|
|
42
|
-
bytes: 2712896
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "tokens.txt",
|
|
46
|
-
url: gigaam("tokens.txt"),
|
|
47
|
-
sha256: "39abae20e692998290c574e606f11a9edef2902a1995463fcff63d1490cf22b7",
|
|
48
|
-
bytes: 13354
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
config: /* @__PURE__ */ __name((path) => ({
|
|
52
|
-
transducer: { encoder: path("encoder.int8.onnx"), decoder: path("decoder.onnx"), joiner: path("joiner.onnx") },
|
|
53
|
-
tokens: path("tokens.txt"),
|
|
54
|
-
modelType: "nemo_transducer"
|
|
55
|
-
}), "config")
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "gigaam-v3-ctc",
|
|
59
|
-
title: "GigaAM v3 CTC, with punctuation \u2014 a little faster",
|
|
60
|
-
languages: "Russian \u2014 a little faster, rougher with capital letters",
|
|
61
|
-
language: "ru",
|
|
62
|
-
featureDim: 64,
|
|
63
|
-
files: [
|
|
64
|
-
{
|
|
65
|
-
name: "model.int8.onnx",
|
|
66
|
-
url: gigaamCtc("model.int8.onnx"),
|
|
67
|
-
sha256: "d5fea8df94263c285e54b21e5774b707c707192d3bdbeffd7b1eb07fb6743b35",
|
|
68
|
-
bytes: 224893661
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: "tokens.txt",
|
|
72
|
-
url: gigaamCtc("tokens.txt"),
|
|
73
|
-
sha256: "142de7570b3de5b3035ce111a89c228e80e6085273731d944093ddf24fa539cd",
|
|
74
|
-
bytes: 2007
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
config: /* @__PURE__ */ __name((path) => ({ nemoCtc: { model: path("model.int8.onnx") }, tokens: path("tokens.txt") }), "config")
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "parakeet-v3",
|
|
81
|
-
title: "NVIDIA Parakeet TDT 0.6B v3",
|
|
82
|
-
/** The model card's list: huggingface.co/nvidia/parakeet-tdt-0.6b-v3, read 2026-09-24. */
|
|
83
|
-
languages: "25: bg cs da de el en es et fi fr hr hu it lt lv mt nl pl pt ro ru sk sl sv uk",
|
|
84
|
-
featureDim: 80,
|
|
85
|
-
files: [
|
|
86
|
-
{
|
|
87
|
-
name: "encoder.int8.onnx",
|
|
88
|
-
url: parakeet("encoder.int8.onnx"),
|
|
89
|
-
sha256: "acfc2b4456377e15d04f0243af540b7fe7c992f8d898d751cf134c3a55fd2247",
|
|
90
|
-
bytes: 652184281
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "decoder.int8.onnx",
|
|
94
|
-
url: parakeet("decoder.int8.onnx"),
|
|
95
|
-
sha256: "179e50c43d1a9de79c8a24149a2f9bac6eb5981823f2a2ed88d655b24248db4e",
|
|
96
|
-
bytes: 11845275
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "joiner.int8.onnx",
|
|
100
|
-
url: parakeet("joiner.int8.onnx"),
|
|
101
|
-
sha256: "3164c13fc2821009440d20fcb5fdc78bff28b4db2f8d0f0b329101719c0948b3",
|
|
102
|
-
bytes: 6355277
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "tokens.txt",
|
|
106
|
-
url: parakeet("tokens.txt"),
|
|
107
|
-
sha256: "d58544679ea4bc6ac563d1f545eb7d474bd6cfa467f0a6e2c1dc1c7d37e3c35d",
|
|
108
|
-
bytes: 93939
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
config: /* @__PURE__ */ __name((path) => ({
|
|
112
|
-
transducer: {
|
|
113
|
-
encoder: path("encoder.int8.onnx"),
|
|
114
|
-
decoder: path("decoder.int8.onnx"),
|
|
115
|
-
joiner: path("joiner.int8.onnx")
|
|
116
|
-
},
|
|
117
|
-
tokens: path("tokens.txt"),
|
|
118
|
-
modelType: "nemo_transducer"
|
|
119
|
-
}), "config")
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
var OPENAI_TRANSCRIBE_MODEL = "gpt-transcribe";
|
|
123
|
-
var VAD = {
|
|
124
|
-
name: "silero_vad.onnx",
|
|
125
|
-
url: "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx",
|
|
126
|
-
sha256: "9e2449e1087496d8d4caba907f23e0bd3f78d91fa552479bb9c23ac09cbb1fd6",
|
|
127
|
-
bytes: 643854
|
|
128
|
-
};
|
|
129
|
-
var DEFAULT_ORDER = ["parakeet-v3", "gigaam-v3", "gigaam-v3-ctc"];
|
|
130
|
-
var orderedModels = /* @__PURE__ */ __name((order = DEFAULT_ORDER) => [.../* @__PURE__ */ new Set([...order, ...DEFAULT_ORDER])].map(speechModel), "orderedModels");
|
|
131
|
-
var findModel = /* @__PURE__ */ __name((id) => MODELS.find((model) => model.id === id), "findModel");
|
|
132
|
-
var speechModel = /* @__PURE__ */ __name((id) => {
|
|
133
|
-
const model = findModel(id);
|
|
134
|
-
if (!model) {
|
|
135
|
-
throw new CliError("validation_error", `no speech model "${id}" \u2014 one of ${MODELS.map((known) => known.id).join(", ")}`);
|
|
136
|
-
}
|
|
137
|
-
return model;
|
|
138
|
-
}, "speechModel");
|
|
139
|
-
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
142
|
-
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
|
-
import { rename, rm } from "node:fs/promises";
|
|
144
|
-
import { dirname, join } from "node:path";
|
|
145
|
-
import { Readable, Transform } from "node:stream";
|
|
146
|
-
import { pipeline } from "node:stream/promises";
|
|
147
|
-
var sharedModelsDirectory = /* @__PURE__ */ __name((kind, env = process.env) => join(wirecatDirectory(env), "models", kind), "sharedModelsDirectory");
|
|
148
|
-
var modelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("audio", env), "modelsDirectory");
|
|
149
|
-
var STALL_MS = 6e4;
|
|
150
|
-
var watchdog = /* @__PURE__ */ __name((ms) => {
|
|
151
|
-
const controller = new AbortController();
|
|
152
|
-
let timer = setTimeout(() => controller.abort(), ms);
|
|
153
|
-
return {
|
|
154
|
-
signal: controller.signal,
|
|
155
|
-
poke: /* @__PURE__ */ __name(() => {
|
|
156
|
-
clearTimeout(timer);
|
|
157
|
-
timer = setTimeout(() => controller.abort(), ms);
|
|
158
|
-
}, "poke"),
|
|
159
|
-
stop: /* @__PURE__ */ __name(() => clearTimeout(timer), "stop")
|
|
160
|
-
};
|
|
161
|
-
}, "watchdog");
|
|
162
|
-
var modelPath = /* @__PURE__ */ __name((directory, model) => (name) => join(directory, model.id, name), "modelPath");
|
|
163
|
-
var vadPath = /* @__PURE__ */ __name((directory) => join(directory, VAD.name), "vadPath");
|
|
164
|
-
var placed = /* @__PURE__ */ __name((model, directory) => [
|
|
165
|
-
...model.files.map((file) => [file, modelPath(directory, model)(file.name)]),
|
|
166
|
-
[VAD, vadPath(directory)]
|
|
167
|
-
], "placed");
|
|
168
|
-
var isInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placed(model, directory)), "isInstalled");
|
|
169
|
-
var filesPresent = /* @__PURE__ */ __name((files) => files.every(([file, path]) => sizeOf(path) === file.bytes), "filesPresent");
|
|
170
|
-
var sizeOf = /* @__PURE__ */ __name((path) => {
|
|
171
|
-
try {
|
|
172
|
-
return statSync(path).size;
|
|
173
|
-
} catch {
|
|
174
|
-
return void 0;
|
|
175
|
-
}
|
|
176
|
-
}, "sizeOf");
|
|
177
|
-
var installedBytes = /* @__PURE__ */ __name((model) => model.files.reduce((sum, file) => sum + file.bytes, 0), "installedBytes");
|
|
178
|
-
var install = /* @__PURE__ */ __name(async (model, directory, { fetch: get = fetch, progress, bytes, verifyExisting } = {}) => {
|
|
179
|
-
mkdirSync(join(directory, model.id), { recursive: true, mode: 448 });
|
|
180
|
-
await installFiles(placed(model, directory), { fetch: get, progress, bytes, verifyExisting });
|
|
181
|
-
}, "install");
|
|
182
|
-
var installFiles = /* @__PURE__ */ __name(async (files, { fetch: get = fetch, progress, bytes = /* @__PURE__ */ __name(() => {
|
|
183
|
-
}, "bytes"), verifyExisting } = {}) => {
|
|
184
|
-
if (verifyExisting)
|
|
185
|
-
for (const [file, path] of files) {
|
|
186
|
-
if (sizeOf(path) !== void 0) {
|
|
187
|
-
const hash = createHash("sha256");
|
|
188
|
-
for await (const chunk of createReadStream(path))
|
|
189
|
-
hash.update(chunk);
|
|
190
|
-
if (hash.digest("hex") !== file.sha256) {
|
|
191
|
-
progress?.(`${path}: not the file this version expects, downloading it again`);
|
|
192
|
-
await rm(path, { force: true });
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
const total = files.reduce((sum, [file]) => sum + file.bytes, 0);
|
|
197
|
-
const missing = files.filter(([file, path]) => sizeOf(path) !== file.bytes);
|
|
198
|
-
let done = total - missing.reduce((sum, [file]) => sum + file.bytes, 0);
|
|
199
|
-
bytes(done, total);
|
|
200
|
-
for (const [file, path] of missing) {
|
|
201
|
-
mkdirSync(dirname(path), { recursive: true, mode: 448 });
|
|
202
|
-
progress?.(`downloading ${file.name} (${megabytes(file.bytes)})`);
|
|
203
|
-
const before = done;
|
|
204
|
-
await fetchVerified(file, path, get, (received) => {
|
|
205
|
-
done = before + received;
|
|
206
|
-
bytes(done, total);
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}, "installFiles");
|
|
210
|
-
var fetchVerified = /* @__PURE__ */ __name(async (file, path, get, received) => {
|
|
211
|
-
const stalled = watchdog(STALL_MS);
|
|
212
|
-
try {
|
|
213
|
-
await fetchInto(file, path, get, stalled, received);
|
|
214
|
-
} catch (error) {
|
|
215
|
-
if (stalled.signal.aborted) {
|
|
216
|
-
throw new CliError("timeout", `${file.name} stopped downloading for ${STALL_MS / 1e3} s \u2014 nothing was installed`);
|
|
217
|
-
}
|
|
218
|
-
throw error;
|
|
219
|
-
} finally {
|
|
220
|
-
stalled.stop();
|
|
221
|
-
}
|
|
222
|
-
}, "fetchVerified");
|
|
223
|
-
var fetchInto = /* @__PURE__ */ __name(async (file, path, get, stalled, received) => {
|
|
224
|
-
const response = await get(file.url, { signal: stalled.signal });
|
|
225
|
-
if (!response.ok || !response.body) {
|
|
226
|
-
await response.body?.cancel();
|
|
227
|
-
throw new CliError("network_error", `${file.name} could not be downloaded: HTTP ${response.status}`);
|
|
228
|
-
}
|
|
229
|
-
const partial = `${path}.${randomUUID()}.part`;
|
|
230
|
-
const hash = createHash("sha256");
|
|
231
|
-
let bytes = 0;
|
|
232
|
-
const hashing = new Transform({
|
|
233
|
-
transform(chunk, _encoding, done) {
|
|
234
|
-
stalled.poke();
|
|
235
|
-
bytes += chunk.length;
|
|
236
|
-
if (bytes > file.bytes) {
|
|
237
|
-
done(new CliError("invalid_response", `${file.name} is larger than this version expects \u2014 nothing was installed`));
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
hash.update(chunk);
|
|
241
|
-
received(bytes);
|
|
242
|
-
done(null, chunk);
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
try {
|
|
246
|
-
await pipeline(Readable.fromWeb(response.body), hashing, createWriteStream(partial, { flags: "wx", mode: 384 }));
|
|
247
|
-
const actual = hash.digest("hex");
|
|
248
|
-
if (actual !== file.sha256) {
|
|
249
|
-
throw new CliError("invalid_response", `${file.name} is not the file this version expects (sha256 ${actual}) \u2014 nothing was installed`);
|
|
250
|
-
}
|
|
251
|
-
await rename(partial, path);
|
|
252
|
-
} finally {
|
|
253
|
-
await rm(partial, { force: true });
|
|
254
|
-
}
|
|
255
|
-
}, "fetchInto");
|
|
256
|
-
var megabytes = /* @__PURE__ */ __name((bytes) => bytes < 1e6 ? "under 1 MB" : `${Math.round(bytes / 1e6)} MB`, "megabytes");
|
|
257
|
-
|
|
258
|
-
export {
|
|
259
|
-
OPENAI_TRANSCRIBE_MODEL,
|
|
260
|
-
VAD,
|
|
261
|
-
DEFAULT_ORDER,
|
|
262
|
-
orderedModels,
|
|
263
|
-
speechModel,
|
|
264
|
-
sharedModelsDirectory,
|
|
265
|
-
modelsDirectory,
|
|
266
|
-
modelPath,
|
|
267
|
-
vadPath,
|
|
268
|
-
isInstalled,
|
|
269
|
-
filesPresent,
|
|
270
|
-
installedBytes,
|
|
271
|
-
install,
|
|
272
|
-
installFiles,
|
|
273
|
-
megabytes
|
|
274
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
11
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
12
|
-
}) : x)(function(x) {
|
|
13
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
14
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
15
|
-
});
|
|
16
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
-
try {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
} catch (e) {
|
|
20
|
-
throw mod = 0, e;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var __export = (target, all) => {
|
|
24
|
-
for (var name in all)
|
|
25
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
26
|
-
};
|
|
27
|
-
var __copyProps = (to, from, except, desc) => {
|
|
28
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
|
-
for (let key of __getOwnPropNames(from))
|
|
30
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
31
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
36
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
37
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
38
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
39
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
40
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
41
|
-
mod
|
|
42
|
-
));
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
-
__name,
|
|
46
|
-
__require,
|
|
47
|
-
__commonJS,
|
|
48
|
-
__export,
|
|
49
|
-
__toESM
|
|
50
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
SCHEMA_DIALECT,
|
|
5
|
-
commandContract,
|
|
6
|
-
commandPathOf,
|
|
7
|
-
findCommand,
|
|
8
|
-
outputOf
|
|
9
|
-
} from "./chunk-EDWY73H7.js";
|
|
10
|
-
import "./chunk-BA5B5ZF4.js";
|
|
11
|
-
import "./chunk-2HDXD6LM.js";
|
|
12
|
-
import "./chunk-NQFG7AES.js";
|
|
13
|
-
import "./chunk-CJJFOT7W.js";
|
|
14
|
-
import "./chunk-I4PZOWYG.js";
|
|
15
|
-
import "./chunk-T3W4V4A6.js";
|
|
16
|
-
import "./chunk-7KO5FSAW.js";
|
|
17
|
-
import "./chunk-G5HG7ZWQ.js";
|
|
18
|
-
import "./chunk-I4AWLFYH.js";
|
|
19
|
-
import "./chunk-3TYER5IK.js";
|
|
20
|
-
import "./chunk-LC7ZD2RW.js";
|
|
21
|
-
import "./chunk-IDCZ4LWS.js";
|
|
22
|
-
import "./chunk-OAO3JKQD.js";
|
|
23
|
-
import "./chunk-725OPCHI.js";
|
|
24
|
-
import "./chunk-ESNZL7SB.js";
|
|
25
|
-
import "./chunk-XGVMQMTS.js";
|
|
26
|
-
import "./chunk-ZKVUAH5N.js";
|
|
27
|
-
import "./chunk-DNCLQPOM.js";
|
|
28
|
-
import "./chunk-2SQLHBDP.js";
|
|
29
|
-
import "./chunk-2YO3PLOE.js";
|
|
30
|
-
import "./chunk-KP5JDYY6.js";
|
|
31
|
-
import "./chunk-Y5E2WNWB.js";
|
|
32
|
-
import "./chunk-S6JG4YUH.js";
|
|
33
|
-
import "./chunk-ZVVMGPBJ.js";
|
|
34
|
-
export {
|
|
35
|
-
SCHEMA_DIALECT,
|
|
36
|
-
commandContract,
|
|
37
|
-
commandPathOf,
|
|
38
|
-
findCommand,
|
|
39
|
-
outputOf
|
|
40
|
-
};
|