@wirecat/amo-cli 0.3.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 +52 -0
- package/README.md +8 -4
- package/contracts/wirecat.json +15 -14
- 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-PPUN52SP.js → all-profiles-PIWUQWBA.js} +11 -11
- package/dist/bundle/amo.js +28 -28
- package/dist/bundle/{anthropic-RDNDT6ZP.js → anthropic-47CMXBPQ.js} +5 -5
- package/dist/bundle/{app-server-MMALJDBP.js → app-server-QRBQODF2.js} +70 -69
- package/dist/bundle/areas-QVHVU57Z.js +63 -0
- package/dist/bundle/{bun-Y4FRPURU.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-7NXJGZCO.js → bun-sqlite-7I4X7CZW.js} +6 -6
- package/dist/bundle/{chunk-OMH3WP7F.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-MPXKBF37.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-XI75EKLG.js → chunk-3DEQUYEG.js} +9 -9
- package/dist/bundle/{chunk-TWZF7VO6.js → chunk-3GX6KM2E.js} +1666 -163
- package/dist/bundle/{chunk-E2DLRLJ5.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-D6UPCAPD.js → chunk-3PYE55JY.js} +1 -1
- package/dist/bundle/{chunk-UM6SDFB6.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-JTFAG3BX.js → chunk-43OW5NTG.js} +6 -6
- package/dist/bundle/{chunk-ZIFEIJRK.js → chunk-43PMSR33.js} +13 -9
- package/dist/bundle/{chunk-5DPMNYQT.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-XM2G62YF.js → chunk-4VN7RI4I.js} +5 -7
- package/dist/bundle/{chunk-5POLHHDZ.js → chunk-57HFPNMF.js} +8 -8
- package/dist/bundle/{chunk-CQ472K6W.js → chunk-5UTB3ADZ.js} +11 -11
- package/dist/bundle/{chunk-3NDMVXGS.js → chunk-633NQY2R.js} +3 -3
- package/dist/bundle/{chunk-VPBSZ4HQ.js → chunk-63N46DJU.js} +220 -234
- package/dist/bundle/{chunk-SJZ52MZE.js → chunk-6D4VWSJD.js} +6 -6
- package/dist/bundle/{chunk-Q2YVY7IR.js → chunk-6JTHXWPE.js} +3 -3
- package/dist/bundle/{chunk-QQT7WUR4.js → chunk-6QGUK3H7.js} +4 -4
- package/dist/bundle/{chunk-AYR6FIXN.js → chunk-6WS6GJ4V.js} +2 -2
- package/dist/bundle/{chunk-N4A6E2LL.js → chunk-7IR2G5XY.js} +16 -16
- package/dist/bundle/{chunk-7Z6NYSAN.js → chunk-7IWIFVXH.js} +4 -4
- package/dist/bundle/{chunk-LOSOWTAZ.js → chunk-ABX7BBS4.js} +6 -6
- package/dist/bundle/{chunk-3YOZTGZ6.js → chunk-ADTI5RUO.js} +6 -6
- package/dist/bundle/{chunk-QHA33ZS6.js → chunk-AKRIUNYP.js} +7 -7
- package/dist/bundle/{chunk-KZDBO2FT.js → chunk-BIKOE2IW.js} +7 -7
- package/dist/bundle/{chunk-VY27K2SH.js → chunk-BVVMIAQ6.js} +769 -692
- package/dist/bundle/{chunk-SBQ5MFHM.js → chunk-CGW5R4UD.js} +7 -7
- package/dist/bundle/{chunk-UZLT6VSP.js → chunk-D4NE7EON.js} +3 -3
- package/dist/bundle/{chunk-L2ZQDTDU.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-VFU25P57.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-KEOKH2OZ.js → chunk-DQ6S5TFZ.js} +185 -114
- package/dist/bundle/{chunk-5RXH35ZA.js → chunk-DSJ6EAOA.js} +61 -61
- package/dist/bundle/{chunk-HQH4YPO5.js → chunk-DVZ75WZJ.js} +157 -35
- package/dist/bundle/{chunk-VEGNZPQU.js → chunk-EHK73OSW.js} +38 -24
- package/dist/bundle/{chunk-IEAPNTHT.js → chunk-FNV5HLHX.js} +17 -17
- package/dist/bundle/{chunk-FPDTIQOK.js → chunk-FV4GQNIK.js} +2 -2
- package/dist/bundle/{chunk-7USADF2W.js → chunk-G2TU5RYY.js} +6 -6
- package/dist/bundle/{chunk-IDQ7BNCZ.js → chunk-GDK7ETSB.js} +12 -12
- package/dist/bundle/{chunk-B4ITT55D.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-NJ2LJKNH.js → chunk-GLYWZQY4.js} +3 -3
- package/dist/bundle/{chunk-XDT74W5P.js → chunk-H4AFNENN.js} +34 -29
- package/dist/bundle/{chunk-2YEDK2XV.js → chunk-HOF7GQWW.js} +4 -4
- package/dist/bundle/{chunk-H34RBRS3.js → chunk-HSPEU6S7.js} +8 -8
- package/dist/bundle/{chunk-VJHOBOJR.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-YSOGGUK3.js → chunk-IB55P46L.js} +6 -6
- package/dist/bundle/{chunk-PFZ7WG2B.js → chunk-IG2TJQJ7.js} +3 -3
- package/dist/bundle/{chunk-CUZISGWH.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-MMOEAH5G.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-3RP57VDS.js → chunk-JXT6GY4V.js} +174 -62
- package/dist/bundle/{chunk-7SBAHYZW.js → chunk-K7YY6SXR.js} +19 -15
- package/dist/bundle/{chunk-TCDER3G7.js → chunk-KEKXERBE.js} +14883 -11912
- package/dist/bundle/{chunk-JZ2AITOE.js → chunk-KZ2FIDI3.js} +3 -3
- package/dist/bundle/{chunk-ILUREFWJ.js → chunk-KZN2BG3P.js} +8 -8
- package/dist/bundle/{chunk-L3JDQNBC.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-UA7C57IB.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-FI2TP6TY.js → chunk-M6VZXAJC.js} +3 -3
- package/dist/bundle/{chunk-7VSYOMEH.js → chunk-MDEPJZYJ.js} +2 -2
- package/dist/bundle/{chunk-WBWVBEHH.js → chunk-NB7EOAUZ.js} +8 -1
- package/dist/bundle/{chunk-LYRICHEK.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VD7HD25M.js → chunk-NSKMNIY6.js} +9 -9
- package/dist/bundle/chunk-PPSAWFJD.js +1293 -0
- package/dist/bundle/{chunk-7E6QSIRQ.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-BKTLAXUK.js → chunk-QFOP3KUP.js} +8 -8
- package/dist/bundle/{chunk-ORFLQGWH.js → chunk-R53XXHEI.js} +4 -4
- package/dist/bundle/{chunk-UOPP6ORQ.js → chunk-RIMPFMZE.js} +28 -179
- package/dist/bundle/{chunk-MYMBPQPQ.js → chunk-RN6RT5CB.js} +4 -4
- package/dist/bundle/{chunk-BYVDMPLX.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-R23DRW2T.js → chunk-S4ZHQMNM.js} +5 -5
- package/dist/bundle/{chunk-GCUFGDKE.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-W4KY5JF5.js → chunk-TAVI73RW.js} +2 -2
- package/dist/bundle/{chunk-KTLCQ7GC.js → chunk-TLG6ECZ2.js} +2 -2
- package/dist/bundle/{chunk-V3ZWYMXT.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-KKXF6TSS.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-YVO2YGML.js → chunk-U5RJJ2EC.js} +8 -8
- package/dist/bundle/{chunk-I4QCJZW7.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-SJYVKR54.js → chunk-V2CNGXWX.js} +37 -37
- package/dist/bundle/{chunk-L72UALL5.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-T6D34X5S.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/{chunk-FPIUFSWK.js → chunk-W5JRXIG6.js} +826 -1619
- package/dist/bundle/{chunk-ELJGALVX.js → chunk-WIHN3ELW.js} +19 -19
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-4MVTSMWP.js → chunk-WUFX4TKA.js} +2 -2
- package/dist/bundle/{chunk-GKP7CKW2.js → chunk-WXJYMMEL.js} +6 -6
- package/dist/bundle/{chunk-UT3ODJMI.js → chunk-XCCU2E3Z.js} +4 -4
- package/dist/bundle/{chunk-EHULZEXQ.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-EKNP326Q.js → chunk-XUT7DSM5.js} +2 -2
- package/dist/bundle/{chunk-4EYPFFTN.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-IYUWVMGP.js → chunk-ZLUIRFJX.js} +37 -18
- package/dist/bundle/{cli-GAO7LDDA.js → cli-3NXOSENF.js} +104 -105
- package/dist/bundle/command-contract-LNSAV5LA.js +39 -0
- package/dist/bundle/{command-server-entry-BCDJP7XE.js → command-server-entry-4ZQPNUL4.js} +28 -28
- package/dist/bundle/{decode-OY2GR442.js → decode-K7U7X5EL.js} +5 -5
- package/dist/bundle/{dispatch-JWEJCBTF.js → dispatch-56FECRCU.js} +8 -8
- package/dist/bundle/{echarts-AHEPEA5P.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-RVSUV54Z.js → embed-SWLVG73O.js} +6 -6
- package/dist/bundle/{embedder-GRZXZUXR.js → embedder-EJN75BPV.js} +9 -9
- package/dist/bundle/{failure-DDCSR54L.js → failure-WDSX6H3B.js} +2 -2
- package/dist/bundle/{first-run-G3WI4DH4.js → first-run-WPGUUC4Z.js} +12 -12
- package/dist/bundle/first-screen-JMNEUQ46.js +40 -0
- package/dist/bundle/{instructions-NWQC5IP4.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-KGWT6TGO.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5TKG2RYD.js +24 -0
- package/dist/bundle/{meeting-model-I6T5HIZ5.js → meeting-model-YXXNETKC.js} +11 -11
- package/dist/bundle/{meeting-semantic-47UA5JBF.js → meeting-semantic-U7EUB3ET.js} +6 -6
- package/dist/bundle/{node-7VXN7F4B.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-BSEON57L.js → node-sqlite-YVOGMDSP.js} +7 -7
- package/dist/bundle/{oauth-V6UAT4YD.js → oauth-2SNRBIJM.js} +7 -7
- package/dist/bundle/{open-7LVAY7ZU.js → open-ABCPY5IH.js} +5 -5
- package/dist/bundle/{openai-OIEH342H.js → openai-4D6PXJR7.js} +15 -15
- package/dist/bundle/{process-PTUCNLZ7.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-S5WY5IZP.js → program-CBDQBZZ3.js} +1319 -1079
- package/dist/bundle/{prompt-7XWTEQ62.js → prompt-2QUK5QST.js} +5 -5
- package/dist/bundle/{recognize-HGIAJXDR.js → recognize-QMQSJRIH.js} +4 -4
- package/dist/bundle/{remote-X4SVEMHS.js → remote-U7TC2BLZ.js} +9 -9
- package/dist/bundle/{rerank-QWM3DQMU.js → rerank-5UPVXGVV.js} +7 -7
- package/dist/bundle/{serve-VVG3TXYT.js → serve-VX6GUM6J.js} +9 -9
- package/dist/bundle/{server-EHYK62BJ.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-MCKXDNYC.js → sqlite-runtime-77NKDEXN.js} +6 -6
- package/dist/bundle/{state-MYNYQJCT.js → state-X2HU6GB2.js} +6 -6
- package/dist/bundle/{store-B7O3F3QB.js → store-2U4U6KL4.js} +22 -22
- package/dist/bundle/{store-FPIU2546.js → store-3CHPHFP7.js} +30 -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/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +3 -1
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +0 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +9 -34
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -2
- package/dist/reasons.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-FDNP27SW.js +0 -40
- package/dist/bundle/chunk-77FP6AWC.js +0 -1266
- package/dist/bundle/command-contract-RLIBGIDT.js +0 -39
- package/dist/bundle/first-screen-6MLCMW2U.js +0 -39
- package/dist/bundle/meeting-combined-SVTFVZNJ.js +0 -24
- package/dist/bundle/server-WRPTBVNW.js +0 -86
- package/dist/bundle/source-YISMYLBQ.js +0 -44
- package/dist/bundle/store-A7R2SZVD.js +0 -34
- package/dist/bundle/store-maintenance-command-D55FRTIK.js +0 -73
- package/dist/bundle/surface-3EX6IGHW.js +0 -72
- package/dist/bundle/writer-XDHZ54JD.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"],
|
|
@@ -103,6 +179,14 @@ var SIGN_IN = [
|
|
|
103
179
|
validation("profile.missing", "no profile named, and none is picked for the owner; details.profiles lists the ones here"),
|
|
104
180
|
["profile.unknown", "not_found", "no profile by this name on this computer; details.profiles lists the ones here"],
|
|
105
181
|
["account-remove.busy", "conflict", "a serve or a sync runs for this profile; stop it first"],
|
|
182
|
+
["account-remove.account-shared", "conflict", "another profile reads the same account, whose copy the store shares"],
|
|
183
|
+
["session.duplicate", "conflict", "another profile here already signs in to this account as this user"],
|
|
184
|
+
[
|
|
185
|
+
"account-remove.account-unknown",
|
|
186
|
+
"conflict",
|
|
187
|
+
"which account another profile holds could not be read, so --delete-data waits"
|
|
188
|
+
],
|
|
189
|
+
validation("profile.reserved", "the profile name is a folder every CRM account shares; pick another"),
|
|
106
190
|
["account-remove.unconfirmed", "confirmation_required", "removing an account asks first; add --yes"],
|
|
107
191
|
["account-remove.path-outside", "configuration_error", "the tool named a path outside its own folders"],
|
|
108
192
|
[
|
|
@@ -115,8 +199,7 @@ var SIGN_IN = [
|
|
|
115
199
|
["account-rename.bot", "conflict", "the profile is also a bot profile, which keeps its name"],
|
|
116
200
|
["account-rename.unconfirmed", "confirmation_required", "renaming a profile asks first; add --yes"],
|
|
117
201
|
["account-rename.moved-run", "permission_error", "a run with moved folders never renames a profile"],
|
|
118
|
-
["account-rename.unpaired", "configuration_error", "the tool named different paths for the old and new name"]
|
|
119
|
-
["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"]
|
|
120
203
|
];
|
|
121
204
|
var PROVIDER_API = [
|
|
122
205
|
["offline.refused", "permission_error", "this command needs the provider; --offline was given"],
|
|
@@ -131,6 +214,7 @@ var PROVIDER_API = [
|
|
|
131
214
|
"invalid_response",
|
|
132
215
|
"more changed since one sync than a round reads, and the provider does not list changes oldest first"
|
|
133
216
|
],
|
|
217
|
+
["source.deletions-unchecked", "permission_error", "the provider refused its deletions; sync --rescan finds them"],
|
|
134
218
|
["verify.no-id", "provider_error", "the answer to the sign-in check holds no account id where auth.verify says"],
|
|
135
219
|
["provider.usage-limit", "rate_limited", "the account's usage limit at the provider is reached; wait, do not retry"],
|
|
136
220
|
["access.denied", "permission_error", "the provider refused this account access to the item"],
|
|
@@ -138,20 +222,8 @@ var PROVIDER_API = [
|
|
|
138
222
|
["file.not-found", "not_found", "the file named, or its folder, does not exist"],
|
|
139
223
|
validation("file.not-a-file", "the path names a folder or another thing that is not a file"),
|
|
140
224
|
["file.denied", "permission_error", "the file cannot be opened: permission denied"],
|
|
141
|
-
validation("file.too-large", "the file is larger than the limit set for this read")
|
|
142
|
-
|
|
143
|
-
var SFTP = [
|
|
144
|
-
["sftp.host-key-missing", "configuration_error", "no host key is pinned for the SFTP server"],
|
|
145
|
-
["sftp.host-key-mismatch", "authentication_error", "the SFTP server's host key is not the pinned one"],
|
|
146
|
-
["sftp.auth-missing", "configuration_error", "an SFTP connection needs a password or a private key"],
|
|
147
|
-
["sftp.key-invalid", "configuration_error", "the SFTP private key or its passphrase cannot be read"],
|
|
148
|
-
["sftp.library-missing", "configuration_error", "SFTP needs the ssh2 package in the CLI's dependencies"],
|
|
149
|
-
["sftp.timeout", "timeout", "the SFTP server did not answer in time"],
|
|
150
|
-
validation("sftp.too-large", "the file is larger than the read's byte limit"),
|
|
151
|
-
validation("sftp.closed", "the SFTP connection was closed before the operation"),
|
|
152
|
-
validation("sftp.file-changed", "the file changed on the server while a stream read it; read it again"),
|
|
153
|
-
["ssh.forward-refused", "permission_error", "the SSH server does not allow forwarding to that address"],
|
|
154
|
-
["ssh.forward-failed", "network_error", "the SSH server could not reach the address behind it"]
|
|
225
|
+
validation("file.too-large", "the file is larger than the limit set for this read"),
|
|
226
|
+
validation("file.not-plain-text", "the file's text is extracted on a read; writing it back would replace the file")
|
|
155
227
|
];
|
|
156
228
|
var SQL = [
|
|
157
229
|
validation("sql.bad-identifier", "a table or column name is not a plain identifier"),
|
|
@@ -164,7 +236,29 @@ var SQL = [
|
|
|
164
236
|
["db.timeout", "timeout", "the database server did not answer in time"],
|
|
165
237
|
["db.failed", "provider_error", "the database server failed the query"]
|
|
166
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));
|
|
167
260
|
var OTHERS = [
|
|
261
|
+
["office.file-exists", "conflict", "a file is there already; create never replaces one, update changes it"],
|
|
168
262
|
validation("doctor.report-exists", "the report's file exists; a problem report never overwrites a file"),
|
|
169
263
|
validation("usage.unknown-command", "no command by this name; the CLI's help lists them"),
|
|
170
264
|
validation("usage.unknown-option", "the command takes no option by this name; its help lists them"),
|
|
@@ -246,6 +340,11 @@ var OTHERS = [
|
|
|
246
340
|
"nothing holds this agent to the CLI's commands, so no schedule starts it"
|
|
247
341
|
],
|
|
248
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
|
+
],
|
|
249
348
|
[
|
|
250
349
|
"agent.refused",
|
|
251
350
|
"permission_error",
|
|
@@ -253,12 +352,26 @@ var OTHERS = [
|
|
|
253
352
|
],
|
|
254
353
|
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
255
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
|
+
],
|
|
256
363
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
364
|
+
["document.version-missing", "not_found", "the local copy holds no such version of the document"],
|
|
257
365
|
["document.not-found", "not_found", "no listed document has that reference"],
|
|
258
366
|
["state.unreadable", "configuration_error", "a sync state file cannot be read; move it away and sync again"],
|
|
259
367
|
["profile.busy", "provider_unavailable", "another sync or write holds this profile's local copy"],
|
|
260
368
|
["profile.account-taken", "conflict", "another profile here already uses this provider account"],
|
|
261
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
|
+
],
|
|
262
375
|
["profile.not-synced", "not_found", "the profile has no local copy yet; sync it first"],
|
|
263
376
|
["provider.failed", "provider_error", "a read from the provider failed"],
|
|
264
377
|
["identity.none", "not_found", "the provider shows no accounts on a document"],
|
|
@@ -285,6 +398,11 @@ var OTHERS = [
|
|
|
285
398
|
"the email could not be read again, so its skipped attachments have no text"
|
|
286
399
|
],
|
|
287
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
|
+
],
|
|
288
406
|
["mirror.none", "not_found", "the profile has no mirrors; add one with mirrors add"],
|
|
289
407
|
["mirror.not-found", "not_found", "no such mirror in this profile; see mirrors list"],
|
|
290
408
|
validation("mirror.not-folder", "the path to mirror is not a folder"),
|
|
@@ -307,6 +425,9 @@ var OTHERS = [
|
|
|
307
425
|
"the earlier content could not be kept in the version store, so the sync did not replace it"
|
|
308
426
|
],
|
|
309
427
|
["mirror.remote-changed", "conflict", "the remote file changed since the listing; the next sync settles it"],
|
|
428
|
+
["mirror.local-changed", "conflict", "the local file changed since the conflict was found; nothing was written"],
|
|
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"],
|
|
310
431
|
["upload.mismatch", "conflict", "the uploaded file reads back with other content; the local file changed meanwhile"],
|
|
311
432
|
["download.mismatch", "invalid_response", "the downloaded file has other content than the listing said"],
|
|
312
433
|
["catalog.unavailable", "configuration_error", "the store has no shared catalog for this account"],
|
|
@@ -319,6 +440,7 @@ var OTHERS = [
|
|
|
319
440
|
validation("push.too-many-files", "the folder holds more files than one push takes"),
|
|
320
441
|
validation("push.unreadable", "the folder to push could not be read"),
|
|
321
442
|
validation("spreadsheet.unreadable", "the workbook could not be read"),
|
|
443
|
+
["config.unreadable", "configuration_error", "the config file cannot be read"],
|
|
322
444
|
[
|
|
323
445
|
"config.unrepairable",
|
|
324
446
|
"configuration_error",
|
|
@@ -414,46 +536,11 @@ var OTHERS = [
|
|
|
414
536
|
"outcome_unknown",
|
|
415
537
|
"a message the server found was stored without its attachments; the next sync reads it whole"
|
|
416
538
|
],
|
|
417
|
-
validation("store.refused", "the local store refused the document text"),
|
|
418
|
-
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
419
|
-
[
|
|
420
|
-
"store.damaged",
|
|
421
|
-
"configuration_error",
|
|
422
|
-
"the store file is damaged; store recover says what is lost and recovers it"
|
|
423
|
-
],
|
|
424
|
-
[
|
|
425
|
-
"store.journal-replaced",
|
|
426
|
-
"conflict",
|
|
427
|
-
"another program deleted or replaced the store's journal file while it was open; store recover says what to do"
|
|
428
|
-
],
|
|
429
|
-
validation("store.file-damaged", "the named store file is damaged or not a database"),
|
|
430
|
-
["store.unopenable", "configuration_error", "the store file cannot be opened at its path; details.path names it"],
|
|
431
|
-
[
|
|
432
|
-
"store.unreadable",
|
|
433
|
-
"configuration_error",
|
|
434
|
-
"the store file's header or schema is damaged, so it cannot be recovered"
|
|
435
|
-
],
|
|
436
|
-
validation("store.in-use", "a process or a scheduled timer has the store open; stop it, then recover the store"),
|
|
437
|
-
[
|
|
438
|
-
"store.sqlite3-missing",
|
|
439
|
-
"configuration_error",
|
|
440
|
-
"recovering the store needs the sqlite3 program, 3.43 or newer, with its .recover command"
|
|
441
|
-
],
|
|
442
|
-
validation("store.recovery-failed", "the recovered store did not pass its check, so the store was left as it was"),
|
|
443
539
|
[
|
|
444
540
|
"serve.outdated",
|
|
445
541
|
"configuration_error",
|
|
446
542
|
"the store or the installed version is newer than this serve; it stopped so its unit starts the installed one"
|
|
447
543
|
],
|
|
448
|
-
validation("store.recovering", "another recovery of the store is running; wait for it to finish"),
|
|
449
|
-
validation("store.changed-during-recovery", "the store was written to during the recovery, so it was left as it was"),
|
|
450
|
-
[
|
|
451
|
-
"store.vector-extension-missing",
|
|
452
|
-
"configuration_error",
|
|
453
|
-
"the install has no sqlite-vec extension for this platform; reinstall the CLI"
|
|
454
|
-
],
|
|
455
|
-
["store.vector-extension-failed", "configuration_error", "the sqlite-vec extension did not load; reinstall the CLI"],
|
|
456
|
-
validation("store.vector-invalid", "a vector to store had a non-finite value"),
|
|
457
544
|
validation("evidence.quote-length", "a quote from the evidence is empty or over 500 characters"),
|
|
458
545
|
validation("evidence.quote-not-found", "the cited source does not say the quoted words"),
|
|
459
546
|
validation("evidence.row-too-large", "one evidence row is over its size limit"),
|
|
@@ -574,10 +661,21 @@ var OTHERS = [
|
|
|
574
661
|
validation("field.not-filterable", "the CRM cannot filter a list by that custom field"),
|
|
575
662
|
validation("query.bad-value", "a term's value is not the kind its field takes, such as an id or a number"),
|
|
576
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"),
|
|
577
665
|
validation("crm.owner-unknown", "owner: names no CRM user: me without a known sign-in user, or not a user id"),
|
|
578
666
|
validation("crm.write-unsupported", "the CRM does not take this write, or does not recognise a repeated one"),
|
|
579
|
-
validation("crm.unlisted-held", "a list of every id would mark most of a kind deleted; nothing was
|
|
580
|
-
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
|
+
],
|
|
581
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"),
|
|
582
680
|
validation("content.conflict", "the post changed at the source since the last sync; sync, then write again"),
|
|
583
681
|
validation("content.lossy-body", "the post's text holds blocks or embeds Markdown does not keep; --replace-body"),
|
|
@@ -592,6 +690,7 @@ var OTHERS = [
|
|
|
592
690
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
593
691
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
594
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"),
|
|
595
694
|
validation("crm.stage-history-failed", "the CRM's stage history could not be read; stage tasks wait for the next sync"),
|
|
596
695
|
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
597
696
|
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
@@ -630,6 +729,11 @@ var OTHERS = [
|
|
|
630
729
|
validation("order.ref", "the reference names no order, or a shop's number names more than one"),
|
|
631
730
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
632
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
|
+
],
|
|
633
737
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
634
738
|
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
635
739
|
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
@@ -645,7 +749,7 @@ var OTHERS = [
|
|
|
645
749
|
[
|
|
646
750
|
"identity.owner-only",
|
|
647
751
|
"permission_error",
|
|
648
|
-
"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"
|
|
649
753
|
],
|
|
650
754
|
[
|
|
651
755
|
"identity.stale",
|
|
@@ -675,11 +779,18 @@ var OTHERS = [
|
|
|
675
779
|
validation("identity.agent-unnamed", "an agent's link names the agent, and never as the owner"),
|
|
676
780
|
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
677
781
|
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
782
|
+
validation("organization.own", "the organization is one of your own companies and is never deleted"),
|
|
783
|
+
validation("organization.erase-blocked", "an invoice, order, subscription or a row the organization wrote still names it; change those first, nothing was deleted"),
|
|
678
784
|
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
679
785
|
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
680
786
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
681
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"),
|
|
682
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"),
|
|
683
794
|
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
684
795
|
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
685
796
|
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
|
@@ -799,7 +910,7 @@ var DETAILED = {
|
|
|
799
910
|
var REASONS = defineReasons([
|
|
800
911
|
...QUERY_REASONS,
|
|
801
912
|
...INPUT_FIELD_REASONS,
|
|
802
|
-
...[...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]) => ({
|
|
803
914
|
reason,
|
|
804
915
|
code,
|
|
805
916
|
message,
|
|
@@ -807,6 +918,7 @@ var REASONS = defineReasons([
|
|
|
807
918
|
}))
|
|
808
919
|
]);
|
|
809
920
|
var DETAILS = [
|
|
921
|
+
"account",
|
|
810
922
|
"holders",
|
|
811
923
|
"profile",
|
|
812
924
|
"contracts",
|