@wirecat/attio-cli 0.9.0 → 0.10.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 +12 -0
- package/contracts/wirecat.json +1 -0
- package/dist/bin/attio.js +11 -11
- package/dist/bundle/attio.js +5 -166
- package/dist/bundle/{chunk-6E5QWCBK.js → chunk-OGWKDPR5.js} +2 -1
- package/dist/bundle/chunk-TQAECZFO.js +13 -0
- package/dist/bundle/{definitions-FODOIPM2.js → definitions-J73IBAHT.js} +1 -1
- package/dist/bundle/program-NSBWZ25F.js +6201 -0
- package/dist/bundle/{schemas-YGSTNU6F.js → schemas-G3HFAS45.js} +576 -29
- package/dist/commands/api.js +1 -2
- package/dist/commands/crm.js +1 -4
- package/dist/commands/schedule.js +1 -1
- package/dist/commands/session.js +1 -2
- package/dist/config.js +1 -2
- package/dist/context.js +1 -1
- package/dist/identity.js +1 -0
- package/dist/program.js +1 -2
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/activities.d.ts +0 -4
- package/dist/activities.d.ts.map +0 -1
- package/dist/activities.js.map +0 -1
- package/dist/bin/attio.d.ts +0 -3
- package/dist/bin/attio.d.ts.map +0 -1
- package/dist/bin/attio.js.map +0 -1
- package/dist/bundle/agent-C3SZOGZS.js +0 -38
- package/dist/bundle/all-profiles-673VSTRG.js +0 -320
- package/dist/bundle/anthropic-V4RZS5XM.js +0 -91
- package/dist/bundle/app-server-CTEDPA5H.js +0 -249
- package/dist/bundle/bun-F4M4KCNA.js +0 -169
- package/dist/bundle/bun-sqlite-33JTNHCK.js +0 -76
- package/dist/bundle/chunk-2R2EX5I6.js +0 -54
- package/dist/bundle/chunk-5EH7S4RM.js +0 -362
- package/dist/bundle/chunk-5N2V6XO7.js +0 -119
- package/dist/bundle/chunk-5WY6RURV.js +0 -161
- package/dist/bundle/chunk-6V7ZUJI6.js +0 -4072
- package/dist/bundle/chunk-AOKAYQSJ.js +0 -2338
- package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
- package/dist/bundle/chunk-B4DVW2BA.js +0 -185
- package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-DBHZ7TQ7.js +0 -69828
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DPV53EZC.js +0 -206
- package/dist/bundle/chunk-E2L4R6EI.js +0 -388
- package/dist/bundle/chunk-EDWRHVHD.js +0 -218
- package/dist/bundle/chunk-EH6ZEJGT.js +0 -932
- package/dist/bundle/chunk-EV6B3GHM.js +0 -323
- package/dist/bundle/chunk-FBWECICU.js +0 -259
- package/dist/bundle/chunk-FFER7KJI.js +0 -407
- package/dist/bundle/chunk-FTH6WGYO.js +0 -24
- package/dist/bundle/chunk-G3PK5BZB.js +0 -1222
- package/dist/bundle/chunk-G46PNDWL.js +0 -58
- package/dist/bundle/chunk-G6NY7LFB.js +0 -230
- package/dist/bundle/chunk-GLU36VKA.js +0 -52
- package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
- package/dist/bundle/chunk-HMYBAVIE.js +0 -86
- package/dist/bundle/chunk-HOJJPSLU.js +0 -288
- package/dist/bundle/chunk-HUAHLO6N.js +0 -29
- package/dist/bundle/chunk-ISQ23VKV.js +0 -123
- package/dist/bundle/chunk-J2LSOG3A.js +0 -12766
- package/dist/bundle/chunk-K5L77R7P.js +0 -66
- package/dist/bundle/chunk-KKRFVN4X.js +0 -1835
- package/dist/bundle/chunk-KLRCTMES.js +0 -100
- package/dist/bundle/chunk-KYRYD4CR.js +0 -38
- package/dist/bundle/chunk-L5QLKUQR.js +0 -794
- package/dist/bundle/chunk-MFSWMNSZ.js +0 -334
- package/dist/bundle/chunk-MYK2F5LD.js +0 -1251
- package/dist/bundle/chunk-NBNQLNVV.js +0 -388
- package/dist/bundle/chunk-O3DZDITT.js +0 -274
- package/dist/bundle/chunk-OEEWVKJX.js +0 -53
- package/dist/bundle/chunk-P5XYQZVW.js +0 -80
- package/dist/bundle/chunk-P6OJKJJS.js +0 -1197
- package/dist/bundle/chunk-P6S3ZRVW.js +0 -106
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-QBJRK733.js +0 -1068
- package/dist/bundle/chunk-QBYE26ZC.js +0 -131
- package/dist/bundle/chunk-QPPOIWPY.js +0 -1246
- package/dist/bundle/chunk-R2CEA7MK.js +0 -743
- package/dist/bundle/chunk-S4UUN6LD.js +0 -1410
- package/dist/bundle/chunk-S6JG4YUH.js +0 -72
- package/dist/bundle/chunk-SKUY7JDA.js +0 -164
- package/dist/bundle/chunk-T35IOBPJ.js +0 -1341
- package/dist/bundle/chunk-T3W4V4A6.js +0 -63
- package/dist/bundle/chunk-TB3LN5G2.js +0 -50
- package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
- package/dist/bundle/chunk-TES7MB6I.js +0 -82
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-U7UTYALA.js +0 -353
- package/dist/bundle/chunk-UOWHMOU3.js +0 -188
- package/dist/bundle/chunk-UXDUWGX6.js +0 -2791
- package/dist/bundle/chunk-V5I3QHDU.js +0 -558
- package/dist/bundle/chunk-VCDIKCFE.js +0 -1007
- package/dist/bundle/chunk-VJHUMB7U.js +0 -338
- package/dist/bundle/chunk-W4KLHM2K.js +0 -95
- package/dist/bundle/chunk-W5LKEOGN.js +0 -142
- package/dist/bundle/chunk-WLDZWHSF.js +0 -170
- package/dist/bundle/chunk-WQEEYEWO.js +0 -3752
- package/dist/bundle/chunk-WRF6TY63.js +0 -1521
- package/dist/bundle/chunk-WXYOELRI.js +0 -108
- package/dist/bundle/chunk-WZBPUOWM.js +0 -76
- package/dist/bundle/chunk-XGNZD52X.js +0 -592
- package/dist/bundle/chunk-XQUUANA2.js +0 -24600
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-YQH4J6YZ.js +0 -358
- package/dist/bundle/chunk-Z7Y2I5YR.js +0 -44045
- package/dist/bundle/chunk-ZBCC7MBN.js +0 -9671
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/command-contract-ZL67KMYL.js +0 -37
- package/dist/bundle/command-server-entry-COR2VDRU.js +0 -166
- package/dist/bundle/decode-33SGRQM6.js +0 -297
- package/dist/bundle/dispatch-2FTOHA5D.js +0 -411
- package/dist/bundle/dist-EM7KLEG4.js +0 -7577
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
- package/dist/bundle/embed-W4ZBXPWD.js +0 -38
- package/dist/bundle/embedder-73CCZC52.js +0 -111
- package/dist/bundle/failure-OHIXWTR6.js +0 -25
- package/dist/bundle/first-run-MOSUMMVX.js +0 -28
- package/dist/bundle/first-screen-GUXBF3SL.js +0 -38
- package/dist/bundle/instructions-4H7UREH2.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-QMIZOBBJ.js +0 -24
- package/dist/bundle/meeting-model-2UYVGXD5.js +0 -25
- package/dist/bundle/meeting-semantic-LEJPUIN3.js +0 -22
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-P3PUHKYH.js +0 -176
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-UHPODTKB.js +0 -74
- package/dist/bundle/oauth-T3DWL7OV.js +0 -20
- package/dist/bundle/open-ODWX32PF.js +0 -23
- package/dist/bundle/openai-GSXXHKPX.js +0 -238
- package/dist/bundle/process-AFIXYXWL.js +0 -91
- package/dist/bundle/program-SXSUG335.js +0 -35250
- package/dist/bundle/prompt-GVTYTFK7.js +0 -17
- package/dist/bundle/recognize-XDSZEZP5.js +0 -26
- package/dist/bundle/remote-ZWZKMEY6.js +0 -31
- package/dist/bundle/rerank-OBZQ54NL.js +0 -52
- package/dist/bundle/serve-NY5MUTNW.js +0 -199
- package/dist/bundle/server-JK334V5Y.js +0 -212
- package/dist/bundle/server-VOPYQCUD.js +0 -79
- package/dist/bundle/sqlite-runtime-2NHF4S6G.js +0 -20
- package/dist/bundle/state-YGWZZWPM.js +0 -36
- package/dist/bundle/store-LRQUTFJR.js +0 -306
- package/dist/bundle/store-ND6KU4RI.js +0 -181
- package/dist/bundle/store-maintenance-command-GLYGQM2V.js +0 -66
- package/dist/bundle/surface-P53WLLXP.js +0 -65
- package/dist/commands/api.d.ts +0 -12
- package/dist/commands/api.d.ts.map +0 -1
- package/dist/commands/api.js.map +0 -1
- package/dist/commands/crm.d.ts +0 -7
- package/dist/commands/crm.d.ts.map +0 -1
- package/dist/commands/crm.js.map +0 -1
- package/dist/commands/schedule.d.ts +0 -3
- package/dist/commands/schedule.d.ts.map +0 -1
- package/dist/commands/schedule.js.map +0 -1
- package/dist/commands/session.d.ts +0 -8
- package/dist/commands/session.d.ts.map +0 -1
- package/dist/commands/session.js.map +0 -1
- package/dist/config.d.ts +0 -13
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/context.d.ts +0 -37
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js.map +0 -1
- package/dist/generated/definitions.d.ts +0 -3
- package/dist/generated/definitions.d.ts.map +0 -1
- package/dist/generated/definitions.js.map +0 -1
- package/dist/generated/manifest.d.ts +0 -6
- package/dist/generated/manifest.d.ts.map +0 -1
- package/dist/generated/manifest.js.map +0 -1
- package/dist/generated/schemas.d.ts +0 -383
- package/dist/generated/schemas.d.ts.map +0 -1
- package/dist/generated/schemas.js.map +0 -1
- package/dist/generated/types.d.ts +0 -10166
- package/dist/generated/types.d.ts.map +0 -1
- package/dist/generated/types.js.map +0 -1
- package/dist/generated/wirecat-config.d.ts +0 -15
- package/dist/generated/wirecat-config.d.ts.map +0 -1
- package/dist/generated/wirecat-config.js.map +0 -1
- package/dist/hooks.d.ts +0 -33
- package/dist/hooks.d.ts.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/identity.d.ts +0 -33
- package/dist/identity.d.ts.map +0 -1
- package/dist/identity.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/links.d.ts +0 -10
- package/dist/links.d.ts.map +0 -1
- package/dist/links.js.map +0 -1
- package/dist/meetings.d.ts +0 -57
- package/dist/meetings.d.ts.map +0 -1
- package/dist/meetings.js.map +0 -1
- package/dist/program.d.ts +0 -6
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/wcat.d.ts +0 -3
- package/dist/wcat.d.ts.map +0 -1
- package/dist/wcat.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/attio-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.10.0 — 28.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **WireCat Desktop reads attio's MCP port from attio itself.** The manifest (`attio --wcat-describe`) now names the
|
|
10
|
+
MCP server's port, 8759.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **attio's package is smaller: it no longer carries its own copy of cli-core.** Built on `@wirecat/cli-core` 3.0.0
|
|
15
|
+
and `@wirecat/cli-base` 2.1.0. Needed for the WireCat store version 79 (`memo` became `wcat`).
|
|
16
|
+
|
|
5
17
|
## 0.9.0 — 27.11.2026
|
|
6
18
|
|
|
7
19
|
### Changed — may break callers
|
package/contracts/wirecat.json
CHANGED
package/dist/bin/attio.js
CHANGED
|
@@ -9,15 +9,13 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.10.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
16
16
|
const serves = ((words) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.slice(0, 4)
|
|
20
|
-
.some((word, at) => word === "serve" || word === "watch" || (word === "mcp" && plain[at + 1] === undefined));
|
|
17
|
+
const plain = words.filter((word) => !word.startsWith("-"));
|
|
18
|
+
return plain.slice(0, 4).some((word, at) => word === "serve" || word === "watch" || word === "mcp" && plain[at + 1] === void 0);
|
|
21
19
|
})(words)
|
|
22
20
|
if (serves && module.registerHooks) {
|
|
23
21
|
const bundle = new URL("../bundle/", import.meta.url).href
|
|
@@ -28,13 +26,15 @@ if (
|
|
|
28
26
|
: next(specifier, context),
|
|
29
27
|
})
|
|
30
28
|
}
|
|
31
|
-
const chunks = ["../bundle/
|
|
32
|
-
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const chunks = ["../bundle/definitions-J73IBAHT.js","../bundle/program-NSBWZ25F.js","../bundle/schemas-G3HFAS45.js"]
|
|
30
|
+
const preload = () =>
|
|
31
|
+
Promise.allSettled([
|
|
32
|
+
...chunks.map((chunk) => import(chunk)),
|
|
33
|
+
...["@wirecat/cli-core/preload","@wirecat/cli-base/preload"].map((name) => import(name).then((loaded) => loaded.preload())),
|
|
34
|
+
])
|
|
35
|
+
if (((words) => words.filter((word) => !word.startsWith("-")).slice(0, 2).includes("upgrade"))(words)) await preload()
|
|
36
36
|
const running = import("../bundle/attio.js")
|
|
37
37
|
// After the server answers its first request, so it starts no later.
|
|
38
|
-
if (serves) setTimeout(() => void
|
|
38
|
+
if (serves) setTimeout(() => void preload(), 2000).unref()
|
|
39
39
|
await running
|
|
40
40
|
}
|
package/dist/bundle/attio.js
CHANGED
|
@@ -3,181 +3,20 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
8
|
-
installerOf
|
|
9
|
-
} from "./chunk-TXDR6YSF.js";
|
|
10
|
-
import {
|
|
11
|
-
DESCRIBE_FLAG,
|
|
12
|
-
DISPATCH_FLAG,
|
|
13
|
-
PROGRAM_PREFIX,
|
|
14
|
-
SHIM_FORMAT,
|
|
15
|
-
describeAnswer,
|
|
16
|
-
exists,
|
|
17
|
-
fileState,
|
|
18
|
-
shimFiles,
|
|
19
|
-
writeShim
|
|
20
|
-
} from "./chunk-DPV53EZC.js";
|
|
21
|
-
import "./chunk-UXDUWGX6.js";
|
|
22
|
-
import {
|
|
23
|
-
catchCrashes
|
|
24
|
-
} from "./chunk-QPPOIWPY.js";
|
|
25
|
-
import "./chunk-S4UUN6LD.js";
|
|
26
|
-
import "./chunk-Y5E2WNWB.js";
|
|
27
|
-
import "./chunk-S6JG4YUH.js";
|
|
28
|
-
import {
|
|
29
|
-
__name
|
|
30
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
} from "./chunk-OGWKDPR5.js";
|
|
7
|
+
import "./chunk-TQAECZFO.js";
|
|
31
8
|
|
|
32
9
|
// dist/bin/attio.js
|
|
33
10
|
import { enableCompileCache } from "node:module";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import { createHash } from "node:crypto";
|
|
37
|
-
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
38
|
-
import { dirname as dirname2, join as join2 } from "node:path";
|
|
39
|
-
import { fileURLToPath } from "node:url";
|
|
40
|
-
|
|
41
|
-
// 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/wcat/launcher.js
|
|
42
|
-
import { readFileSync } from "node:fs";
|
|
43
|
-
import { basename, dirname, join, resolve } from "node:path";
|
|
44
|
-
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
45
|
-
var pnpmHome = /* @__PURE__ */ __name((path, env) => {
|
|
46
|
-
const home = env.PNPM_HOME;
|
|
47
|
-
return home && path.startsWith(`${posix(home).replace(/\/+$/, "")}/`) ? home : void 0;
|
|
48
|
-
}, "pnpmHome");
|
|
49
|
-
var layoutFolders = /* @__PURE__ */ __name((script, env) => {
|
|
50
|
-
const path = posix(script);
|
|
51
|
-
const home = pnpmHome(path, env);
|
|
52
|
-
if (home)
|
|
53
|
-
return [join(home, "bin"), home];
|
|
54
|
-
switch (installerOf(script)) {
|
|
55
|
-
case "bun":
|
|
56
|
-
return [`${path.slice(0, path.indexOf("/install/global/node_modules/"))}/bin`];
|
|
57
|
-
case "npm": {
|
|
58
|
-
const root = path.slice(0, path.indexOf("/node_modules/"));
|
|
59
|
-
return [basename(root) === "lib" ? join(dirname(root), "bin") : root];
|
|
60
|
-
}
|
|
61
|
-
default:
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
}, "layoutFolders");
|
|
65
|
-
var binFolder = /* @__PURE__ */ __name(({ name, argv1, script, env, platform }) => {
|
|
66
|
-
if (!["npm", "pnpm", "bun"].includes(installerOf(script)) && !pnpmHome(posix(script), env))
|
|
67
|
-
return void 0;
|
|
68
|
-
const extensions = platform === "win32" ? [".cmd", ".exe"] : [""];
|
|
69
|
-
const candidates = [argv1 ? dirname(argv1) : void 0, ...layoutFolders(script, env)];
|
|
70
|
-
for (const dir of new Set(candidates)) {
|
|
71
|
-
if (dir === void 0 || basename(dir) === ".bin")
|
|
72
|
-
continue;
|
|
73
|
-
for (const extension of extensions) {
|
|
74
|
-
const program = `${PROGRAM_PREFIX}${name}${extension}`;
|
|
75
|
-
if (exists(join(dir, program)))
|
|
76
|
-
return { dir, program };
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return void 0;
|
|
80
|
-
}, "binFolder");
|
|
81
|
-
var installed = /* @__PURE__ */ __name((dir, program) => {
|
|
82
|
-
if (!exists(join(dir, program)))
|
|
83
|
-
return false;
|
|
84
|
-
if (!program.toLowerCase().endsWith(".exe"))
|
|
85
|
-
return true;
|
|
86
|
-
let script;
|
|
87
|
-
try {
|
|
88
|
-
script = readFileSync(join(dir, `${program.slice(0, -4)}.bunx`)).toString("utf16le").split('"')[0] ?? "";
|
|
89
|
-
} catch {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
if (script === "" || exists(resolve(dir, script)))
|
|
93
|
-
return true;
|
|
94
|
-
const at = posix(script).lastIndexOf("/install/global/node_modules/");
|
|
95
|
-
return at < 0 || exists(join(dirname(dir), posix(script).slice(at + 1)));
|
|
96
|
-
}, "installed");
|
|
97
|
-
var NAME = "wcat";
|
|
98
|
-
var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
99
|
-
try {
|
|
100
|
-
if (!exists(join(dir, program)))
|
|
101
|
-
return "failed";
|
|
102
|
-
const mine = shimFiles("launcher", { dir, name: NAME, target: program, platform });
|
|
103
|
-
const states = mine.map((file) => fileState(file.path));
|
|
104
|
-
if (states.some((one) => one.state === "foreign"))
|
|
105
|
-
return "foreign";
|
|
106
|
-
const ours = states.flatMap((one) => one.state === "ours" ? [one] : []);
|
|
107
|
-
if (ours.some(({ mark }) => mark.format > SHIM_FORMAT))
|
|
108
|
-
return "newer";
|
|
109
|
-
if (ours.some(({ mark }) => mark.kind !== "launcher"))
|
|
110
|
-
return "foreign";
|
|
111
|
-
const current = ours.find(({ mark }) => installed(dir, mark.target))?.mark.target;
|
|
112
|
-
const wanted = shimFiles("launcher", { dir, name: NAME, target: current ?? program, platform });
|
|
113
|
-
const stale = wanted.filter((file, at) => {
|
|
114
|
-
const state = states[at];
|
|
115
|
-
return state?.state !== "ours" || state.text !== file.text;
|
|
116
|
-
});
|
|
117
|
-
if (stale.length === 0)
|
|
118
|
-
return "kept";
|
|
119
|
-
for (const file of stale)
|
|
120
|
-
writeShim(file);
|
|
121
|
-
return "written";
|
|
122
|
-
} catch {
|
|
123
|
-
return "failed";
|
|
124
|
-
}
|
|
125
|
-
}, "ensureLauncher");
|
|
126
|
-
|
|
127
|
-
// 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/wcat/start.js
|
|
128
|
-
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
129
|
-
const argv = io.argv ?? process.argv;
|
|
130
|
-
const env = io.env ?? process.env;
|
|
131
|
-
const platform = io.platform ?? process.platform;
|
|
132
|
-
const stdout = io.stdout ?? process.stdout;
|
|
133
|
-
const [first, ...rest] = argv.slice(2);
|
|
134
|
-
if (first === DESCRIBE_FLAG) {
|
|
135
|
-
stdout.write(`${JSON.stringify(describeAnswer(tool, shippedManifest(argv[1])))}
|
|
136
|
-
`);
|
|
137
|
-
return { code: 0 };
|
|
138
|
-
}
|
|
139
|
-
if (first === DISPATCH_FLAG) {
|
|
140
|
-
const { runWcat } = await import("./dispatch-2FTOHA5D.js");
|
|
141
|
-
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
142
|
-
return { code };
|
|
143
|
-
}
|
|
144
|
-
const folder = binFolder({
|
|
145
|
-
name: tool.command,
|
|
146
|
-
argv1: argv[1],
|
|
147
|
-
script: io.script ?? fileURLToPath(new URL("wcat/start.js", import.meta.resolve("@wirecat/cli-base")).href),
|
|
148
|
-
env,
|
|
149
|
-
platform
|
|
150
|
-
});
|
|
151
|
-
return folder ? { launcher: ensureLauncher({ ...folder, platform }) } : {};
|
|
152
|
-
}, "wcatStart");
|
|
153
|
-
var shippedManifest = /* @__PURE__ */ __name((bin) => {
|
|
154
|
-
if (!bin)
|
|
155
|
-
return void 0;
|
|
156
|
-
try {
|
|
157
|
-
for (let dir = dirname2(realpathSync(bin)); ; dir = dirname2(dir)) {
|
|
158
|
-
if (existsSync(join2(dir, "package.json"))) {
|
|
159
|
-
const bytes = readFileSync2(join2(dir, "contracts", "wirecat.json"));
|
|
160
|
-
const { wcat_manifest: format, desktop } = JSON.parse(bytes.toString("utf8"));
|
|
161
|
-
if (format !== 2 || typeof desktop !== "object" || desktop === null)
|
|
162
|
-
return void 0;
|
|
163
|
-
return { desktop, sha256: createHash("sha256").update(bytes).digest("hex") };
|
|
164
|
-
}
|
|
165
|
-
if (dirname2(dir) === dir)
|
|
166
|
-
return void 0;
|
|
167
|
-
}
|
|
168
|
-
} catch {
|
|
169
|
-
return void 0;
|
|
170
|
-
}
|
|
171
|
-
}, "shippedManifest");
|
|
172
|
-
|
|
173
|
-
// dist/bin/attio.js
|
|
11
|
+
import { catchCrashes } from "@wirecat/cli-base";
|
|
12
|
+
import { wcatStart } from "@wirecat/cli-base/wcat/start";
|
|
174
13
|
enableCompileCache();
|
|
175
14
|
var stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
|
|
176
15
|
var wcat = await wcatStart(DESKTOP);
|
|
177
16
|
if (wcat.code !== void 0) {
|
|
178
17
|
process.exitCode = wcat.code;
|
|
179
18
|
} else {
|
|
180
|
-
const { run } = await import("./program-
|
|
19
|
+
const { run } = await import("./program-NSBWZ25F.js");
|
|
181
20
|
process.exitCode = await run(process.argv.slice(2));
|
|
182
21
|
}
|
|
183
22
|
stopCatching();
|
|
@@ -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.10.0";
|
|
6
6
|
|
|
7
7
|
// dist/identity.js
|
|
8
8
|
var PACKAGE = "@wirecat/attio-cli";
|
|
@@ -24,6 +24,7 @@ var DESKTOP = {
|
|
|
24
24
|
hosts: ["api.attio.com", "app.attio.com"],
|
|
25
25
|
tagline: "Attio deals, people and companies for your agent",
|
|
26
26
|
syncs: "your deals and their clients",
|
|
27
|
+
mcpPort: 8759,
|
|
27
28
|
signIn: {
|
|
28
29
|
gives: "Lets your agent read your Attio deals, people and companies and call the Attio API.",
|
|
29
30
|
asks: "An access token: in Attio, Workspace settings \u2192 Developers \u2192 New access token, with read access to records, object configuration and user management. Only a workspace admin can make one.",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
__name,
|
|
12
|
+
__export
|
|
13
|
+
};
|