@wirecat/attio-cli 0.0.0-stage → 0.2.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 +33 -0
- package/LICENSE +204 -0
- package/README.md +249 -2
- package/contracts/wirecat.json +2339 -0
- package/dist/bin/attio.d.ts +3 -0
- package/dist/bin/attio.d.ts.map +1 -0
- package/dist/bin/attio.js +40 -0
- package/dist/bin/attio.js.map +1 -0
- package/dist/bundle/agent-DYTWDBTT.js +37 -0
- package/dist/bundle/all-profiles-LZDKPHN2.js +320 -0
- package/dist/bundle/anthropic-BF72H77D.js +91 -0
- package/dist/bundle/app-server-H57FZJX5.js +249 -0
- package/dist/bundle/attio.js +183 -0
- package/dist/bundle/bun-WO77T4LG.js +169 -0
- package/dist/bundle/bun-sqlite-2BP7JDVO.js +76 -0
- package/dist/bundle/chunk-2E6JGBM5.js +1392 -0
- package/dist/bundle/chunk-34FJ26K2.js +54 -0
- package/dist/bundle/chunk-3I2FGNWO.js +23 -0
- package/dist/bundle/chunk-3NVOKVRY.js +42148 -0
- package/dist/bundle/chunk-3YFDZSM3.js +37 -0
- package/dist/bundle/chunk-4SMGM2Q6.js +274 -0
- package/dist/bundle/chunk-4STBJZR4.js +3571 -0
- package/dist/bundle/chunk-5K3FGXZH.js +46 -0
- package/dist/bundle/chunk-6ALPRBNV.js +100 -0
- package/dist/bundle/chunk-6NDJDDSQ.js +2000 -0
- package/dist/bundle/chunk-6SK3YB2B.js +218 -0
- package/dist/bundle/chunk-76RRELCU.js +65310 -0
- package/dist/bundle/chunk-7MXCUMHG.js +18 -0
- package/dist/bundle/chunk-7ZUOI3HY.js +73 -0
- package/dist/bundle/chunk-AMUONYQR.js +106 -0
- package/dist/bundle/chunk-ASCUOOLO.js +53 -0
- package/dist/bundle/chunk-BUGROVF3.js +72 -0
- package/dist/bundle/chunk-CHZ26CW5.js +9578 -0
- package/dist/bundle/chunk-CMO5ND3Y.js +794 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DF2IIO32.js +12645 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DQ6P3R4B.js +170 -0
- package/dist/bundle/chunk-DSRXCLPO.js +7 -0
- package/dist/bundle/chunk-EEPE3SOW.js +338 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-EQGXEKSV.js +1197 -0
- package/dist/bundle/chunk-EQXT7KO4.js +388 -0
- package/dist/bundle/chunk-ERW2WOJT.js +24 -0
- package/dist/bundle/chunk-ESH2QGCA.js +372 -0
- package/dist/bundle/chunk-G3JTLVVL.js +771 -0
- package/dist/bundle/chunk-G6FQMVKW.js +52 -0
- package/dist/bundle/chunk-GBZ6JUXU.js +108 -0
- package/dist/bundle/chunk-GLHFJPYS.js +156 -0
- package/dist/bundle/chunk-GW4G5KLS.js +2333 -0
- package/dist/bundle/chunk-H7QDPW3D.js +78 -0
- package/dist/bundle/chunk-HG7FT3H3.js +319 -0
- package/dist/bundle/chunk-I3WS6V5H.js +188 -0
- package/dist/bundle/chunk-IDU4ESRZ.js +95 -0
- package/dist/bundle/chunk-IXCIQ7FZ.js +161 -0
- package/dist/bundle/chunk-J5P5VSRG.js +1233 -0
- package/dist/bundle/chunk-JA26HG7T.js +353 -0
- package/dist/bundle/chunk-JSTBW7F4.js +259 -0
- package/dist/bundle/chunk-KHDXRFJZ.js +185 -0
- package/dist/bundle/chunk-L5WS6CYZ.js +288 -0
- package/dist/bundle/chunk-LWJ4ZGUM.js +407 -0
- package/dist/bundle/chunk-MC2RQ2OB.js +38 -0
- package/dist/bundle/chunk-MNQACPXG.js +1332 -0
- package/dist/bundle/chunk-MOSH2KPD.js +358 -0
- package/dist/bundle/chunk-MRREDVPY.js +733 -0
- package/dist/bundle/chunk-MT2ZUZRA.js +1028 -0
- package/dist/bundle/chunk-O4A33Y54.js +29 -0
- package/dist/bundle/chunk-OBXDRUO4.js +63 -0
- package/dist/bundle/chunk-OFR3YYT6.js +6848 -0
- package/dist/bundle/chunk-P4U6AGWD.js +41 -0
- package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
- package/dist/bundle/chunk-PMP37KLR.js +142 -0
- package/dist/bundle/chunk-Q3JCUUOR.js +80 -0
- package/dist/bundle/chunk-Q7BSTQ3T.js +633 -0
- package/dist/bundle/chunk-QLHDUYGE.js +16 -0
- package/dist/bundle/chunk-RU5J7DWY.js +988 -0
- package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
- package/dist/bundle/chunk-S7K2XFQB.js +95 -0
- package/dist/bundle/chunk-SQHDE3TC.js +230 -0
- package/dist/bundle/chunk-TF7ZGCOK.js +76 -0
- package/dist/bundle/chunk-V6BTAILB.js +4072 -0
- package/dist/bundle/chunk-VDMIJ3JW.js +50 -0
- package/dist/bundle/chunk-VW5F6FK3.js +206 -0
- package/dist/bundle/chunk-W6F2CQZ6.js +1068 -0
- package/dist/bundle/chunk-WARIIYSW.js +58 -0
- package/dist/bundle/chunk-WK7GLHHL.js +334 -0
- package/dist/bundle/chunk-X5S5KUSU.js +2788 -0
- package/dist/bundle/chunk-X6R74TWX.js +131 -0
- package/dist/bundle/chunk-XQUUANA2.js +24600 -0
- package/dist/bundle/chunk-XXLQNHKF.js +82 -0
- package/dist/bundle/chunk-XXOTX4M3.js +362 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-ZDBTYBFR.js +66 -0
- package/dist/bundle/chunk-ZGADZ4CH.js +557 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-7M6EPH3D.js +37 -0
- package/dist/bundle/command-server-entry-MNVPYQZ3.js +166 -0
- package/dist/bundle/decode-MQNKNXLK.js +297 -0
- package/dist/bundle/definitions-FODOIPM2.js +43379 -0
- package/dist/bundle/dispatch-TAQ7635E.js +411 -0
- package/dist/bundle/dist-EM7KLEG4.js +7577 -0
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/echarts-6ZSUNO4L.js +42501 -0
- package/dist/bundle/embed-PHCCJJ5Z.js +38 -0
- package/dist/bundle/embedder-WLZZQTKZ.js +111 -0
- package/dist/bundle/failure-MR2XVHFP.js +25 -0
- package/dist/bundle/first-run-64LREHSV.js +29 -0
- package/dist/bundle/first-screen-YSCAZIYJ.js +37 -0
- package/dist/bundle/instructions-22GCKNR5.js +11 -0
- package/dist/bundle/mcp-CNV7F2XZ.js +167 -0
- package/dist/bundle/meeting-combined-YX3T5WJD.js +24 -0
- package/dist/bundle/meeting-model-JWDTCGLZ.js +25 -0
- package/dist/bundle/meeting-semantic-375GYPZQ.js +22 -0
- package/dist/bundle/node-ITDTNRRZ.js +176 -0
- package/dist/bundle/node-KM3CUABH.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-IRAGRMEZ.js +74 -0
- package/dist/bundle/oauth-CACOQJEL.js +20 -0
- package/dist/bundle/open-HU4KHKDR.js +23 -0
- package/dist/bundle/openai-JQUPAVKX.js +238 -0
- package/dist/bundle/process-QS5OHEUK.js +91 -0
- package/dist/bundle/program-QLCUCR76.js +33428 -0
- package/dist/bundle/prompt-VA5MKXJU.js +17 -0
- package/dist/bundle/recognize-JGA5IVKC.js +26 -0
- package/dist/bundle/remote-NPY2KZQ4.js +31 -0
- package/dist/bundle/rerank-4H2QR4XU.js +52 -0
- package/dist/bundle/schemas-THAI3G5S.js +21410 -0
- package/dist/bundle/serve-UH46SZQG.js +199 -0
- package/dist/bundle/server-6H7JS6SU.js +212 -0
- package/dist/bundle/server-SR52KBL3.js +79 -0
- package/dist/bundle/sqlite-runtime-EJWEUTBR.js +20 -0
- package/dist/bundle/state-34B6AUQZ.js +36 -0
- package/dist/bundle/store-3R4ILTCJ.js +177 -0
- package/dist/bundle/store-XSE35P3U.js +291 -0
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +66 -0
- package/dist/bundle/surface-NOTIEJB5.js +65 -0
- package/dist/commands/api.d.ts +12 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +27 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/crm.d.ts +4 -0
- package/dist/commands/crm.d.ts.map +1 -0
- package/dist/commands/crm.js +66 -0
- package/dist/commands/crm.js.map +1 -0
- package/dist/commands/session.d.ts +7 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +22 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +37 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +31 -0
- package/dist/context.js.map +1 -0
- package/dist/generated/definitions.d.ts +3 -0
- package/dist/generated/definitions.d.ts.map +1 -0
- package/dist/generated/definitions.js +43375 -0
- package/dist/generated/definitions.js.map +1 -0
- package/dist/generated/manifest.d.ts +6 -0
- package/dist/generated/manifest.d.ts.map +1 -0
- package/dist/generated/manifest.js +5158 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +383 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +21196 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +10166 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +5 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/generated/wirecat-config.d.ts +15 -0
- package/dist/generated/wirecat-config.d.ts.map +1 -0
- package/dist/generated/wirecat-config.js +333 -0
- package/dist/generated/wirecat-config.js.map +1 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +7 -0
- package/dist/hooks.js.map +1 -0
- package/dist/identity.d.ts +33 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +31 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/program.d.ts +6 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +54 -0
- package/dist/program.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +87 -4
- package/skills/attio-cli/SKILL.md +58 -0
- package/skills/attio-cli/references/api/api-activities.md +62 -0
- package/skills/attio-cli/references/api/api-activity-records.md +96 -0
- package/skills/attio-cli/references/api/api-attributes.md +148 -0
- package/skills/attio-cli/references/api/api-call-recordings.md +53 -0
- package/skills/attio-cli/references/api/api-comments.md +36 -0
- package/skills/attio-cli/references/api/api-emails.md +23 -0
- package/skills/attio-cli/references/api/api-entries.md +127 -0
- package/skills/attio-cli/references/api/api-files.md +63 -0
- package/skills/attio-cli/references/api/api-lists.md +44 -0
- package/skills/attio-cli/references/api/api-meetings.md +82 -0
- package/skills/attio-cli/references/api/api-meta.md +8 -0
- package/skills/attio-cli/references/api/api-notes.md +64 -0
- package/skills/attio-cli/references/api/api-objects.md +55 -0
- package/skills/attio-cli/references/api/api-records.md +168 -0
- package/skills/attio-cli/references/api/api-sequences.md +15 -0
- package/skills/attio-cli/references/api/api-sql.md +15 -0
- package/skills/attio-cli/references/api/api-tasks.md +67 -0
- package/skills/attio-cli/references/api/api-threads.md +35 -0
- package/skills/attio-cli/references/api/api-transcripts.md +17 -0
- package/skills/attio-cli/references/api/api-views.md +133 -0
- package/skills/attio-cli/references/api/api-webhooks.md +62 -0
- package/skills/attio-cli/references/api/api-workspace-blocklist.md +39 -0
- package/skills/attio-cli/references/api/api-workspace-members.md +19 -0
- package/skills/attio-cli/references/api.md +35 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError,
|
|
5
|
+
singleLine
|
|
6
|
+
} from "./chunk-BUGROVF3.js";
|
|
7
|
+
import {
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
|
+
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
|
+
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
|
+
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
15
|
+
const tag = value.trim().toLowerCase();
|
|
16
|
+
return TAG.test(tag) ? tag : void 0;
|
|
17
|
+
}, "tagOf");
|
|
18
|
+
var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
19
|
+
const tag = tagOf(value);
|
|
20
|
+
if (tag === void 0)
|
|
21
|
+
throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
|
|
22
|
+
return tag;
|
|
23
|
+
}, "normalizeTag");
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
TAG_TYPES,
|
|
27
|
+
tagOf,
|
|
28
|
+
normalizeTag
|
|
29
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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@0.703.0_@wirecat+cli-base@0.119.0_commander@15.0.0_esbuild@0.28.2_typ_5630bd43f49d4f78ecc9c491970e88a0/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
|
+
import { execFileSync } from "node:child_process";
|
|
9
|
+
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
|
+
var alive = /* @__PURE__ */ __name((pid) => {
|
|
11
|
+
try {
|
|
12
|
+
process.kill(pid, 0);
|
|
13
|
+
return true;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
return error.code === "EPERM";
|
|
16
|
+
}
|
|
17
|
+
}, "alive");
|
|
18
|
+
var carries = /* @__PURE__ */ __name((pid, marker) => {
|
|
19
|
+
if (pid <= 0 || !alive(pid))
|
|
20
|
+
return false;
|
|
21
|
+
try {
|
|
22
|
+
if (process.platform === "linux") {
|
|
23
|
+
return readFileSync(`/proc/${pid}/environ`, "latin1").split("\0").some((entry) => entry.endsWith(marker));
|
|
24
|
+
}
|
|
25
|
+
if (process.platform === "darwin") {
|
|
26
|
+
return execFileSync("ps", ["eww", "-o", "command=", "-p", String(pid)], { encoding: "utf8" }).includes(marker);
|
|
27
|
+
}
|
|
28
|
+
} catch {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}, "carries");
|
|
33
|
+
var holdersOf = /* @__PURE__ */ __name((paths) => {
|
|
34
|
+
if (process.platform === "linux") {
|
|
35
|
+
const wanted = new Set(paths);
|
|
36
|
+
return readdirSync("/proc").filter((entry) => /^\d+$/.test(entry) && Number(entry) !== process.pid).filter((pid) => {
|
|
37
|
+
try {
|
|
38
|
+
return readdirSync(`/proc/${pid}/fd`).some((fd) => {
|
|
39
|
+
try {
|
|
40
|
+
return wanted.has(readlinkSync(`/proc/${pid}/fd/${fd}`));
|
|
41
|
+
} catch {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
} catch {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}).map(Number);
|
|
49
|
+
}
|
|
50
|
+
const pids = /* @__PURE__ */ __name((listed) => listed.split("\n").filter(Boolean).map(Number).filter((pid) => pid !== process.pid), "pids");
|
|
51
|
+
try {
|
|
52
|
+
return pids(execFileSync("lsof", ["-t", "--", ...paths], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }));
|
|
53
|
+
} catch (error) {
|
|
54
|
+
const { status, stdout } = error;
|
|
55
|
+
return status === 1 ? pids(stdout ?? "") : void 0;
|
|
56
|
+
}
|
|
57
|
+
}, "holdersOf");
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
alive,
|
|
61
|
+
carries,
|
|
62
|
+
holdersOf
|
|
63
|
+
};
|