@wirecat/drive-cli 0.58.0 → 0.59.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/dist/bin/drive.js +6 -2
- package/dist/bundle/{all-profiles-ANDWOJDL.js → all-profiles-CVISDGMF.js} +14 -13
- package/dist/bundle/{anthropic-EZPZUWGS.js → anthropic-WLNQC23G.js} +9 -9
- package/dist/bundle/{app-server-67WL423B.js → app-server-P2VOONXF.js} +53 -51
- package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
- package/dist/bundle/{bun-sqlite-A5ZKTIYC.js → bun-sqlite-MNZICITP.js} +8 -8
- package/dist/bundle/{chunk-NYINLKWT.js → chunk-2AXA5SKP.js} +1 -1
- package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
- package/dist/bundle/{chunk-4GZLX2ME.js → chunk-3KJTJDDT.js} +40 -33
- package/dist/bundle/{chunk-4UU4ONKY.js → chunk-3KNZADHJ.js} +5086 -640
- package/dist/bundle/{chunk-O3K46QRL.js → chunk-3U22QTU6.js} +8 -6
- package/dist/bundle/chunk-3VSUT6BD.js +35 -0
- package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
- package/dist/bundle/{chunk-JEMKSWVI.js → chunk-6C6255U6.js} +12 -12
- package/dist/bundle/{chunk-UBZ2LH7N.js → chunk-6CQO2FIN.js} +1403 -581
- package/dist/bundle/{chunk-4EEOJ54H.js → chunk-7QTVIZII.js} +5400 -2996
- package/dist/bundle/{chunk-TCJRJ3TE.js → chunk-A6EG7ZDS.js} +13 -13
- package/dist/bundle/{chunk-SPVPKHBQ.js → chunk-A6SLYOP2.js} +35 -30
- package/dist/bundle/{chunk-TIXIB32T.js → chunk-AD62XJKO.js} +153 -101
- package/dist/bundle/{chunk-GDRO4YMH.js → chunk-B5GBJ35N.js} +4 -4
- package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
- package/dist/bundle/{chunk-ALTG7BZQ.js → chunk-CBM2XAEZ.js} +19 -19
- package/dist/bundle/{chunk-2TASMYGM.js → chunk-DI5Z4SH5.js} +3 -3
- package/dist/bundle/{chunk-ITD7WI23.js → chunk-EBLA7GXY.js} +1 -1
- package/dist/bundle/{chunk-P5MCZ635.js → chunk-EHEZSV6I.js} +11 -88
- package/dist/bundle/{chunk-QVIJMV22.js → chunk-EORMZCVF.js} +3 -3
- package/dist/bundle/{chunk-OZEJA67C.js → chunk-EVETU3TF.js} +8 -8
- package/dist/bundle/{chunk-7YUZAEBG.js → chunk-F3FOL42A.js} +2 -2
- package/dist/bundle/{chunk-AFZ33AC7.js → chunk-FICVPYE4.js} +179 -50
- package/dist/bundle/{chunk-6THTUYPT.js → chunk-FVQCM7IQ.js} +1 -1
- package/dist/bundle/{chunk-TNX77VPM.js → chunk-GI5JBGXH.js} +4589 -1510
- package/dist/bundle/{chunk-7VFD3UJQ.js → chunk-GJ4ZCIOP.js} +3 -3
- package/dist/bundle/{chunk-7AL57FCK.js → chunk-GT5KTGCN.js} +4 -4
- package/dist/bundle/{chunk-BAEIAQWH.js → chunk-H2BKXPBL.js} +2 -2
- package/dist/bundle/chunk-HIOJRPCT.js +93 -0
- package/dist/bundle/{chunk-ASPIEEXN.js → chunk-HIP43OGZ.js} +1 -1
- package/dist/bundle/{chunk-UMJLXAJI.js → chunk-HMZAMHKN.js} +2 -2
- package/dist/bundle/{chunk-ESF2B22R.js → chunk-HWLLVLAB.js} +10 -10
- package/dist/bundle/{chunk-X5XWUQNU.js → chunk-IADOBOKB.js} +2 -2
- package/dist/bundle/{chunk-4ICWGMHN.js → chunk-IBZ3IBO4.js} +7 -7
- package/dist/bundle/{chunk-MBNKNWOG.js → chunk-IGF6EXBR.js} +35 -34
- package/dist/bundle/{chunk-I4VUHZSD.js → chunk-II7LST64.js} +3 -3
- package/dist/bundle/{chunk-Z5GDNCTJ.js → chunk-IIP43FQJ.js} +2 -2
- package/dist/bundle/{chunk-UTDL7MKT.js → chunk-JSDVK3JA.js} +2 -2
- package/dist/bundle/{chunk-X4F3M6L6.js → chunk-JW2CVCUH.js} +4 -4
- package/dist/bundle/{chunk-IBJOO5FG.js → chunk-K4LXGZTE.js} +16 -16
- package/dist/bundle/{chunk-WICYDOVL.js → chunk-KFZUODXB.js} +70 -18
- package/dist/bundle/chunk-KPRGTTJH.js +34 -0
- package/dist/bundle/{chunk-SWFA36F3.js → chunk-L5SE2XZP.js} +20 -14
- package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
- package/dist/bundle/{chunk-34XHR5FL.js → chunk-LPHMAQJQ.js} +16 -16
- package/dist/bundle/{chunk-6SARLV3Z.js → chunk-M6I2SQN7.js} +4 -4
- package/dist/bundle/{chunk-OG5ERX4S.js → chunk-MEAPA4EZ.js} +2 -2
- package/dist/bundle/{chunk-IH4UCM5K.js → chunk-MKCNUI72.js} +2 -2
- package/dist/bundle/{chunk-XQMMB6ST.js → chunk-MUUHUHWC.js} +2 -1
- package/dist/bundle/{chunk-NKL5XXOM.js → chunk-OKXSTWKW.js} +8 -8
- package/dist/bundle/{chunk-BKM2CGG2.js → chunk-OMMEQJOB.js} +3 -3
- package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
- package/dist/bundle/{chunk-TMW526H3.js → chunk-P3ZTW2ZM.js} +5 -5
- package/dist/bundle/{chunk-FD7A6745.js → chunk-P7WPYKSB.js} +4 -4
- package/dist/bundle/{chunk-OUQVZTF5.js → chunk-PAEVBAM3.js} +7 -42
- package/dist/bundle/{chunk-W6KMNO3C.js → chunk-PGKIOSN3.js} +6 -6
- package/dist/bundle/{chunk-KCBHOYNZ.js → chunk-QTM7USFA.js} +8 -13
- package/dist/bundle/{chunk-IXXQZCNK.js → chunk-TFH5X46A.js} +32 -19
- package/dist/bundle/{chunk-YHRJUZ3O.js → chunk-TI55J3BA.js} +6 -4
- package/dist/bundle/{chunk-J36Z6BDZ.js → chunk-TJXPJ3A5.js} +570 -366
- package/dist/bundle/{chunk-RRHC5SBB.js → chunk-UQPKAY6I.js} +2 -2
- package/dist/bundle/{chunk-A4DHPOFQ.js → chunk-UWVNRPT7.js} +53 -39
- package/dist/bundle/{chunk-3RG27IWA.js → chunk-V36RIXFA.js} +5 -5
- package/dist/bundle/{chunk-3GXNODTB.js → chunk-V42KAPU3.js} +4 -4
- package/dist/bundle/{chunk-D72FL3L3.js → chunk-VT6GZAF4.js} +35 -35
- package/dist/bundle/{chunk-VXI67T7U.js → chunk-VVCZS42A.js} +1 -1
- package/dist/bundle/{chunk-A7FMNTCK.js → chunk-W62CON5K.js} +4 -4
- package/dist/bundle/{chunk-PYPLD7JO.js → chunk-XCOCPXCM.js} +2 -2
- package/dist/bundle/{chunk-BLJVCJZU.js → chunk-YADXWQHV.js} +26 -26
- package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
- package/dist/bundle/{chunk-5NPFHWLP.js → chunk-YV4ABH6J.js} +5 -5
- package/dist/bundle/{chunk-ED5JNYN5.js → chunk-ZSMCJKGP.js} +27 -26
- package/dist/bundle/{chunk-JZ67M3HR.js → chunk-ZYCLPJ7U.js} +1 -1
- package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
- package/dist/bundle/{decode-2R6DTGRX.js → decode-XTOMXMGN.js} +8 -8
- package/dist/bundle/{dispatch-DEXAEMIN.js → dispatch-T6TW2JJB.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
- package/dist/bundle/{embed-RJJWOLKN.js → embed-STHKKA6G.js} +9 -9
- package/dist/bundle/{embedder-DWYS5JYJ.js → embedder-3XZEWHRO.js} +12 -12
- package/dist/bundle/entry-CNOYSSSD.js +22 -0
- package/dist/bundle/{failure-GBZ4L5QO.js → failure-DNQYXP2T.js} +4 -4
- package/dist/bundle/first-run-F2SI24PK.js +30 -0
- package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
- package/dist/bundle/{google-L776ETP4.js → google-BYNSAIQI.js} +13 -13
- package/dist/bundle/{google-api-AI5ZJJ2M.js → google-api-4VTZH7OP.js} +57 -56
- package/dist/bundle/grants-EUQXSICG.js +105 -0
- package/dist/bundle/{identity-MDLWK2TX.js → identity-ARDPFYV5.js} +6 -6
- package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
- package/dist/bundle/{login-6HHQLRHY.js → login-4VQEC7VI.js} +63 -62
- package/dist/bundle/{mcp-ZZUYI44D.js → mcp-WBHKX5E3.js} +2 -2
- package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
- package/dist/bundle/{node-sqlite-AVNHGMVL.js → node-sqlite-3C6PSBIW.js} +14 -8
- package/dist/bundle/oauth-D6NJFPYU.js +22 -0
- package/dist/bundle/{open-BXPLXJC2.js → open-M2V2VYXO.js} +8 -7
- package/dist/bundle/{openai-CRO5GDBY.js → openai-ST2IWNUX.js} +17 -17
- package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
- package/dist/bundle/{program-4DWVWSGQ.js → program-Q4VWV2MR.js} +132 -94
- package/dist/bundle/prompt-MFIOJMAF.js +17 -0
- package/dist/bundle/{reasons-IHPNUP5W.js → reasons-LOQ5J73F.js} +5 -5
- package/dist/bundle/{recognize-NAISVA56.js → recognize-FBLMWXNE.js} +7 -7
- package/dist/bundle/{remote-KCUHG5HV.js → remote-XC3OXE4T.js} +10 -10
- package/dist/bundle/{rerank-Q3POCDSK.js → rerank-2XMKKF4S.js} +10 -10
- package/dist/bundle/{serve-5CUOYLSG.js → serve-Q2BQHNZB.js} +14 -13
- package/dist/bundle/{server-FXW3GARV.js → server-42HPV3AH.js} +44 -43
- package/dist/bundle/server-EWZYN323.js +70 -0
- package/dist/bundle/{services-PEYBXZ3R.js → services-WU22S2MU.js} +99 -31
- package/dist/bundle/{sqlite-runtime-YMPWN5PM.js → sqlite-runtime-CSO6K6B2.js} +9 -8
- package/dist/bundle/{start-PFWEF44R.js → start-TZWKM4AH.js} +7 -7
- package/dist/bundle/{state-5TQ7IOJH.js → state-FLUT7U7R.js} +9 -9
- package/dist/bundle/{store-E2VWY4O6.js → store-HDWMJ44E.js} +42 -21
- package/dist/bundle/{store-P4OYYFW5.js → store-TG6622NG.js} +20 -16
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
- package/dist/bundle/tokens-TXYURU4S.js +103 -0
- package/dist/commands/documents.d.ts +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +14 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +8 -7
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/contract-overrides.js +5 -5
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +2 -0
- package/dist/knowledge-query.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts +2 -0
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +13 -0
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/drive-cli/SKILL.md +2 -1
- package/dist/bundle/chunk-7VUHY5LP.js +0 -18
- package/dist/bundle/chunk-Y6M2G7JK.js +0 -3609
- package/dist/bundle/command-contract-ZCXFT764.js +0 -39
- package/dist/bundle/entry-E6H7IUPV.js +0 -21
- package/dist/bundle/first-run-DI2JIG44.js +0 -30
- package/dist/bundle/first-screen-X5N4TCKD.js +0 -37
- package/dist/bundle/grants-HKGYAWL6.js +0 -104
- package/dist/bundle/oauth-UVU52X57.js +0 -22
- package/dist/bundle/prompt-AFWVGRDG.js +0 -17
- package/dist/bundle/server-FTLPSLRU.js +0 -69
- package/dist/bundle/store-maintenance-command-MWVERNK7.js +0 -58
- package/dist/bundle/tokens-OVG4CJO4.js +0 -102
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.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
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EBLA7GXY.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -1241,7 +1241,7 @@ function unwrap(schema) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
__name(unwrap, "unwrap");
|
|
1243
1243
|
|
|
1244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1245
1245
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1246
1246
|
var effectsSchema = strictObject({
|
|
1247
1247
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1878,7 +1878,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1880
1880
|
|
|
1881
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1881
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1882
1882
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1883
1883
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1884
1884
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1920,8 +1920,9 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1920
1920
|
return String(value);
|
|
1921
1921
|
}), "fill");
|
|
1922
1922
|
|
|
1923
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1923
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1924
1924
|
var MAX_NEXT_STEPS = 2;
|
|
1925
|
+
var COMPACT_FLAG = "--compact";
|
|
1925
1926
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
1926
1927
|
var localTime = pipe(string(), regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}[+-]\d{2}:\d{2}$/, "an ISO 8601 time with its offset"));
|
|
1927
1928
|
var reference = pipe(string(), regex(/^[a-z]+:\S+$/, "a reference such as `note:42`"));
|
|
@@ -2020,7 +2021,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2020
2021
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2021
2022
|
].join("\n"), "jsonlOf");
|
|
2022
2023
|
|
|
2023
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2024
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2024
2025
|
var CRASH_CODE = "internal_error";
|
|
2025
2026
|
var CRASH_REASON = "command.crashed";
|
|
2026
2027
|
var errorObjectSchema = strictObject({
|
|
@@ -2107,7 +2108,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2107
2108
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2108
2109
|
]);
|
|
2109
2110
|
|
|
2110
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2111
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2111
2112
|
var SAME_COMMAND = "*";
|
|
2112
2113
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2113
2114
|
var stepSchema = union([
|
|
@@ -2244,6 +2245,7 @@ export {
|
|
|
2244
2245
|
duplicates,
|
|
2245
2246
|
jsonSchemaOf,
|
|
2246
2247
|
MAX_NEXT_STEPS,
|
|
2248
|
+
COMPACT_FLAG,
|
|
2247
2249
|
isoTime,
|
|
2248
2250
|
reference,
|
|
2249
2251
|
pageSchema,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
resolvePaths
|
|
5
|
+
} from "./chunk-CBM2XAEZ.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
|
+
import { userInfo } from "node:os";
|
|
12
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
|
+
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
14
|
+
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
15
|
+
var accountHome = /* @__PURE__ */ __name(() => {
|
|
16
|
+
try {
|
|
17
|
+
return userInfo().homedir;
|
|
18
|
+
} catch {
|
|
19
|
+
return void 0;
|
|
20
|
+
}
|
|
21
|
+
}, "accountHome");
|
|
22
|
+
var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
|
|
23
|
+
if (!env.VITEST || !home || file === ":memory:")
|
|
24
|
+
return;
|
|
25
|
+
const inside = relative(wirecatDirectory({ HOME: home, USERPROFILE: home }), resolve(file));
|
|
26
|
+
if (inside.startsWith("..") || isAbsolute(inside))
|
|
27
|
+
return;
|
|
28
|
+
throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
|
|
29
|
+
}, "refuseOwnerStoreInTests");
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
wirecatDirectory,
|
|
33
|
+
storePath,
|
|
34
|
+
refuseOwnerStoreInTests
|
|
35
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
readSetupAnswers,
|
|
6
6
|
unanswered,
|
|
7
7
|
writeSetupAnswers
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JW2CVCUH.js";
|
|
9
9
|
import {
|
|
10
10
|
updateCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P7WPYKSB.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OKXSTWKW.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IBZ3IBO4.js";
|
|
19
19
|
import {
|
|
20
20
|
storePath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3VSUT6BD.js";
|
|
22
22
|
import {
|
|
23
23
|
installerOf
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2AXA5SKP.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-TG6622NG.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-M2V2VYXO.js"),
|
|
117
|
+
import("./store-maintenance-command-RHWRUREJ.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-TYYF6VXY.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-MFIOJMAF.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|