@wirecat/mail-cli 0.9.0 → 0.10.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 +43 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-X6ROLLMF.js → all-profiles-OJPRIFKU.js} +9 -9
- package/dist/bundle/{anthropic-MPARKCMJ.js → anthropic-3AXHD4WH.js} +6 -6
- package/dist/bundle/{app-server-JQ5XCXWT.js → app-server-V4KHCUGE.js} +45 -46
- package/dist/bundle/{bun-H7LT5433.js → bun-ISYNUTQJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGK2BHAN.js → bun-sqlite-FH3D4AXL.js} +5 -5
- package/dist/bundle/{chunk-IYC3IHEZ.js → chunk-2TTCKOQ7.js} +2 -2
- package/dist/bundle/{chunk-5NYUCY5W.js → chunk-35Y3INBK.js} +2 -2
- package/dist/bundle/{chunk-UHBCL66Y.js → chunk-44LVUMS2.js} +1 -1
- package/dist/bundle/{chunk-U6BDAY55.js → chunk-4D52FA34.js} +1 -1
- package/dist/bundle/{chunk-L3KMVMRJ.js → chunk-4DPICEPQ.js} +2 -2
- package/dist/bundle/{chunk-6FBBDIX6.js → chunk-4GPPRLIG.js} +7 -42
- package/dist/bundle/{chunk-BNPCRWZ6.js → chunk-5TACUBRJ.js} +8 -8
- package/dist/bundle/{chunk-PC3AFEEA.js → chunk-6LNRNQHJ.js} +4 -4
- package/dist/bundle/{chunk-3LMWAO6A.js → chunk-6QNPJSRM.js} +6 -6
- package/dist/bundle/{chunk-PXQ7A5HQ.js → chunk-6UT3MXOB.js} +3 -3
- package/dist/bundle/{chunk-SEL7SJCM.js → chunk-AJ4JS2ZR.js} +36 -11
- package/dist/bundle/{chunk-RGM66WZ3.js → chunk-BYQ3Z6UL.js} +3 -3
- package/dist/bundle/{chunk-FEA5E7WQ.js → chunk-DN54W657.js} +2 -2
- package/dist/bundle/{chunk-J4MY3QIN.js → chunk-F3QDSQ7V.js} +34 -28
- package/dist/bundle/{chunk-YXQIZORE.js → chunk-FYMQPAE5.js} +4 -4
- package/dist/bundle/{chunk-2FDROA4Q.js → chunk-G2WDY5XB.js} +2 -2
- package/dist/bundle/{chunk-KWHFDVAF.js → chunk-GAIVTJ3E.js} +121 -32
- package/dist/bundle/{chunk-INVEYTAL.js → chunk-GFCNSU3B.js} +48 -48
- package/dist/bundle/{chunk-SYFBRZ5F.js → chunk-GUFWLTOW.js} +2 -2
- package/dist/bundle/{chunk-YLSV3WOO.js → chunk-GYNHU56E.js} +4 -4
- package/dist/bundle/{chunk-CHK3V7FG.js → chunk-HVVLSCFB.js} +1 -1
- package/dist/bundle/{chunk-4EFKQXA5.js → chunk-IG2WXKIT.js} +8 -8
- package/dist/bundle/{chunk-24MHYGNE.js → chunk-IWHXM2S7.js} +1620 -671
- package/dist/bundle/{chunk-TVZFDVZP.js → chunk-IXYKM7OJ.js} +13 -13
- package/dist/bundle/{chunk-ZISFMUYB.js → chunk-JAWJZTFL.js} +18 -18
- package/dist/bundle/{chunk-PEF637VV.js → chunk-JIIEJLAX.js} +4 -4
- package/dist/bundle/{chunk-DLB2JPLU.js → chunk-JNUKTAMZ.js} +1 -1
- package/dist/bundle/{chunk-25N52S7U.js → chunk-K2F7YMMM.js} +6 -6
- package/dist/bundle/{chunk-OZGDPG6I.js → chunk-KJP2B65C.js} +30 -30
- package/dist/bundle/{chunk-3Y7H3CXI.js → chunk-KQXLRAHT.js} +2 -5
- package/dist/bundle/{chunk-EUJTQY43.js → chunk-KVN4RY7E.js} +52 -53
- package/dist/bundle/{chunk-JZMPDFM4.js → chunk-L3PVAY3M.js} +2 -2
- package/dist/bundle/{chunk-64FN5JK6.js → chunk-LIQ5LICB.js} +3 -3
- package/dist/bundle/{chunk-DQHAXX33.js → chunk-LXHLQ6RK.js} +7 -7
- package/dist/bundle/{chunk-HZ42NO25.js → chunk-MDIRW3AT.js} +2 -2
- package/dist/bundle/{chunk-K3RWO7LR.js → chunk-N6P55LDU.js} +84 -8
- package/dist/bundle/{chunk-PTDJXPXG.js → chunk-NBQQ2ZTF.js} +19 -14
- package/dist/bundle/{chunk-NAIJNJZZ.js → chunk-NSDOYHIS.js} +10 -8
- package/dist/bundle/{chunk-VOGSDGVL.js → chunk-OHC4GVWV.js} +2 -2
- package/dist/bundle/{chunk-QO4K6R7K.js → chunk-PLPSFJO6.js} +6 -6
- package/dist/bundle/{chunk-3W6VSSQQ.js → chunk-PSXAC6OO.js} +1 -1
- package/dist/bundle/{chunk-4MIC7S7B.js → chunk-QB54TE52.js} +1 -1
- package/dist/bundle/{chunk-QXXBDW6N.js → chunk-QPQSMJBW.js} +10 -10
- package/dist/bundle/{chunk-SUB4DRMA.js → chunk-S64N24ON.js} +3 -3
- package/dist/bundle/{chunk-M55XFZMG.js → chunk-SW5NVASW.js} +9 -9
- package/dist/bundle/{chunk-N6YA4OQI.js → chunk-SYBMOE6F.js} +865 -838
- package/dist/bundle/{chunk-Z3TZTOR2.js → chunk-T3AGR4TI.js} +4840 -894
- package/dist/bundle/{chunk-JYVZDJNO.js → chunk-TTKNBUMT.js} +45 -5
- package/dist/bundle/{chunk-ROZBXOES.js → chunk-TZGQPTZ2.js} +1 -1
- package/dist/bundle/{chunk-FUDHVV4R.js → chunk-UDJIC6YL.js} +67 -30
- package/dist/bundle/{chunk-HWLAV2HM.js → chunk-V6K2GX2Y.js} +17 -17
- package/dist/bundle/{chunk-65SVO3T7.js → chunk-VEXXVLBM.js} +3 -3
- package/dist/bundle/{chunk-NTWORG4T.js → chunk-WL7CYT7O.js} +1 -1
- package/dist/bundle/{chunk-DL32PWLR.js → chunk-X37KLD23.js} +14 -14
- package/dist/bundle/{chunk-5PWKPRTD.js → chunk-XTIQFMZH.js} +4 -4
- package/dist/bundle/{chunk-GPCKNZIA.js → chunk-YDUES6ET.js} +4 -4
- package/dist/bundle/{chunk-TKFQ3GNY.js → chunk-YRZ23RCS.js} +164 -59
- package/dist/bundle/command-contract-TW44FY47.js +33 -0
- package/dist/bundle/{decode-ZATANRER.js → decode-FM4C2WWG.js} +5 -5
- package/dist/bundle/{dispatch-5C6XNGEE.js → dispatch-K3HG4RYT.js} +8 -8
- package/dist/bundle/{dist-JN22LNLZ.js → dist-7LNVI7VB.js} +17 -13
- package/dist/bundle/{echarts-WKTVUY3O.js → echarts-5C2A72XM.js} +2 -2
- package/dist/bundle/{embed-AVKPYK4V.js → embed-N56P6YVY.js} +6 -6
- package/dist/bundle/{embedder-PSV2E5TR.js → embedder-QLYKFLOL.js} +9 -9
- package/dist/bundle/{failure-YRGRZBTX.js → failure-5ZLVZTRU.js} +2 -2
- package/dist/bundle/{first-run-YN4SF5RZ.js → first-run-VMF4PJ7Q.js} +11 -11
- package/dist/bundle/first-screen-ZN7ODW5K.js +31 -0
- package/dist/bundle/{instructions-W5SJW23S.js → instructions-QA5FHDOJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-B25MZCS7.js → mcp-LO2XDBBC.js} +2 -2
- package/dist/bundle/{node-BHBFRH6H.js → node-OXJZWUYZ.js} +2 -2
- package/dist/bundle/{node-sqlite-7FHC3W5U.js → node-sqlite-7GCEI67B.js} +5 -5
- package/dist/bundle/{oauth-ORPM6FLL.js → oauth-VTPIYBTP.js} +7 -7
- package/dist/bundle/{open-AY5KLPWO.js → open-7XX3YF2X.js} +4 -4
- package/dist/bundle/{openai-U7VALRI7.js → openai-D3KRCXSY.js} +14 -14
- package/dist/bundle/{process-7AWARSC5.js → process-KFI7SXQD.js} +1 -1
- package/dist/bundle/{program-2W4J47LM.js → program-OJUWUHHC.js} +1334 -857
- package/dist/bundle/{prompt-STNX6JL7.js → prompt-TBZT3APW.js} +5 -5
- package/dist/bundle/{recognize-2XWWTN6Y.js → recognize-WQSE5ZPL.js} +4 -4
- package/dist/bundle/{remote-OIC32DKQ.js → remote-J5HHRNVQ.js} +7 -7
- package/dist/bundle/{rerank-IFTSO576.js → rerank-DP2Y3WDT.js} +7 -7
- package/dist/bundle/{serve-P2D2AJAU.js → serve-VXPOQDQO.js} +9 -9
- package/dist/bundle/{server-DFEJBMXO.js → server-OSBNGA2F.js} +37 -38
- package/dist/bundle/server-XHWSCXVX.js +62 -0
- package/dist/bundle/{sqlite-runtime-DD4Y35DQ.js → sqlite-runtime-XY32WOIT.js} +5 -5
- package/dist/bundle/{state-XUSQMIKJ.js → state-KPOPMR6O.js} +6 -6
- package/dist/bundle/{store-T3PKOLER.js → store-FWRGNGP3.js} +25 -17
- package/dist/bundle/{store-EQC5DKSY.js → store-UBI2YCRC.js} +13 -13
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +52 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +3 -3
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +22 -7
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/mail/imap/connection.d.ts.map +1 -1
- package/dist/mail/imap/connection.js +6 -4
- package/dist/mail/imap/connection.js.map +1 -1
- package/dist/mail/imap/errors.d.ts +7 -0
- package/dist/mail/imap/errors.d.ts.map +1 -1
- package/dist/mail/imap/errors.js +8 -4
- package/dist/mail/imap/errors.js.map +1 -1
- package/dist/mail/imap/read.d.ts.map +1 -1
- package/dist/mail/imap/read.js +36 -20
- package/dist/mail/imap/read.js.map +1 -1
- package/dist/mail/imap/search.d.ts +7 -2
- package/dist/mail/imap/search.d.ts.map +1 -1
- package/dist/mail/imap/search.js +13 -7
- package/dist/mail/imap/search.js.map +1 -1
- package/dist/mail/imap/write.d.ts.map +1 -1
- package/dist/mail/imap/write.js +2 -1
- package/dist/mail/imap/write.js.map +1 -1
- package/dist/mail/organise.d.ts.map +1 -1
- package/dist/mail/organise.js +92 -87
- package/dist/mail/organise.js.map +1 -1
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +26 -5
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts +0 -3
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -33
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -1
- package/dist/providers.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -3
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-EVG7MOAH.js +0 -3604
- package/dist/bundle/command-contract-T3H5CAX3.js +0 -34
- package/dist/bundle/first-screen-IJJZJP6Q.js +0 -32
- package/dist/bundle/server-6D7W5Q4A.js +0 -63
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +0 -52
- /package/dist/bundle/{chunk-EKRM2QJB.js → chunk-MRLSUCHT.js} +0 -0
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readSecret
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LIQ5LICB.js";
|
|
6
|
+
import "./chunk-L3PVAY3M.js";
|
|
7
|
+
import "./chunk-JAWJZTFL.js";
|
|
8
|
+
import "./chunk-NSDOYHIS.js";
|
|
9
9
|
import "./chunk-Y5E2WNWB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-4DPICEPQ.js";
|
|
11
11
|
import "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
export {
|
|
13
13
|
readSecret
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
openRecognizer,
|
|
9
9
|
openSpeechCutter,
|
|
10
10
|
toModelRate
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FYMQPAE5.js";
|
|
12
|
+
import "./chunk-JAWJZTFL.js";
|
|
13
|
+
import "./chunk-NSDOYHIS.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-4DPICEPQ.js";
|
|
16
16
|
import "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
export {
|
|
18
18
|
SAMPLE_RATE,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
openRemote,
|
|
9
9
|
remoteKey,
|
|
10
10
|
remoteModel
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-6UT3MXOB.js";
|
|
12
|
+
import "./chunk-6QNPJSRM.js";
|
|
13
|
+
import "./chunk-6LNRNQHJ.js";
|
|
14
|
+
import "./chunk-MDIRW3AT.js";
|
|
15
|
+
import "./chunk-JAWJZTFL.js";
|
|
16
|
+
import "./chunk-NSDOYHIS.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-4DPICEPQ.js";
|
|
19
19
|
import "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
export {
|
|
21
21
|
DEFAULT_OPENAI_MODEL,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
defaultThreads,
|
|
5
5
|
loadModel,
|
|
6
6
|
truncated
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-6QNPJSRM.js";
|
|
8
|
+
import "./chunk-6LNRNQHJ.js";
|
|
9
|
+
import "./chunk-MDIRW3AT.js";
|
|
10
|
+
import "./chunk-JAWJZTFL.js";
|
|
11
|
+
import "./chunk-NSDOYHIS.js";
|
|
12
12
|
import "./chunk-Y5E2WNWB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4DPICEPQ.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/embeddings/rerank.js
|
|
19
19
|
var openReranker = /* @__PURE__ */ __name(async (model, directory, { threads = defaultThreads() } = {}) => {
|
|
20
20
|
const { ort, tokenizer, session } = await loadModel(model, directory, threads);
|
|
21
21
|
const typeIds = session.inputNames.includes("token_type_ids");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QB54TE52.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DN54W657.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
calledTools,
|
|
21
21
|
httpActivityFile,
|
|
22
22
|
httpLock
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-GYNHU56E.js";
|
|
24
|
+
import "./chunk-BYQ3Z6UL.js";
|
|
25
|
+
import "./chunk-44LVUMS2.js";
|
|
26
|
+
import "./chunk-JAWJZTFL.js";
|
|
27
|
+
import "./chunk-NSDOYHIS.js";
|
|
28
28
|
import "./chunk-Y5E2WNWB.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4DPICEPQ.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
37
37
|
import { randomUUID } from "node:crypto";
|
|
38
38
|
var MCP_PATH = "/mcp";
|
|
39
39
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -2,34 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WL7CYT7O.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F3QDSQ7V.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-NBQQ2ZTF.js";
|
|
17
|
+
import "./chunk-TTKNBUMT.js";
|
|
18
18
|
import {
|
|
19
19
|
callerOf,
|
|
20
20
|
serveStdio
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G2WDY5XB.js";
|
|
22
22
|
import {
|
|
23
23
|
McpServer
|
|
24
24
|
} from "./chunk-5D4AEUVA.js";
|
|
25
25
|
import {
|
|
26
26
|
wholeList
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-EVG7MOAH.js";
|
|
27
|
+
} from "./chunk-SYBMOE6F.js";
|
|
28
|
+
import "./chunk-IXYKM7OJ.js";
|
|
29
|
+
import "./chunk-N6P55LDU.js";
|
|
30
|
+
import "./chunk-OHC4GVWV.js";
|
|
31
|
+
import "./chunk-L3PVAY3M.js";
|
|
33
32
|
import {
|
|
34
33
|
MESSENGER_CHANGE_REFUSAL,
|
|
35
34
|
changesMessenger,
|
|
@@ -37,42 +36,42 @@ import {
|
|
|
37
36
|
itemOf,
|
|
38
37
|
readOnlyLockOf,
|
|
39
38
|
readOnlyRefusal
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-T3AGR4TI.js";
|
|
40
|
+
import "./chunk-AJ4JS2ZR.js";
|
|
41
|
+
import "./chunk-SW5NVASW.js";
|
|
42
|
+
import "./chunk-XTIQFMZH.js";
|
|
43
|
+
import "./chunk-TZGQPTZ2.js";
|
|
44
|
+
import "./chunk-VEXXVLBM.js";
|
|
45
|
+
import "./chunk-44LVUMS2.js";
|
|
46
|
+
import "./chunk-6UT3MXOB.js";
|
|
47
|
+
import "./chunk-6QNPJSRM.js";
|
|
48
|
+
import "./chunk-6LNRNQHJ.js";
|
|
49
|
+
import "./chunk-V6K2GX2Y.js";
|
|
50
|
+
import "./chunk-YDUES6ET.js";
|
|
51
|
+
import "./chunk-IWHXM2S7.js";
|
|
52
|
+
import "./chunk-YRZ23RCS.js";
|
|
53
|
+
import "./chunk-LXHLQ6RK.js";
|
|
54
|
+
import "./chunk-KVN4RY7E.js";
|
|
55
|
+
import "./chunk-IG2WXKIT.js";
|
|
56
|
+
import "./chunk-PLPSFJO6.js";
|
|
57
|
+
import "./chunk-MDIRW3AT.js";
|
|
58
|
+
import "./chunk-JNUKTAMZ.js";
|
|
59
|
+
import "./chunk-MRLSUCHT.js";
|
|
60
60
|
import "./chunk-D72URWJE.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-HZ42NO25.js";
|
|
64
|
-
import "./chunk-ZISFMUYB.js";
|
|
61
|
+
import "./chunk-K2F7YMMM.js";
|
|
62
|
+
import "./chunk-JAWJZTFL.js";
|
|
65
63
|
import {
|
|
66
64
|
mcpErrorResult,
|
|
67
65
|
object
|
|
68
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-NSDOYHIS.js";
|
|
69
67
|
import "./chunk-Y5E2WNWB.js";
|
|
70
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-4DPICEPQ.js";
|
|
69
|
+
import "./chunk-PSXAC6OO.js";
|
|
71
70
|
import {
|
|
72
71
|
__name
|
|
73
72
|
} from "./chunk-ZVVMGPBJ.js";
|
|
74
73
|
|
|
75
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.550.0_@wirecat+cli-base@0.74.0_commander@15.0.0_esbuild@0.28.2_type_14b809de162f39c654f85ad24a8cdf95/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
76
75
|
import { randomUUID } from "node:crypto";
|
|
77
76
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
78
77
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PER_RUN,
|
|
5
|
+
createServer,
|
|
6
|
+
envelope,
|
|
7
|
+
serveOverHttpUntilStopped,
|
|
8
|
+
serveOverStdio
|
|
9
|
+
} from "./chunk-KJP2B65C.js";
|
|
10
|
+
import "./chunk-F3QDSQ7V.js";
|
|
11
|
+
import "./chunk-UDJIC6YL.js";
|
|
12
|
+
import "./chunk-NBQQ2ZTF.js";
|
|
13
|
+
import "./chunk-TTKNBUMT.js";
|
|
14
|
+
import "./chunk-HVVLSCFB.js";
|
|
15
|
+
import "./chunk-4D52FA34.js";
|
|
16
|
+
import "./chunk-G2WDY5XB.js";
|
|
17
|
+
import "./chunk-5D4AEUVA.js";
|
|
18
|
+
import "./chunk-GAIVTJ3E.js";
|
|
19
|
+
import "./chunk-SYBMOE6F.js";
|
|
20
|
+
import "./chunk-IXYKM7OJ.js";
|
|
21
|
+
import "./chunk-N6P55LDU.js";
|
|
22
|
+
import "./chunk-OHC4GVWV.js";
|
|
23
|
+
import "./chunk-L3PVAY3M.js";
|
|
24
|
+
import "./chunk-4GPPRLIG.js";
|
|
25
|
+
import "./chunk-T3AGR4TI.js";
|
|
26
|
+
import "./chunk-AJ4JS2ZR.js";
|
|
27
|
+
import "./chunk-SW5NVASW.js";
|
|
28
|
+
import "./chunk-XTIQFMZH.js";
|
|
29
|
+
import "./chunk-TZGQPTZ2.js";
|
|
30
|
+
import "./chunk-VEXXVLBM.js";
|
|
31
|
+
import "./chunk-GYNHU56E.js";
|
|
32
|
+
import "./chunk-BYQ3Z6UL.js";
|
|
33
|
+
import "./chunk-44LVUMS2.js";
|
|
34
|
+
import "./chunk-6UT3MXOB.js";
|
|
35
|
+
import "./chunk-6QNPJSRM.js";
|
|
36
|
+
import "./chunk-6LNRNQHJ.js";
|
|
37
|
+
import "./chunk-V6K2GX2Y.js";
|
|
38
|
+
import "./chunk-YDUES6ET.js";
|
|
39
|
+
import "./chunk-IWHXM2S7.js";
|
|
40
|
+
import "./chunk-YRZ23RCS.js";
|
|
41
|
+
import "./chunk-LXHLQ6RK.js";
|
|
42
|
+
import "./chunk-KVN4RY7E.js";
|
|
43
|
+
import "./chunk-IG2WXKIT.js";
|
|
44
|
+
import "./chunk-PLPSFJO6.js";
|
|
45
|
+
import "./chunk-MDIRW3AT.js";
|
|
46
|
+
import "./chunk-JNUKTAMZ.js";
|
|
47
|
+
import "./chunk-MRLSUCHT.js";
|
|
48
|
+
import "./chunk-D72URWJE.js";
|
|
49
|
+
import "./chunk-K2F7YMMM.js";
|
|
50
|
+
import "./chunk-JAWJZTFL.js";
|
|
51
|
+
import "./chunk-NSDOYHIS.js";
|
|
52
|
+
import "./chunk-Y5E2WNWB.js";
|
|
53
|
+
import "./chunk-4DPICEPQ.js";
|
|
54
|
+
import "./chunk-PSXAC6OO.js";
|
|
55
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
56
|
+
export {
|
|
57
|
+
PER_RUN,
|
|
58
|
+
createServer,
|
|
59
|
+
envelope,
|
|
60
|
+
serveOverHttpUntilStopped,
|
|
61
|
+
serveOverStdio
|
|
62
|
+
};
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
ensureSqlite,
|
|
5
5
|
nodeRuntime,
|
|
6
6
|
relay
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-2TTCKOQ7.js";
|
|
8
|
+
import "./chunk-K2F7YMMM.js";
|
|
9
|
+
import "./chunk-JAWJZTFL.js";
|
|
10
|
+
import "./chunk-NSDOYHIS.js";
|
|
11
11
|
import "./chunk-Y5E2WNWB.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-4DPICEPQ.js";
|
|
13
13
|
import "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
export {
|
|
15
15
|
ensureSqlite,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
readHttpLock,
|
|
13
13
|
readStored,
|
|
14
14
|
signedInClients
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-GYNHU56E.js";
|
|
16
|
+
import "./chunk-BYQ3Z6UL.js";
|
|
17
|
+
import "./chunk-44LVUMS2.js";
|
|
18
|
+
import "./chunk-JAWJZTFL.js";
|
|
19
|
+
import "./chunk-NSDOYHIS.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4DPICEPQ.js";
|
|
22
22
|
import "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
export {
|
|
24
24
|
ACCESS_SECONDS,
|
|
@@ -8,15 +8,16 @@ import {
|
|
|
8
8
|
previewDocumentTransfer,
|
|
9
9
|
previewProjectAnnotationSnapshot,
|
|
10
10
|
snapshotProjectAnnotations
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V6K2GX2Y.js";
|
|
12
12
|
import {
|
|
13
13
|
note,
|
|
14
14
|
organization,
|
|
15
15
|
project,
|
|
16
16
|
reminder
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YDUES6ET.js";
|
|
18
18
|
import {
|
|
19
19
|
CATALOG_QUERY,
|
|
20
|
+
DEFAULT_DECISION_POLICY,
|
|
20
21
|
EVENT_FIELDS,
|
|
21
22
|
EVIDENCE_FINDINGS_KIND,
|
|
22
23
|
IMPORTED_DOCUMENT_QUERY,
|
|
@@ -36,12 +37,14 @@ import {
|
|
|
36
37
|
TASK_RELATION_KINDS,
|
|
37
38
|
TASK_ROLES,
|
|
38
39
|
TASK_SORTS,
|
|
40
|
+
assertMayDecide,
|
|
39
41
|
backfillNormalized,
|
|
40
42
|
certaintyOf,
|
|
41
43
|
createTagRedirectIndex,
|
|
42
44
|
decodeProjectAnnotationSnapshot,
|
|
43
45
|
decodeProjectAnnotations,
|
|
44
46
|
fillSearchIndex,
|
|
47
|
+
mayDecide,
|
|
45
48
|
migrate,
|
|
46
49
|
openStore,
|
|
47
50
|
pendingNormalization,
|
|
@@ -50,12 +53,13 @@ import {
|
|
|
50
53
|
projectAnnotationSnapshotFingerprint,
|
|
51
54
|
projectAnnotationSnapshotSchema,
|
|
52
55
|
projectAnnotationsFingerprint,
|
|
56
|
+
proposerOfAction,
|
|
53
57
|
resetAttachmentWords,
|
|
54
58
|
resetSearchIndex,
|
|
55
59
|
searchIndexState,
|
|
56
60
|
validateEvidenceFindings
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-IWHXM2S7.js";
|
|
62
|
+
import "./chunk-YRZ23RCS.js";
|
|
59
63
|
import {
|
|
60
64
|
CLOSED_STATES,
|
|
61
65
|
FACT_STATUSES,
|
|
@@ -71,27 +75,28 @@ import {
|
|
|
71
75
|
priorityLabel,
|
|
72
76
|
priorityOf,
|
|
73
77
|
priorityOption
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-LXHLQ6RK.js";
|
|
79
|
+
import "./chunk-KVN4RY7E.js";
|
|
80
|
+
import "./chunk-IG2WXKIT.js";
|
|
81
|
+
import "./chunk-PLPSFJO6.js";
|
|
82
|
+
import {
|
|
83
|
+
storePath
|
|
84
|
+
} from "./chunk-MDIRW3AT.js";
|
|
85
|
+
import "./chunk-MRLSUCHT.js";
|
|
78
86
|
import {
|
|
79
87
|
PRAGMAS,
|
|
80
88
|
openCache
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import {
|
|
85
|
-
storePath
|
|
86
|
-
} from "./chunk-HZ42NO25.js";
|
|
87
|
-
import "./chunk-ZISFMUYB.js";
|
|
88
|
-
import "./chunk-NAIJNJZZ.js";
|
|
89
|
+
} from "./chunk-K2F7YMMM.js";
|
|
90
|
+
import "./chunk-JAWJZTFL.js";
|
|
91
|
+
import "./chunk-NSDOYHIS.js";
|
|
89
92
|
import "./chunk-Y5E2WNWB.js";
|
|
90
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-4DPICEPQ.js";
|
|
94
|
+
import "./chunk-PSXAC6OO.js";
|
|
91
95
|
import "./chunk-ZVVMGPBJ.js";
|
|
92
96
|
export {
|
|
93
97
|
CATALOG_QUERY,
|
|
94
98
|
CLOSED_STATES,
|
|
99
|
+
DEFAULT_DECISION_POLICY,
|
|
95
100
|
EVENT_FIELDS,
|
|
96
101
|
EVIDENCE_FINDINGS_KIND,
|
|
97
102
|
FACT_STATUSES,
|
|
@@ -125,6 +130,7 @@ export {
|
|
|
125
130
|
TASK_TYPES,
|
|
126
131
|
WORK_TASK_TYPES,
|
|
127
132
|
applyDocumentTransfer,
|
|
133
|
+
assertMayDecide,
|
|
128
134
|
backfillNormalized,
|
|
129
135
|
certaintyOf,
|
|
130
136
|
createTagRedirectIndex,
|
|
@@ -132,6 +138,7 @@ export {
|
|
|
132
138
|
decodeProjectAnnotations,
|
|
133
139
|
fillSearchIndex,
|
|
134
140
|
isClosedState,
|
|
141
|
+
mayDecide,
|
|
135
142
|
migrate,
|
|
136
143
|
note,
|
|
137
144
|
openCache,
|
|
@@ -149,6 +156,7 @@ export {
|
|
|
149
156
|
projectAnnotationSnapshotFingerprint,
|
|
150
157
|
projectAnnotationSnapshotSchema,
|
|
151
158
|
projectAnnotationsFingerprint,
|
|
159
|
+
proposerOfAction,
|
|
152
160
|
reminder,
|
|
153
161
|
resetAttachmentWords,
|
|
154
162
|
resetSearchIndex,
|
|
@@ -54,20 +54,20 @@ import {
|
|
|
54
54
|
threadConversation,
|
|
55
55
|
titlePart,
|
|
56
56
|
vectorIndexCounts
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-NAIJNJZZ.js";
|
|
57
|
+
} from "./chunk-IWHXM2S7.js";
|
|
58
|
+
import "./chunk-YRZ23RCS.js";
|
|
59
|
+
import "./chunk-LXHLQ6RK.js";
|
|
60
|
+
import "./chunk-KVN4RY7E.js";
|
|
61
|
+
import "./chunk-IG2WXKIT.js";
|
|
62
|
+
import "./chunk-PLPSFJO6.js";
|
|
63
|
+
import "./chunk-MDIRW3AT.js";
|
|
64
|
+
import "./chunk-MRLSUCHT.js";
|
|
65
|
+
import "./chunk-K2F7YMMM.js";
|
|
66
|
+
import "./chunk-JAWJZTFL.js";
|
|
67
|
+
import "./chunk-NSDOYHIS.js";
|
|
69
68
|
import "./chunk-Y5E2WNWB.js";
|
|
70
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-4DPICEPQ.js";
|
|
70
|
+
import "./chunk-PSXAC6OO.js";
|
|
71
71
|
import "./chunk-ZVVMGPBJ.js";
|
|
72
72
|
export {
|
|
73
73
|
AGENDA_COLUMNS,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildStems,
|
|
5
|
+
storeMaintenanceCommands,
|
|
6
|
+
storeSummary
|
|
7
|
+
} from "./chunk-GFCNSU3B.js";
|
|
8
|
+
import "./chunk-GUFWLTOW.js";
|
|
9
|
+
import "./chunk-GAIVTJ3E.js";
|
|
10
|
+
import "./chunk-SYBMOE6F.js";
|
|
11
|
+
import "./chunk-IXYKM7OJ.js";
|
|
12
|
+
import "./chunk-N6P55LDU.js";
|
|
13
|
+
import "./chunk-S64N24ON.js";
|
|
14
|
+
import "./chunk-OHC4GVWV.js";
|
|
15
|
+
import "./chunk-LIQ5LICB.js";
|
|
16
|
+
import "./chunk-L3PVAY3M.js";
|
|
17
|
+
import "./chunk-HTQTIKWP.js";
|
|
18
|
+
import "./chunk-T3AGR4TI.js";
|
|
19
|
+
import "./chunk-AJ4JS2ZR.js";
|
|
20
|
+
import "./chunk-SW5NVASW.js";
|
|
21
|
+
import "./chunk-XTIQFMZH.js";
|
|
22
|
+
import "./chunk-TZGQPTZ2.js";
|
|
23
|
+
import "./chunk-VEXXVLBM.js";
|
|
24
|
+
import "./chunk-BYQ3Z6UL.js";
|
|
25
|
+
import "./chunk-44LVUMS2.js";
|
|
26
|
+
import "./chunk-6UT3MXOB.js";
|
|
27
|
+
import "./chunk-6QNPJSRM.js";
|
|
28
|
+
import "./chunk-6LNRNQHJ.js";
|
|
29
|
+
import "./chunk-V6K2GX2Y.js";
|
|
30
|
+
import "./chunk-YDUES6ET.js";
|
|
31
|
+
import "./chunk-IWHXM2S7.js";
|
|
32
|
+
import "./chunk-YRZ23RCS.js";
|
|
33
|
+
import "./chunk-LXHLQ6RK.js";
|
|
34
|
+
import "./chunk-KVN4RY7E.js";
|
|
35
|
+
import "./chunk-IG2WXKIT.js";
|
|
36
|
+
import "./chunk-PLPSFJO6.js";
|
|
37
|
+
import "./chunk-MDIRW3AT.js";
|
|
38
|
+
import "./chunk-JNUKTAMZ.js";
|
|
39
|
+
import "./chunk-MRLSUCHT.js";
|
|
40
|
+
import "./chunk-D72URWJE.js";
|
|
41
|
+
import "./chunk-K2F7YMMM.js";
|
|
42
|
+
import "./chunk-JAWJZTFL.js";
|
|
43
|
+
import "./chunk-NSDOYHIS.js";
|
|
44
|
+
import "./chunk-Y5E2WNWB.js";
|
|
45
|
+
import "./chunk-4DPICEPQ.js";
|
|
46
|
+
import "./chunk-PSXAC6OO.js";
|
|
47
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
48
|
+
export {
|
|
49
|
+
buildStems,
|
|
50
|
+
storeMaintenanceCommands,
|
|
51
|
+
storeSummary
|
|
52
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAc9C,2GAA2G;AAC3G,eAAO,MAAM,UAAU,YAAmB,WAAW,WAAW,OAAO,uDAQtE,CAAA"}
|
package/dist/commands/login.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CliError, isCliError } from "@wirecat/cli-base";
|
|
2
2
|
import { IDENTITY } from "../identity.js";
|
|
3
|
+
const REFUSED = new Set(["mail.login-refused", "mail.oauth-refused"]);
|
|
3
4
|
/** A refused login, with the provider's likely cause and where the steps are; any other error passes through. */
|
|
4
|
-
const explained = (error, prepare) => isCliError(error) && error.details.reason
|
|
5
|
+
const explained = (error, prepare) => isCliError(error) && REFUSED.has(String(error.details.reason))
|
|
5
6
|
? new CliError(error.code, `${error.message}. Likely cause: ${prepare.refused} Run \`${IDENTITY.command} <profile> session start\` to see the steps again.`, error.details)
|
|
6
7
|
: error;
|
|
7
8
|
/** Logs in once and closes; the password is stored by the caller, only after this succeeds (WC-SECR-5). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAIzC,iHAAiH;AACjH,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,OAAgB,EAAW,EAAE,CAC9D,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAIzC,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAA;AAErE,iHAAiH;AACjH,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,OAAgB,EAAW,EAAE,CAC9D,UAAU,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC,CAAC,IAAI,QAAQ,CACV,KAAK,CAAC,IAAI,EACV,GAAG,KAAK,CAAC,OAAO,mBAAmB,OAAO,CAAC,OAAO,UAAU,QAAQ,CAAC,OAAO,oDAAoD,EAChI,KAAK,CAAC,OAAO,CACd;IACH,CAAC,CAAC,KAAK,CAAA;AAEX,2GAA2G;AAC3G,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,OAAoB,EAAE,OAAgB,EAAE,EAAE;IACzE,IAAI,CAAC;QACH,OAAO,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;IAC9B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IACjC,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-start.d.ts","sourceRoot":"","sources":["../../src/commands/session-start.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-start.d.ts","sourceRoot":"","sources":["../../src/commands/session-start.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAgJnC,eAAO,MAAM,mBAAmB,eAmK1B,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CliError } from "@wirecat/cli-base";
|
|
2
2
|
import { annotate } from "@wirecat/cli-base/commands";
|
|
3
|
-
import { baseContext, commandWords, FETCH, itemOf, logsInOrOut, outputFor, refuseCommandName, refuseUnderReadOnly, renderAnswer, rootOf, secretInputOf, } from "@wirecat/cli-core/cli";
|
|
3
|
+
import { baseContext, commandWords, FETCH, itemOf, logsInOrOut, openBrowser, outputFor, refuseCommandName, refuseUnderReadOnly, renderAnswer, rootOf, secretInputOf, } from "@wirecat/cli-core/cli";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import { configuration } from "../config.js";
|
|
6
6
|
import { PROVIDER_NAMES } from "../discovery.js";
|
|
7
7
|
import { IDENTITY } from "../identity.js";
|
|
8
8
|
import { passwordCredential } from "../mail/backend.js";
|
|
9
|
-
import { googleAddress, googleClient, microsoftClient, OAUTH_NAMES, oauthKeeper, recordSignIn, SCOPE_WORDS, scopesOf, sendScopeOf,
|
|
9
|
+
import { googleAddress, googleClient, microsoftClient, OAUTH_NAMES, oauthKeeper, recordSignIn, SCOPE_WORDS, scopesOf, sendScopeOf, tokenCredential, } from "../oauth.js";
|
|
10
10
|
import { profileOf, writeProfile } from "../profile.js";
|
|
11
11
|
import { GENERIC_PREPARE, PROVIDERS_URL, prepareText, providerFor } from "../providers.js";
|
|
12
12
|
import { contextOf, endpointOf, openMail, passwordsOf, refuseOffline, repeatable, } from "./context.js";
|
|
@@ -53,7 +53,7 @@ const signInWithOAuth = async (command, context, given) => {
|
|
|
53
53
|
let config;
|
|
54
54
|
const { scopes } = await baseContext(command, configuration.resolveSettings).run(() => keeper.signIn({
|
|
55
55
|
scopes: scopesAsked,
|
|
56
|
-
openBrowser: given.browser ? (environment.openBrowser ??
|
|
56
|
+
openBrowser: given.browser ? (environment.openBrowser ?? openBrowser) : async () => { },
|
|
57
57
|
showUrl: (url) => output.streams.diagnostic(`Open ${name} sign-in: ${url}\n`),
|
|
58
58
|
accept: async (tokens) => {
|
|
59
59
|
if (!tokens.accessToken)
|