@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
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
MAX_SECRET_INPUT,
|
|
5
|
-
bufferedInput,
|
|
6
|
-
inputPolicy
|
|
7
|
-
} from "./chunk-TES7MB6I.js";
|
|
8
|
-
import {
|
|
9
|
-
CliError
|
|
10
|
-
} from "./chunk-S6JG4YUH.js";
|
|
11
|
-
import {
|
|
12
|
-
__name
|
|
13
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
-
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
|
-
import { createInterface } from "node:readline";
|
|
17
|
-
import { Writable } from "node:stream";
|
|
18
|
-
var EMPTY_TRIES = 3;
|
|
19
|
-
var pasteHint = /* @__PURE__ */ __name((platform = process.platform) => `Nothing arrived. To paste in a terminal, use ${platform === "darwin" ? "Cmd+V" : "Ctrl+Shift+V (or right-click \u2192 Paste)"}.`, "pasteHint");
|
|
20
|
-
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
21
|
-
const policy = inputPolicy(input);
|
|
22
|
-
const signals = [givenSignal, policy.signal].filter((one) => one !== void 0);
|
|
23
|
-
const signal = signals.length ? AbortSignal.any(signals) : void 0;
|
|
24
|
-
const cancelled = /* @__PURE__ */ __name(() => new CliError("cancelled", "cancelled \u2014 nothing was stored"), "cancelled");
|
|
25
|
-
if (signal?.aborted)
|
|
26
|
-
throw cancelled();
|
|
27
|
-
if (input.isTTY && policy.noInput)
|
|
28
|
-
throw new CliError("validation_error", "interactive input is disabled \u2014 provide the input through a pipe", {
|
|
29
|
-
reason: "input.required"
|
|
30
|
-
});
|
|
31
|
-
if (!input.isTTY) {
|
|
32
|
-
return (await bufferedInput(input, {
|
|
33
|
-
maxBytes: Math.min(policy.maxBytes ?? MAX_SECRET_INPUT, MAX_SECRET_INPUT),
|
|
34
|
-
...signal ? { signal } : {}
|
|
35
|
-
})).toString("utf8").trim();
|
|
36
|
-
}
|
|
37
|
-
let muted = false;
|
|
38
|
-
const shim = new Writable({
|
|
39
|
-
write(chunk, _encoding, done) {
|
|
40
|
-
if (!muted)
|
|
41
|
-
output.write(chunk);
|
|
42
|
-
done();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const reader = createInterface({ input, output: shim, terminal: true });
|
|
46
|
-
const abort = /* @__PURE__ */ __name(() => reader.close(), "abort");
|
|
47
|
-
let bytes = 0;
|
|
48
|
-
let inputFailure;
|
|
49
|
-
const data = /* @__PURE__ */ __name((chunk) => {
|
|
50
|
-
bytes += Buffer.byteLength(chunk);
|
|
51
|
-
if (bytes > Math.min(policy.maxBytes ?? MAX_SECRET_INPUT, MAX_SECRET_INPUT)) {
|
|
52
|
-
inputFailure = new CliError("validation_error", "secret input exceeds its byte limit", {
|
|
53
|
-
reason: "input.too-large",
|
|
54
|
-
retryable: false
|
|
55
|
-
});
|
|
56
|
-
reader.close();
|
|
57
|
-
}
|
|
58
|
-
}, "data");
|
|
59
|
-
const inputError = /* @__PURE__ */ __name((error) => {
|
|
60
|
-
inputFailure = error;
|
|
61
|
-
reader.close();
|
|
62
|
-
}, "inputError");
|
|
63
|
-
input.on("data", data).on("error", inputError);
|
|
64
|
-
try {
|
|
65
|
-
const answer = await new Promise((resolve, reject) => {
|
|
66
|
-
const cancel = /* @__PURE__ */ __name(() => reject(inputFailure ?? cancelled()), "cancel");
|
|
67
|
-
reader.once("SIGINT", cancel);
|
|
68
|
-
reader.once("close", cancel);
|
|
69
|
-
signal?.addEventListener("abort", abort, { once: true });
|
|
70
|
-
const ask = /* @__PURE__ */ __name((tries) => {
|
|
71
|
-
muted = false;
|
|
72
|
-
reader.question(prompt, (line) => {
|
|
73
|
-
if (echo || line.trim() || tries >= EMPTY_TRIES)
|
|
74
|
-
return resolve(line);
|
|
75
|
-
output.write(`
|
|
76
|
-
${pasteHint()}
|
|
77
|
-
`);
|
|
78
|
-
ask(tries + 1);
|
|
79
|
-
});
|
|
80
|
-
muted = !echo;
|
|
81
|
-
}, "ask");
|
|
82
|
-
ask(1);
|
|
83
|
-
});
|
|
84
|
-
if (!echo && !answer.trim())
|
|
85
|
-
throw new CliError("validation_error", `nothing arrived after ${EMPTY_TRIES} tries. ${pasteHint()}`, {
|
|
86
|
-
reason: "input.empty"
|
|
87
|
-
});
|
|
88
|
-
return answer.trim();
|
|
89
|
-
} finally {
|
|
90
|
-
input.off("data", data).off("error", inputError);
|
|
91
|
-
signal?.removeEventListener("abort", abort);
|
|
92
|
-
reader.close();
|
|
93
|
-
output.write("\n");
|
|
94
|
-
}
|
|
95
|
-
}, "readSecret");
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
pasteHint,
|
|
99
|
-
readSecret
|
|
100
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__name
|
|
5
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
-
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
|
-
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
|
-
var TimeLimitReached = class extends Error {
|
|
10
|
-
static {
|
|
11
|
-
__name(this, "TimeLimitReached");
|
|
12
|
-
}
|
|
13
|
-
constructor() {
|
|
14
|
-
super("the statement ran past its time limit");
|
|
15
|
-
this.name = "TimeLimitReached";
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
19
|
-
if (Date.now() > Number(until))
|
|
20
|
-
throw new TimeLimitReached();
|
|
21
|
-
return 1;
|
|
22
|
-
}, "beforeTimeLimit");
|
|
23
|
-
var JOURNAL_SIZE_LIMIT = 64 * 1024 * 1024;
|
|
24
|
-
var PRAGMAS = `
|
|
25
|
-
PRAGMA busy_timeout = 5000;
|
|
26
|
-
PRAGMA journal_mode = WAL;
|
|
27
|
-
PRAGMA journal_size_limit = ${JOURNAL_SIZE_LIMIT};
|
|
28
|
-
PRAGMA foreign_keys = ON;
|
|
29
|
-
`;
|
|
30
|
-
var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
TIME_LIMIT_FUNCTION,
|
|
34
|
-
TimeLimitReached,
|
|
35
|
-
beforeTimeLimit,
|
|
36
|
-
PRAGMAS,
|
|
37
|
-
isQueryOnly
|
|
38
|
-
};
|