@wirecat/hubspot-cli 0.7.0 → 0.8.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 +14 -0
- package/contracts/wirecat.json +2 -1
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-NMSIVLX7.js +41 -0
- package/dist/bundle/{all-profiles-GVEX5MXB.js → all-profiles-EMBBR5CW.js} +11 -11
- package/dist/bundle/{anthropic-GK6VBQUD.js → anthropic-AS2MTXO3.js} +5 -5
- package/dist/bundle/{app-server-JRROE463.js → app-server-WZWKHDLK.js} +70 -68
- package/dist/bundle/{bun-B7XTFPUF.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-QSNZ2YP4.js → bun-sqlite-NBAY7FR2.js} +6 -6
- package/dist/bundle/{chunk-I5WHQH5K.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-5EJ3C3JG.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-ALOPYWYY.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-INT5JXGP.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-6WKK4UZP.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-SBORPDIQ.js → chunk-4NLZXDXP.js} +4 -4
- package/dist/bundle/{chunk-2K5BAY32.js → chunk-5JKTVAXX.js} +19 -19
- package/dist/bundle/{chunk-YVMLFHWS.js → chunk-5XYI75HH.js} +3 -3
- package/dist/bundle/{chunk-JQUS4KFV.js → chunk-6TD3DCWC.js} +2 -2
- package/dist/bundle/{chunk-63YWTFZF.js → chunk-7SV76BVS.js} +3 -3
- package/dist/bundle/{chunk-2IRBXFIU.js → chunk-7T5BFWZI.js} +6678 -4803
- package/dist/bundle/{chunk-4LHNA6LJ.js → chunk-7Z53MLQP.js} +7 -7
- package/dist/bundle/{chunk-DBHJIFDS.js → chunk-AINKLKDN.js} +12 -12
- package/dist/bundle/{chunk-BXXU4EXK.js → chunk-BGWQIFAS.js} +38 -24
- package/dist/bundle/{chunk-RE55EPBX.js → chunk-CVAHCGE6.js} +26 -26
- package/dist/bundle/{chunk-2FLLS5IL.js → chunk-D7NSIQBI.js} +97 -50
- package/dist/bundle/{chunk-52NC5E42.js → chunk-D7OZWLJU.js} +11 -11
- 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-XWYYFAML.js → chunk-EVUMQKV7.js} +3 -3
- package/dist/bundle/{chunk-4F62XXF6.js → chunk-FRF32QVB.js} +557 -599
- package/dist/bundle/{chunk-WSTF2MWW.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-LGGBKAVQ.js → chunk-GIMHJ7HA.js} +8 -8
- package/dist/bundle/{chunk-BQPAIGAF.js → chunk-GXDD4QWH.js} +2 -2
- package/dist/bundle/{chunk-M3JDGRXM.js → chunk-H6AH45GE.js} +163 -156
- package/dist/bundle/{chunk-DIKUPU3T.js → chunk-HZ3C4WXD.js} +3 -3
- package/dist/bundle/{chunk-TXCINEH6.js → chunk-IA77VHME.js} +13 -9
- package/dist/bundle/{chunk-OX37ZK27.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-GYH2AXPO.js → chunk-IGNMDKP7.js} +14 -14
- package/dist/bundle/{chunk-SZZVNPTI.js → chunk-IPKCM55K.js} +7 -7
- package/dist/bundle/{chunk-XL3NAXZY.js → chunk-JBZYHRUN.js} +5 -5
- package/dist/bundle/{chunk-WWIYZN67.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-BRBBZDMZ.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-ZH76HQDA.js → chunk-JPONKBEQ.js} +23 -23
- package/dist/bundle/{chunk-ZNRZJIRM.js → chunk-K5QWV6IX.js} +35 -35
- package/dist/bundle/{chunk-P7N3TZLH.js → chunk-KNL7CKF6.js} +179 -108
- package/dist/bundle/{chunk-GZD6BYO7.js → chunk-KVTNYRDO.js} +6 -6
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-5MFZYHPO.js → chunk-L45WN3AR.js} +3 -3
- package/dist/bundle/{chunk-DMYLQX2O.js → chunk-L72WUJAS.js} +2 -2
- package/dist/bundle/{chunk-6EHX762H.js → chunk-LCUWAH4L.js} +7 -7
- package/dist/bundle/{chunk-YFHCKAGU.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-A7KGBXBT.js → chunk-LM3W7YOM.js} +4 -4
- package/dist/bundle/{chunk-MR2BNER3.js → chunk-LZPKBN3C.js} +2 -2
- package/dist/bundle/{chunk-DIHVN5IC.js → chunk-LZPSIYRC.js} +8 -8
- package/dist/bundle/{chunk-VJQLJQHT.js → chunk-MYXUJCJD.js} +5 -5
- package/dist/bundle/{chunk-QAQK2WXJ.js → chunk-NA2B6PYR.js} +5 -5
- package/dist/bundle/{chunk-YGZ37OEN.js → chunk-NB7EOAUZ.js} +1 -1
- package/dist/bundle/{chunk-5AVU5SF6.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-2V5KOOJV.js → chunk-NQVMPJAQ.js} +8 -8
- package/dist/bundle/{chunk-DWWZAQ4N.js → chunk-NVR6M4TF.js} +16 -16
- package/dist/bundle/{chunk-KGLMYQXM.js → chunk-O4AUYEGC.js} +2 -2
- package/dist/bundle/{chunk-WSUS3MUK.js → chunk-OGVSGXPI.js} +493 -452
- package/dist/bundle/{chunk-5ISQ4KJM.js → chunk-OUYXUGUX.js} +8 -8
- package/dist/bundle/chunk-P657KN5N.js +122 -0
- package/dist/bundle/{chunk-SFFV2F3Y.js → chunk-P7G5HFY3.js} +2 -2
- package/dist/bundle/{chunk-QY7EOB66.js → chunk-PFYPJUWX.js} +19 -15
- package/dist/bundle/{chunk-B3JVNOTB.js → chunk-PLPBEWD4.js} +3 -3
- package/dist/bundle/{chunk-CBTWKTWN.js → chunk-PMQ7GP6X.js} +6 -6
- package/dist/bundle/{chunk-L3DUZVBP.js → chunk-Q32ZDGS2.js} +8 -8
- package/dist/bundle/{chunk-YDTFPDAJ.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-GD5JTKLS.js → chunk-QLYSNL47.js} +6 -6
- package/dist/bundle/{chunk-H5HBZCEJ.js → chunk-QPPOIWPY.js} +8 -8
- package/dist/bundle/{chunk-JEUYZCWF.js → chunk-R2C5WDQV.js} +6 -6
- package/dist/bundle/{chunk-2HSYAKWO.js → chunk-RQORQN2V.js} +61 -61
- package/dist/bundle/{chunk-2PCVKD27.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-AP3CWDRK.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-CEHBT7QX.js → chunk-TTF5DP4V.js} +7 -7
- 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-LJ52BS6C.js → chunk-U5CFLBNX.js} +8 -8
- package/dist/bundle/{chunk-UMXA357W.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-J5HHB27S.js → chunk-V57E7PJQ.js} +4 -4
- package/dist/bundle/{chunk-4HZQ5UIY.js → chunk-V7IF2K3P.js} +3 -3
- package/dist/bundle/{chunk-NUPAXK4Z.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-IRFFXKKK.js → chunk-VNMEE4ZZ.js} +3 -3
- package/dist/bundle/{chunk-SVRCPPNI.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-GHBJBDTW.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/chunk-XIKSGUMQ.js +1293 -0
- package/dist/bundle/{chunk-6IHXKMY6.js → chunk-XK5BAPHF.js} +7 -7
- package/dist/bundle/{chunk-ZNNGK73C.js → chunk-XQGN2D44.js} +3 -3
- package/dist/bundle/{chunk-XZLOQNS7.js → chunk-YKSH7BY2.js} +121 -36
- package/dist/bundle/{chunk-ZS6T2PYQ.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-BY3NKT34.js → chunk-ZJEENQRH.js} +12 -12
- package/dist/bundle/{chunk-SMEEFN65.js → chunk-ZZOCAZSZ.js} +3 -3
- package/dist/bundle/command-contract-BGTXROZA.js +40 -0
- package/dist/bundle/{command-server-entry-BFXXPNJO.js → command-server-entry-PDLRF2RV.js} +28 -28
- package/dist/bundle/{decode-5M7R44BR.js → decode-26M7XE2B.js} +5 -5
- package/dist/bundle/{dispatch-B2EP6DDT.js → dispatch-2FTOHA5D.js} +8 -8
- package/dist/bundle/{echarts-7MBFY6SZ.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-Y4GYNHRX.js → embed-XJLEAWXE.js} +6 -6
- package/dist/bundle/{embedder-FI4T4LQB.js → embedder-OEL6PXEH.js} +9 -9
- package/dist/bundle/{failure-AOACEURF.js → failure-OHIXWTR6.js} +2 -2
- package/dist/bundle/{first-run-YY66AKKG.js → first-run-J2T4IKK4.js} +12 -12
- package/dist/bundle/first-screen-Q5KYFT3R.js +41 -0
- package/dist/bundle/hubspot.js +27 -27
- package/dist/bundle/{instructions-SM7TKV6L.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-ZNULRPZ4.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-5H6VGK6O.js +25 -0
- package/dist/bundle/{meeting-model-DKLMBQXX.js → meeting-model-USLGH5SE.js} +11 -11
- package/dist/bundle/{meeting-semantic-C5T6UDVB.js → meeting-semantic-Q6XYFYUD.js} +6 -6
- package/dist/bundle/{node-OS6OQF3F.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-2XTWZ4HL.js → node-sqlite-2SWWGW6H.js} +7 -7
- package/dist/bundle/{oauth-BSSJ66FC.js → oauth-V5LGTXF2.js} +7 -7
- package/dist/bundle/{open-UZ3TKWDY.js → open-25EKOTZA.js} +5 -5
- package/dist/bundle/{openai-POVKFBTC.js → openai-CH37GSZS.js} +15 -15
- package/dist/bundle/{process-A7ZJGQ6G.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-Q3JFUVC6.js → program-G4OZFVUI.js} +105 -101
- package/dist/bundle/{prompt-TYOYTRJM.js → prompt-2VSPX5S7.js} +5 -5
- package/dist/bundle/public-WB7IWBMR.js +196 -0
- package/dist/bundle/{recognize-GGFRONZT.js → recognize-NA5XUFKK.js} +4 -4
- package/dist/bundle/{remote-K4SLWHMI.js → remote-NRJOX6XW.js} +9 -9
- package/dist/bundle/{rerank-2QTKDUBV.js → rerank-NG3XMFCV.js} +7 -7
- package/dist/bundle/{schemas-EXBNVPMI.js → schemas-SKF4MZBJ.js} +1 -1
- package/dist/bundle/{serve-FG2G2X6Y.js → serve-MR67OBED.js} +9 -9
- package/dist/bundle/server-LFNGSVUQ.js +88 -0
- package/dist/bundle/{server-KRDHBT5Q.js → server-NZPHVRS6.js} +62 -60
- package/dist/bundle/{source-XP2JNUVU.js → source-P2KVDTJ5.js} +75 -73
- package/dist/bundle/{sqlite-runtime-TWV7KFLA.js → sqlite-runtime-V5U6F5EB.js} +6 -6
- package/dist/bundle/{state-EFX5ZQED.js → state-L4MWAATO.js} +6 -6
- package/dist/bundle/store-ARASPKTV.js +34 -0
- package/dist/bundle/{store-QPVH5VPJ.js → store-JFIZLDKO.js} +22 -22
- package/dist/bundle/{store-MNQ6YQIS.js → store-SUHY3G2X.js} +27 -24
- package/dist/bundle/store-maintenance-command-L2FXCEGU.js +75 -0
- package/dist/bundle/surface-NQK7CQ33.js +74 -0
- package/dist/bundle/writer-TYTMOXXA.js +88 -0
- package/dist/config.d.ts +5 -38
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/crm/source.js +1 -1
- package/dist/crm/source.js.map +1 -1
- package/dist/generated/definitions.d.ts +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/manifest.d.ts +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-JXICB6TB.js +0 -40
- package/dist/bundle/chunk-HX2BE7DO.js +0 -40
- package/dist/bundle/chunk-YOVIH4QI.js +0 -1269
- package/dist/bundle/command-contract-7EWUA6E6.js +0 -40
- package/dist/bundle/first-screen-U7Z63VXE.js +0 -40
- package/dist/bundle/meeting-combined-B444C4NF.js +0 -25
- package/dist/bundle/server-VFKK6OS4.js +0 -86
- package/dist/bundle/store-LON2XRIS.js +0 -34
- package/dist/bundle/store-maintenance-command-YEMPRNJX.js +0 -73
- package/dist/bundle/surface-UJRMT6QT.js +0 -72
- package/dist/bundle/writer-NOSHE7ZI.js +0 -86
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TY7NDMFY.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5JKTVAXX.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -2,11 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
WIRECAT_TOOLS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NB7EOAUZ.js";
|
|
6
|
+
import {
|
|
7
|
+
hasOwnAction,
|
|
8
|
+
isHidden
|
|
9
|
+
} from "./chunk-WOPVBRPV.js";
|
|
6
10
|
import {
|
|
7
11
|
commandPathOf,
|
|
8
12
|
outputOf
|
|
9
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JBZYHRUN.js";
|
|
10
14
|
import {
|
|
11
15
|
Command,
|
|
12
16
|
Help,
|
|
@@ -17,21 +21,21 @@ import {
|
|
|
17
21
|
environmentOf,
|
|
18
22
|
metaOf,
|
|
19
23
|
takesProfile
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H6AH45GE.js";
|
|
21
25
|
import {
|
|
22
26
|
wrapAnsi
|
|
23
27
|
} from "./chunk-EH6ZEJGT.js";
|
|
24
28
|
import {
|
|
25
29
|
writes
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QPPOIWPY.js";
|
|
27
31
|
import {
|
|
28
32
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-S6JG4YUH.js";
|
|
30
34
|
import {
|
|
31
35
|
__name
|
|
32
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
37
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// 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/cli/help/command-help.js
|
|
35
39
|
var ARGUMENT_KINDS = {
|
|
36
40
|
chat: "chat",
|
|
37
41
|
chats: "chat",
|
|
@@ -105,8 +109,8 @@ var SAMPLES = {
|
|
|
105
109
|
var MAX_NEXT = 3;
|
|
106
110
|
var choices = /* @__PURE__ */ new WeakMap();
|
|
107
111
|
var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
|
|
108
|
-
var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 ||
|
|
109
|
-
var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child
|
|
112
|
+
var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || hasOwnAction(command), "runs");
|
|
113
|
+
var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !isHidden(child)).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
|
|
110
114
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
111
115
|
let at = command;
|
|
112
116
|
while (at.parent)
|
|
@@ -224,7 +228,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
224
228
|
command.addHelpText("after", () => commandHelpText(command));
|
|
225
229
|
}, "installCommandHelp");
|
|
226
230
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
231
|
+
// 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/cli/help/first-screen.js
|
|
228
232
|
var WIDTH = 100;
|
|
229
233
|
var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
|
|
230
234
|
var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
|
|
@@ -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;
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
servicesFor,
|
|
20
20
|
terminalAsker,
|
|
21
21
|
waitForTurn
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FRF32QVB.js";
|
|
23
23
|
import {
|
|
24
24
|
capability,
|
|
25
25
|
throughWrapper
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PFYPJUWX.js";
|
|
27
27
|
import {
|
|
28
28
|
servingProfiles
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XQGN2D44.js";
|
|
30
30
|
import {
|
|
31
31
|
asFirstWord,
|
|
32
32
|
baseContext,
|
|
@@ -37,37 +37,37 @@ import {
|
|
|
37
37
|
recalledAccount,
|
|
38
38
|
rememberAccount,
|
|
39
39
|
rootOf2 as rootOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-H6AH45GE.js";
|
|
41
41
|
import {
|
|
42
42
|
providerErrorKey
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GIMHJ7HA.js";
|
|
44
44
|
import {
|
|
45
45
|
openStore
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7T5BFWZI.js";
|
|
47
47
|
import {
|
|
48
48
|
isCliFailure
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JLXXUEAM.js";
|
|
50
50
|
import {
|
|
51
51
|
CEILING_KEY,
|
|
52
52
|
fetchesUnder,
|
|
53
53
|
levelFor,
|
|
54
54
|
readKeysForCommand
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IPKCM55K.js";
|
|
56
56
|
import {
|
|
57
57
|
chatReferenceOf,
|
|
58
58
|
ensureAccount,
|
|
59
59
|
foldName,
|
|
60
60
|
isId,
|
|
61
61
|
pickPerson
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BGWQIFAS.js";
|
|
63
63
|
import {
|
|
64
64
|
CliError
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-S6JG4YUH.js";
|
|
66
66
|
import {
|
|
67
67
|
__name
|
|
68
68
|
} from "./chunk-ZVVMGPBJ.js";
|
|
69
69
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
70
|
+
// 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/cli/messenger/flooded.js
|
|
71
71
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
72
72
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
73
73
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -164,7 +164,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
164
164
|
});
|
|
165
165
|
}, "flooded");
|
|
166
166
|
|
|
167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
167
|
+
// 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/cli/messenger/observed.js
|
|
168
168
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
169
169
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
170
170
|
const write = currentOperation();
|
|
@@ -263,7 +263,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
263
263
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
264
264
|
}, "byPart");
|
|
265
265
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
266
|
+
// 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/cli/messenger/stored.js
|
|
267
267
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
268
268
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
269
269
|
let warned = false;
|
|
@@ -839,7 +839,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
839
839
|
}
|
|
840
840
|
}, "keep");
|
|
841
841
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// 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/cli/messenger/context.js
|
|
843
843
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
844
844
|
let opened;
|
|
845
845
|
return {
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
fieldsOf,
|
|
6
6
|
processStreams,
|
|
7
7
|
projectFields
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5JKTVAXX.js";
|
|
9
9
|
import {
|
|
10
10
|
COMPACT_FLAG
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QPPOIWPY.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError,
|
|
14
14
|
singleLine
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-S6JG4YUH.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// 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/sends/permissions.js
|
|
21
21
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
22
22
|
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
23
23
|
"messages.delete",
|
|
@@ -453,7 +453,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
453
453
|
}
|
|
454
454
|
}, "assertRetentionEvidenceRead");
|
|
455
455
|
|
|
456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
456
|
+
// 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/cli/result-fields.js
|
|
457
457
|
var named = /* @__PURE__ */ __name((work) => {
|
|
458
458
|
try {
|
|
459
459
|
return work();
|
|
@@ -480,7 +480,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
480
480
|
return projectFields(value, fields);
|
|
481
481
|
}), "projectFields");
|
|
482
482
|
|
|
483
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
483
|
+
// 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/output-detail.js
|
|
484
484
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
485
485
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
486
486
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -516,7 +516,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
516
516
|
return value;
|
|
517
517
|
}, "atDetail");
|
|
518
518
|
|
|
519
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
519
|
+
// 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/output.js
|
|
520
520
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
521
521
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
522
522
|
if (other)
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H6AH45GE.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IPKCM55K.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QPPOIWPY.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S6JG4YUH.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// 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/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -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 ?? {};
|
|
@@ -23,28 +23,28 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7T5BFWZI.js";
|
|
27
27
|
import {
|
|
28
28
|
damagedFile
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JLXXUEAM.js";
|
|
30
30
|
import {
|
|
31
31
|
fold
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2JHVQMVC.js";
|
|
33
33
|
import {
|
|
34
34
|
ADDED_PROVIDER,
|
|
35
35
|
filesAccountSql,
|
|
36
36
|
folderProviderOf,
|
|
37
37
|
folderProviderSql,
|
|
38
38
|
isDocumentAccountProvider
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-AINKLKDN.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-S6JG4YUH.js";
|
|
43
43
|
import {
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// 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/store/damage.js
|
|
48
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
49
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
50
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
147
147
|
};
|
|
148
148
|
}, "storeDamageReport");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// 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/store/document-transfer/index.js
|
|
151
151
|
import { realpathSync, statSync } from "node:fs";
|
|
152
152
|
import { resolve } from "node:path";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// 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/store/sqlite/document-transfer/people.js
|
|
155
155
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
156
156
|
const creatable = /* @__PURE__ */ new Set();
|
|
157
157
|
let people = 0, identities = 0;
|
|
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
214
214
|
}
|
|
215
215
|
}, "copyPeople");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// 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/store/document-transfer/digest.js
|
|
218
218
|
import { createHash } from "node:crypto";
|
|
219
219
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// 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/store/sqlite/document-transfer/collection.js
|
|
222
222
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
223
223
|
const colon = collection.indexOf(":");
|
|
224
224
|
const provider = collection.slice(0, colon);
|
|
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
262
262
|
};
|
|
263
263
|
}, "currentCollection");
|
|
264
264
|
|
|
265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
265
|
+
// 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/store/sqlite/document-transfer/plan.js
|
|
266
266
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
267
267
|
const mappings = /* @__PURE__ */ new Map();
|
|
268
268
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -344,8 +344,8 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
344
344
|
else
|
|
345
345
|
missing.add(external.reference);
|
|
346
346
|
}
|
|
347
|
-
const
|
|
348
|
-
if (target && target.organization_id !==
|
|
347
|
+
const organization = snapshot.collection.organization_id == null ? null : mappings.get(`organization:${String(snapshot.collection.organization_id)}`)?.id;
|
|
348
|
+
if (target && target.organization_id !== organization)
|
|
349
349
|
conflicts.add("the destination collection has a different organization binding");
|
|
350
350
|
for (const tagging of snapshot.taggings) {
|
|
351
351
|
if (Number(tagging.tag_group_size ?? 1) > 1)
|
|
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
429
429
|
};
|
|
430
430
|
}, "planTransfer");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// 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/store/sqlite/document-transfer/snapshot.js
|
|
433
433
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
434
434
|
var MAX_ENTITIES = 1e3;
|
|
435
435
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
591
591
|
};
|
|
592
592
|
}), "transferSnapshot");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// 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/store/sqlite/document-transfer/apply.js
|
|
595
595
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
596
596
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
597
597
|
return provider ?? null;
|
|
@@ -645,11 +645,11 @@ var applyTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindi
|
|
|
645
645
|
mappings.set(external.key, botNamed(database, external.bot.name, now(), external.bot.kind));
|
|
646
646
|
let collectionId = plan.collectionId;
|
|
647
647
|
if (collectionId === void 0) {
|
|
648
|
-
const
|
|
648
|
+
const organization = snapshot.collection.organization_id == null ? void 0 : mapped(mappings, "organization", snapshot.collection.organization_id);
|
|
649
649
|
collectionId = insert(database, "accounts", "provider external_id name created_at settings updated_at scope organization_id", {
|
|
650
650
|
...snapshot.collection,
|
|
651
651
|
provider: providerHere(snapshot.collection),
|
|
652
|
-
organization_id:
|
|
652
|
+
organization_id: organization?.id ?? null
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
mappings.set(`account:${String(snapshot.collection.id)}`, { type: "account", id: collectionId });
|
|
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
763
763
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
764
764
|
}, "remapEntity");
|
|
765
765
|
|
|
766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
766
|
+
// 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/store/document-transfer/index.js
|
|
767
767
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
768
768
|
for (const value of [options.source, options.destination, options.collection])
|
|
769
769
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
|
865
865
|
}
|
|
866
866
|
}, "applyWith");
|
|
867
867
|
|
|
868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// 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/store/health.js
|
|
869
869
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
870
870
|
var JSON_COLUMNS = {
|
|
871
871
|
accounts: ["settings"],
|
|
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}, "storeHealth");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// 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/store/project-transfer/preview.js
|
|
1011
1011
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
1012
1012
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1013
1013
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -1022,18 +1022,18 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
1022
1022
|
throw new CliError("validation_error", "project preview project is a project:<safe integer id> reference");
|
|
1023
1023
|
const budget = new SnapshotBudget(options.maxReadBytes ?? 4 * 1024 * 1024);
|
|
1024
1024
|
const target = options.target;
|
|
1025
|
-
const
|
|
1025
|
+
const project = options.project;
|
|
1026
1026
|
return damagedFile([target], async () => {
|
|
1027
1027
|
const context = await openStoreContext({ path: target, env: options.env, readOnly: true });
|
|
1028
1028
|
try {
|
|
1029
|
-
return previewAnnotationSnapshot(context.database, Number(
|
|
1029
|
+
return previewAnnotationSnapshot(context.database, Number(project.slice(8)), snapshot, options.bindings, budget);
|
|
1030
1030
|
} finally {
|
|
1031
1031
|
context.database.close();
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
1034
1034
|
}, "previewProjectAnnotationSnapshot");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// 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/store/project-transfer/snapshot.js
|
|
1037
1037
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
1038
1038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1039
1039
|
throw new CliError("validation_error", "snapshot options are required");
|