@wirecat/attio-cli 0.2.2 → 0.3.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 +36 -0
- package/README.md +13 -9
- package/contracts/wirecat.json +263 -1
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-HM6ST5HY.js +37 -0
- package/dist/bundle/{all-profiles-RAFO3NFW.js → all-profiles-7GUR2SM3.js} +10 -10
- package/dist/bundle/{anthropic-TNR6QJGA.js → anthropic-4CN3TJYB.js} +5 -5
- package/dist/bundle/{app-server-BXVGXUGQ.js → app-server-HSQEPWRY.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-3RTK5XYF.js → bun-DTF5MNDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-I5K5Z2ZK.js → bun-sqlite-NFVPKLZD.js} +6 -6
- package/dist/bundle/{chunk-EMZ4MGPD.js → chunk-2AVWKAHP.js} +22 -1
- package/dist/bundle/{chunk-CZP6C6MX.js → chunk-2KP5LRCK.js} +4 -4
- package/dist/bundle/{chunk-DKSO7UTS.js → chunk-2PDJCM3U.js} +134 -14
- package/dist/bundle/{chunk-SEDD6YZQ.js → chunk-2SM6G7CP.js} +4 -4
- package/dist/bundle/{chunk-ZI3IRII7.js → chunk-3HFUSESO.js} +3 -3
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-3JZNNESS.js} +2 -2
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-3L3ZRFKH.js} +1 -1
- package/dist/bundle/{chunk-WHDVRMB7.js → chunk-3PPTBPRU.js} +42 -38
- package/dist/bundle/{chunk-NWDO4DE3.js → chunk-4A5E32BA.js} +1185 -672
- package/dist/bundle/{chunk-2CS7VHUB.js → chunk-4BHD26FI.js} +34 -34
- package/dist/bundle/{chunk-TUOFAUBR.js → chunk-4GGTI6J2.js} +8 -8
- package/dist/bundle/{chunk-3LMW7U7F.js → chunk-4IASSY4K.js} +21 -8
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-55OZY4JK.js} +1 -1
- package/dist/bundle/{chunk-6ZBJCBXA.js → chunk-6GLKKI5B.js} +2 -2
- package/dist/bundle/{chunk-7QH5BZUG.js → chunk-6GVBDIY7.js} +3 -3
- package/dist/bundle/{chunk-CKG7GIHR.js → chunk-6MKREZYW.js} +3 -3
- package/dist/bundle/{chunk-O4SX6FXT.js → chunk-6UVYOUKX.js} +1 -1
- package/dist/bundle/{chunk-L7BMGR5W.js → chunk-73D7FXGY.js} +130 -32
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-77PCNTJY.js} +1 -1
- package/dist/bundle/{chunk-XSUU7PB7.js → chunk-AO6N3HLS.js} +16 -3
- package/dist/bundle/{chunk-V4JWUVNO.js → chunk-CEY7LGCR.js} +4 -4
- package/dist/bundle/{chunk-FPMWW2HK.js → chunk-CV65DYDO.js} +31 -27
- package/dist/bundle/{chunk-P76XVKVC.js → chunk-CWLNO3ZU.js} +1 -1
- package/dist/bundle/{chunk-UZYL4AMA.js → chunk-D3BQH24W.js} +72 -57
- package/dist/bundle/{chunk-RKKY3MSZ.js → chunk-EBVOFSWE.js} +1 -1
- package/dist/bundle/{chunk-XQIRF6PS.js → chunk-ECPUCPPX.js} +7 -7
- package/dist/bundle/{chunk-UTTNGFKW.js → chunk-FJUBFNIH.js} +12 -12
- package/dist/bundle/{chunk-7626I3P4.js → chunk-GFKYZJN4.js} +1 -1
- package/dist/bundle/{chunk-JFFCP52L.js → chunk-GJFFI6OA.js} +1 -1
- package/dist/bundle/{chunk-APNSAKSO.js → chunk-GMRYIIGP.js} +6 -6
- package/dist/bundle/{chunk-GT3HXSKW.js → chunk-GS3LY5S5.js} +14 -7
- package/dist/bundle/{chunk-LHKVAZ5T.js → chunk-H55WJPRM.js} +2 -2
- package/dist/bundle/{chunk-MG4U6AKG.js → chunk-HS7TLG6U.js} +3 -4
- package/dist/bundle/{chunk-2TLGP7BS.js → chunk-HVLKBGYN.js} +5 -5
- package/dist/bundle/{chunk-LG6Y4NAT.js → chunk-IFDR5RYE.js} +2 -2
- package/dist/bundle/{chunk-PRERT2BZ.js → chunk-IQSXBZA7.js} +1 -1
- package/dist/bundle/{chunk-LIIOT3AN.js → chunk-IWC3ECVF.js} +3 -3
- package/dist/bundle/{chunk-62FENOMX.js → chunk-J3KE3D3L.js} +6 -6
- package/dist/bundle/{chunk-6HYTDMOL.js → chunk-KP7U75NI.js} +6 -6
- package/dist/bundle/{chunk-QSUFJGTG.js → chunk-KRCE3EBI.js} +2 -2
- package/dist/bundle/{chunk-7WS4ONXZ.js → chunk-LC4KJJZ2.js} +3 -3
- package/dist/bundle/{chunk-HMYJLOXE.js → chunk-LX6IMPKX.js} +2291 -844
- package/dist/bundle/{chunk-MI6IH5UW.js → chunk-MCNZCQ6P.js} +61 -61
- package/dist/bundle/{chunk-JWRI6ZY6.js → chunk-N7EFLZNW.js} +186 -162
- package/dist/bundle/{chunk-4F3FQ5QX.js → chunk-NE65S7F6.js} +3 -3
- package/dist/bundle/{chunk-BDFNXTNK.js → chunk-NK32ZZRV.js} +7 -7
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-NTW3Z4ZC.js} +4 -4
- package/dist/bundle/{chunk-2JB5XD5R.js → chunk-OOS57MMX.js} +7 -7
- package/dist/bundle/{chunk-AXGSAG53.js → chunk-PBUBZNIA.js} +25 -174
- package/dist/bundle/{chunk-JSAXTIRX.js → chunk-PCYDTU6N.js} +3 -2
- package/dist/bundle/{chunk-FRCORPOY.js → chunk-PTBGWRI4.js} +5 -5
- package/dist/bundle/{chunk-3BM6KBWP.js → chunk-PX5XI2UR.js} +19 -19
- package/dist/bundle/{chunk-MW2OS2GD.js → chunk-ROJF7524.js} +8 -8
- package/dist/bundle/{chunk-BFWERPF6.js → chunk-RPL3VL7F.js} +2 -2
- package/dist/bundle/{chunk-Q2U6DGSV.js → chunk-SDZJIDMF.js} +10 -10
- package/dist/bundle/{chunk-NQNFMKL2.js → chunk-SEZLN6OX.js} +1 -1
- package/dist/bundle/{chunk-AHPGTDO2.js → chunk-SIYP5IZG.js} +6 -6
- package/dist/bundle/{chunk-B7U5FLPP.js → chunk-SNUCQQQU.js} +8 -8
- package/dist/bundle/{chunk-VQSVE4RD.js → chunk-SRU4EQYO.js} +2 -2
- package/dist/bundle/{chunk-53BHLQRA.js → chunk-SVUQKDBZ.js} +13 -13
- package/dist/bundle/{chunk-WALQNDXO.js → chunk-SZ76WGXS.js} +8 -8
- package/dist/bundle/{chunk-YBJBYPS7.js → chunk-UN63OIS5.js} +3 -3
- package/dist/bundle/{chunk-OHCYBSCA.js → chunk-UNI5OO3J.js} +13 -13
- package/dist/bundle/{chunk-2PSAS4TT.js → chunk-UXT4532H.js} +7 -7
- package/dist/bundle/{chunk-T6DV3ED2.js → chunk-V6RIJ22V.js} +14 -14
- package/dist/bundle/{chunk-NQJ7QMEF.js → chunk-WAOJEEGU.js} +3 -3
- package/dist/bundle/{chunk-3JRLPNPO.js → chunk-WE6UGOBO.js} +1 -1
- package/dist/bundle/{chunk-SYBAMYFY.js → chunk-WYPHP2AM.js} +3 -3
- package/dist/bundle/{chunk-Z3HZD24R.js → chunk-Y6QUAEEJ.js} +17 -17
- package/dist/bundle/{chunk-AMRELFBT.js → chunk-YERPSSUC.js} +2 -2
- package/dist/bundle/{chunk-MHMHZ6GY.js → chunk-ZAZUNEZB.js} +1 -1
- package/dist/bundle/{chunk-OC35ZLPE.js → chunk-ZSO3T2W4.js} +4 -4
- package/dist/bundle/command-contract-XZKDRLEC.js +37 -0
- package/dist/bundle/{command-server-entry-ZKWL26Q5.js → command-server-entry-VTYSKZSD.js} +25 -25
- package/dist/bundle/{decode-TG45PUJW.js → decode-EJCGQVLX.js} +5 -5
- package/dist/bundle/{dispatch-JQBAZWCL.js → dispatch-YGAG263C.js} +8 -8
- package/dist/bundle/{echarts-AWICNZBO.js → echarts-LHBWIDKI.js} +2 -2
- package/dist/bundle/{embed-TN6HQUK2.js → embed-QKVPSZLS.js} +6 -6
- package/dist/bundle/{embedder-T3KJA3I4.js → embedder-NYO6EOFU.js} +9 -9
- package/dist/bundle/{failure-I6AAF5R5.js → failure-SE7VJEXI.js} +2 -2
- package/dist/bundle/{first-run-BZUITKMF.js → first-run-P5QA7RNU.js} +12 -12
- package/dist/bundle/first-screen-EUIV6PVE.js +37 -0
- package/dist/bundle/{instructions-FRJHLLZX.js → instructions-T6LGIEPV.js} +1 -1
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-PVQZS6IH.js} +2 -2
- package/dist/bundle/meeting-combined-GOBZBEX2.js +24 -0
- package/dist/bundle/{meeting-model-TENJU3OG.js → meeting-model-7UBHXIVW.js} +11 -11
- package/dist/bundle/{meeting-semantic-ZKOG2XMU.js → meeting-semantic-RXCWAIZZ.js} +6 -6
- package/dist/bundle/{node-3ZISJOEM.js → node-UBG6VKKA.js} +2 -2
- package/dist/bundle/{node-sqlite-KA35X4F4.js → node-sqlite-PYNAIHR6.js} +7 -7
- package/dist/bundle/{oauth-C74B6XHN.js → oauth-BLOW6XVT.js} +7 -7
- package/dist/bundle/{open-CJESRWUG.js → open-VWILPEZ2.js} +5 -5
- package/dist/bundle/{openai-WLXOXSTV.js → openai-N37NPTEE.js} +15 -15
- package/dist/bundle/{process-JV3KVGJY.js → process-DMYM7PNQ.js} +1 -1
- package/dist/bundle/{program-HSVLSH7A.js → program-5QZLUWS4.js} +4115 -4148
- package/dist/bundle/{prompt-EEBVB3XG.js → prompt-EJHIAH4K.js} +5 -5
- package/dist/bundle/{recognize-ZFITQZ4W.js → recognize-67LER7ZN.js} +4 -4
- package/dist/bundle/{remote-RZXSYHOJ.js → remote-BONPKWRO.js} +9 -9
- package/dist/bundle/{rerank-2BHYAEO3.js → rerank-FK2AFC3Y.js} +7 -7
- package/dist/bundle/{schemas-6GTYA2NR.js → schemas-4E76I6ME.js} +1 -1
- package/dist/bundle/{serve-G3M5H5JM.js → serve-ZIXWKUE3.js} +9 -9
- package/dist/bundle/{server-44WJ5K2W.js → server-4RX3LBCA.js} +53 -53
- package/dist/bundle/server-RL6NIURH.js +79 -0
- package/dist/bundle/{sqlite-runtime-TRISCWIG.js → sqlite-runtime-WDXPYP7C.js} +6 -6
- package/dist/bundle/{state-BF6IMDP2.js → state-NE7WPOBK.js} +6 -6
- package/dist/bundle/{store-VSKYLTLH.js → store-2LX2ZQY5.js} +18 -18
- package/dist/bundle/{store-LZPZC72J.js → store-PUAKYH6Z.js} +24 -20
- package/dist/bundle/store-maintenance-command-CSYN4LXT.js +66 -0
- package/dist/bundle/surface-HJIDG2KX.js +65 -0
- package/dist/commands/crm.d.ts +3 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +33 -8
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +2 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -5
- package/dist/config.js.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +175 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +10 -2
- package/dist/hooks.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +4 -2
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +11 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/attio-cli/SKILL.md +18 -3
- package/dist/bundle/agent-3FYEIRN4.js +0 -37
- package/dist/bundle/command-contract-N5X3UOTT.js +0 -37
- package/dist/bundle/first-screen-I23NJLFH.js +0 -37
- package/dist/bundle/meeting-combined-7ZNV4MZ2.js +0 -24
- package/dist/bundle/server-3ZL5TECF.js +0 -79
- package/dist/bundle/store-maintenance-command-IDAYDJLQ.js +0 -66
- package/dist/bundle/surface-OHYA3YS6.js +0 -65
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
readSharedSection,
|
|
5
5
|
writeSharedSection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UXT4532H.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3JZNNESS.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
15
15
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
16
16
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
17
17
|
var SECTION = "setup";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "./chunk-EH6ZEJGT.js";
|
|
6
6
|
import {
|
|
7
7
|
WIRECAT_TOOLS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2AVWKAHP.js";
|
|
9
9
|
import {
|
|
10
10
|
commandPathOf,
|
|
11
11
|
outputOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2KP5LRCK.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
15
15
|
Help,
|
|
@@ -20,18 +20,18 @@ import {
|
|
|
20
20
|
environmentOf,
|
|
21
21
|
metaOf,
|
|
22
22
|
takesProfile
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N7EFLZNW.js";
|
|
24
24
|
import {
|
|
25
25
|
writes
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4IASSY4K.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3JZNNESS.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.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
35
35
|
var ARGUMENT_KINDS = {
|
|
36
36
|
chat: "chat",
|
|
37
37
|
chats: "chat",
|
|
@@ -224,7 +224,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
224
224
|
command.addHelpText("after", () => commandHelpText(command));
|
|
225
225
|
}, "installCommandHelp");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
228
228
|
var WIDTH = 100;
|
|
229
229
|
var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
|
|
230
230
|
var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3JZNNESS.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
11
|
var FIRST_PARTY_TOOLS = [
|
|
12
12
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
13
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -31,7 +31,7 @@ var DESCRIBE_FLAG = "--wcat-describe";
|
|
|
31
31
|
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
32
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
35
|
var DESCRIBE_FORMAT = 1;
|
|
36
36
|
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
37
|
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
@@ -74,7 +74,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
74
74
|
};
|
|
75
75
|
}, "parseDescribe");
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
78
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
79
|
import { join } from "node:path";
|
|
80
80
|
var SHIM_FORMAT = 2;
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
isCliFailure,
|
|
5
5
|
secretNamed,
|
|
6
6
|
withoutSecrets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IWC3ECVF.js";
|
|
8
8
|
import {
|
|
9
9
|
isContentKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PX5XI2UR.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.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
16
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
20
20
|
import { homedir } from "node:os";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
23
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
24
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
25
|
if (event.event === "store")
|
|
@@ -71,7 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
71
71
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
72
72
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
75
75
|
var MESSAGE_AT_MOST = 500;
|
|
76
76
|
var CAUSES_AT_MOST = 5;
|
|
77
77
|
var FRAMES_AT_MOST = 15;
|
|
@@ -183,7 +183,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
183
183
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
184
|
}, "redactText");
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
186
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
187
|
var REDACTED = "[redacted]";
|
|
188
188
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
189
|
if (!record)
|
|
@@ -15,43 +15,36 @@ import {
|
|
|
15
15
|
profilesOnAccount,
|
|
16
16
|
recipientsPathFor,
|
|
17
17
|
refuseLacking,
|
|
18
|
+
refuseUnknownPermissionKeys,
|
|
18
19
|
servicesFor,
|
|
20
|
+
terminalAsker,
|
|
19
21
|
waitForTurn
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LX6IMPKX.js";
|
|
21
23
|
import {
|
|
22
24
|
capability,
|
|
23
25
|
throughWrapper
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UNI5OO3J.js";
|
|
25
27
|
import {
|
|
26
28
|
servingProfiles
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AO6N3HLS.js";
|
|
28
30
|
import {
|
|
29
|
-
AUTHORITY_KEY,
|
|
30
31
|
CEILING_KEY,
|
|
31
|
-
DEFAULT_PERMISSIONS,
|
|
32
|
-
KEYED_UNDER_HOUSEKEEPING,
|
|
33
|
-
WRITE_KEYS,
|
|
34
32
|
asFirstWord,
|
|
35
33
|
baseContext,
|
|
36
34
|
codeOf,
|
|
37
35
|
currentOperation,
|
|
38
36
|
environmentOf,
|
|
39
37
|
fetchesUnder,
|
|
40
|
-
issueMessage,
|
|
41
|
-
keyForCommand,
|
|
42
38
|
levelFor,
|
|
43
39
|
limitBatch,
|
|
44
|
-
permissionIssues,
|
|
45
|
-
publicIssue,
|
|
46
40
|
readKeysForCommand,
|
|
47
41
|
recalledAccount,
|
|
48
42
|
rememberAccount,
|
|
49
|
-
rootOf2 as rootOf
|
|
50
|
-
|
|
51
|
-
} from "./chunk-JWRI6ZY6.js";
|
|
43
|
+
rootOf2 as rootOf
|
|
44
|
+
} from "./chunk-N7EFLZNW.js";
|
|
52
45
|
import {
|
|
53
46
|
providerErrorKey
|
|
54
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OOS57MMX.js";
|
|
55
48
|
import {
|
|
56
49
|
chatReferenceOf,
|
|
57
50
|
ensureAccount,
|
|
@@ -59,161 +52,26 @@ import {
|
|
|
59
52
|
isId,
|
|
60
53
|
openStore,
|
|
61
54
|
pickPerson
|
|
62
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4A5E32BA.js";
|
|
63
56
|
import {
|
|
64
57
|
isCliFailure
|
|
65
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IWC3ECVF.js";
|
|
66
59
|
import {
|
|
67
60
|
CliError
|
|
68
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3JZNNESS.js";
|
|
69
62
|
import {
|
|
70
63
|
__name
|
|
71
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
72
65
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
-
import { openSync } from "node:fs";
|
|
75
|
-
import { createInterface } from "node:readline";
|
|
76
|
-
import { ReadStream } from "node:tty";
|
|
77
|
-
var fromTerminal = /* @__PURE__ */ __name(async (question) => {
|
|
78
|
-
if (!process.stdin.isTTY || !process.stderr.isTTY)
|
|
79
|
-
return null;
|
|
80
|
-
let input;
|
|
81
|
-
try {
|
|
82
|
-
input = new ReadStream(openSync("/dev/tty", "r"));
|
|
83
|
-
} catch {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
const reader = createInterface({ input, output: process.stderr, terminal: true });
|
|
87
|
-
try {
|
|
88
|
-
return await new Promise((resolve, reject) => {
|
|
89
|
-
const cancel = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "cancelled \u2014 nothing was done")), "cancel");
|
|
90
|
-
reader.once("SIGINT", cancel);
|
|
91
|
-
reader.once("close", cancel);
|
|
92
|
-
reader.question(question, resolve);
|
|
93
|
-
});
|
|
94
|
-
} finally {
|
|
95
|
-
reader.close();
|
|
96
|
-
input.destroy();
|
|
97
|
-
}
|
|
98
|
-
}, "fromTerminal");
|
|
99
|
-
var what = /* @__PURE__ */ __name((key, { chatId, count, personIds, forEveryone }) => [
|
|
100
|
-
key,
|
|
101
|
-
forEveryone ? "for everyone" : void 0,
|
|
102
|
-
count !== void 0 ? `${count} ${count === 1 ? "item" : "items"}` : void 0,
|
|
103
|
-
personIds?.length ? `${personIds.length} ${personIds.length === 1 ? "person" : "people"}` : void 0,
|
|
104
|
-
chatId !== null ? `in chat ${chatId}` : void 0
|
|
105
|
-
].filter(Boolean).join(", "), "what");
|
|
106
|
-
var answerOf = /* @__PURE__ */ __name(async (command, question) => {
|
|
107
|
-
const given = command.optsWithGlobals();
|
|
108
|
-
if (given.json === true || given.jsonl === true)
|
|
109
|
-
return null;
|
|
110
|
-
return (environmentOf(command).answer ?? fromTerminal)(question);
|
|
111
|
-
}, "answerOf");
|
|
112
|
-
var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) => {
|
|
113
|
-
if (environmentOf(command).agent)
|
|
114
|
-
return;
|
|
115
|
-
const flag = skipFlagFor(key);
|
|
116
|
-
const given = command.optsWithGlobals();
|
|
117
|
-
if (flag === "--yes" ? given.yes === true : given.allowDangerous === true)
|
|
118
|
-
return;
|
|
119
|
-
const machine = given.json === true || given.jsonl === true;
|
|
120
|
-
const answer = machine ? null : await (environmentOf(command).answer ?? fromTerminal)(`${what(key, request)} \u2014 go ahead? [y/N] `);
|
|
121
|
-
if (answer === null) {
|
|
122
|
-
throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is at a terminal to answer \u2014 add ${flag} to go ahead`, { permission: key });
|
|
123
|
-
}
|
|
124
|
-
if (!/^\s*y(es)?\s*$/i.test(answer))
|
|
125
|
-
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
126
|
-
}, "terminalAsker");
|
|
127
|
-
|
|
128
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
129
|
-
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
130
|
-
"help",
|
|
131
|
-
"guide",
|
|
132
|
-
"config",
|
|
133
|
-
"session",
|
|
134
|
-
"doctor",
|
|
135
|
-
"commands",
|
|
136
|
-
"complete",
|
|
137
|
-
"upgrade",
|
|
138
|
-
"skill",
|
|
139
|
-
"mcp",
|
|
140
|
-
"runs"
|
|
141
|
-
]);
|
|
142
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
143
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
144
|
-
keyOf,
|
|
145
|
-
extra: [AUTHORITY_KEY, ...extra],
|
|
146
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
147
|
-
...alsoChecks ? { alsoChecks } : {}
|
|
148
|
-
}), "commandPermissions");
|
|
149
|
-
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
150
|
-
const words = [];
|
|
151
|
-
for (let at = command; at?.parent; at = at.parent)
|
|
152
|
-
words.unshift(at.name());
|
|
153
|
-
return words;
|
|
154
|
-
}, "pathOf");
|
|
155
|
-
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
156
|
-
let at = command;
|
|
157
|
-
while (at.parent)
|
|
158
|
-
at = at.parent;
|
|
159
|
-
return at;
|
|
160
|
-
}, "rootOf");
|
|
161
|
-
var everyCommand = /* @__PURE__ */ __name((command) => [command, ...command.commands.flatMap(everyCommand)], "everyCommand");
|
|
162
|
-
var knownPermissionKeys = /* @__PURE__ */ __name((command, keyOf = (one) => keyForCommand(pathOf(one)), extra = []) => {
|
|
163
|
-
const known = /* @__PURE__ */ new Set();
|
|
164
|
-
const add = /* @__PURE__ */ __name((key) => {
|
|
165
|
-
for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1))
|
|
166
|
-
known.add(parts.join("."));
|
|
167
|
-
}, "add");
|
|
168
|
-
if (typeof keyOf !== "function") {
|
|
169
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
170
|
-
const key = keyOf.keyOf(pathOf(one));
|
|
171
|
-
if (key)
|
|
172
|
-
add(key);
|
|
173
|
-
}
|
|
174
|
-
for (const key of [...keyOf.extra, ...extra])
|
|
175
|
-
add(key);
|
|
176
|
-
return known;
|
|
177
|
-
}
|
|
178
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
179
|
-
const own = keyOf(one);
|
|
180
|
-
const key = own === void 0 ? keyForCommand(pathOf(one)) : own;
|
|
181
|
-
if (key)
|
|
182
|
-
add(key);
|
|
183
|
-
}
|
|
184
|
-
for (const key of [...WRITE_KEYS, ...extra])
|
|
185
|
-
add(key);
|
|
186
|
-
return known;
|
|
187
|
-
}, "knownPermissionKeys");
|
|
188
|
-
var knownBeside = /* @__PURE__ */ __name((key, known) => {
|
|
189
|
-
const parent = key.split(".").slice(0, -1).join(".");
|
|
190
|
-
const depth = parent === "" ? 1 : parent.split(".").length + 1;
|
|
191
|
-
return [...known].filter((one) => one.split(".").length === depth && (parent === "" || one.startsWith(`${parent}.`))).sort();
|
|
192
|
-
}, "knownBeside");
|
|
193
|
-
var unknownPermissionKeys = /* @__PURE__ */ __name((levels, known) => Object.keys(levels).filter((key) => key !== CEILING_KEY && !known.has(key)), "unknownPermissionKeys");
|
|
194
|
-
var unknownPermissionIssues = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
195
|
-
const saved = settings.savedPermissions ?? Object.keys(settings.permissions).filter((key) => key !== CEILING_KEY && settings.permissionSources[key] !== "flag").map((key) => ({ key, at: ["profiles", settings.profile, "permissions", key] }));
|
|
196
|
-
return permissionIssues(saved, knownPermissionKeys(command, keyOf), { file: settings.configPath, tool }).map(publicIssue);
|
|
197
|
-
}, "unknownPermissionIssues");
|
|
198
|
-
var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
199
|
-
const issues = unknownPermissionIssues(command, settings, tool, keyOf);
|
|
200
|
-
if (issues.length > 0)
|
|
201
|
-
throw new CliError("configuration_error", issueMessage(issues), { permission: issues[0]?.key });
|
|
202
|
-
const flagged = Object.keys(settings.permissions).filter((key2) => settings.permissionSources[key2] === "flag");
|
|
203
|
-
const [key] = unknownPermissionKeys(Object.fromEntries(flagged.map((one) => [one, true])), knownPermissionKeys(command, keyOf));
|
|
204
|
-
if (key !== void 0)
|
|
205
|
-
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
206
|
-
}, "refuseUnknownPermissionKeys");
|
|
207
|
-
|
|
208
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
209
67
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
210
68
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
211
69
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
212
70
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
213
71
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
214
|
-
const kept = /* @__PURE__ */ __name(async (operation,
|
|
72
|
+
const kept = /* @__PURE__ */ __name(async (operation, what) => {
|
|
215
73
|
try {
|
|
216
|
-
await
|
|
74
|
+
await what();
|
|
217
75
|
} catch (error) {
|
|
218
76
|
warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
219
77
|
event: "warning",
|
|
@@ -302,7 +160,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
302
160
|
});
|
|
303
161
|
}, "flooded");
|
|
304
162
|
|
|
305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
306
164
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
307
165
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
308
166
|
const write = currentOperation();
|
|
@@ -401,7 +259,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
401
259
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
402
260
|
}, "byPart");
|
|
403
261
|
|
|
404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
405
263
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
406
264
|
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" }) => {
|
|
407
265
|
let warned = false;
|
|
@@ -977,7 +835,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
977
835
|
}
|
|
978
836
|
}, "keep");
|
|
979
837
|
|
|
980
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
981
839
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
982
840
|
let opened;
|
|
983
841
|
return {
|
|
@@ -1071,7 +929,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
|
|
|
1071
929
|
clearTimeout(timer);
|
|
1072
930
|
}
|
|
1073
931
|
}, "settled");
|
|
1074
|
-
var listened = /* @__PURE__ */ __name(({ run, operation, what
|
|
932
|
+
var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
|
|
1075
933
|
const abort = new AbortController();
|
|
1076
934
|
let closing = false;
|
|
1077
935
|
const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
|
|
@@ -1079,11 +937,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
|
|
|
1079
937
|
return;
|
|
1080
938
|
const warning = { event: "warning", code: "listen_failed", operation };
|
|
1081
939
|
events(warning);
|
|
1082
|
-
warn(`${
|
|
940
|
+
warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
|
|
1083
941
|
});
|
|
1084
942
|
return {
|
|
1085
943
|
operation,
|
|
1086
|
-
what
|
|
944
|
+
what,
|
|
1087
945
|
closing: /* @__PURE__ */ __name(() => {
|
|
1088
946
|
closing = true;
|
|
1089
947
|
}, "closing"),
|
|
@@ -1174,10 +1032,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1174
1032
|
events(warning);
|
|
1175
1033
|
warn(text, warning);
|
|
1176
1034
|
}, "warned");
|
|
1177
|
-
passives.forEach(({ operation, what
|
|
1035
|
+
passives.forEach(({ operation, what }, at) => {
|
|
1178
1036
|
if (ended[at])
|
|
1179
1037
|
return;
|
|
1180
|
-
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${
|
|
1038
|
+
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
|
|
1181
1039
|
});
|
|
1182
1040
|
await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
|
|
1183
1041
|
closing.abort();
|
|
@@ -1236,14 +1094,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
|
|
|
1236
1094
|
const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
|
|
1237
1095
|
renderer.warn(`no \`${messenger.app.command} ${profile} serve\` keeps profile "${profile}" up to date \u2014 ` + (newest === null ? "the local store holds no messages yet" : `the newest stored message is from ${newest}`));
|
|
1238
1096
|
}, "warnUnserved");
|
|
1239
|
-
var
|
|
1097
|
+
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
1240
1098
|
const words = [];
|
|
1241
1099
|
for (let at = command; at?.parent; at = at.parent)
|
|
1242
1100
|
words.unshift(at.name());
|
|
1243
1101
|
return words;
|
|
1244
1102
|
}, "pathOf");
|
|
1245
1103
|
var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
|
|
1246
|
-
for (const key of readKeysForCommand(
|
|
1104
|
+
for (const key of readKeysForCommand(pathOf(command))) {
|
|
1247
1105
|
const { level, key: named } = levelFor(settings.permissions, key);
|
|
1248
1106
|
if (level !== "deny")
|
|
1249
1107
|
continue;
|
|
@@ -1266,7 +1124,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1266
1124
|
const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
|
|
1267
1125
|
const { profile } = base.settings;
|
|
1268
1126
|
refuseDenied(command, base.settings);
|
|
1269
|
-
refuseLacking(messenger,
|
|
1127
|
+
refuseLacking(messenger, pathOf(command));
|
|
1270
1128
|
refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
|
|
1271
1129
|
const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
|
|
1272
1130
|
const accountFor = /* @__PURE__ */ __name(() => {
|
|
@@ -1378,13 +1236,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1378
1236
|
}, "messengerContext");
|
|
1379
1237
|
|
|
1380
1238
|
export {
|
|
1381
|
-
answerOf,
|
|
1382
|
-
terminalAsker,
|
|
1383
|
-
commandPermissions,
|
|
1384
|
-
knownPermissionKeys,
|
|
1385
|
-
knownBeside,
|
|
1386
|
-
unknownPermissionIssues,
|
|
1387
|
-
refuseUnknownPermissionKeys,
|
|
1388
1239
|
fill,
|
|
1389
1240
|
connectedFor,
|
|
1390
1241
|
refuseLocalWrite,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
4
|
// dist/version.js
|
|
5
|
-
var VERSION = "0.
|
|
5
|
+
var VERSION = "0.3.0";
|
|
6
6
|
|
|
7
7
|
// dist/identity.js
|
|
8
8
|
var PACKAGE = "@wirecat/attio-cli";
|
|
@@ -19,7 +19,8 @@ var IDENTITY = {
|
|
|
19
19
|
var DESKTOP = {
|
|
20
20
|
...IDENTITY,
|
|
21
21
|
docs: "https://github.com/WireCatLabs/attio-cli#readme",
|
|
22
|
-
// app.attio.com
|
|
22
|
+
// The API description names app.attio.com for its OAuth sign-in, and `cli-dev lint` wants every host it names. No
|
|
23
|
+
// request goes there: the CLI signs in with an access token against api.attio.com.
|
|
23
24
|
hosts: ["api.attio.com", "app.attio.com"],
|
|
24
25
|
tagline: "Attio deals, people and companies for your agent",
|
|
25
26
|
syncs: "your deals and their clients",
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UXT4532H.js";
|
|
8
8
|
import {
|
|
9
9
|
filesPresent,
|
|
10
10
|
sharedModelsDirectory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2SM6G7CP.js";
|
|
12
12
|
import {
|
|
13
13
|
storePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SRU4EQYO.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
check,
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
} from "./chunk-S4UUN6LD.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3JZNNESS.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@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/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");
|