@wirecat/amo-cli 0.4.0 → 0.5.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 +33 -0
- package/contracts/wirecat.json +2 -1
- package/dist/amo/allow-list.d.ts +1 -1
- package/dist/amo/allow-list.d.ts.map +1 -1
- package/dist/amo/operation.d.ts +1 -1
- package/dist/amo/operation.d.ts.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-EFMUK732.js +41 -0
- package/dist/bundle/{all-profiles-PRNXEZRH.js → all-profiles-PIWUQWBA.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-FDI24DU2.js → anthropic-47CMXBPQ.js} +5 -5
- package/dist/bundle/{app-server-WAKJVDLN.js → app-server-QRBQODF2.js} +70 -69
- package/dist/bundle/areas-QVHVU57Z.js +63 -0
- package/dist/bundle/{bun-YPXUXMBI.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UBQ5M47X.js → bun-sqlite-7I4X7CZW.js} +6 -6
- package/dist/bundle/{chunk-SFZVMKB6.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-SNBYFQHT.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-BCIZAUDV.js → chunk-3DEQUYEG.js} +9 -9
- package/dist/bundle/{chunk-2AIG2SSJ.js → chunk-3GX6KM2E.js} +1661 -164
- package/dist/bundle/{chunk-5II6TAJE.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-DWD3KDJA.js → chunk-3PYE55JY.js} +1 -1
- package/dist/bundle/{chunk-SMM7GS4Q.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-XEYT2EQT.js → chunk-43OW5NTG.js} +6 -6
- package/dist/bundle/{chunk-HDZNSOV5.js → chunk-43PMSR33.js} +13 -9
- package/dist/bundle/{chunk-EBNCUQLV.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-WAFB3IWJ.js → chunk-4VN7RI4I.js} +5 -5
- package/dist/bundle/{chunk-CEBX63XY.js → chunk-57HFPNMF.js} +8 -8
- package/dist/bundle/{chunk-Z2B3VNRI.js → chunk-5UTB3ADZ.js} +11 -11
- package/dist/bundle/{chunk-PLU2IQXC.js → chunk-633NQY2R.js} +3 -3
- package/dist/bundle/{chunk-NKYWQTS2.js → chunk-63N46DJU.js} +216 -233
- package/dist/bundle/{chunk-5HZMXHRH.js → chunk-6D4VWSJD.js} +6 -6
- package/dist/bundle/{chunk-V2QWX6B3.js → chunk-6JTHXWPE.js} +3 -3
- package/dist/bundle/{chunk-YREKMP24.js → chunk-6QGUK3H7.js} +4 -4
- package/dist/bundle/{chunk-4PQECIU2.js → chunk-6WS6GJ4V.js} +2 -2
- package/dist/bundle/{chunk-23AQD7JU.js → chunk-7IR2G5XY.js} +16 -16
- package/dist/bundle/{chunk-OYMHPQF7.js → chunk-7IWIFVXH.js} +4 -4
- package/dist/bundle/{chunk-YHVHDRED.js → chunk-ABX7BBS4.js} +6 -6
- package/dist/bundle/{chunk-3K6T2G52.js → chunk-ADTI5RUO.js} +6 -6
- package/dist/bundle/{chunk-YFRTEJ6V.js → chunk-AKRIUNYP.js} +7 -7
- package/dist/bundle/{chunk-KBAOJISR.js → chunk-BIKOE2IW.js} +7 -7
- package/dist/bundle/{chunk-TIR3AB35.js → chunk-BVVMIAQ6.js} +759 -694
- package/dist/bundle/{chunk-M54YKD3I.js → chunk-CGW5R4UD.js} +7 -7
- package/dist/bundle/{chunk-CYHIM5SL.js → chunk-D4NE7EON.js} +3 -3
- package/dist/bundle/{chunk-TCSVW7BA.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-WASBOYI2.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-VEFAYLKX.js → chunk-DQ6S5TFZ.js} +185 -114
- package/dist/bundle/{chunk-GMHRPX5M.js → chunk-DSJ6EAOA.js} +61 -61
- package/dist/bundle/{chunk-GQKEMBM6.js → chunk-DVZ75WZJ.js} +121 -36
- package/dist/bundle/{chunk-SHOSFYI7.js → chunk-EHK73OSW.js} +38 -24
- package/dist/bundle/{chunk-KQZTX4LM.js → chunk-FNV5HLHX.js} +17 -17
- package/dist/bundle/{chunk-RQPB2BSH.js → chunk-FV4GQNIK.js} +2 -2
- package/dist/bundle/{chunk-E3EWS6DF.js → chunk-G2TU5RYY.js} +6 -6
- package/dist/bundle/{chunk-WEWJA42Q.js → chunk-GDK7ETSB.js} +12 -12
- package/dist/bundle/{chunk-KORZEYZN.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-U46RNOEQ.js → chunk-GLYWZQY4.js} +3 -3
- package/dist/bundle/{chunk-KRD375P7.js → chunk-H4AFNENN.js} +34 -29
- package/dist/bundle/{chunk-SZX7EPPY.js → chunk-HOF7GQWW.js} +4 -4
- package/dist/bundle/{chunk-DWA5TZMP.js → chunk-HSPEU6S7.js} +8 -8
- package/dist/bundle/{chunk-VG2ERHFJ.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-O3WE5IGP.js → chunk-IB55P46L.js} +6 -6
- package/dist/bundle/{chunk-2UJ7ZZZC.js → chunk-IG2TJQJ7.js} +3 -3
- package/dist/bundle/{chunk-ZJC2XJQC.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-ELAKOEIO.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-UCM7C773.js → chunk-JXT6GY4V.js} +158 -61
- package/dist/bundle/{chunk-ABMPZL2P.js → chunk-K7YY6SXR.js} +19 -15
- package/dist/bundle/{chunk-TEGQVVCZ.js → chunk-KEKXERBE.js} +14581 -11880
- package/dist/bundle/{chunk-GJBOZAUD.js → chunk-KZ2FIDI3.js} +3 -3
- package/dist/bundle/{chunk-IBEHYGG6.js → chunk-KZN2BG3P.js} +8 -8
- package/dist/bundle/{chunk-VG26HDKH.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-PIOR6PIO.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-5SJEJYQZ.js → chunk-M6VZXAJC.js} +3 -3
- package/dist/bundle/{chunk-NFWD4QX3.js → chunk-MDEPJZYJ.js} +2 -2
- package/dist/bundle/{chunk-QGFURWEP.js → chunk-NB7EOAUZ.js} +8 -1
- package/dist/bundle/{chunk-GBQ76X6T.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-MW7HUD6R.js → chunk-NSKMNIY6.js} +9 -9
- package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
- package/dist/bundle/{chunk-UEN5NWNW.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-7OVTUADG.js → chunk-QFOP3KUP.js} +8 -8
- package/dist/bundle/{chunk-LAR2DLTI.js → chunk-R53XXHEI.js} +4 -4
- package/dist/bundle/{chunk-A4W7J6VN.js → chunk-RIMPFMZE.js} +28 -189
- package/dist/bundle/{chunk-G3LAYJJJ.js → chunk-RN6RT5CB.js} +4 -4
- package/dist/bundle/{chunk-FQRP6JWX.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AN6IJYH3.js → chunk-S4ZHQMNM.js} +5 -5
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-PL7TNKAY.js → chunk-TAVI73RW.js} +2 -2
- package/dist/bundle/{chunk-ZKRWNL4T.js → chunk-TLG6ECZ2.js} +2 -2
- package/dist/bundle/{chunk-745FMNI5.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-3WG4MTQI.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-WR2FPZTE.js → chunk-U5RJJ2EC.js} +8 -8
- package/dist/bundle/{chunk-6QMSKJB4.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-FEUNZG7U.js → chunk-V2CNGXWX.js} +37 -37
- package/dist/bundle/{chunk-V5SETIQK.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-HZZ56JO7.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/{chunk-LZ4IWN43.js → chunk-W5JRXIG6.js} +822 -1604
- package/dist/bundle/{chunk-SCMB4LI6.js → chunk-WIHN3ELW.js} +19 -19
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-6PILR4AX.js → chunk-WUFX4TKA.js} +2 -2
- package/dist/bundle/{chunk-NXNUCGGO.js → chunk-WXJYMMEL.js} +6 -6
- package/dist/bundle/{chunk-IPNIF5JE.js → chunk-XCCU2E3Z.js} +4 -4
- package/dist/bundle/{chunk-EAX5RO7S.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-3PCVQCCV.js → chunk-XUT7DSM5.js} +2 -2
- package/dist/bundle/{chunk-ASU63X5C.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-S6DTLAOB.js → chunk-ZLUIRFJX.js} +37 -18
- package/dist/bundle/{cli-QDPKC2HJ.js → cli-3NXOSENF.js} +104 -105
- package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
- package/dist/bundle/{command-server-entry-TX7WNN7G.js → command-server-entry-4ZQPNUL4.js} +28 -28
- package/dist/bundle/{decode-BLPC7OYE.js → decode-K7U7X5EL.js} +5 -5
- package/dist/bundle/{dispatch-5JUT55CS.js → dispatch-56FECRCU.js} +8 -8
- package/dist/bundle/{echarts-54D3FOCL.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-O7KMDYM7.js → embed-SWLVG73O.js} +6 -6
- package/dist/bundle/{embedder-4PE67CLX.js → embedder-EJN75BPV.js} +9 -9
- package/dist/bundle/{failure-NNQYTB3Z.js → failure-WDSX6H3B.js} +2 -2
- package/dist/bundle/{first-run-EAU5SHBI.js → first-run-WPGUUC4Z.js} +12 -12
- package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
- package/dist/bundle/{instructions-ONXP5DZQ.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
- package/dist/bundle/{meeting-model-FWIZRKVN.js → meeting-model-YXXNETKC.js} +11 -11
- package/dist/bundle/{meeting-semantic-M4YVJ57W.js → meeting-semantic-U7EUB3ET.js} +6 -6
- package/dist/bundle/{node-UTQCYQF5.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-APJG6MGL.js → node-sqlite-YVOGMDSP.js} +7 -7
- package/dist/bundle/{oauth-TY7RMIBL.js → oauth-2SNRBIJM.js} +7 -7
- package/dist/bundle/{open-WDVEQL75.js → open-ABCPY5IH.js} +5 -5
- package/dist/bundle/{openai-H5UJHSEZ.js → openai-4D6PXJR7.js} +15 -15
- package/dist/bundle/{process-MGMXXPMY.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-IF36C6VR.js → program-CBDQBZZ3.js} +319 -133
- package/dist/bundle/{prompt-4RLIWLMF.js → prompt-2QUK5QST.js} +5 -5
- package/dist/bundle/{recognize-UIRTMWM4.js → recognize-QMQSJRIH.js} +4 -4
- package/dist/bundle/{remote-L3MNWZQK.js → remote-U7TC2BLZ.js} +9 -9
- package/dist/bundle/{rerank-F4KZQTY6.js → rerank-5UPVXGVV.js} +7 -7
- package/dist/bundle/{serve-37AUYTWS.js → serve-VX6GUM6J.js} +9 -9
- package/dist/bundle/{server-UBG676ZJ.js → server-FOPC6DJ3.js} +62 -61
- package/dist/bundle/server-OIVNOMVK.js +87 -0
- package/dist/bundle/source-HWS5SJIV.js +46 -0
- package/dist/bundle/{sqlite-runtime-CI3RW7VA.js → sqlite-runtime-77NKDEXN.js} +6 -6
- package/dist/bundle/{state-JOHLSLUO.js → state-X2HU6GB2.js} +6 -6
- package/dist/bundle/{store-2MBG4IUS.js → store-2U4U6KL4.js} +22 -22
- package/dist/bundle/{store-OSOUXBYL.js → store-3CHPHFP7.js} +26 -24
- package/dist/bundle/store-Z3747L5F.js +34 -0
- package/dist/bundle/store-maintenance-command-UOSZJTVP.js +74 -0
- package/dist/bundle/surface-MUT72QON.js +73 -0
- package/dist/bundle/writer-RBKQ64ZM.js +48 -0
- package/dist/commands/crm-shared.js +1 -1
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/amo-cli/SKILL.md +6 -0
- package/dist/bundle/agent-43BMVBX2.js +0 -40
- package/dist/bundle/chunk-M33XHJTM.js +0 -1266
- package/dist/bundle/command-contract-KWNCP3MQ.js +0 -39
- package/dist/bundle/first-screen-APSNGZYZ.js +0 -39
- package/dist/bundle/meeting-combined-W2XIYXFU.js +0 -24
- package/dist/bundle/server-CRF4QSZR.js +0 -86
- package/dist/bundle/source-Z7GH7T4B.js +0 -44
- package/dist/bundle/store-SNW6U32Y.js +0 -34
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +0 -73
- package/dist/bundle/surface-ESJS2FUI.js +0 -72
- package/dist/bundle/writer-BJDQMKUV.js +0 -46
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YWDFYQOU.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S6JG4YUH.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
filesPresent,
|
|
5
5
|
sharedModelsDirectory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XCCU2E3Z.js";
|
|
7
7
|
import {
|
|
8
8
|
readSharedSection,
|
|
9
9
|
sharedConfigPath,
|
|
10
10
|
writeSharedSection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AKRIUNYP.js";
|
|
12
12
|
import {
|
|
13
13
|
storePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TLG6ECZ2.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
check,
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
string,
|
|
33
33
|
trim,
|
|
34
34
|
url
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QFOP3KUP.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-S6JG4YUH.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
45
45
|
import { join } from "node:path";
|
|
46
46
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
queryError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DSJ6EAOA.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S6JG4YUH.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
16
16
|
var QUERY_VERSION = 1;
|
|
17
17
|
var QUERY_LIMITS2 = {
|
|
18
18
|
...QUERY_LIMITS,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S6JG4YUH.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3, extname } from "node:path";
|
|
374
374
|
var MOST_NAME_BYTES = 200;
|
|
375
375
|
var bytesOf = /* @__PURE__ */ __name((text) => Buffer.byteLength(text, "utf8"), "bytesOf");
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S6JG4YUH.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DSJ6EAOA.js";
|
|
6
6
|
import {
|
|
7
7
|
readSharedSection,
|
|
8
8
|
sharedConfigPath,
|
|
9
9
|
writeSharedSection
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AKRIUNYP.js";
|
|
11
11
|
import {
|
|
12
12
|
storePath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TLG6ECZ2.js";
|
|
14
14
|
import {
|
|
15
15
|
defineReasons,
|
|
16
16
|
isoTimestamp,
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
safeParse,
|
|
20
20
|
strictObject,
|
|
21
21
|
string
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QFOP3KUP.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S6JG4YUH.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/models/chat-sending.js
|
|
31
31
|
var CHAT_SENDING_MODES = ["allowed", "ask", "denied"];
|
|
32
32
|
var SECTION = "chat_sending";
|
|
33
33
|
var Setting = strictObject({
|
|
@@ -56,8 +56,84 @@ var chatSendingAllowed = /* @__PURE__ */ __name((env, host, command) => {
|
|
|
56
56
|
}, "chatSendingAllowed");
|
|
57
57
|
var chatSendingAskRefusal = /* @__PURE__ */ __name((what, command, details = {}) => new CliError("confirmation_required", `${what} \u2014 add --yes to send them (an agent may pass yes), or ask the owner to run \`${chatSendingCommand(command, "allowed")}\` so no yes is needed`, { ...details, reason: "chat-sending.ask" }), "chatSendingAskRefusal");
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/sftp-reasons.js
|
|
60
60
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
61
|
+
var SFTP = [
|
|
62
|
+
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
63
|
+
["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
|
|
64
|
+
["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
|
|
65
|
+
["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
|
|
66
|
+
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
67
|
+
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
68
|
+
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
69
|
+
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
70
|
+
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
71
|
+
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
72
|
+
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/store-reasons.js
|
|
76
|
+
var STORE = [
|
|
77
|
+
validation("store.refused", "the local store refused the document text"),
|
|
78
|
+
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
79
|
+
[
|
|
80
|
+
"store.damaged",
|
|
81
|
+
"configuration_error",
|
|
82
|
+
"the store file is damaged; store recover says what is lost and recovers it"
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
"store.journal-replaced",
|
|
86
|
+
"conflict",
|
|
87
|
+
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
88
|
+
],
|
|
89
|
+
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
90
|
+
["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
|
|
91
|
+
[
|
|
92
|
+
"store.unreadable",
|
|
93
|
+
"configuration_error",
|
|
94
|
+
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
95
|
+
],
|
|
96
|
+
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
97
|
+
[
|
|
98
|
+
"store.sqlite3-missing",
|
|
99
|
+
"configuration_error",
|
|
100
|
+
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
101
|
+
],
|
|
102
|
+
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
103
|
+
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
104
|
+
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
105
|
+
[
|
|
106
|
+
"store.vector-extension-missing",
|
|
107
|
+
"configuration_error",
|
|
108
|
+
"the install has no sqlite-vec extension for this platform; reinstall the CLI"
|
|
109
|
+
],
|
|
110
|
+
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
111
|
+
validation("store.vector-invalid", "a vector to store had a non-finite value")
|
|
112
|
+
];
|
|
113
|
+
var STORE_MIGRATION = [
|
|
114
|
+
[
|
|
115
|
+
"store.unknown-columns",
|
|
116
|
+
"configuration_error",
|
|
117
|
+
"a migration would drop columns this store has and this build does not know; nothing was changed"
|
|
118
|
+
],
|
|
119
|
+
[
|
|
120
|
+
"store.rows-break-checks",
|
|
121
|
+
"configuration_error",
|
|
122
|
+
"the store holds rows the new schema refuses, so it was not migrated; the rows are named"
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
"store.rows-lost",
|
|
126
|
+
"configuration_error",
|
|
127
|
+
"a migration would change how many rows a table holds, so it was not run; the tables and counts are named"
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
"store.foreign-keys",
|
|
131
|
+
"configuration_error",
|
|
132
|
+
"a migration would break references between rows, so it was not run; the store is whole"
|
|
133
|
+
]
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
61
137
|
var QUERY = [
|
|
62
138
|
["query.aborted", "the search was stopped before it finished"],
|
|
63
139
|
["query.conflict", "two parts of the query contradict each other"],
|
|
@@ -123,8 +199,7 @@ var SIGN_IN = [
|
|
|
123
199
|
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
|
124
200
|
["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
|
|
125
201
|
["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
|
|
126
|
-
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
|
|
127
|
-
["account-rename.config", "configuration_error", "the config file cannot be read"]
|
|
202
|
+
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
|
|
128
203
|
];
|
|
129
204
|
var PROVIDER_API = [
|
|
130
205
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
@@ -139,6 +214,7 @@ var PROVIDER_API = [
|
|
|
139
214
|
"invalid_response",
|
|
140
215
|
"more changed since one sync than a round reads, and the provider does not list changes oldest first"
|
|
141
216
|
],
|
|
217
|
+
["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
|
|
142
218
|
["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
|
|
143
219
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
144
220
|
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
@@ -149,19 +225,6 @@ var PROVIDER_API = [
|
|
|
149
225
|
validation("file.too-large", "the file is larger than the limit set for this read"),
|
|
150
226
|
validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
|
|
151
227
|
];
|
|
152
|
-
var SFTP = [
|
|
153
|
-
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
154
|
-
["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
|
|
155
|
-
["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
|
|
156
|
-
["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
|
|
157
|
-
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
158
|
-
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
159
|
-
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
160
|
-
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
161
|
-
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
162
|
-
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
163
|
-
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
164
|
-
];
|
|
165
228
|
var SQL = [
|
|
166
229
|
validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
|
|
167
230
|
["sql.library-missing", "configuration_error", "this database needs the mysql2 or pg package in the CLI"],
|
|
@@ -173,7 +236,29 @@ var SQL = [
|
|
|
173
236
|
["db.timeout", "timeout", "the database server did not answer in time"],
|
|
174
237
|
["db.failed", "provider_error", "the database server failed the query"]
|
|
175
238
|
];
|
|
239
|
+
var OFFICE = [
|
|
240
|
+
["office.wrong-format", "the file is not the Office format the command edits, or its parts cannot be read"],
|
|
241
|
+
["office.invalid-cell", "a cell is not an address like B7"],
|
|
242
|
+
["office.invalid-value", "a value cannot be written: an infinite number, a cell text too long, an unknown style"],
|
|
243
|
+
["office.no-sheet", "the workbook has no such sheet, or several when none is named"],
|
|
244
|
+
["office.duplicate-edit", "the same cell or paragraph is changed twice in one call"],
|
|
245
|
+
["office.formula-cell", "the cell holds a formula; --replace writes the value over it"],
|
|
246
|
+
["office.shared-formula", "the cell holds a formula other cells share; replacing it would break theirs"],
|
|
247
|
+
["office.array-formula", "the cell is part of an array formula; change it in Excel"],
|
|
248
|
+
["office.rich-value", "the cell holds a picture or a linked data type, which the editor does not replace"],
|
|
249
|
+
["office.table-header", "the cell is a table's header or total, whose part repeats the text; change it in Excel"],
|
|
250
|
+
["office.implicit-rows", "the sheet has rows without numbers, so a row cannot be added"],
|
|
251
|
+
["office.implicit-cells", "the row has cells without addresses, so a cell cannot be added"],
|
|
252
|
+
["office.no-paragraph", "the document has no paragraph at that index"],
|
|
253
|
+
["office.unsafe-paragraph", "the paragraph cannot be edited safely; documents show gives the reason"],
|
|
254
|
+
["office.tracked-change", "the paragraph holds a tracked change"],
|
|
255
|
+
["office.section-break", "the paragraph ends a section; deleting it would merge two sections"],
|
|
256
|
+
["office.bookmark", "the paragraph holds a bookmark a cross-reference may point at"],
|
|
257
|
+
["office.last-paragraph", "the delete would leave the document or a table cell without a paragraph"],
|
|
258
|
+
["office.invalid-sheet-name", "a new sheet's name is empty, too long, repeated or holds a character Excel refuses"]
|
|
259
|
+
].map(([reason, message]) => validation(reason, message));
|
|
176
260
|
var OTHERS = [
|
|
261
|
+
["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
|
|
177
262
|
validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
|
|
178
263
|
validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
|
|
179
264
|
validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
|
|
@@ -255,6 +340,11 @@ var OTHERS = [
|
|
|
255
340
|
"nothing holds this agent to the CLI's commands, so no schedule starts it"
|
|
256
341
|
],
|
|
257
342
|
["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
|
|
343
|
+
[
|
|
344
|
+
"schedule.outside-folder",
|
|
345
|
+
"permission_error",
|
|
346
|
+
"schedule exec runs only a schedule file in the tool's own schedules folder"
|
|
347
|
+
],
|
|
258
348
|
[
|
|
259
349
|
"agent.refused",
|
|
260
350
|
"permission_error",
|
|
@@ -262,6 +352,14 @@ var OTHERS = [
|
|
|
262
352
|
],
|
|
263
353
|
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
264
354
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
355
|
+
validation("document.needs-ocr", "the PDF has no text layer; a documents sync reads it with OCR (read_scans)"),
|
|
356
|
+
validation("document.scan-unread", "OCR could not read the scan or picture; a sync tries again once the file changes"),
|
|
357
|
+
validation("document.scan-later", "OCR stopped at its page limit or a busy model; the next sync goes on"),
|
|
358
|
+
[
|
|
359
|
+
"document.scan-unturned",
|
|
360
|
+
"configuration_error",
|
|
361
|
+
"tesseract has no osd data, so a page on its side is read as it lies; install it to read scans again"
|
|
362
|
+
],
|
|
265
363
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
266
364
|
["document.version-missing", "not_found", "the local copy holds no such version of the document"],
|
|
267
365
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
@@ -269,6 +367,11 @@ var OTHERS = [
|
|
|
269
367
|
["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
|
|
270
368
|
["profile.account-taken", "conflict", "another profile here already uses this provider account"],
|
|
271
369
|
["profile.other-account", "conflict", "this profile's copy was synced from another provider account"],
|
|
370
|
+
[
|
|
371
|
+
"documents.other-account",
|
|
372
|
+
"configuration_error",
|
|
373
|
+
"the documents are signed in as another account than the tracker copy of the same provider"
|
|
374
|
+
],
|
|
272
375
|
["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
|
|
273
376
|
["provider.failed", "provider_error", "a read from the provider failed"],
|
|
274
377
|
["identity.none", "not_found", "the provider shows no accounts on a document"],
|
|
@@ -295,6 +398,11 @@ var OTHERS = [
|
|
|
295
398
|
"the email could not be read again, so its skipped attachments have no text"
|
|
296
399
|
],
|
|
297
400
|
["mirror.partial", "provider_error", "some mirrored files were not synced"],
|
|
401
|
+
[
|
|
402
|
+
"mirror.stopped",
|
|
403
|
+
"timeout",
|
|
404
|
+
"the mirror's run reached its deadline before it was done; run it again with more time"
|
|
405
|
+
],
|
|
298
406
|
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
299
407
|
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
300
408
|
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
@@ -319,6 +427,7 @@ var OTHERS = [
|
|
|
319
427
|
["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
|
|
320
428
|
["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
|
|
321
429
|
["mirror.no-conflict", "not_found", "the path has no recorded conflict; the last sync settled it or never saw one"],
|
|
430
|
+
["upload.replace-interrupted", "conflict", "another file took the path during a replace; the new content is kept"],
|
|
322
431
|
["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
|
|
323
432
|
["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
|
|
324
433
|
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
@@ -331,6 +440,7 @@ var OTHERS = [
|
|
|
331
440
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
332
441
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
333
442
|
validation("spreadsheet.unreadable", "the workbook could not be read"),
|
|
443
|
+
["config.unreadable", "configuration_error", "the config file cannot be read"],
|
|
334
444
|
[
|
|
335
445
|
"config.unrepairable",
|
|
336
446
|
"configuration_error",
|
|
@@ -426,46 +536,11 @@ var OTHERS = [
|
|
|
426
536
|
"outcome_unknown",
|
|
427
537
|
"a message the server found was stored without its attachments; the next sync reads it whole"
|
|
428
538
|
],
|
|
429
|
-
validation("store.refused", "the local store refused the document text"),
|
|
430
|
-
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
431
|
-
[
|
|
432
|
-
"store.damaged",
|
|
433
|
-
"configuration_error",
|
|
434
|
-
"the store file is damaged; store recover says what is lost and recovers it"
|
|
435
|
-
],
|
|
436
|
-
[
|
|
437
|
-
"store.journal-replaced",
|
|
438
|
-
"conflict",
|
|
439
|
-
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
440
|
-
],
|
|
441
|
-
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
442
|
-
["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
|
|
443
|
-
[
|
|
444
|
-
"store.unreadable",
|
|
445
|
-
"configuration_error",
|
|
446
|
-
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
447
|
-
],
|
|
448
|
-
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
449
|
-
[
|
|
450
|
-
"store.sqlite3-missing",
|
|
451
|
-
"configuration_error",
|
|
452
|
-
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
453
|
-
],
|
|
454
|
-
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
455
539
|
[
|
|
456
540
|
"serve.outdated",
|
|
457
541
|
"configuration_error",
|
|
458
542
|
"the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
|
|
459
543
|
],
|
|
460
|
-
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
461
|
-
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
462
|
-
[
|
|
463
|
-
"store.vector-extension-missing",
|
|
464
|
-
"configuration_error",
|
|
465
|
-
"the install has no sqlite-vec extension for this platform; reinstall the CLI"
|
|
466
|
-
],
|
|
467
|
-
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
468
|
-
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
469
544
|
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
470
545
|
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
471
546
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
@@ -586,10 +661,21 @@ var OTHERS = [
|
|
|
586
661
|
validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
|
|
587
662
|
validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
|
|
588
663
|
validation("crm.record-field", "a contact's or company's field is not valid"),
|
|
664
|
+
validation("crm.activity-field", "a comment's or task's field is not valid, or the kind does not take it"),
|
|
589
665
|
validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
|
|
590
666
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
591
|
-
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was
|
|
592
|
-
validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was
|
|
667
|
+
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted, or the sign-in read only part; nothing was"),
|
|
668
|
+
validation("tracker.unlisted-held", "a tracker's id list would mark too much deleted, or the sign-in read only part; nothing was"),
|
|
669
|
+
validation("tracker.write-unsupported", "the tracker does not take this write, or does not recognise a repeated one"),
|
|
670
|
+
validation("tracker.field", "a field of an issue or a comment the tracker's write does not take as given"),
|
|
671
|
+
validation("tracker.reference", "a team, state, label, project, user or sprint no single row of the copy has by that name"),
|
|
672
|
+
validation("tracker.team-required", "a new issue needs its team: name one, or sync a copy that holds one"),
|
|
673
|
+
["tracker.no-record", "invalid_response", "the tracker answered a write with no record and no error; sync and look"],
|
|
674
|
+
[
|
|
675
|
+
"tracker.kind-unread",
|
|
676
|
+
"permission_error",
|
|
677
|
+
"the sign-in cannot read this kind of the tracker; the copy has none of it"
|
|
678
|
+
],
|
|
593
679
|
validation("content.unlisted-held", "a content id list would mark too much deleted, the sign-in read only part, or the site moved; nothing was"),
|
|
594
680
|
validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
|
|
595
681
|
validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
|
|
@@ -604,6 +690,7 @@ var OTHERS = [
|
|
|
604
690
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
605
691
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
606
692
|
validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
|
|
693
|
+
validation("crm.activities-unlisted-held", "a full list would mark most activities deleted; held until --rescan"),
|
|
607
694
|
validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
|
|
608
695
|
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
609
696
|
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
@@ -642,6 +729,11 @@ var OTHERS = [
|
|
|
642
729
|
validation("order.ref", "the reference names no order, or a shop's number names more than one"),
|
|
643
730
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
644
731
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
732
|
+
[
|
|
733
|
+
"tracker.no-vectors",
|
|
734
|
+
"not_found",
|
|
735
|
+
"no issue, project or comment is embedded with the model yet; sync --embed builds them"
|
|
736
|
+
],
|
|
645
737
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
646
738
|
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
647
739
|
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
@@ -657,7 +749,7 @@ var OTHERS = [
|
|
|
657
749
|
[
|
|
658
750
|
"identity.owner-only",
|
|
659
751
|
"permission_error",
|
|
660
|
-
"only the owner undoes a merge,
|
|
752
|
+
"only the owner undoes or confirms a merge, a split or a link, links an identity to themselves, or moves a sender"
|
|
661
753
|
],
|
|
662
754
|
[
|
|
663
755
|
"identity.stale",
|
|
@@ -693,7 +785,12 @@ var OTHERS = [
|
|
|
693
785
|
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
694
786
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
695
787
|
validation("identity.common-name", "more than six people have the name, so it proposes no one"),
|
|
788
|
+
validation("identity.not-a-person", "a bot, a program or an organization is never proposed as a person by name"),
|
|
696
789
|
validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
|
|
790
|
+
["sender-bot.not-found", "not_found", "no sender bot has that id; people list kind:automated lists them"],
|
|
791
|
+
validation("sender-bot.owner", "the owner's own person is never a bot"),
|
|
792
|
+
validation("sender-bot.not-a-person", "the person named is a sender bot; name a person"),
|
|
793
|
+
validation("sender-bot.assignee", "a sender bot is no one's assignee; move it to a person first"),
|
|
697
794
|
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
698
795
|
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
699
796
|
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
|
@@ -813,7 +910,7 @@ var DETAILED = {
|
|
|
813
910
|
var REASONS = defineReasons([
|
|
814
911
|
...QUERY_REASONS,
|
|
815
912
|
...INPUT_FIELD_REASONS,
|
|
816
|
-
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...SQL, ...OTHERS].map(([reason, code, message]) => ({
|
|
913
|
+
...[...QUERY, ...SIGN_IN, ...PROVIDER_API, ...SFTP, ...STORE, ...STORE_MIGRATION, ...SQL, ...OFFICE, ...OTHERS].map(([reason, code, message]) => ({
|
|
817
914
|
reason,
|
|
818
915
|
code,
|
|
819
916
|
message,
|