@wirecat/zoom-cli 0.60.0 → 0.60.1
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/README.md +4 -3
- package/dist/bin/main.js +1 -0
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-7OZPJY76.js → all-profiles-E6KXASLY.js} +5 -5
- package/dist/bundle/{answer-policy-PVWMA2QC.js → answer-policy-YWCC55NB.js} +49 -49
- package/dist/bundle/{anthropic-TT2XV74T.js → anthropic-CSLAACWX.js} +3 -3
- package/dist/bundle/{app-server-POMYD6QV.js → app-server-RYYXX6QV.js} +43 -43
- package/dist/bundle/{bun-sqlite-BBOPAQVG.js → bun-sqlite-B5CZHAV4.js} +2 -2
- package/dist/bundle/{chunk-AJA5ZAV6.js → chunk-3LBA63D5.js} +3 -3
- package/dist/bundle/{chunk-PUOBYJFI.js → chunk-3R437ICM.js} +2 -2
- package/dist/bundle/{chunk-D6L35XQS.js → chunk-43BX56ZI.js} +3 -3
- package/dist/bundle/{chunk-VYUSEJE4.js → chunk-46R2JTGO.js} +2 -2
- package/dist/bundle/{chunk-SKENSSY2.js → chunk-4TCQT57W.js} +10 -10
- package/dist/bundle/{chunk-GNRYFESK.js → chunk-6BJQBVMN.js} +12 -12
- package/dist/bundle/{chunk-AQDWGJZT.js → chunk-7IDNHVJS.js} +39 -2
- package/dist/bundle/{chunk-NKFRV2LB.js → chunk-AOZGGGUK.js} +1 -1
- package/dist/bundle/{chunk-KUBWRI5E.js → chunk-AZZPMHP2.js} +1 -1
- package/dist/bundle/{chunk-72A7CIPL.js → chunk-BO7J5Z3T.js} +6 -6
- package/dist/bundle/{chunk-ODFIV4OS.js → chunk-CGCJ6P3A.js} +12 -12
- package/dist/bundle/{chunk-57LT4A2E.js → chunk-DBSWVZES.js} +1 -1
- package/dist/bundle/{chunk-DAQXO6SM.js → chunk-EN5DBDKW.js} +1 -1
- package/dist/bundle/{chunk-EXFAA4N3.js → chunk-ES6UWVTM.js} +1 -1
- package/dist/bundle/{chunk-MGYFSXI5.js → chunk-EUHQ5D4K.js} +12 -12
- package/dist/bundle/{chunk-E3AMUYNB.js → chunk-FWJ3Q7NO.js} +2 -2
- package/dist/bundle/{chunk-V2QOLHPM.js → chunk-FZMRHNOP.js} +2 -2
- package/dist/bundle/{chunk-J3N2LL37.js → chunk-GEVHI226.js} +2 -2
- package/dist/bundle/{chunk-RSLXLUTS.js → chunk-HAUAEGGI.js} +6 -6
- package/dist/bundle/{chunk-TAQKNWCD.js → chunk-HYZ545ON.js} +1 -1
- package/dist/bundle/{chunk-EH6G2LEU.js → chunk-INARC5O7.js} +7 -7
- package/dist/bundle/{chunk-EOZWDEJL.js → chunk-IQENQXUJ.js} +1 -1
- package/dist/bundle/{chunk-QJCVOVNR.js → chunk-IQSBMAYB.js} +1 -1
- package/dist/bundle/{chunk-4HZRZDMC.js → chunk-IRX2YVAH.js} +3 -3
- package/dist/bundle/{chunk-SG3WSP7Y.js → chunk-K6NPOZUP.js} +1 -1
- package/dist/bundle/{chunk-KVPYI52N.js → chunk-KNAS4VEA.js} +1 -1
- package/dist/bundle/{chunk-KUBCUE6T.js → chunk-KXEC5FVT.js} +1 -1
- package/dist/bundle/{chunk-3P4LUGXI.js → chunk-KYUIU5UR.js} +1 -1
- package/dist/bundle/{chunk-J5ZVGKSZ.js → chunk-LPDYI5GR.js} +1 -1
- package/dist/bundle/{chunk-RNX73QCL.js → chunk-LPY2ISJK.js} +2 -2
- package/dist/bundle/{chunk-UOFOMU3T.js → chunk-LVHZQCP4.js} +1 -1
- package/dist/bundle/{chunk-3UMXCNDI.js → chunk-N27LOY3D.js} +3 -3
- package/dist/bundle/{chunk-4FTPE5SB.js → chunk-OBUKZ2ZM.js} +24 -24
- package/dist/bundle/{chunk-4MC4Z45G.js → chunk-OEEMCNAO.js} +4 -4
- package/dist/bundle/{chunk-7T3BUWJK.js → chunk-PAEBFJUC.js} +7 -7
- package/dist/bundle/{chunk-TB72GE55.js → chunk-PATM7JGR.js} +1 -1
- package/dist/bundle/{chunk-7PQY4ISY.js → chunk-PEMLI3T7.js} +2 -2
- package/dist/bundle/{chunk-RH5YXXAB.js → chunk-PPHUBORC.js} +21 -21
- package/dist/bundle/{chunk-UOL4ILXT.js → chunk-Q7U627RY.js} +2 -2
- package/dist/bundle/{chunk-7GVNQOV6.js → chunk-QKSCDALS.js} +1 -1
- package/dist/bundle/{chunk-YIMI6O7R.js → chunk-R4SRXI7M.js} +111 -111
- package/dist/bundle/{chunk-DP5DX45H.js → chunk-RACSKYNX.js} +1 -1
- package/dist/bundle/{chunk-2EVRKK75.js → chunk-REC3AZP6.js} +1 -1
- package/dist/bundle/{chunk-24DLFGES.js → chunk-RUEPZTNA.js} +2 -2
- package/dist/bundle/{chunk-M5WLBRL7.js → chunk-TY5PBEH2.js} +10 -10
- package/dist/bundle/{chunk-EROQ5SC7.js → chunk-UWVNY5CA.js} +1 -1
- package/dist/bundle/{chunk-DKIIKMSE.js → chunk-V53IB5AU.js} +20 -20
- package/dist/bundle/{chunk-YSZQ5SZK.js → chunk-VJBVNDFR.js} +2 -2
- package/dist/bundle/{chunk-LZBWU2IA.js → chunk-VKUS2V4L.js} +2 -2
- package/dist/bundle/{chunk-LKV3NRCJ.js → chunk-VLE3FWE3.js} +11 -11
- package/dist/bundle/{chunk-LYZNVNJA.js → chunk-VVKHF6VJ.js} +1 -1
- package/dist/bundle/{chunk-I45V6AFG.js → chunk-WB7MQHUI.js} +1 -1
- package/dist/bundle/{chunk-YZZ6NBXC.js → chunk-WEUXLXOZ.js} +5 -5
- package/dist/bundle/{chunk-Q4NDCDFG.js → chunk-WFT2GGFH.js} +7 -7
- package/dist/bundle/{chunk-IFXPNXAH.js → chunk-WWNZS7ZY.js} +1 -1
- package/dist/bundle/{chunk-XMCVB4Q4.js → chunk-WYRYLBST.js} +4 -4
- package/dist/bundle/{chunk-GXACHTB2.js → chunk-X7YPTYM4.js} +2 -2
- package/dist/bundle/{chunk-HWZXQLR5.js → chunk-XNUFDYR6.js} +3 -3
- package/dist/bundle/{chunk-PU4FKK5T.js → chunk-XS72YFPV.js} +1 -1
- package/dist/bundle/{chunk-22UBF6U6.js → chunk-XX7KVQIG.js} +1 -1
- package/dist/bundle/{chunk-G3MXAGF2.js → chunk-Y3YURIZF.js} +12 -12
- package/dist/bundle/{chunk-DN7VHENQ.js → chunk-YEZQ7SD7.js} +5 -5
- package/dist/bundle/{chunk-WVXAQVLG.js → chunk-YLATWUE7.js} +3 -3
- package/dist/bundle/{chunk-JBGYI5BY.js → chunk-Z4D6M62I.js} +1 -1
- package/dist/bundle/{chunk-XAF2LHZG.js → chunk-Z5H47R4G.js} +25 -25
- package/dist/bundle/{chunk-SK3K2VHF.js → chunk-ZDRDCANC.js} +51 -51
- package/dist/bundle/{chunk-2TV7UTHK.js → chunk-ZXQCA3ZW.js} +1 -1
- package/dist/bundle/{cli-WIMAOCXF.js → cli-CYKEKT5P.js} +47 -47
- package/dist/bundle/command-contract-P45QCCXM.js +38 -0
- package/dist/bundle/config-JYKTLEA3.js +79 -0
- package/dist/bundle/{decode-UBPIHVNG.js → decode-CTQJQYNU.js} +2 -2
- package/dist/bundle/{dist-YYDTME5J.js → dist-YLSQKPPY.js} +13 -13
- package/dist/bundle/{embed-7JHEPBFD.js → embed-P2BKRRJD.js} +4 -4
- package/dist/bundle/{embedder-HTRPWR6T.js → embedder-HC6ZARP5.js} +4 -4
- package/dist/bundle/{first-run-I52ADRJ2.js → first-run-UERFFXBV.js} +7 -7
- package/dist/bundle/first-screen-VFIS7FX3.js +36 -0
- package/dist/bundle/{folders-5ZBUQHAM.js → folders-RSLPTZLJ.js} +2 -2
- package/dist/bundle/{main-64VVZ5QG.js → main-2T6D77JC.js} +17 -16
- package/dist/bundle/mcp-4VHVUMCR.js +92 -0
- package/dist/bundle/{mcp-ZMIPDB4R.js → mcp-6CLW2IZM.js} +56 -56
- package/dist/bundle/{meetings-RD3NU6NN.js → meetings-ZIDSQZBJ.js} +3 -3
- package/dist/bundle/{node-sqlite-DGEEDBXV.js → node-sqlite-7CGHAHIS.js} +2 -2
- package/dist/bundle/{oauth-NRZMCFH3.js → oauth-UBCYXTWV.js} +4 -4
- package/dist/bundle/{open-SUGCOCAU.js → open-AWUB4Q7Z.js} +2 -2
- package/dist/bundle/{output-file-SXV2ANW7.js → output-file-SN22HAVL.js} +3 -3
- package/dist/bundle/{program-WGNTV7NS.js → program-STYPTNT3.js} +67 -63
- package/dist/bundle/{prompt-NICXDWN3.js → prompt-MAYUHEGN.js} +3 -3
- package/dist/bundle/{recognize-6DAHO6X6.js → recognize-FVTNXRTF.js} +2 -2
- package/dist/bundle/{remote-JZ3TXP6I.js → remote-WCPRU73L.js} +5 -5
- package/dist/bundle/{rerank-YSXWCAGZ.js → rerank-6CBLZBCV.js} +4 -4
- package/dist/bundle/{run-log-APHZZWC7.js → run-log-G4WZTOBW.js} +47 -47
- package/dist/bundle/{serve-7VWL475U.js → serve-3IDUVTZL.js} +5 -5
- package/dist/bundle/server-7GU36TER.js +66 -0
- package/dist/bundle/server-VHRS5UAL.js +53 -0
- package/dist/bundle/{services-D64U72OE.js → services-326Z3TNE.js} +23 -23
- package/dist/bundle/{speech-QLCQAT4O.js → speech-KSZ7RKM3.js} +4 -4
- package/dist/bundle/{state-KAD3R27T.js → state-EPB3L2JM.js} +3 -3
- package/dist/bundle/{store-2BHHS77S.js → store-7WX7SW2R.js} +13 -13
- package/dist/bundle/{store-7UNPRLZ3.js → store-KO242JBK.js} +11 -11
- package/dist/bundle/store-connection-K3MNDCQQ.js +76 -0
- package/dist/bundle/store-maintenance-command-GJDJYI2U.js +54 -0
- package/dist/bundle/{streaming-AK6Q2ZGQ.js → streaming-M6VDKBBH.js} +4 -4
- package/dist/bundle/{tokens-CCM3D4ZT.js → tokens-BTNXHR7T.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/login.d.ts +1 -0
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +1 -1
- package/dist/login.js.map +1 -1
- package/dist/recording-schedule-setup.d.ts.map +1 -1
- package/dist/recording-schedule-setup.js +1 -0
- package/dist/recording-schedule-setup.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +6 -1
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +15 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +40 -1
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/bundle/command-contract-J7PDZQMC.js +0 -38
- package/dist/bundle/config-G62PBNZF.js +0 -79
- package/dist/bundle/first-screen-XNCFWOLC.js +0 -36
- package/dist/bundle/mcp-5SJXWEJW.js +0 -92
- package/dist/bundle/server-7LABFAA5.js +0 -53
- package/dist/bundle/server-VFXB5WRG.js +0 -66
- package/dist/bundle/store-connection-QTMLZ7LR.js +0 -76
- package/dist/bundle/store-maintenance-command-ND6PQCVZ.js +0 -54
|
@@ -3,11 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
checkCancelled,
|
|
5
5
|
object
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-46R2JTGO.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
|
+
Credentials,
|
|
9
10
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R4SRXI7M.js";
|
|
11
12
|
import {
|
|
12
13
|
__name
|
|
13
14
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -16,14 +17,32 @@ import {
|
|
|
16
17
|
var TOKEN_LOG_ALLOW = ["rotated", "saved", "pid"];
|
|
17
18
|
var TOKEN_LOG_EVENT = "zoom.token.exchange";
|
|
18
19
|
var abortReason = /* @__PURE__ */ __name((parent) => !parent?.aborted ? "timeout" : isCliError(parent.reason) ? parent.reason.code : "cancelled", "abortReason");
|
|
20
|
+
var storesOf = /* @__PURE__ */ __name(({ configDir, service, keyring }) => configDir === void 0 ? void 0 : {
|
|
21
|
+
auto: new Credentials({ configDir, service, keyring }),
|
|
22
|
+
file: new Credentials({ configDir, service, keyring, storage: "file" })
|
|
23
|
+
}, "storesOf");
|
|
19
24
|
var TokenManager = class _TokenManager {
|
|
20
25
|
static {
|
|
21
26
|
__name(this, "TokenManager");
|
|
22
27
|
}
|
|
23
28
|
options;
|
|
24
29
|
refreshState = /* @__PURE__ */ new Map();
|
|
30
|
+
// Shared by every scoped manager, so a failing keyring is reported once per run.
|
|
31
|
+
stores;
|
|
25
32
|
constructor(options) {
|
|
26
33
|
this.options = options;
|
|
34
|
+
this.stores = storesOf(options);
|
|
35
|
+
}
|
|
36
|
+
/** Where this login is kept: the file once it holds it, the keyring otherwise. */
|
|
37
|
+
storageOf(account = this.accountOf()) {
|
|
38
|
+
return this.stores?.file.read(account) ? "file" : "keyring";
|
|
39
|
+
}
|
|
40
|
+
/** The same login, saved where `session start --credential-storage` says. */
|
|
41
|
+
storedIn(storage) {
|
|
42
|
+
const scoped = new _TokenManager({ ...this.options, storage });
|
|
43
|
+
scoped.refreshState = this.refreshState;
|
|
44
|
+
scoped.stores = this.stores;
|
|
45
|
+
return scoped;
|
|
27
46
|
}
|
|
28
47
|
/** The login of one profile: `<client id>:<profile>` in the keyring. */
|
|
29
48
|
forProfile(profile) {
|
|
@@ -37,12 +56,15 @@ var TokenManager = class _TokenManager {
|
|
|
37
56
|
},
|
|
38
57
|
keyring: parent.keyring,
|
|
39
58
|
service: parent.service,
|
|
59
|
+
...parent.configDir === void 0 ? {} : { configDir: parent.configDir },
|
|
60
|
+
...parent.storage === void 0 ? {} : { storage: parent.storage },
|
|
40
61
|
fetch: parent.fetch,
|
|
41
62
|
now: parent.now,
|
|
42
63
|
log: parent.log,
|
|
43
64
|
signal: parent.signal
|
|
44
65
|
});
|
|
45
66
|
scoped.refreshState = this.refreshState;
|
|
67
|
+
scoped.stores = this.stores;
|
|
46
68
|
return scoped;
|
|
47
69
|
}
|
|
48
70
|
withSignal(signal, fetcher = this.options.fetch) {
|
|
@@ -58,18 +80,23 @@ var TokenManager = class _TokenManager {
|
|
|
58
80
|
},
|
|
59
81
|
keyring: parent.keyring,
|
|
60
82
|
service: parent.service,
|
|
83
|
+
...parent.configDir === void 0 ? {} : { configDir: parent.configDir },
|
|
84
|
+
...parent.storage === void 0 ? {} : { storage: parent.storage },
|
|
61
85
|
fetch: fetcher,
|
|
62
86
|
now: parent.now,
|
|
63
87
|
log: parent.log,
|
|
64
88
|
signal: signal && parent.signal ? AbortSignal.any([signal, parent.signal]) : signal ?? parent.signal
|
|
65
89
|
});
|
|
66
90
|
scoped.refreshState = this.refreshState;
|
|
91
|
+
scoped.stores = this.stores;
|
|
67
92
|
return scoped;
|
|
68
93
|
}
|
|
69
94
|
accountOf() {
|
|
70
95
|
return this.options.account ?? this.options.clientId;
|
|
71
96
|
}
|
|
72
97
|
read(account) {
|
|
98
|
+
if (this.stores)
|
|
99
|
+
return this.stores.file.read(account)?.secret ?? this.stores.auto.read(account)?.secret ?? null;
|
|
73
100
|
try {
|
|
74
101
|
return this.options.keyring.get(this.options.service, account);
|
|
75
102
|
} catch {
|
|
@@ -97,6 +124,16 @@ var TokenManager = class _TokenManager {
|
|
|
97
124
|
}
|
|
98
125
|
}
|
|
99
126
|
save(tokens, account = this.accountOf()) {
|
|
127
|
+
if (this.stores) {
|
|
128
|
+
const { auto, file } = this.stores;
|
|
129
|
+
const storage = this.options.storage ?? this.storageOf(account);
|
|
130
|
+
const value = JSON.stringify(tokens);
|
|
131
|
+
if (storage === "file")
|
|
132
|
+
file.write(account, value);
|
|
133
|
+
else if (auto.write(account, value) === "keyring" && this.options.storage === "keyring")
|
|
134
|
+
file.remove(account);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
100
137
|
try {
|
|
101
138
|
this.options.keyring.set(this.options.service, account, JSON.stringify(tokens));
|
|
102
139
|
} catch {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
organization,
|
|
5
5
|
project,
|
|
6
6
|
reminder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WWNZS7ZY.js";
|
|
8
8
|
import {
|
|
9
9
|
MIGRATIONS,
|
|
10
10
|
SnapshotBudget,
|
|
@@ -28,22 +28,22 @@ import {
|
|
|
28
28
|
tagMemberIds,
|
|
29
29
|
thingOf,
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CGCJ6P3A.js";
|
|
32
32
|
import {
|
|
33
33
|
fold
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZXQCA3ZW.js";
|
|
35
35
|
import {
|
|
36
36
|
filesAccountSql,
|
|
37
37
|
folderProviderOf,
|
|
38
38
|
folderProviderSql,
|
|
39
39
|
isDocumentAccountProvider
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ES6UWVTM.js";
|
|
41
41
|
import {
|
|
42
42
|
queryFieldsOf
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LVHZQCP4.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-R4SRXI7M.js";
|
|
47
47
|
import {
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
WORK_TASK_TYPES,
|
|
17
17
|
linkKind,
|
|
18
18
|
matches
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-K6NPOZUP.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_STEMMERS,
|
|
22
22
|
DEFAULT_STEMMERS_VERSION,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
fold,
|
|
30
30
|
normalize,
|
|
31
31
|
parseStemmers
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZXQCA3ZW.js";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_TASK_CATEGORIES,
|
|
35
35
|
sharedConfigPath,
|
|
36
36
|
storedTaskCategories,
|
|
37
37
|
taskCategoriesReader
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FWJ3Q7NO.js";
|
|
39
39
|
import {
|
|
40
40
|
COUNTER_FIELDS,
|
|
41
41
|
DOCUMENT_ACCOUNT_PROVIDERS,
|
|
@@ -67,19 +67,19 @@ import {
|
|
|
67
67
|
rankingWords,
|
|
68
68
|
useStoredProviders,
|
|
69
69
|
validCounter
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-ES6UWVTM.js";
|
|
71
71
|
import {
|
|
72
72
|
normalizeTag,
|
|
73
73
|
tagOf
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Z4D6M62I.js";
|
|
75
75
|
import {
|
|
76
76
|
storePath
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-KXEC5FVT.js";
|
|
78
78
|
import {
|
|
79
79
|
PRAGMAS,
|
|
80
80
|
quietSqliteWarning,
|
|
81
81
|
storeCapable
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-YLATWUE7.js";
|
|
83
83
|
import {
|
|
84
84
|
CHAT_MESSAGES_READ,
|
|
85
85
|
MEETING_FINDINGS_KIND,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
validateMeetingPreparationContext,
|
|
107
107
|
validateMeetingRelatedHistory,
|
|
108
108
|
validateMeetingSeriesHistory
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-Q7U627RY.js";
|
|
110
110
|
import {
|
|
111
111
|
QUERY_LIMITS,
|
|
112
112
|
dateRange,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
validateQuery,
|
|
118
118
|
walkQuery,
|
|
119
119
|
zonedMoment
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-LVHZQCP4.js";
|
|
121
121
|
import {
|
|
122
122
|
CliError,
|
|
123
123
|
array,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
singleLine,
|
|
137
137
|
strictObject,
|
|
138
138
|
string
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-R4SRXI7M.js";
|
|
140
140
|
import {
|
|
141
141
|
resolveFrom
|
|
142
142
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -33934,7 +33934,7 @@ var openSqlite = /* @__PURE__ */ __name(async (path, { readOnly = false } = {})
|
|
|
33934
33934
|
var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33935
33935
|
quietSqliteWarning();
|
|
33936
33936
|
const { drizzle } = await import("./node-R2BLYUSB.js");
|
|
33937
|
-
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-
|
|
33937
|
+
const { cacheOverNodeSqlite, nodeClient } = await import("./node-sqlite-7CGHAHIS.js");
|
|
33938
33938
|
const client = await nodeClient(path, { readOnly });
|
|
33939
33939
|
try {
|
|
33940
33940
|
return { database: cacheOverNodeSqlite(client), orm: drizzle({ client }) };
|
|
@@ -33944,7 +33944,7 @@ var openUnderNode = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
|
33944
33944
|
}
|
|
33945
33945
|
}, "openUnderNode");
|
|
33946
33946
|
var openUnderBun = /* @__PURE__ */ __name(async (path, readOnly) => {
|
|
33947
|
-
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-
|
|
33947
|
+
const { bunClient, cacheOverBunSqlite } = await import("./bun-sqlite-B5CZHAV4.js");
|
|
33948
33948
|
const { drizzle } = await import("./bun-JVDJVDHL.js");
|
|
33949
33949
|
const client = await bunClient(path, readOnly ? { readonly: true, create: false } : void 0);
|
|
33950
33950
|
try {
|
|
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refuseLacking
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WFT2GGFH.js";
|
|
6
6
|
import {
|
|
7
7
|
servingProfiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IQSBMAYB.js";
|
|
9
9
|
import {
|
|
10
10
|
OFFLINE,
|
|
11
11
|
capability,
|
|
12
12
|
chatIdIn,
|
|
13
13
|
servicesFor,
|
|
14
14
|
throughWrapper
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z5H47R4G.js";
|
|
16
16
|
import {
|
|
17
17
|
asFirstWord,
|
|
18
18
|
baseContext,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
recalledAccount,
|
|
24
24
|
rememberAccount,
|
|
25
25
|
rootOf2 as rootOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Y3YURIZF.js";
|
|
27
27
|
import {
|
|
28
28
|
MESSENGER_CHANGE_REFUSAL,
|
|
29
29
|
readOnlyRefusal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KYUIU5UR.js";
|
|
31
31
|
import {
|
|
32
32
|
providerErrorKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VKUS2V4L.js";
|
|
34
34
|
import {
|
|
35
35
|
LOG_ATTRIBUTES,
|
|
36
36
|
codeOf,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
currentRun,
|
|
39
39
|
fromLogAttributes,
|
|
40
40
|
logAttributes
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WEUXLXOZ.js";
|
|
42
42
|
import {
|
|
43
43
|
isCliFailure
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IQENQXUJ.js";
|
|
45
45
|
import {
|
|
46
46
|
foldName,
|
|
47
47
|
isId,
|
|
48
48
|
pickPerson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LPY2ISJK.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTHORITY_KEY,
|
|
52
52
|
CEILING_KEY,
|
|
@@ -57,17 +57,17 @@ import {
|
|
|
57
57
|
levelFor,
|
|
58
58
|
readKeysForCommand,
|
|
59
59
|
skipFlagFor
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AOZGGGUK.js";
|
|
61
61
|
import {
|
|
62
62
|
openStore
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-CGCJ6P3A.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError,
|
|
66
66
|
logRecordOf,
|
|
67
67
|
realSleep,
|
|
68
68
|
resolvePaths,
|
|
69
69
|
writeSecurely
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-R4SRXI7M.js";
|
|
71
71
|
import {
|
|
72
72
|
__name
|
|
73
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KXEC5FVT.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
resolvePaths,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4SRXI7M.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GEVHI226.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-R4SRXI7M.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PEMLI3T7.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-R4SRXI7M.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KYUIU5UR.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YLATWUE7.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError,
|
|
13
13
|
catchCrashes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R4SRXI7M.js";
|
|
15
15
|
import {
|
|
16
16
|
importFrom
|
|
17
17
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -188,8 +188,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
188
188
|
if (command.optsWithGlobals().dryRun === true)
|
|
189
189
|
return;
|
|
190
190
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
191
|
-
import("./first-run-
|
|
192
|
-
import("./command-contract-
|
|
191
|
+
import("./first-run-UERFFXBV.js"),
|
|
192
|
+
import("./command-contract-P45QCCXM.js")
|
|
193
193
|
]);
|
|
194
194
|
await setupAtStart({
|
|
195
195
|
command: entry.app.command,
|
|
@@ -204,7 +204,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
204
204
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
205
205
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
206
206
|
return false;
|
|
207
|
-
const { readSecret } = await import("./prompt-
|
|
207
|
+
const { readSecret } = await import("./prompt-MAYUHEGN.js");
|
|
208
208
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
209
209
|
input: io.stdin,
|
|
210
210
|
output: io.stderr,
|
|
@@ -9,35 +9,35 @@ import {
|
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6BJQBVMN.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YEZQ7SD7.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf,
|
|
19
19
|
serveStdio
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KNAS4VEA.js";
|
|
21
21
|
import {
|
|
22
22
|
McpServer
|
|
23
23
|
} from "./chunk-5D4AEUVA.js";
|
|
24
24
|
import {
|
|
25
25
|
wholeList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WFT2GGFH.js";
|
|
27
27
|
import {
|
|
28
28
|
changesMessenger,
|
|
29
29
|
flatten,
|
|
30
30
|
itemOf
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Y3YURIZF.js";
|
|
32
32
|
import {
|
|
33
33
|
MESSENGER_CHANGE_REFUSAL,
|
|
34
34
|
readOnlyLockOf,
|
|
35
35
|
readOnlyRefusal
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KYUIU5UR.js";
|
|
37
37
|
import {
|
|
38
38
|
mcpErrorResult,
|
|
39
39
|
object
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-R4SRXI7M.js";
|
|
41
41
|
import {
|
|
42
42
|
__name
|
|
43
43
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FWJ3Q7NO.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KXEC5FVT.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-R4SRXI7M.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
LEVELS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AOZGGGUK.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
array,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
unknown,
|
|
27
27
|
visibleControls,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-R4SRXI7M.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
commandPathOf,
|
|
5
5
|
findCommand,
|
|
6
6
|
outputOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OEEMCNAO.js";
|
|
8
8
|
import {
|
|
9
9
|
Command,
|
|
10
10
|
Help,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
environmentOf,
|
|
16
16
|
metaOf,
|
|
17
17
|
takesProfile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3YURIZF.js";
|
|
19
19
|
import {
|
|
20
20
|
wrapAnsi
|
|
21
21
|
} from "./chunk-HTQTIKWP.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
writes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-R4SRXI7M.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|