@wirecat/hubspot-cli 0.3.1 → 0.4.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 +20 -0
- package/README.md +6 -5
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-NST4YXJR.js +40 -0
- package/dist/bundle/{all-profiles-6452VSJB.js → all-profiles-JVEE4PXX.js} +11 -11
- package/dist/bundle/{anthropic-VQUOVYOW.js → anthropic-6HT57GNF.js} +5 -5
- package/dist/bundle/{app-server-EQZUP4H4.js → app-server-FOBFF6G6.js} +68 -68
- package/dist/bundle/{bun-AJPJ4ZUN.js → bun-GW443QB3.js} +2 -2
- package/dist/bundle/{bun-sqlite-AGXGSF6D.js → bun-sqlite-TGIAICDN.js} +6 -6
- package/dist/bundle/{chunk-ARTJLL7W.js → chunk-2BCWK5BF.js} +5 -5
- package/dist/bundle/{chunk-JUKAIXKY.js → chunk-2Q2XIXDL.js} +1 -1
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
- package/dist/bundle/{chunk-NNMU2TDU.js → chunk-3MPMYAII.js} +1 -1
- package/dist/bundle/{chunk-WGBVRDY3.js → chunk-3MUHCLRY.js} +25 -3
- package/dist/bundle/{chunk-TIHDBKA7.js → chunk-3SRGN5MQ.js} +2 -2
- package/dist/bundle/{chunk-EMOVVERN.js → chunk-4OPN3KCN.js} +5 -5
- package/dist/bundle/{chunk-6MFP47XC.js → chunk-5G4L6NQJ.js} +35 -35
- package/dist/bundle/{chunk-DQB5JMTY.js → chunk-5KLNBGPU.js} +1 -1
- package/dist/bundle/{chunk-ABXVU5O4.js → chunk-5OBVICFK.js} +8 -1
- package/dist/bundle/{chunk-LKSNISYV.js → chunk-5WKJFMC3.js} +4 -4
- package/dist/bundle/{chunk-B2W3C4N6.js → chunk-5ZVYIA56.js} +5 -5
- package/dist/bundle/{chunk-AF7DANIR.js → chunk-6NUXFVJQ.js} +1 -1
- package/dist/bundle/{chunk-3PEKYGZ3.js → chunk-6ULR7N3T.js} +2 -2
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-VQEAZXTV.js → chunk-7OJ43BAH.js} +7 -7
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
- package/dist/bundle/{chunk-OJIJVOOA.js → chunk-A6PVEUGN.js} +16 -16
- package/dist/bundle/{chunk-FIVD4HM4.js → chunk-AT43MYQL.js} +8 -8
- package/dist/bundle/{chunk-3R4KRNUZ.js → chunk-ATGD64VO.js} +8 -8
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-3DIXAEGH.js → chunk-BXZRSXBL.js} +3 -3
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-KO4VR5NK.js → chunk-DBPFHJXX.js} +4 -4
- package/dist/bundle/{chunk-GRFICQTZ.js → chunk-DG4RBKIV.js} +1 -1
- package/dist/bundle/{chunk-5AYKCKSE.js → chunk-E33KM3DB.js} +11 -11
- package/dist/bundle/{chunk-5ZV7REBE.js → chunk-EBJYK7UM.js} +63 -60
- package/dist/bundle/{chunk-GZZR5U3K.js → chunk-ETKLP4VE.js} +12 -12
- package/dist/bundle/{chunk-BN22EKQQ.js → chunk-EU7AVWSX.js} +2 -2
- package/dist/bundle/{chunk-PLRUUXK7.js → chunk-F3HJ2E3P.js} +6 -6
- package/dist/bundle/{chunk-B3EH22CO.js → chunk-F4ZLRS4B.js} +1 -1
- package/dist/bundle/{chunk-VNPC274V.js → chunk-FK4LEJZM.js} +3 -3
- package/dist/bundle/{chunk-M763RNWP.js → chunk-FOLKK6FW.js} +13 -13
- package/dist/bundle/{chunk-NTQBS2JL.js → chunk-FWW2CUXH.js} +4 -4
- package/dist/bundle/{chunk-SEELWPRD.js → chunk-GJSHLF43.js} +8 -8
- package/dist/bundle/{chunk-CBCEMFCF.js → chunk-GOOXUCJW.js} +2 -2
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-PHXOL5HZ.js → chunk-HM72O37C.js} +156 -156
- package/dist/bundle/{chunk-KVXEEKBB.js → chunk-HPRKSL5S.js} +2 -2
- package/dist/bundle/{chunk-3TEFE6YU.js → chunk-HQYJ66ZX.js} +7 -7
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-IBTMK5KD.js → chunk-IED6MKPU.js} +25 -25
- package/dist/bundle/{chunk-LA3YU4K7.js → chunk-JKNUCEII.js} +1 -1
- package/dist/bundle/{chunk-IQ2XZ62J.js → chunk-JWO3PB5Z.js} +18 -18
- package/dist/bundle/{chunk-BAUK2MD5.js → chunk-K4DWBOO6.js} +43 -64
- package/dist/bundle/{chunk-Z6ZQVYIE.js → chunk-LS4S7PAP.js} +3 -3
- package/dist/bundle/{chunk-RVWGFD32.js → chunk-LX7QMRRG.js} +13 -13
- package/dist/bundle/{chunk-WCQW4GYO.js → chunk-M25KVDHA.js} +24 -8
- package/dist/bundle/{chunk-L433IDOX.js → chunk-MQACXJLG.js} +8 -8
- package/dist/bundle/{chunk-7VHBS5BJ.js → chunk-N4EIJ53V.js} +2 -2
- package/dist/bundle/{chunk-O3VM5PTJ.js → chunk-NL3RKJR6.js} +1 -1
- package/dist/bundle/{chunk-LT5KE44Q.js → chunk-NLZADZ4F.js} +61 -61
- package/dist/bundle/{chunk-E4X7JAFC.js → chunk-OLDIP4CV.js} +3 -3
- package/dist/bundle/{chunk-AVUMH42T.js → chunk-PKFLSX5F.js} +8 -8
- package/dist/bundle/{chunk-IXZLMFPO.js → chunk-PMJCZIV4.js} +1 -1
- package/dist/bundle/{chunk-NZGI74GS.js → chunk-PQUZ2YDC.js} +6 -6
- package/dist/bundle/{chunk-LTVYGXWT.js → chunk-Q7DIEU6L.js} +7 -7
- package/dist/bundle/{chunk-E4FAMU2S.js → chunk-QIFCH5DZ.js} +347 -313
- package/dist/bundle/{chunk-WRCKE5ND.js → chunk-QJHRRJKD.js} +3 -3
- package/dist/bundle/{chunk-7UEL65GQ.js → chunk-QNQ4V4UT.js} +8 -8
- package/dist/bundle/{chunk-JP2HJXFO.js → chunk-QODPEZC5.js} +3 -3
- package/dist/bundle/{chunk-ODPU3II6.js → chunk-QV4GDVBN.js} +8 -8
- package/dist/bundle/{chunk-2A64XS22.js → chunk-RFGIUCKU.js} +3 -3
- package/dist/bundle/{chunk-GC6FLHZF.js → chunk-T3GZKV5A.js} +12 -12
- package/dist/bundle/{chunk-HPZRUY6S.js → chunk-TAF4PKDS.js} +1 -1
- package/dist/bundle/{chunk-K4X5ZHI2.js → chunk-UHHXZKB2.js} +16 -16
- package/dist/bundle/{chunk-4DNHXRCJ.js → chunk-UIWWAT3C.js} +7 -7
- package/dist/bundle/{chunk-ITGNDZRR.js → chunk-V23OHBGM.js} +3 -3
- package/dist/bundle/{chunk-U6XA3OOM.js → chunk-V2B2OWTC.js} +2 -2
- package/dist/bundle/{chunk-2NCO4E4T.js → chunk-VDAYIXV4.js} +6 -6
- package/dist/bundle/{chunk-7NZT7Y55.js → chunk-VMF2UIQI.js} +1 -1
- package/dist/bundle/{chunk-XLDQTDF6.js → chunk-W5X37TBC.js} +2 -2
- package/dist/bundle/{chunk-EE4JSYGZ.js → chunk-WATDMTDC.js} +3 -3
- package/dist/bundle/{chunk-Q27QAB4X.js → chunk-WBUVNKHJ.js} +7 -7
- package/dist/bundle/{chunk-7LQRXVQ3.js → chunk-WLFYEAZ6.js} +978 -548
- package/dist/bundle/{chunk-5YNAVVCW.js → chunk-X5U7GLHD.js} +3 -3
- package/dist/bundle/{chunk-JK2SNLU5.js → chunk-XCDRFC6G.js} +17 -17
- package/dist/bundle/{chunk-AWOJYRQW.js → chunk-XDDTJYGA.js} +434 -371
- package/dist/bundle/{chunk-2PRVWEJC.js → chunk-XJVFXHDI.js} +2 -2
- package/dist/bundle/{chunk-2HYGCLKN.js → chunk-XMWMA2N5.js} +77 -38
- package/dist/bundle/{chunk-BHZUPOQY.js → chunk-YYYRE4AV.js} +26 -26
- package/dist/bundle/{chunk-DW23LM47.js → chunk-Z3YOKGVZ.js} +2 -2
- package/dist/bundle/{chunk-A6UFH3QU.js → chunk-Z4PY5BDP.js} +4 -4
- package/dist/bundle/command-contract-LYX2QNIA.js +40 -0
- package/dist/bundle/{command-server-entry-GJSMDSNE.js → command-server-entry-OJQ55UA2.js} +28 -28
- package/dist/bundle/{decode-6PLXHVHW.js → decode-CDQDRPRJ.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/{echarts-UZ7QLRE2.js → echarts-GJ5JJG2A.js} +2 -2
- package/dist/bundle/{embed-AWLL4EBF.js → embed-BUQXGMKR.js} +6 -6
- package/dist/bundle/{embedder-MM225YJ6.js → embedder-FCX6LE4O.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
- package/dist/bundle/{first-run-KCZVNFJ7.js → first-run-RPYEXXQK.js} +12 -12
- package/dist/bundle/first-screen-Y4EH3HZS.js +40 -0
- package/dist/bundle/hubspot.js +25 -25
- package/dist/bundle/{instructions-ZJ7U3QUE.js → instructions-LPVTPERS.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-FEEVVUGC.js +25 -0
- package/dist/bundle/{meeting-model-OYXB2NOE.js → meeting-model-TRGBEWCY.js} +11 -11
- package/dist/bundle/{meeting-semantic-S3DBB7XD.js → meeting-semantic-RSF5KNKD.js} +6 -6
- package/dist/bundle/{node-HGCZGZ4R.js → node-UAT3EIAP.js} +2 -2
- package/dist/bundle/{node-sqlite-RKYSRKEB.js → node-sqlite-3HKDQNFD.js} +7 -7
- package/dist/bundle/{oauth-PYDCAQ7Y.js → oauth-DYW2NSZP.js} +7 -7
- package/dist/bundle/{open-UCDSQUN2.js → open-KBRXJ5BC.js} +5 -5
- package/dist/bundle/{openai-Y4F5ZC7O.js → openai-YNCLRTSK.js} +15 -15
- package/dist/bundle/{process-P7FB7YO7.js → process-63BB7LKP.js} +1 -1
- package/dist/bundle/{program-O2A5L4S4.js → program-VX52OB3O.js} +132 -98
- package/dist/bundle/{prompt-E5TKZ37Q.js → prompt-TWLJ3M2O.js} +5 -5
- package/dist/bundle/{recognize-5NYPTSLT.js → recognize-GQ6DLGE7.js} +4 -4
- package/dist/bundle/{remote-U4LUAHF2.js → remote-RKNSF3TT.js} +9 -9
- package/dist/bundle/{rerank-AJAVKK5L.js → rerank-H4HSGQUJ.js} +7 -7
- package/dist/bundle/{schemas-QLQ2K6DL.js → schemas-LDK7O6VW.js} +1 -1
- package/dist/bundle/{serve-4UJ3R5IP.js → serve-4ZNIAL7H.js} +9 -9
- package/dist/bundle/server-3IYIZEEQ.js +86 -0
- package/dist/bundle/{server-DUKWJUKD.js → server-4G4QB3QN.js} +60 -60
- package/dist/bundle/{source-FCQDXCAD.js → source-2UCNCCO7.js} +79 -79
- package/dist/bundle/{sqlite-runtime-KLEA4XAU.js → sqlite-runtime-C2JYC7JF.js} +6 -6
- package/dist/bundle/{state-COGSYMVH.js → state-3KDXCXHG.js} +6 -6
- package/dist/bundle/store-2MNUHHZC.js +32 -0
- package/dist/bundle/{store-V5UMSWK4.js → store-J5FQBZYR.js} +26 -22
- package/dist/bundle/{store-BJXCSP26.js → store-LXLG5HTS.js} +24 -24
- package/dist/bundle/store-maintenance-command-DDB7TR6V.js +73 -0
- package/dist/bundle/surface-ZTZANYKC.js +72 -0
- package/dist/bundle/writer-X7PGBLDH.js +86 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +56 -8
- package/dist/config.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/hubspot-cli/references/api/api-basic.md +34 -6
- package/skills/hubspot-cli/references/api/api-batch.md +19 -9
- package/skills/hubspot-cli/references/api/api-search.md +9 -0
- package/dist/bundle/agent-A7ARC3QB.js +0 -40
- package/dist/bundle/command-contract-R2FGN7CQ.js +0 -40
- package/dist/bundle/first-screen-SCDV7TXT.js +0 -40
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +0 -25
- package/dist/bundle/server-UQVV2PPX.js +0 -86
- package/dist/bundle/store-CHH3G3SL.js +0 -32
- package/dist/bundle/store-maintenance-command-DQUBBWMD.js +0 -73
- package/dist/bundle/surface-IGBQUYE5.js +0 -72
- package/dist/bundle/writer-AQSEPEEN.js +0 -86
|
@@ -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-HM6AMYHR.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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/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");
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
backoffMs,
|
|
6
6
|
realSleep,
|
|
7
7
|
wallClock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3BM6KBWP.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
isCliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HM6AMYHR.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
18
18
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
19
19
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
20
20
|
if (signal?.aborted)
|
|
@@ -99,7 +99,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
99
99
|
}
|
|
100
100
|
}, "readJsonResponse");
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
103
103
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
104
104
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
105
105
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -111,7 +111,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
111
111
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
112
112
|
}, "hostCovered");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
|
|
115
115
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
116
116
|
var REDIRECTS = 5;
|
|
117
117
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -146,6 +146,17 @@ var checked2 = /* @__PURE__ */ __name((url, hosts) => {
|
|
|
146
146
|
throw undeclared(url);
|
|
147
147
|
return url;
|
|
148
148
|
}, "checked");
|
|
149
|
+
var ENCODED_SLASH = /%2f|%5c/i;
|
|
150
|
+
var scopeOf = /* @__PURE__ */ __name((scope) => {
|
|
151
|
+
if (scope === void 0)
|
|
152
|
+
return void 0;
|
|
153
|
+
if (!URL.canParse(scope))
|
|
154
|
+
throw new CliError("configuration_error", `credentialScope ${scope} is not a URL`);
|
|
155
|
+
const { origin, pathname } = new URL(scope);
|
|
156
|
+
const prefix = pathname.endsWith("/") ? pathname : `${pathname}/`;
|
|
157
|
+
return (url) => url.origin === origin && (url.pathname === pathname || url.pathname.startsWith(prefix)) && !ENCODED_SLASH.test(url.pathname);
|
|
158
|
+
}, "scopeOf");
|
|
159
|
+
var signedHeaders = /* @__PURE__ */ __name((headers) => CREDENTIAL_HEADERS.some((name) => headers.has(name)), "signedHeaders");
|
|
149
160
|
var NOT_SENT = /* @__PURE__ */ new Set(["EAI_AGAIN", "ENOTFOUND", "ECONNREFUSED"]);
|
|
150
161
|
var neverSent = /* @__PURE__ */ __name((error) => {
|
|
151
162
|
for (let at = error, depth = 0; at instanceof Error && depth < 4; at = at.cause, depth++) {
|
|
@@ -160,6 +171,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
160
171
|
if (problems.length > 0)
|
|
161
172
|
throw new CliError("configuration_error", problems.join("; "));
|
|
162
173
|
const { hosts, fetch: send = globalThis.fetch, timeoutMs = HOST_FETCH_TIMEOUT_MS, redirects = REDIRECTS } = options;
|
|
174
|
+
const inScope = scopeOf(options.credentialScope);
|
|
163
175
|
return async (input, init = {}) => {
|
|
164
176
|
const request = input instanceof Request ? input : void 0;
|
|
165
177
|
let url = checked2(new URL(request?.url ?? String(input)), hosts);
|
|
@@ -170,6 +182,10 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
170
182
|
let method = (init.method ?? request?.method ?? "GET").toUpperCase();
|
|
171
183
|
let body = init.body ?? request?.body ?? void 0;
|
|
172
184
|
const headers = new Headers(init.headers ?? request?.headers);
|
|
185
|
+
if (inScope && signedHeaders(headers) && !inScope(url))
|
|
186
|
+
throw new CliError("configuration_error", `the sign-in goes only under ${options.credentialScope}, not ${url.origin}${url.pathname}`, {
|
|
187
|
+
sent: false
|
|
188
|
+
});
|
|
173
189
|
let answered = false;
|
|
174
190
|
try {
|
|
175
191
|
let response = await send(input, { ...init, signal, ...follow ? { redirect: "manual" } : {} });
|
|
@@ -190,7 +206,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
190
206
|
headers.delete("content-length");
|
|
191
207
|
} else if (body instanceof ReadableStream)
|
|
192
208
|
throw new CliError("invalid_response", `${url.hostname} redirected a streamed body, which cannot be sent again`);
|
|
193
|
-
if (next.origin !== url.origin)
|
|
209
|
+
if (inScope ? !inScope(next) : next.origin !== url.origin)
|
|
194
210
|
for (const name of CREDENTIAL_HEADERS)
|
|
195
211
|
headers.delete(name);
|
|
196
212
|
url = next;
|
|
@@ -213,7 +229,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
213
229
|
};
|
|
214
230
|
}, "hostFetch");
|
|
215
231
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
232
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
217
233
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
218
234
|
if (!header)
|
|
219
235
|
return void 0;
|
|
@@ -305,7 +321,7 @@ var retrying = /* @__PURE__ */ __name((send, options = {}) => {
|
|
|
305
321
|
};
|
|
306
322
|
}, "retrying");
|
|
307
323
|
|
|
308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
309
325
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
310
326
|
try {
|
|
311
327
|
const url = new URL(value);
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
PLAIN_HTTP_REFUSED,
|
|
5
5
|
modelAddressAllowed,
|
|
6
6
|
onThisComputer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M25KVDHA.js";
|
|
8
8
|
import {
|
|
9
9
|
readSharedSection,
|
|
10
10
|
sharedConfigPath,
|
|
11
11
|
writeSharedSection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UIWWAT3C.js";
|
|
13
13
|
import {
|
|
14
14
|
unit
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K4DWBOO6.js";
|
|
16
16
|
import {
|
|
17
17
|
storePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6ULR7N3T.js";
|
|
19
19
|
import {
|
|
20
20
|
boolean,
|
|
21
21
|
isoTimestamp,
|
|
@@ -26,15 +26,15 @@ import {
|
|
|
26
26
|
} from "./chunk-S4UUN6LD.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HM6AMYHR.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
35
35
|
import { setTimeout } from "node:timers/promises";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/models/local-only.js
|
|
38
38
|
var SECTION = "local_only";
|
|
39
39
|
var Setting = strictObject({
|
|
40
40
|
on: boolean(),
|
|
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
|
|
|
68
68
|
refuseOffComputer(env, address, what);
|
|
69
69
|
}, "refuseModelAddress");
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
72
72
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
73
73
|
var OPENAI_MODELS = {
|
|
74
74
|
"text-embedding-3-small": { dims: 1536, perMillion: 0.02 },
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
agentOf,
|
|
8
8
|
clientHash,
|
|
9
9
|
currentCaller
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AT43MYQL.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@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.705.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1668a48934ee0d2606b0d61251c2625b/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|