@wirecat/drive-cli 0.63.0 → 0.64.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/README.md +2 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-GZJS3UKC.js → all-profiles-BPPT2AK5.js} +13 -13
- package/dist/bundle/{anthropic-RGV3WXX5.js → anthropic-JW6GOJUD.js} +13 -11
- package/dist/bundle/{app-server-AA2PJ7PV.js → app-server-KAQIOJMZ.js} +53 -53
- package/dist/bundle/{bun-OXZYIA3R.js → bun-UT7GNTPV.js} +2 -2
- package/dist/bundle/{bun-sqlite-D45NSDM3.js → bun-sqlite-2OIVV3LS.js} +8 -8
- package/dist/bundle/{chunk-EOOGWUTP.js → chunk-2FEZ24DK.js} +10 -10
- package/dist/bundle/{chunk-TWUH22Z5.js → chunk-2W464HAE.js} +4 -4
- package/dist/bundle/{chunk-YIP7ELON.js → chunk-34BIDKF4.js} +275 -419
- package/dist/bundle/{chunk-2NIC72HH.js → chunk-36GPBPWM.js} +1 -1
- package/dist/bundle/{chunk-44SBK6KB.js → chunk-3J5KAFNA.js} +1601 -877
- package/dist/bundle/{chunk-ZM5J6ZMB.js → chunk-3NULZGQU.js} +2 -2
- package/dist/bundle/{chunk-DJHLVUL6.js → chunk-46CD64J2.js} +152 -36
- package/dist/bundle/{chunk-2TFXK3R4.js → chunk-4CNTID2X.js} +4 -4
- package/dist/bundle/{chunk-WYGWWHZP.js → chunk-4YRENUB5.js} +2 -2
- package/dist/bundle/{chunk-L37LMMRJ.js → chunk-5HSRQ53R.js} +2 -2
- package/dist/bundle/{chunk-XR6ESRU6.js → chunk-5OFA5EXE.js} +2 -2
- package/dist/bundle/{chunk-3QINVLZI.js → chunk-5ZBR55US.js} +1 -1
- package/dist/bundle/{chunk-LMAVCYLQ.js → chunk-66AF4FBW.js} +4 -4
- package/dist/bundle/{chunk-Y6GNA7HE.js → chunk-6B37XO6B.js} +23 -5
- package/dist/bundle/{chunk-ZMOUUOT2.js → chunk-6G53ZFUT.js} +1 -1
- package/dist/bundle/{chunk-2TDUGC5D.js → chunk-AHB4OJCI.js} +1885 -565
- package/dist/bundle/{chunk-E4SDKMBJ.js → chunk-B67BLRAI.js} +3 -3
- package/dist/bundle/{chunk-YGU6ULU5.js → chunk-B7XBIOMR.js} +12 -12
- package/dist/bundle/{chunk-FEZF3TII.js → chunk-BDYWZ7JE.js} +50 -6
- package/dist/bundle/{chunk-BKYMKVHT.js → chunk-BEUAICUD.js} +2 -2
- package/dist/bundle/{chunk-ABYGSJZ4.js → chunk-BEZJA44H.js} +7 -7
- package/dist/bundle/{chunk-TF23BZW5.js → chunk-BZ2ZKILM.js} +3 -3
- package/dist/bundle/{chunk-FUITWY7O.js → chunk-C7WBNOYW.js} +1 -1
- package/dist/bundle/{chunk-V3NVXIQR.js → chunk-CPMRM3GQ.js} +231 -191
- package/dist/bundle/{chunk-AEX37ETW.js → chunk-DD7EFG6B.js} +2 -2
- package/dist/bundle/{chunk-PDCCYHCH.js → chunk-E2LBCCTG.js} +5 -5
- package/dist/bundle/{chunk-O2XOX4HB.js → chunk-EC2XGDKJ.js} +50 -34
- package/dist/bundle/{chunk-4OSSOWDM.js → chunk-EJ4PNHPP.js} +1 -1
- package/dist/bundle/{chunk-4S4JMW6I.js → chunk-EQEGJVO2.js} +1 -1
- package/dist/bundle/{chunk-XNVFKMVR.js → chunk-EWGVDFPT.js} +957 -533
- package/dist/bundle/{chunk-CE2TJBLP.js → chunk-EZ6O3ST3.js} +3 -3
- package/dist/bundle/{chunk-FRIJUILO.js → chunk-F2VDAG32.js} +3 -3
- package/dist/bundle/{chunk-HZZCEQTH.js → chunk-G3NULXOM.js} +4 -4
- package/dist/bundle/{chunk-OD4U7GUY.js → chunk-G4KEKKDE.js} +20 -20
- package/dist/bundle/{chunk-OTROVC4E.js → chunk-GSMYXGFR.js} +1 -1
- package/dist/bundle/{chunk-4CIZWCXV.js → chunk-GW3U6OLD.js} +1 -1
- package/dist/bundle/{chunk-6EY46GAN.js → chunk-HW4UPST2.js} +2 -2
- package/dist/bundle/{chunk-2HF2MRXI.js → chunk-IDAK4DDK.js} +1 -1
- package/dist/bundle/{chunk-27YUUGXQ.js → chunk-IK6KH3RE.js} +1 -1
- package/dist/bundle/{chunk-DJ3SDJZY.js → chunk-IX7NQJLY.js} +8 -8
- package/dist/bundle/{chunk-534OBX5Y.js → chunk-J62DI53V.js} +1 -1
- package/dist/bundle/{chunk-PO5RQQIG.js → chunk-JRXFW7HE.js} +5 -5
- package/dist/bundle/{chunk-XIUDS3OK.js → chunk-K6BSB53R.js} +1 -1
- package/dist/bundle/{chunk-ND6LLYGF.js → chunk-KE4XPPRQ.js} +27 -27
- package/dist/bundle/{chunk-UQLWMGSD.js → chunk-KG2XKEHL.js} +5 -5
- package/dist/bundle/{chunk-MOTRI3SY.js → chunk-KIN6PDFE.js} +24 -2
- package/dist/bundle/{chunk-VAUMOZU5.js → chunk-KVW4XNKB.js} +16 -16
- package/dist/bundle/{chunk-33MGFUED.js → chunk-LOMW6F2E.js} +194 -229
- package/dist/bundle/{chunk-5PPL7JDM.js → chunk-M73NNJ3X.js} +2 -2
- package/dist/bundle/{chunk-QCKZ3GAA.js → chunk-N622LRPM.js} +4 -4
- package/dist/bundle/{chunk-3BZRKLJ6.js → chunk-O2QO5UZC.js} +13 -13
- package/dist/bundle/{chunk-SXM6MHRR.js → chunk-OEVHZOHC.js} +12 -12
- package/dist/bundle/{chunk-6MQSQ4LX.js → chunk-OH3K2E7X.js} +402 -184
- package/dist/bundle/{chunk-J24ZFCWM.js → chunk-P7DEGRZA.js} +21 -21
- package/dist/bundle/{chunk-YUWPNG7B.js → chunk-PBMSBCVB.js} +1 -1
- package/dist/bundle/{chunk-S4RXABDR.js → chunk-QEAD2LF4.js} +3 -3
- package/dist/bundle/{chunk-OXY6SSZG.js → chunk-QXCKJUZY.js} +33 -18
- package/dist/bundle/{chunk-LZEOQW7S.js → chunk-SIOIMO62.js} +36 -36
- package/dist/bundle/{chunk-RKELRWH7.js → chunk-TNV2FXVK.js} +5 -5
- package/dist/bundle/{chunk-UPOSDTPT.js → chunk-UD55VB2N.js} +3 -3
- package/dist/bundle/{chunk-6KQJSFYF.js → chunk-UIEA6FIV.js} +22 -22
- package/dist/bundle/{chunk-XDC3TWTL.js → chunk-UJR272CP.js} +28 -28
- package/dist/bundle/{chunk-3HK5WMI5.js → chunk-USLZE36C.js} +6 -6
- package/dist/bundle/{chunk-ZOJU7ZFI.js → chunk-VIJ6ACYB.js} +8 -8
- package/dist/bundle/{chunk-VKPCONDQ.js → chunk-VPLFD5RJ.js} +4 -4
- package/dist/bundle/{chunk-VJEOGKAN.js → chunk-VT2UFYPJ.js} +7 -7
- package/dist/bundle/{chunk-Q5DJTRKV.js → chunk-WWCYTMAV.js} +2 -2
- package/dist/bundle/{chunk-7EMQ26BA.js → chunk-XPXKD63J.js} +13 -13
- package/dist/bundle/{chunk-J4DIHPZ6.js → chunk-ZF6GUZCE.js} +1 -1
- package/dist/bundle/{chunk-Z42YYLTS.js → chunk-ZRZ4HTCK.js} +52 -34
- package/dist/bundle/{chunk-NEFSGCVA.js → chunk-ZSZJLJIA.js} +10 -10
- package/dist/bundle/command-contract-H5OYJOPF.js +38 -0
- package/dist/bundle/{decode-G5YEIPNC.js → decode-HTOQ6S3V.js} +8 -8
- package/dist/bundle/{dispatch-GEFIXA6X.js → dispatch-SH5SP6LA.js} +11 -11
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-W2CWHNXR.js → echarts-KFHB6SLX.js} +2 -2
- package/dist/bundle/{embed-OBFFPVF4.js → embed-YATFB2PN.js} +9 -9
- package/dist/bundle/{embedder-NGCBQHIG.js → embedder-MQPDFGTJ.js} +12 -12
- package/dist/bundle/entry-YZBB647C.js +22 -0
- package/dist/bundle/{failure-GV77W3CD.js → failure-4FQL4XJI.js} +4 -4
- package/dist/bundle/first-run-5JT3UQZB.js +30 -0
- package/dist/bundle/first-screen-BEMDEWO7.js +36 -0
- package/dist/bundle/{google-CIWUVJ5C.js → google-DVADVICN.js} +13 -13
- package/dist/bundle/{google-api-Z3NSTBBR.js → google-api-QMFGCXBM.js} +55 -56
- package/dist/bundle/grants-WKB2E4TA.js +103 -0
- package/dist/bundle/{identity-OM6GFZ7T.js → identity-FYVDK4M2.js} +6 -6
- package/dist/bundle/{instructions-YQBQSYSS.js → instructions-D3GF3B7M.js} +1 -1
- package/dist/bundle/{login-7RYSDVN3.js → login-COFZ2IWP.js} +61 -62
- package/dist/bundle/{mcp-GWDA3HOA.js → mcp-RKJG22KM.js} +2 -2
- package/dist/bundle/{node-IVU33RL7.js → node-OFICOKX3.js} +2 -2
- package/dist/bundle/{node-sqlite-SIH5BEW2.js → node-sqlite-DNBTDOXD.js} +9 -9
- package/dist/bundle/oauth-PDQHWFBF.js +22 -0
- package/dist/bundle/{open-IAO2SNII.js → open-PTPR2YWX.js} +8 -8
- package/dist/bundle/{openai-SGOUBHXP.js → openai-2KV5LUW4.js} +17 -17
- package/dist/bundle/{process-BPBMV3AT.js → process-EAW6NST2.js} +1 -1
- package/dist/bundle/{program-MYKKJ4F6.js → program-6UV5Q5YN.js} +306 -276
- package/dist/bundle/prompt-634TPMJK.js +19 -0
- package/dist/bundle/{reasons-57J2D77K.js → reasons-DDWCEYSQ.js} +5 -5
- package/dist/bundle/{recognize-A5C5RPB3.js → recognize-SJO6QUDW.js} +7 -7
- package/dist/bundle/{remote-VWYFLRGO.js → remote-6JXZITKF.js} +10 -10
- package/dist/bundle/{rerank-4NGQWREA.js → rerank-MD5VOPQ6.js} +10 -10
- package/dist/bundle/{serve-Y6LQTFH5.js → serve-LZTROA2M.js} +12 -12
- package/dist/bundle/server-GT7X666D.js +69 -0
- package/dist/bundle/{server-6AUHIIUA.js → server-NSA3UAFY.js} +43 -43
- package/dist/bundle/{services-2W4J7EMW.js → services-F5A6XQCV.js} +63 -33
- package/dist/bundle/{sqlite-runtime-P6BBDX2H.js → sqlite-runtime-7YF6REKS.js} +9 -9
- package/dist/bundle/{start-AFFA3LKM.js → start-MUFLE6FA.js} +30 -8
- package/dist/bundle/{state-PXKKXR3R.js → state-UC54F3YZ.js} +9 -9
- package/dist/bundle/{store-IVV2BAGZ.js → store-F5FJGWMR.js} +28 -20
- package/dist/bundle/{store-CN6JEUC4.js → store-J53YNAH6.js} +35 -18
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +58 -0
- package/dist/bundle/tokens-H2EJKGA5.js +101 -0
- package/dist/commands/account.d.ts +4 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +33 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/profile-lock.d.ts +1 -0
- package/dist/profile-lock.d.ts.map +1 -1
- package/dist/profile-lock.js +1 -0
- package/dist/profile-lock.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-Z5KC7XBR.js +0 -33
- package/dist/bundle/command-contract-BRW3AP44.js +0 -38
- package/dist/bundle/entry-ET6HGM7A.js +0 -22
- package/dist/bundle/first-run-JG52UZVO.js +0 -30
- package/dist/bundle/first-screen-CIL3GFAA.js +0 -36
- package/dist/bundle/grants-3S4RL3WB.js +0 -104
- package/dist/bundle/oauth-PT4JEHLL.js +0 -22
- package/dist/bundle/prompt-3ZM64DCB.js +0 -17
- package/dist/bundle/server-PFHI35HA.js +0 -69
- package/dist/bundle/store-maintenance-command-MSY2QNEH.js +0 -59
- package/dist/bundle/tokens-P4LPNUFW.js +0 -102
- /package/dist/bundle/{chunk-ZQ3GWKDQ.js → chunk-SW6C6WH5.js} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
installerOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IK6KH3RE.js";
|
|
6
6
|
import {
|
|
7
7
|
DESCRIBE_FLAG,
|
|
8
8
|
DISPATCH_FLAG,
|
|
@@ -13,17 +13,20 @@ import {
|
|
|
13
13
|
fileState,
|
|
14
14
|
shimFiles,
|
|
15
15
|
writeShim
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EC2XGDKJ.js";
|
|
17
17
|
import "./chunk-Y5E2WNWB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-IDAK4DDK.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
|
|
24
|
+
import { createHash } from "node:crypto";
|
|
25
|
+
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
26
|
+
import { dirname as dirname2, join as join2 } from "node:path";
|
|
24
27
|
import { fileURLToPath } from "node:url";
|
|
25
28
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
|
|
27
30
|
import { readFileSync } from "node:fs";
|
|
28
31
|
import { basename, dirname, join, resolve } from "node:path";
|
|
29
32
|
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
@@ -109,7 +112,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
|
109
112
|
}
|
|
110
113
|
}, "ensureLauncher");
|
|
111
114
|
|
|
112
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
|
|
113
116
|
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
114
117
|
const argv = io.argv ?? process.argv;
|
|
115
118
|
const env = io.env ?? process.env;
|
|
@@ -117,12 +120,12 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
117
120
|
const stdout = io.stdout ?? process.stdout;
|
|
118
121
|
const [first, ...rest] = argv.slice(2);
|
|
119
122
|
if (first === DESCRIBE_FLAG) {
|
|
120
|
-
stdout.write(`${JSON.stringify(describeAnswer(tool))}
|
|
123
|
+
stdout.write(`${JSON.stringify(describeAnswer(tool, shippedManifest(argv[1])))}
|
|
121
124
|
`);
|
|
122
125
|
return { code: 0 };
|
|
123
126
|
}
|
|
124
127
|
if (first === DISPATCH_FLAG) {
|
|
125
|
-
const { runWcat } = await import("./dispatch-
|
|
128
|
+
const { runWcat } = await import("./dispatch-SH5SP6LA.js");
|
|
126
129
|
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
127
130
|
return { code };
|
|
128
131
|
}
|
|
@@ -135,6 +138,25 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
135
138
|
});
|
|
136
139
|
return folder ? { launcher: ensureLauncher({ ...folder, platform }) } : {};
|
|
137
140
|
}, "wcatStart");
|
|
141
|
+
var shippedManifest = /* @__PURE__ */ __name((bin) => {
|
|
142
|
+
if (!bin)
|
|
143
|
+
return void 0;
|
|
144
|
+
try {
|
|
145
|
+
for (let dir = dirname2(realpathSync(bin)); ; dir = dirname2(dir)) {
|
|
146
|
+
if (existsSync(join2(dir, "package.json"))) {
|
|
147
|
+
const bytes = readFileSync2(join2(dir, "contracts", "wirecat.json"));
|
|
148
|
+
const { wcat_manifest: format, desktop } = JSON.parse(bytes.toString("utf8"));
|
|
149
|
+
if (format !== 2 || typeof desktop !== "object" || desktop === null)
|
|
150
|
+
return void 0;
|
|
151
|
+
return { desktop, sha256: createHash("sha256").update(bytes).digest("hex") };
|
|
152
|
+
}
|
|
153
|
+
if (dirname2(dir) === dir)
|
|
154
|
+
return void 0;
|
|
155
|
+
}
|
|
156
|
+
} catch {
|
|
157
|
+
return void 0;
|
|
158
|
+
}
|
|
159
|
+
}, "shippedManifest");
|
|
138
160
|
export {
|
|
139
161
|
wcatStart
|
|
140
162
|
};
|
|
@@ -12,16 +12,16 @@ 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-4CNTID2X.js";
|
|
16
|
+
import "./chunk-F2VDAG32.js";
|
|
17
|
+
import "./chunk-J62DI53V.js";
|
|
18
|
+
import "./chunk-G4KEKKDE.js";
|
|
19
|
+
import "./chunk-KG2XKEHL.js";
|
|
20
20
|
import "./chunk-Y5E2WNWB.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-IDAK4DDK.js";
|
|
22
|
+
import "./chunk-HW4UPST2.js";
|
|
23
|
+
import "./chunk-BDYWZ7JE.js";
|
|
24
|
+
import "./chunk-EJ4PNHPP.js";
|
|
25
25
|
import "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
export {
|
|
27
27
|
ACCESS_SECONDS,
|
|
@@ -8,12 +8,13 @@ import {
|
|
|
8
8
|
previewProjectAnnotationSnapshot,
|
|
9
9
|
snapshotProjectAnnotations,
|
|
10
10
|
storeHealth
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KVW4XNKB.js";
|
|
12
12
|
import {
|
|
13
13
|
note
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BZ2ZKILM.js";
|
|
15
15
|
import {
|
|
16
16
|
ADDED_KINDS,
|
|
17
|
+
BUSINESS_FIND_MAX,
|
|
17
18
|
CALLBACK_PREFIX,
|
|
18
19
|
CATALOG_QUERY,
|
|
19
20
|
COMPANY_TYPE_MEANINGS,
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
DECISION_ACTIONS,
|
|
22
23
|
DECISION_TTL_MS,
|
|
23
24
|
DEFAULT_DECISION_POLICY,
|
|
25
|
+
DEFAULT_OWNER_LANGUAGES,
|
|
24
26
|
EVENT_FIELDS,
|
|
25
27
|
EVIDENCE_FINDINGS_KIND,
|
|
26
28
|
IMPORTED_DOCUMENT_QUERY,
|
|
@@ -63,6 +65,7 @@ import {
|
|
|
63
65
|
mayDecide,
|
|
64
66
|
migrate,
|
|
65
67
|
openStore,
|
|
68
|
+
ownerLanguages,
|
|
66
69
|
parseCallbackData,
|
|
67
70
|
pendingNormalization,
|
|
68
71
|
planProjectAnnotationSnapshot,
|
|
@@ -77,9 +80,10 @@ import {
|
|
|
77
80
|
validateEvidenceFindings,
|
|
78
81
|
waitingPointer,
|
|
79
82
|
withoutField
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-
|
|
83
|
+
} from "./chunk-EWGVDFPT.js";
|
|
84
|
+
import "./chunk-UD55VB2N.js";
|
|
82
85
|
import {
|
|
86
|
+
BUSINESS_KINDS,
|
|
83
87
|
CLOSED_STATES,
|
|
84
88
|
FACT_STATUSES,
|
|
85
89
|
FACT_TYPES,
|
|
@@ -108,32 +112,34 @@ import {
|
|
|
108
112
|
recordDeepCheck,
|
|
109
113
|
reminder,
|
|
110
114
|
validatePayment
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
115
|
+
} from "./chunk-CPMRM3GQ.js";
|
|
116
|
+
import "./chunk-2FEZ24DK.js";
|
|
117
|
+
import "./chunk-B67BLRAI.js";
|
|
118
|
+
import "./chunk-VIJ6ACYB.js";
|
|
119
|
+
import "./chunk-BEZJA44H.js";
|
|
116
120
|
import {
|
|
117
121
|
storePath
|
|
118
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-DD7EFG6B.js";
|
|
119
123
|
import {
|
|
120
124
|
openCache
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import "./chunk-
|
|
123
|
-
import "./chunk-
|
|
125
|
+
} from "./chunk-USLZE36C.js";
|
|
126
|
+
import "./chunk-EQEGJVO2.js";
|
|
127
|
+
import "./chunk-SW6C6WH5.js";
|
|
124
128
|
import {
|
|
125
129
|
PRAGMAS
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
130
|
+
} from "./chunk-36GPBPWM.js";
|
|
131
|
+
import "./chunk-G4KEKKDE.js";
|
|
132
|
+
import "./chunk-KG2XKEHL.js";
|
|
129
133
|
import "./chunk-Y5E2WNWB.js";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
+
import "./chunk-IDAK4DDK.js";
|
|
135
|
+
import "./chunk-HW4UPST2.js";
|
|
136
|
+
import "./chunk-BDYWZ7JE.js";
|
|
137
|
+
import "./chunk-EJ4PNHPP.js";
|
|
134
138
|
import "./chunk-ZVVMGPBJ.js";
|
|
135
139
|
export {
|
|
136
140
|
ADDED_KINDS,
|
|
141
|
+
BUSINESS_FIND_MAX,
|
|
142
|
+
BUSINESS_KINDS,
|
|
137
143
|
CALLBACK_PREFIX,
|
|
138
144
|
CATALOG_QUERY,
|
|
139
145
|
CLOSED_STATES,
|
|
@@ -142,6 +148,7 @@ export {
|
|
|
142
148
|
DECISION_ACTIONS,
|
|
143
149
|
DECISION_TTL_MS,
|
|
144
150
|
DEFAULT_DECISION_POLICY,
|
|
151
|
+
DEFAULT_OWNER_LANGUAGES,
|
|
145
152
|
EVENT_FIELDS,
|
|
146
153
|
EVIDENCE_FINDINGS_KIND,
|
|
147
154
|
FACT_STATUSES,
|
|
@@ -207,6 +214,7 @@ export {
|
|
|
207
214
|
openCache,
|
|
208
215
|
openStore,
|
|
209
216
|
organization,
|
|
217
|
+
ownerLanguages,
|
|
210
218
|
parseCallbackData,
|
|
211
219
|
paymentTitle,
|
|
212
220
|
pendingNormalization,
|
|
@@ -3,11 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AGENDA_COLUMNS,
|
|
5
5
|
BACKFILL_ON_OPEN,
|
|
6
|
+
BUSINESS_FIND_MAX,
|
|
6
7
|
CHAT_COLUMNS,
|
|
7
8
|
CHAT_LIST_KEY,
|
|
8
9
|
CONVERSATION_COLUMNS,
|
|
9
10
|
DEFAULT_AGENT_CLOSE,
|
|
10
11
|
DEFAULT_FIRST_PASS_PER_CHAT,
|
|
12
|
+
DEFAULT_OWNER_LANGUAGES,
|
|
13
|
+
ENRICHMENT_SUBJECTS,
|
|
11
14
|
MAIL_AGENDA_COLUMNS,
|
|
12
15
|
MENTION_QUERY,
|
|
13
16
|
MENTION_STATUSES,
|
|
@@ -32,8 +35,10 @@ import {
|
|
|
32
35
|
openSqlite,
|
|
33
36
|
openStore,
|
|
34
37
|
orphanPointers,
|
|
38
|
+
ownerLanguages,
|
|
35
39
|
parseCrmSetting,
|
|
36
40
|
parseCrmSettingValue,
|
|
41
|
+
parseOwnerLanguages,
|
|
37
42
|
pendingNormalization,
|
|
38
43
|
queryFilter,
|
|
39
44
|
readStoreTables,
|
|
@@ -45,9 +50,11 @@ import {
|
|
|
45
50
|
rollBack,
|
|
46
51
|
rowCounts,
|
|
47
52
|
saveCrmSetting,
|
|
53
|
+
saveOwnerLanguages,
|
|
48
54
|
saveStorePhoneCountries,
|
|
49
55
|
savedAgentClose,
|
|
50
56
|
savedFirstPassPerChat,
|
|
57
|
+
savedOwnerLanguages,
|
|
51
58
|
savedPhoneCountries,
|
|
52
59
|
savedStemmers,
|
|
53
60
|
savedTaskCategories,
|
|
@@ -60,34 +67,40 @@ import {
|
|
|
60
67
|
threadConversation,
|
|
61
68
|
titlePart,
|
|
62
69
|
vectorIndexCounts
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-EWGVDFPT.js";
|
|
71
|
+
import "./chunk-UD55VB2N.js";
|
|
72
|
+
import {
|
|
73
|
+
BUSINESS_KINDS
|
|
74
|
+
} from "./chunk-CPMRM3GQ.js";
|
|
75
|
+
import "./chunk-2FEZ24DK.js";
|
|
76
|
+
import "./chunk-B67BLRAI.js";
|
|
77
|
+
import "./chunk-VIJ6ACYB.js";
|
|
78
|
+
import "./chunk-BEZJA44H.js";
|
|
79
|
+
import "./chunk-DD7EFG6B.js";
|
|
80
|
+
import "./chunk-USLZE36C.js";
|
|
81
|
+
import "./chunk-EQEGJVO2.js";
|
|
82
|
+
import "./chunk-SW6C6WH5.js";
|
|
83
|
+
import "./chunk-36GPBPWM.js";
|
|
84
|
+
import "./chunk-G4KEKKDE.js";
|
|
85
|
+
import "./chunk-KG2XKEHL.js";
|
|
77
86
|
import "./chunk-Y5E2WNWB.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-IDAK4DDK.js";
|
|
88
|
+
import "./chunk-HW4UPST2.js";
|
|
89
|
+
import "./chunk-BDYWZ7JE.js";
|
|
90
|
+
import "./chunk-EJ4PNHPP.js";
|
|
82
91
|
import "./chunk-ZVVMGPBJ.js";
|
|
83
92
|
export {
|
|
84
93
|
AGENDA_COLUMNS,
|
|
85
94
|
BACKFILL_ON_OPEN,
|
|
95
|
+
BUSINESS_FIND_MAX,
|
|
96
|
+
BUSINESS_KINDS,
|
|
86
97
|
CHAT_COLUMNS,
|
|
87
98
|
CHAT_LIST_KEY,
|
|
88
99
|
CONVERSATION_COLUMNS,
|
|
89
100
|
DEFAULT_AGENT_CLOSE,
|
|
90
101
|
DEFAULT_FIRST_PASS_PER_CHAT,
|
|
102
|
+
DEFAULT_OWNER_LANGUAGES,
|
|
103
|
+
ENRICHMENT_SUBJECTS,
|
|
91
104
|
MAIL_AGENDA_COLUMNS,
|
|
92
105
|
MENTION_QUERY,
|
|
93
106
|
MENTION_STATUSES,
|
|
@@ -112,8 +125,10 @@ export {
|
|
|
112
125
|
openSqlite,
|
|
113
126
|
openStore,
|
|
114
127
|
orphanPointers,
|
|
128
|
+
ownerLanguages,
|
|
115
129
|
parseCrmSetting,
|
|
116
130
|
parseCrmSettingValue,
|
|
131
|
+
parseOwnerLanguages,
|
|
117
132
|
pendingNormalization,
|
|
118
133
|
queryFilter,
|
|
119
134
|
readStoreTables,
|
|
@@ -125,9 +140,11 @@ export {
|
|
|
125
140
|
rollBack,
|
|
126
141
|
rowCounts,
|
|
127
142
|
saveCrmSetting,
|
|
143
|
+
saveOwnerLanguages,
|
|
128
144
|
saveStorePhoneCountries,
|
|
129
145
|
savedAgentClose,
|
|
130
146
|
savedFirstPassPerChat,
|
|
147
|
+
savedOwnerLanguages,
|
|
131
148
|
savedPhoneCountries,
|
|
132
149
|
savedStemmers,
|
|
133
150
|
savedTaskCategories,
|
|
@@ -0,0 +1,58 @@
|
|
|
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-34BIDKF4.js";
|
|
8
|
+
import "./chunk-UJR272CP.js";
|
|
9
|
+
import "./chunk-P7DEGRZA.js";
|
|
10
|
+
import "./chunk-HTQTIKWP.js";
|
|
11
|
+
import "./chunk-LOMW6F2E.js";
|
|
12
|
+
import "./chunk-VT2UFYPJ.js";
|
|
13
|
+
import "./chunk-VPLFD5RJ.js";
|
|
14
|
+
import "./chunk-F2VDAG32.js";
|
|
15
|
+
import "./chunk-J62DI53V.js";
|
|
16
|
+
import "./chunk-3J5KAFNA.js";
|
|
17
|
+
import "./chunk-KE4XPPRQ.js";
|
|
18
|
+
import "./chunk-O2QO5UZC.js";
|
|
19
|
+
import "./chunk-OH3K2E7X.js";
|
|
20
|
+
import "./chunk-N622LRPM.js";
|
|
21
|
+
import "./chunk-6G53ZFUT.js";
|
|
22
|
+
import "./chunk-3NULZGQU.js";
|
|
23
|
+
import "./chunk-KIN6PDFE.js";
|
|
24
|
+
import "./chunk-EZ6O3ST3.js";
|
|
25
|
+
import "./chunk-KVW4XNKB.js";
|
|
26
|
+
import "./chunk-BZ2ZKILM.js";
|
|
27
|
+
import "./chunk-JRXFW7HE.js";
|
|
28
|
+
import "./chunk-5DPV7X27.js";
|
|
29
|
+
import "./chunk-66AF4FBW.js";
|
|
30
|
+
import "./chunk-EWGVDFPT.js";
|
|
31
|
+
import "./chunk-UD55VB2N.js";
|
|
32
|
+
import "./chunk-CPMRM3GQ.js";
|
|
33
|
+
import "./chunk-2FEZ24DK.js";
|
|
34
|
+
import "./chunk-B67BLRAI.js";
|
|
35
|
+
import "./chunk-VIJ6ACYB.js";
|
|
36
|
+
import "./chunk-BEZJA44H.js";
|
|
37
|
+
import "./chunk-DD7EFG6B.js";
|
|
38
|
+
import "./chunk-USLZE36C.js";
|
|
39
|
+
import "./chunk-EQEGJVO2.js";
|
|
40
|
+
import "./chunk-6B37XO6B.js";
|
|
41
|
+
import "./chunk-5OFA5EXE.js";
|
|
42
|
+
import "./chunk-D72URWJE.js";
|
|
43
|
+
import "./chunk-IK6KH3RE.js";
|
|
44
|
+
import "./chunk-SW6C6WH5.js";
|
|
45
|
+
import "./chunk-36GPBPWM.js";
|
|
46
|
+
import "./chunk-G4KEKKDE.js";
|
|
47
|
+
import "./chunk-KG2XKEHL.js";
|
|
48
|
+
import "./chunk-Y5E2WNWB.js";
|
|
49
|
+
import "./chunk-IDAK4DDK.js";
|
|
50
|
+
import "./chunk-HW4UPST2.js";
|
|
51
|
+
import "./chunk-BDYWZ7JE.js";
|
|
52
|
+
import "./chunk-EJ4PNHPP.js";
|
|
53
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
54
|
+
export {
|
|
55
|
+
buildStems,
|
|
56
|
+
storeMaintenanceCommands,
|
|
57
|
+
storeSummary
|
|
58
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
authorizedClient,
|
|
5
|
+
checkAuthorization,
|
|
6
|
+
covers,
|
|
7
|
+
credentials,
|
|
8
|
+
googleProvider,
|
|
9
|
+
grantedScopes,
|
|
10
|
+
notSaved,
|
|
11
|
+
observeRequests,
|
|
12
|
+
operationOf,
|
|
13
|
+
saveSession,
|
|
14
|
+
sessionKeeper
|
|
15
|
+
} from "./chunk-XPXKD63J.js";
|
|
16
|
+
import "./chunk-OEVHZOHC.js";
|
|
17
|
+
import "./chunk-UIEA6FIV.js";
|
|
18
|
+
import {
|
|
19
|
+
ACTIVITY_SCOPE,
|
|
20
|
+
APPS_SCOPE,
|
|
21
|
+
READ_SCOPE,
|
|
22
|
+
WRITE_SCOPE
|
|
23
|
+
} from "./chunk-AHB4OJCI.js";
|
|
24
|
+
import "./chunk-GSMYXGFR.js";
|
|
25
|
+
import "./chunk-K6BSB53R.js";
|
|
26
|
+
import "./chunk-SBZB7HMU.js";
|
|
27
|
+
import "./chunk-GW3U6OLD.js";
|
|
28
|
+
import "./chunk-ZRZ4HTCK.js";
|
|
29
|
+
import "./chunk-QXCKJUZY.js";
|
|
30
|
+
import "./chunk-34BIDKF4.js";
|
|
31
|
+
import "./chunk-UJR272CP.js";
|
|
32
|
+
import "./chunk-P7DEGRZA.js";
|
|
33
|
+
import "./chunk-IX7NQJLY.js";
|
|
34
|
+
import "./chunk-HTQTIKWP.js";
|
|
35
|
+
import "./chunk-TNV2FXVK.js";
|
|
36
|
+
import "./chunk-LOMW6F2E.js";
|
|
37
|
+
import "./chunk-VT2UFYPJ.js";
|
|
38
|
+
import "./chunk-B7XBIOMR.js";
|
|
39
|
+
import "./chunk-VPLFD5RJ.js";
|
|
40
|
+
import "./chunk-ZSZJLJIA.js";
|
|
41
|
+
import "./chunk-4CNTID2X.js";
|
|
42
|
+
import "./chunk-F2VDAG32.js";
|
|
43
|
+
import "./chunk-J62DI53V.js";
|
|
44
|
+
import "./chunk-3J5KAFNA.js";
|
|
45
|
+
import "./chunk-KE4XPPRQ.js";
|
|
46
|
+
import "./chunk-O2QO5UZC.js";
|
|
47
|
+
import "./chunk-OH3K2E7X.js";
|
|
48
|
+
import "./chunk-N622LRPM.js";
|
|
49
|
+
import "./chunk-6G53ZFUT.js";
|
|
50
|
+
import "./chunk-3NULZGQU.js";
|
|
51
|
+
import "./chunk-KIN6PDFE.js";
|
|
52
|
+
import "./chunk-EZ6O3ST3.js";
|
|
53
|
+
import "./chunk-KVW4XNKB.js";
|
|
54
|
+
import "./chunk-BZ2ZKILM.js";
|
|
55
|
+
import "./chunk-JRXFW7HE.js";
|
|
56
|
+
import "./chunk-5DPV7X27.js";
|
|
57
|
+
import "./chunk-66AF4FBW.js";
|
|
58
|
+
import "./chunk-BEUAICUD.js";
|
|
59
|
+
import "./chunk-EWGVDFPT.js";
|
|
60
|
+
import "./chunk-UD55VB2N.js";
|
|
61
|
+
import "./chunk-CPMRM3GQ.js";
|
|
62
|
+
import "./chunk-2FEZ24DK.js";
|
|
63
|
+
import "./chunk-B67BLRAI.js";
|
|
64
|
+
import "./chunk-VIJ6ACYB.js";
|
|
65
|
+
import "./chunk-BEZJA44H.js";
|
|
66
|
+
import "./chunk-DD7EFG6B.js";
|
|
67
|
+
import "./chunk-USLZE36C.js";
|
|
68
|
+
import "./chunk-EQEGJVO2.js";
|
|
69
|
+
import "./chunk-6B37XO6B.js";
|
|
70
|
+
import "./chunk-5OFA5EXE.js";
|
|
71
|
+
import "./chunk-D72URWJE.js";
|
|
72
|
+
import "./chunk-IK6KH3RE.js";
|
|
73
|
+
import "./chunk-M73NNJ3X.js";
|
|
74
|
+
import "./chunk-C7WBNOYW.js";
|
|
75
|
+
import "./chunk-SW6C6WH5.js";
|
|
76
|
+
import "./chunk-36GPBPWM.js";
|
|
77
|
+
import "./chunk-G4KEKKDE.js";
|
|
78
|
+
import "./chunk-KG2XKEHL.js";
|
|
79
|
+
import "./chunk-Y5E2WNWB.js";
|
|
80
|
+
import "./chunk-IDAK4DDK.js";
|
|
81
|
+
import "./chunk-HW4UPST2.js";
|
|
82
|
+
import "./chunk-BDYWZ7JE.js";
|
|
83
|
+
import "./chunk-EJ4PNHPP.js";
|
|
84
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
85
|
+
export {
|
|
86
|
+
ACTIVITY_SCOPE,
|
|
87
|
+
APPS_SCOPE,
|
|
88
|
+
READ_SCOPE,
|
|
89
|
+
WRITE_SCOPE,
|
|
90
|
+
authorizedClient,
|
|
91
|
+
checkAuthorization,
|
|
92
|
+
covers,
|
|
93
|
+
credentials,
|
|
94
|
+
googleProvider,
|
|
95
|
+
grantedScopes,
|
|
96
|
+
notSaved,
|
|
97
|
+
observeRequests,
|
|
98
|
+
operationOf,
|
|
99
|
+
saveSession,
|
|
100
|
+
sessionKeeper
|
|
101
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/commands/account.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAuBlD,eAAO,MAAM,sBAAsB,YAAa,OAAO,YAAY,cAAc,SAIhF,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { annotate } from "@wirecat/cli-base/commands";
|
|
3
|
+
import { accountRemoveCommand, LOCAL_READ } from "@wirecat/cli-core/cli";
|
|
4
|
+
import { application, configuration, paths, readConfig } from "../config.js";
|
|
5
|
+
import { DRIVE_APP } from "../identity.js";
|
|
6
|
+
import { profileLocked } from "../profile-lock.js";
|
|
7
|
+
import { profileDir } from "../state.js";
|
|
8
|
+
const removal = {
|
|
9
|
+
signOut: async (profile, { env, keyring, mayRevoke }) => {
|
|
10
|
+
const storage = readConfig(env).profiles[profile]?.storage ?? "keyring";
|
|
11
|
+
const { sessionKeeper } = await import("../tokens.js");
|
|
12
|
+
const { revoked } = await sessionKeeper({
|
|
13
|
+
env,
|
|
14
|
+
name: profile,
|
|
15
|
+
storage,
|
|
16
|
+
client: application(env, { profile }),
|
|
17
|
+
...(keyring ? { keyring } : {}),
|
|
18
|
+
}).signOut({ revoke: mayRevoke });
|
|
19
|
+
return { revoked, removed: ["the Google sign-in"] };
|
|
20
|
+
},
|
|
21
|
+
account: (profile, { env }) => {
|
|
22
|
+
const principal = readConfig(env).profiles[profile]?.principal;
|
|
23
|
+
return principal ? { provider: "google-drive", account: principal } : undefined;
|
|
24
|
+
},
|
|
25
|
+
dataFiles: (profile, { env }) => [profileDir(env, profile), join(paths(env).cache, "exports", profile)],
|
|
26
|
+
busy: (profile, { env }) => (profileLocked(env, profile) ? "a sync or knowledge operation" : undefined),
|
|
27
|
+
};
|
|
28
|
+
export const installAccountCommands = (program, _context) => {
|
|
29
|
+
annotate(program.command("account"), { effects: LOCAL_READ })
|
|
30
|
+
.description("remove this profile from this computer")
|
|
31
|
+
.addCommand(accountRemoveCommand(DRIVE_APP, removal, { resolveSettings: configuration.resolveSettings }));
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/commands/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAuB,oBAAoB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE7F,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxC,MAAM,OAAO,GAAmB;IAC9B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE;QACtD,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,IAAI,SAAS,CAAA;QACvE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAA;QACtD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,aAAa,CAAC;YACtC,GAAG;YACH,IAAI,EAAE,OAAO;YACb,OAAO;YACP,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC;YACrC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChC,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;QACjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAA;IACrD,CAAC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QAC5B,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;QAC9D,OAAO,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACjF,CAAC;IACD,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvG,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAAS,CAAC;CACxG,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAgB,EAAE,QAAwB,EAAE,EAAE;IACnF,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;SAC1D,WAAW,CAAC,wCAAwC,CAAC;SACrD,UAAU,CAAC,oBAAoB,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,eAAe,EAAE,aAAa,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;AAC7G,CAAC,CAAA"}
|
package/dist/profile-lock.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export declare const lockProfile: (env: NodeJS.ProcessEnv, name: string) => Prom
|
|
|
2
2
|
release: () => Promise<void>;
|
|
3
3
|
assertHeld: () => void;
|
|
4
4
|
}>;
|
|
5
|
+
export declare const profileLocked: (env: NodeJS.ProcessEnv, name: string) => boolean;
|
|
5
6
|
//# sourceMappingURL=profile-lock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-lock.d.ts","sourceRoot":"","sources":["../src/profile-lock.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAe,MAAM,CAAC,UAAU,QAAQ,MAAM;;;EA2BrE,CAAA"}
|
|
1
|
+
{"version":3,"file":"profile-lock.d.ts","sourceRoot":"","sources":["../src/profile-lock.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAe,MAAM,CAAC,UAAU,QAAQ,MAAM;;;EA2BrE,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,MAAM,CAAC,UAAU,QAAQ,MAAM,KAAG,OACS,CAAA"}
|
package/dist/profile-lock.js
CHANGED
|
@@ -26,4 +26,5 @@ export const lockProfile = async (env, name) => {
|
|
|
26
26
|
throw new CliError("provider_unavailable", "another sync or knowledge operation holds this profile's lock; retry later", { reason: "profile.busy" });
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
export const profileLocked = (env, name) => lockfile.checkSync(profileDir(env, name), { stale: 30000, realpath: false });
|
|
29
30
|
//# sourceMappingURL=profile-lock.js.map
|
package/dist/profile-lock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-lock.js","sourceRoot":"","sources":["../src/profile-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,GAAsB,EAAE,IAAY,EAAE,EAAE;IACxE,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC3B,IAAI,WAAW,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE;YACzD,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,CAAC;YACV,aAAa,EAAE,GAAG,EAAE;gBAClB,WAAW,GAAG,IAAI,CAAA;YACpB,CAAC;SACF,CAAC,CAAA;QACF,OAAO;YACL,OAAO;YACP,UAAU,EAAE,GAAG,EAAE;gBACf,IAAI,WAAW;oBACb,MAAM,IAAI,QAAQ,CAAC,sBAAsB,EAAE,4CAA4C,EAAE;wBACvF,MAAM,EAAE,cAAc;qBACvB,CAAC,CAAA;YACN,CAAC;SACF,CAAA;IACH,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,QAAQ,CAChB,sBAAsB,EACtB,4EAA4E,EAC5E,EAAE,MAAM,EAAE,cAAc,EAAE,CAC3B,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"profile-lock.js","sourceRoot":"","sources":["../src/profile-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,GAAsB,EAAE,IAAY,EAAE,EAAE;IACxE,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC3B,IAAI,WAAW,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE;YACzD,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,CAAC;YACV,aAAa,EAAE,GAAG,EAAE;gBAClB,WAAW,GAAG,IAAI,CAAA;YACpB,CAAC;SACF,CAAC,CAAA;QACF,OAAO;YACL,OAAO;YACP,UAAU,EAAE,GAAG,EAAE;gBACf,IAAI,WAAW;oBACb,MAAM,IAAI,QAAQ,CAAC,sBAAsB,EAAE,4CAA4C,EAAE;wBACvF,MAAM,EAAE,cAAc;qBACvB,CAAC,CAAA;YACN,CAAC;SACF,CAAA;IACH,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,QAAQ,CAChB,sBAAsB,EACtB,4EAA4E,EAC5E,EAAE,MAAM,EAAE,cAAc,EAAE,CAC3B,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAsB,EAAE,IAAY,EAAW,EAAE,CAC7E,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAA"}
|
package/dist/program.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAOA,OAAO,EAoBL,KAAK,iBAAiB,EASvB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAOA,OAAO,EAoBL,KAAK,iBAAiB,EASvB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMxC,OAAO,EAAuB,KAAK,gBAAgB,EAAoB,MAAM,uBAAuB,CAAA;AA6CpG,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAA;AAkjB7C,eAAO,MAAM,UAAU,QAAO,iBAY5B,CAAA;AAEF,6FAA6F;AAC7F,eAAO,MAAM,aAAa,QAAO,OAA4C,CAAA;AAE7E,eAAO,MAAM,GAAG,SAAU,MAAM,EAAE,YAAW,cAAc,KAAQ,OAAO,CAAC,MAAM,CACI,CAAA"}
|
package/dist/program.js
CHANGED
|
@@ -10,6 +10,7 @@ import { oauthClientReport } from "@wirecat/cli-core/constants";
|
|
|
10
10
|
import { levelFor, newOperationId } from "@wirecat/cli-core/sends";
|
|
11
11
|
import { validateRequest } from "./api-contract.js";
|
|
12
12
|
import { apiMethod } from "./api-methods.js";
|
|
13
|
+
import { installAccountCommands } from "./commands/account.js";
|
|
13
14
|
import { installCatalogCommands } from "./commands/catalog.js";
|
|
14
15
|
import { installConfigCommands, installModelCommands } from "./commands/config.js";
|
|
15
16
|
import { offset, positive } from "./commands/context.js";
|
|
@@ -239,6 +240,7 @@ const installDrive = (program) => {
|
|
|
239
240
|
runsOf.set(program, runs);
|
|
240
241
|
const imported = importedDocument(context);
|
|
241
242
|
installSessionCommands(program, context);
|
|
243
|
+
installAccountCommands(program, context);
|
|
242
244
|
installFolderCommands(program, context, (method, params) => remote.call(method, params));
|
|
243
245
|
installSyncCommands(program, context);
|
|
244
246
|
installStoreCommands(program, context);
|