@wirecat/attio-cli 0.0.0-stage → 0.1.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/LICENSE +204 -0
- package/README.md +248 -2
- package/contracts/wirecat.json +2321 -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-KLBL3FYD.js +37 -0
- package/dist/bundle/all-profiles-C2NMRQPE.js +320 -0
- package/dist/bundle/anthropic-KOU2ILDK.js +91 -0
- package/dist/bundle/app-server-TINV4NNY.js +249 -0
- package/dist/bundle/attio.js +183 -0
- package/dist/bundle/bun-GVNM6IWY.js +169 -0
- package/dist/bundle/bun-sqlite-IF6B3EQI.js +76 -0
- package/dist/bundle/chunk-2343HKEW.js +362 -0
- package/dist/bundle/chunk-2H2MWGBD.js +988 -0
- package/dist/bundle/chunk-2P7ENEQ7.js +288 -0
- package/dist/bundle/chunk-4EYKJLWI.js +771 -0
- package/dist/bundle/chunk-4HQDT5PF.js +338 -0
- package/dist/bundle/chunk-4QE4L7UL.js +142 -0
- package/dist/bundle/chunk-4XHWGJXT.js +6848 -0
- package/dist/bundle/chunk-5DCRHSBI.js +72 -0
- package/dist/bundle/chunk-5ETXE5KF.js +372 -0
- package/dist/bundle/chunk-5WAGTWCS.js +156 -0
- package/dist/bundle/chunk-6B5PSQQ7.js +319 -0
- package/dist/bundle/chunk-6BVPS2YY.js +230 -0
- package/dist/bundle/chunk-6L5EUGLP.js +188 -0
- package/dist/bundle/chunk-7NFEMS4A.js +1028 -0
- package/dist/bundle/chunk-A7YQTQ5U.js +733 -0
- package/dist/bundle/chunk-AEPOHR4Z.js +82 -0
- package/dist/bundle/chunk-ARRQVUJ2.js +334 -0
- package/dist/bundle/chunk-BHNFRL3H.js +95 -0
- package/dist/bundle/chunk-CBPL3GID.js +23 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DVN54VPI.js +16 -0
- package/dist/bundle/chunk-DW3V7GTY.js +388 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-ETSOG6TZ.js +65288 -0
- package/dist/bundle/chunk-FJV3MO57.js +29 -0
- package/dist/bundle/chunk-HLLRNP2G.js +170 -0
- package/dist/bundle/chunk-HQJ2TABD.js +18 -0
- package/dist/bundle/chunk-ICUXAOEM.js +42063 -0
- package/dist/bundle/chunk-IGALQ74S.js +358 -0
- package/dist/bundle/chunk-IPHUAWFG.js +100 -0
- package/dist/bundle/chunk-IYMWUL6E.js +633 -0
- package/dist/bundle/chunk-JKCXDIGC.js +52 -0
- package/dist/bundle/chunk-JTOKDROB.js +95 -0
- package/dist/bundle/chunk-JZMGOVCZ.js +80 -0
- package/dist/bundle/chunk-KB3YJJPN.js +794 -0
- package/dist/bundle/chunk-KD4EUUER.js +37 -0
- package/dist/bundle/chunk-LB6D4QF2.js +2333 -0
- package/dist/bundle/chunk-LWUJZ2E3.js +108 -0
- package/dist/bundle/chunk-MCQOXTAL.js +53 -0
- package/dist/bundle/chunk-MMGCGPKM.js +3571 -0
- package/dist/bundle/chunk-MXDIXBIV.js +24 -0
- package/dist/bundle/chunk-MYVWV5L5.js +407 -0
- package/dist/bundle/chunk-MZNRIH3T.js +1233 -0
- package/dist/bundle/chunk-NEFILPPV.js +353 -0
- package/dist/bundle/chunk-O6CVJGGL.js +131 -0
- package/dist/bundle/chunk-OPXCRQTV.js +161 -0
- package/dist/bundle/chunk-PKNFA5TU.js +38 -0
- package/dist/bundle/chunk-PL5P7UKW.js +25216 -0
- package/dist/bundle/chunk-PO6PLQYL.js +50 -0
- package/dist/bundle/chunk-PWUQC2GI.js +218 -0
- package/dist/bundle/chunk-QCEEPJNN.js +185 -0
- package/dist/bundle/chunk-QG4WCLGB.js +1332 -0
- package/dist/bundle/chunk-QNQ2OF24.js +9578 -0
- package/dist/bundle/chunk-RCKRXBJF.js +1392 -0
- package/dist/bundle/chunk-RK4GN2II.js +2000 -0
- package/dist/bundle/chunk-RRH7UK7L.js +106 -0
- package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
- package/dist/bundle/chunk-S7WJXELM.js +58 -0
- package/dist/bundle/chunk-SBRFKB77.js +1197 -0
- package/dist/bundle/chunk-SP6DPFZ4.js +4072 -0
- package/dist/bundle/chunk-SWJDLFDM.js +557 -0
- package/dist/bundle/chunk-TWCVCW5T.js +66 -0
- package/dist/bundle/chunk-V2R2BJJU.js +63 -0
- package/dist/bundle/chunk-V5K3M7FE.js +78 -0
- package/dist/bundle/chunk-V6ALLFEE.js +1068 -0
- package/dist/bundle/chunk-V6EVJXLO.js +259 -0
- package/dist/bundle/chunk-VJ4CPL6F.js +54 -0
- package/dist/bundle/chunk-VL25A6V2.js +41 -0
- package/dist/bundle/chunk-WBEZZGZE.js +12645 -0
- package/dist/bundle/chunk-WIYAMDPP.js +73 -0
- package/dist/bundle/chunk-WRJGITBX.js +76 -0
- package/dist/bundle/chunk-XHIVZPQ2.js +7 -0
- package/dist/bundle/chunk-XQUUANA2.js +24600 -0
- package/dist/bundle/chunk-XTQIXZVM.js +2788 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-YKN4Y35P.js +206 -0
- package/dist/bundle/chunk-ZMJZQGCN.js +46 -0
- package/dist/bundle/chunk-ZPSH27BB.js +274 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-3FR7BK72.js +37 -0
- package/dist/bundle/command-server-entry-4XR4GDS7.js +166 -0
- package/dist/bundle/decode-24EITKP4.js +297 -0
- package/dist/bundle/definitions-HU62PG4L.js +43364 -0
- package/dist/bundle/dispatch-VE6CXCJW.js +411 -0
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/dist-ZSNEZYVF.js +7577 -0
- package/dist/bundle/echarts-LEVLEF7L.js +42501 -0
- package/dist/bundle/embed-G6FGY3VZ.js +38 -0
- package/dist/bundle/embedder-B6LNMXZZ.js +111 -0
- package/dist/bundle/failure-ASVFQXMF.js +25 -0
- package/dist/bundle/first-run-NVXVVALW.js +29 -0
- package/dist/bundle/first-screen-N3IPK5AT.js +37 -0
- package/dist/bundle/instructions-F3KPYMJK.js +11 -0
- package/dist/bundle/mcp-BUCB5ZPE.js +167 -0
- package/dist/bundle/meeting-combined-7FREWXMB.js +24 -0
- package/dist/bundle/meeting-model-GJPAIUQL.js +25 -0
- package/dist/bundle/meeting-semantic-YWY645AH.js +22 -0
- package/dist/bundle/node-KM3CUABH.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-WVUZSDLD.js +176 -0
- package/dist/bundle/node-sqlite-V4NNKABG.js +74 -0
- package/dist/bundle/oauth-7CENTQIN.js +20 -0
- package/dist/bundle/open-OLTONZBG.js +23 -0
- package/dist/bundle/openai-M6ES74YN.js +238 -0
- package/dist/bundle/process-VFIFK5KO.js +91 -0
- package/dist/bundle/program-N72VUDXM.js +33418 -0
- package/dist/bundle/prompt-TNWPBEBB.js +17 -0
- package/dist/bundle/recognize-PV2WOUWS.js +26 -0
- package/dist/bundle/remote-3F6JACS5.js +31 -0
- package/dist/bundle/rerank-33C67PIV.js +52 -0
- package/dist/bundle/schemas-RLDEALIJ.js +21410 -0
- package/dist/bundle/serve-3DEMACSQ.js +199 -0
- package/dist/bundle/server-AAK2HWQM.js +79 -0
- package/dist/bundle/server-LIBRGMUZ.js +212 -0
- package/dist/bundle/sqlite-runtime-SMAREHYG.js +20 -0
- package/dist/bundle/state-WPHAVJIU.js +36 -0
- package/dist/bundle/store-A7V4FEXE.js +177 -0
- package/dist/bundle/store-PMAPJNXT.js +291 -0
- package/dist/bundle/store-maintenance-command-QHRHAEYN.js +66 -0
- package/dist/bundle/surface-MN4RTNYW.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/comments.d.ts +3 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +114 -0
- package/dist/commands/comments.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 +43360 -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 +10156 -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 +328 -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/sample/comments.d.ts +61 -0
- package/dist/sample/comments.d.ts.map +1 -0
- package/dist/sample/comments.js +39 -0
- package/dist/sample/comments.js.map +1 -0
- package/dist/sample/records.d.ts +16 -0
- package/dist/sample/records.d.ts.map +1 -0
- package/dist/sample/records.js +22 -0
- package/dist/sample/records.js.map +1 -0
- package/dist/sample/transport.d.ts +42 -0
- package/dist/sample/transport.d.ts.map +1 -0
- package/dist/sample/transport.js +153 -0
- package/dist/sample/transport.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
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `@wirecat/attio-cli`. One section per version, newest first.
|
|
4
|
+
|
|
5
|
+
## 0.1.0 — 18.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Started from `@wirecat/cli-template` 0.28.0.
|
|
10
|
+
- Built from one file, `wirecat.config.ts`.
|
|
11
|
+
- **`attio <profile> sync` copies your Attio deals into WireCat's local store**, with their stage, owner, amount,
|
|
12
|
+
company, people and the workspace's own attributes, and your people and companies. Attio cannot list what
|
|
13
|
+
changed since a time, so each sync lists every record.
|
|
14
|
+
- **`attio <profile> deals`, `pipelines`, `changes`, `fields` and `search all` read the copy**, offline too. Attio's
|
|
15
|
+
one deal pipeline is `Deals`: a stage Attio celebrates is won, one titled "Lost" is lost.
|
|
16
|
+
- **`attio <profile> people list|show` and `organizations list|show` read Attio live**, words searching names and
|
|
17
|
+
emails.
|
|
18
|
+
- **`attio <profile> session start` signs in with an Attio access token** from stdin, checked against `GET /v2/self`.
|
|
19
|
+
- **`attio <profile> api` runs every operation of the Attio API**, each with its own flags, help and `--json`.
|
|
20
|
+
- **`attio <profile> users list|show` reads your workspace members live.**
|
package/LICENSE
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
Copyright (c) 2026 Viacheslav Ptsarev
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Apache License
|
|
5
|
+
Version 2.0, January 2004
|
|
6
|
+
http://www.apache.org/licenses/
|
|
7
|
+
|
|
8
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
9
|
+
|
|
10
|
+
1. Definitions.
|
|
11
|
+
|
|
12
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
13
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
16
|
+
the copyright owner that is granting the License.
|
|
17
|
+
|
|
18
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
19
|
+
other entities that control, are controlled by, or are under common
|
|
20
|
+
control with that entity. For the purposes of this definition,
|
|
21
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
22
|
+
direction or management of such entity, whether by contract or
|
|
23
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
24
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
25
|
+
|
|
26
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
27
|
+
exercising permissions granted by this License.
|
|
28
|
+
|
|
29
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
30
|
+
including but not limited to software source code, documentation
|
|
31
|
+
source, and configuration files.
|
|
32
|
+
|
|
33
|
+
"Object" form shall mean any form resulting from mechanical
|
|
34
|
+
transformation or translation of a Source form, including but
|
|
35
|
+
not limited to compiled object code, generated documentation,
|
|
36
|
+
and conversions to other media types.
|
|
37
|
+
|
|
38
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
39
|
+
Object form, made available under the License, as indicated by a
|
|
40
|
+
copyright notice that is included in or attached to the work
|
|
41
|
+
(an example is provided in the Appendix below).
|
|
42
|
+
|
|
43
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
44
|
+
form, that is based on (or derived from) the Work and for which the
|
|
45
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
46
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
47
|
+
of this License, Derivative Works shall not include works that remain
|
|
48
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
49
|
+
the Work and Derivative Works thereof.
|
|
50
|
+
|
|
51
|
+
"Contribution" shall mean any work of authorship, including
|
|
52
|
+
the original version of the Work and any modifications or additions
|
|
53
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
54
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
55
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
56
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
57
|
+
means any form of electronic, verbal, or written communication sent
|
|
58
|
+
to the Licensor or its representatives, including but not limited to
|
|
59
|
+
communication on electronic mailing lists, source code control systems,
|
|
60
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
61
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
62
|
+
excluding communication that is conspicuously marked or otherwise
|
|
63
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
64
|
+
|
|
65
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
66
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
67
|
+
subsequently incorporated within the Work.
|
|
68
|
+
|
|
69
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
70
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
71
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
72
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
73
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
74
|
+
Work and such Derivative Works in Source or Object form.
|
|
75
|
+
|
|
76
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
77
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
+
(except as stated in this section) patent license to make, have made,
|
|
80
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
81
|
+
where such license applies only to those patent claims licensable
|
|
82
|
+
by such Contributor that are necessarily infringed by their
|
|
83
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
84
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
85
|
+
institute patent litigation against any entity (including a
|
|
86
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
87
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
88
|
+
or contributory patent infringement, then any patent licenses
|
|
89
|
+
granted to You under this License for that Work shall terminate
|
|
90
|
+
as of the date such litigation is filed.
|
|
91
|
+
|
|
92
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
93
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
94
|
+
modifications, and in Source or Object form, provided that You
|
|
95
|
+
meet the following conditions:
|
|
96
|
+
|
|
97
|
+
(a) You must give any other recipients of the Work or
|
|
98
|
+
Derivative Works a copy of this License; and
|
|
99
|
+
|
|
100
|
+
(b) You must cause any modified files to carry prominent notices
|
|
101
|
+
stating that You changed the files; and
|
|
102
|
+
|
|
103
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
104
|
+
that You distribute, all copyright, patent, trademark, and
|
|
105
|
+
attribution notices from the Source form of the Work,
|
|
106
|
+
excluding those notices that do not pertain to any part of
|
|
107
|
+
the Derivative Works; and
|
|
108
|
+
|
|
109
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
110
|
+
distribution, then any Derivative Works that You distribute must
|
|
111
|
+
include a readable copy of the attribution notices contained
|
|
112
|
+
within such NOTICE file, excluding those notices that do not
|
|
113
|
+
pertain to any part of the Derivative Works, in at least one
|
|
114
|
+
of the following places: within a NOTICE text file distributed
|
|
115
|
+
as part of the Derivative Works; within the Source form or
|
|
116
|
+
documentation, if provided along with the Derivative Works; or,
|
|
117
|
+
within a display generated by the Derivative Works, if and
|
|
118
|
+
wherever such third-party notices normally appear. The contents
|
|
119
|
+
of the NOTICE file are for informational purposes only and
|
|
120
|
+
do not modify the License. You may add Your own attribution
|
|
121
|
+
notices within Derivative Works that You distribute, alongside
|
|
122
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
123
|
+
that such additional attribution notices cannot be construed
|
|
124
|
+
as modifying the License.
|
|
125
|
+
|
|
126
|
+
You may add Your own copyright statement to Your modifications and
|
|
127
|
+
may provide additional or different license terms and conditions
|
|
128
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
129
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
130
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
131
|
+
the conditions stated in this License.
|
|
132
|
+
|
|
133
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
134
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
135
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
136
|
+
this License, without any additional terms or conditions.
|
|
137
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
138
|
+
the terms of any separate license agreement you may have executed
|
|
139
|
+
with Licensor regarding such Contributions.
|
|
140
|
+
|
|
141
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
142
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
143
|
+
except as required for reasonable and customary use in describing the
|
|
144
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
145
|
+
|
|
146
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
147
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
148
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
149
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
150
|
+
implied, including, without limitation, any warranties or conditions
|
|
151
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
152
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
153
|
+
appropriateness of using or redistributing the Work and assume any
|
|
154
|
+
risks associated with Your exercise of permissions under this License.
|
|
155
|
+
|
|
156
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
157
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
158
|
+
unless required by applicable law (such as deliberate and grossly
|
|
159
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
160
|
+
liable to You for damages, including any direct, indirect, special,
|
|
161
|
+
incidental, or consequential damages of any character arising as a
|
|
162
|
+
result of this License or out of the use or inability to use the
|
|
163
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
164
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
165
|
+
other commercial damages or losses), even if such Contributor
|
|
166
|
+
has been advised of the possibility of such damages.
|
|
167
|
+
|
|
168
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
169
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
170
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
171
|
+
or other liability obligations and/or rights consistent with this
|
|
172
|
+
License. However, in accepting such obligations, You may act only
|
|
173
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
174
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
175
|
+
defend, and hold each Contributor harmless for any liability
|
|
176
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
177
|
+
of your accepting any such warranty or additional liability.
|
|
178
|
+
|
|
179
|
+
END OF TERMS AND CONDITIONS
|
|
180
|
+
|
|
181
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
182
|
+
|
|
183
|
+
To apply the Apache License to your work, attach the following
|
|
184
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
185
|
+
replaced with your own identifying information. (Don't include
|
|
186
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
187
|
+
comment syntax for the file format. We also recommend that a
|
|
188
|
+
file or class name and description of purpose be included on the
|
|
189
|
+
same "printed page" as the copyright notice for easier
|
|
190
|
+
identification within third-party archives.
|
|
191
|
+
|
|
192
|
+
Copyright [yyyy] [name of copyright owner]
|
|
193
|
+
|
|
194
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
195
|
+
you may not use this file except in compliance with the License.
|
|
196
|
+
You may obtain a copy of the License at
|
|
197
|
+
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
199
|
+
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software
|
|
201
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
202
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
203
|
+
See the License for the specific language governing permissions and
|
|
204
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,249 @@
|
|
|
1
|
-
#
|
|
1
|
+
# attio: Attio CRM CLI and MCP server for AI agents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
Know where every deal stands without opening Attio. Ask Claude, ChatGPT, Codex or any AI agent, and it answers from
|
|
5
|
+
a copy of your Attio deals on your computer, even offline.
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/WireCatLabs/attio-cli/blob/main/docs/index.md">Docs</a> ·
|
|
10
|
+
<a href="https://github.com/WireCatLabs/attio-cli/blob/main/docs/installation.md">Install</a> ·
|
|
11
|
+
<a href="https://github.com/WireCatLabs/attio-cli/blob/main/docs/usage.md">Usage</a> ·
|
|
12
|
+
<a href="https://discord.gg/DebENqbRrJ">Discord</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@wirecat/attio-cli"><img src="https://img.shields.io/npm/v/@wirecat/attio-cli" alt="npm"></a>
|
|
17
|
+
<a href="https://github.com/WireCatLabs/attio-cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License: Apache 2.0"></a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
- **Ask instead of clicking.** "Which deals are stuck in Negotiation?" gets an answer in a second, in Claude Code,
|
|
21
|
+
Codex, Claude Desktop or any app that speaks MCP.
|
|
22
|
+
- **Your pipeline, offline.** Deals, stages and what changed since yesterday are read from your computer, with no
|
|
23
|
+
request to Attio.
|
|
24
|
+
- **Safe to hand to an agent.** The deal commands only read, and one line keeps every write in the Attio API away
|
|
25
|
+
from an agent.
|
|
26
|
+
|
|
27
|
+
## What you get
|
|
28
|
+
|
|
29
|
+
- **The answer, not the search.** Ask about a deal in your own words. The agent finds it with its stage, amount,
|
|
30
|
+
company and people.
|
|
31
|
+
- **The pipeline at a glance.** How many deals stand in each stage, their total per currency, and your win rate.
|
|
32
|
+
- **What changed overnight.** Deals created, moved, won and lost, as a list or a short morning digest.
|
|
33
|
+
- **People and companies on demand.** Read live from Attio, with e-mails and phones, when you ask.
|
|
34
|
+
- **Attio deals export.** Any list of deals, people or companies becomes a CSV file for a spreadsheet.
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
You: Which deals are in Negotiation?
|
|
38
|
+
Agent: (runs attio work deals list stage:Negotiation status:open)
|
|
39
|
+
· "Example LLC renewal", 24 000 USD, owner Anna Example
|
|
40
|
+
· "Sample Inc pilot", 6 500 USD, owner Bob Sample
|
|
41
|
+
You: What did we win this week?
|
|
42
|
+
Agent: (runs attio work changes list change:won "at>=7d")
|
|
43
|
+
One deal: "Example Corp expansion", 12 000 USD, won on Tuesday.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
*Invented deals, illustrative output.*
|
|
47
|
+
|
|
48
|
+
## Why attio
|
|
49
|
+
|
|
50
|
+
- **A copy of your CRM on your computer.** `sync` copies your deals, people and companies into a local store. Lists,
|
|
51
|
+
the pipeline board and search answer from it with no request to Attio, also offline.
|
|
52
|
+
- **A permission on every action.** Each command and each Attio API operation has its own level: allow, ask, read
|
|
53
|
+
only or deny. `WCATTIO_READ_ONLY=1` stops every write.
|
|
54
|
+
- **The token stays in your system keyring.** It never appears in output, errors or run records, and is never taken
|
|
55
|
+
as an argument.
|
|
56
|
+
- **Your CRM beside your other context.** Deals sit in the same local store as your messages, mail, notes and
|
|
57
|
+
meetings from the other WireCat tools, so one search covers all of them.
|
|
58
|
+
- **The whole Attio API too.** Every operation is a command with its own help, for what has no command of its own
|
|
59
|
+
yet: notes, tasks, lists, custom objects.
|
|
60
|
+
- **Free and open source.** Apache 2.0.
|
|
61
|
+
|
|
62
|
+
## Quick start
|
|
63
|
+
|
|
64
|
+
In [WireCat Desktop](https://wirecat.dev), add Attio from the tool list and paste the access token when it asks. Or in
|
|
65
|
+
a terminal:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npm install -g @wirecat/attio-cli
|
|
69
|
+
attio skill install # the agent skill, for Claude Code, Codex, Gemini CLI and OpenClaw
|
|
70
|
+
attio work session start # paste your Attio access token
|
|
71
|
+
attio work sync # copy your deals, people and companies
|
|
72
|
+
attio work deals list status:open
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`work` is a profile, a name you choose for one Attio workspace. It is the first word of every command that uses an
|
|
76
|
+
account, and none is ever assumed.
|
|
77
|
+
|
|
78
|
+
**The access token.** In Attio, open Workspace settings → Developers → New access token. Give it read access to
|
|
79
|
+
`record_permission`, `object_configuration` and `user_management`, and copy it. Only a workspace admin can make one.
|
|
80
|
+
`session start` asks for it without showing it, checks it with Attio and keeps it in the system keyring.
|
|
81
|
+
|
|
82
|
+
You need Node.js 22.16 or a later 22.x, or Node.js 24 or later. `attio doctor` needs no network and shows what is set
|
|
83
|
+
up.
|
|
84
|
+
|
|
85
|
+
More: [installation and sign-in, step by step](https://github.com/WireCatLabs/attio-cli/blob/main/docs/installation.md)
|
|
86
|
+
|
|
87
|
+
## Use it with your agent
|
|
88
|
+
|
|
89
|
+
Ask in plain words. The agent picks the commands.
|
|
90
|
+
|
|
91
|
+
> *"Use attio. What changed in our pipeline since yesterday?"*
|
|
92
|
+
> *"Use attio. How many deals did we win in the last 30 days, and what is our win rate?"*
|
|
93
|
+
> *"Use attio. Who is our contact at Example LLC, and what deals do we have open with them?"*
|
|
94
|
+
|
|
95
|
+
- **Claude Code, Codex, Gemini CLI** and other agents with a terminal run `attio` themselves. `attio skill install`
|
|
96
|
+
teaches them how.
|
|
97
|
+
- **Claude Desktop, Cursor** and other MCP apps connect to the Attio MCP server, `attio work mcp serve`.
|
|
98
|
+
- **ChatGPT or Claude in the browser** reach it through your own tunnel, after a login with a one-time code.
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
attio work config set permissions.api readonly # no writes through the Attio API on this profile
|
|
102
|
+
attio work mcp add claude-code --allow-writes # or: codex
|
|
103
|
+
attio work mcp config # the entry for Claude Desktop, Cursor and others
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Over MCP nobody is at a terminal to answer a question, so a write set to `ask` goes ahead. The first line above keeps
|
|
107
|
+
every write away from the agent.
|
|
108
|
+
|
|
109
|
+
More: [agents and MCP](https://github.com/WireCatLabs/attio-cli/blob/main/docs/mcp.md) ·
|
|
110
|
+
[permissions](https://github.com/WireCatLabs/attio-cli/blob/main/docs/permissions.md)
|
|
111
|
+
|
|
112
|
+
## What it can do
|
|
113
|
+
|
|
114
|
+
### Deals
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
attio work deals list status:open
|
|
118
|
+
attio work deals list stage:"In Progress"
|
|
119
|
+
attio work deals show deal:12 # one deal with its company and people
|
|
120
|
+
attio work deals list status:open --format csv > deals.csv
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Won is the stage Attio celebrates, and lost is a stage whose title starts with "Lost".
|
|
124
|
+
|
|
125
|
+
### The pipeline
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
attio work pipelines show # each stage: how many, their sum, how many went on
|
|
129
|
+
attio work pipelines show --since-time 30d # the deals made in the last 30 days, with the win rate
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### What changed
|
|
133
|
+
|
|
134
|
+
```sh
|
|
135
|
+
attio work changes list "at>=1d" # deals created, moved, won and lost
|
|
136
|
+
attio work changes list "at>=1d" --format report # the same as a short morning digest
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### People, companies and members
|
|
140
|
+
|
|
141
|
+
```sh
|
|
142
|
+
attio work people list anna # search Attio by name or e-mail
|
|
143
|
+
attio work organizations list example # companies by name
|
|
144
|
+
attio work users list # your workspace members
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
These read Attio itself, so they need the network.
|
|
148
|
+
|
|
149
|
+
### Your own attributes and search
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
attio work fields list deals # the attributes your workspace added, with their type
|
|
153
|
+
attio work search all "Example LLC" # deals next to your messages, notes and meetings
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Any Attio API operation
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
attio work api list # every operation, without calling Attio
|
|
160
|
+
attio work api objects-list # the objects in your workspace
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
More: [using attio](https://github.com/WireCatLabs/attio-cli/blob/main/docs/usage.md) ·
|
|
164
|
+
[every command](https://github.com/WireCatLabs/attio-cli/blob/main/docs/commands.md)
|
|
165
|
+
|
|
166
|
+
## How it works
|
|
167
|
+
|
|
168
|
+
- **An access token.** A workspace admin makes it in Attio. It is kept in the system keyring, or in a private file
|
|
169
|
+
on a computer without one.
|
|
170
|
+
- **A local copy.** `sync` copies the workspace's deals, people and companies, with the stages of Attio's deal
|
|
171
|
+
pipeline, into the WireCat local store. Attio cannot list only what changed, so each sync reads every record.
|
|
172
|
+
- **Live where it matters.** `people`, `organizations` and `users` ask Attio each time, so they show the newest data.
|
|
173
|
+
- **Made for scripts.** `--json` prints one JSON value for every command, and an error comes as JSON with a code to
|
|
174
|
+
branch on.
|
|
175
|
+
|
|
176
|
+
## Settings and permissions
|
|
177
|
+
|
|
178
|
+
Each profile has a level for every command and every Attio API operation: `allow`, `ask`, `readonly` or `deny`. A
|
|
179
|
+
delete through the API asks first at a terminal.
|
|
180
|
+
|
|
181
|
+
```sh
|
|
182
|
+
attio work config set permissions.api readonly # the Attio API reads, never writes
|
|
183
|
+
attio work config show # each setting and where it came from
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
More: [permissions](https://github.com/WireCatLabs/attio-cli/blob/main/docs/permissions.md) ·
|
|
187
|
+
[settings](https://github.com/WireCatLabs/attio-cli/blob/main/docs/configuration.md)
|
|
188
|
+
|
|
189
|
+
## Limits
|
|
190
|
+
|
|
191
|
+
- The deal commands read. Moving or closing a deal from `attio` is on the
|
|
192
|
+
[roadmap](https://github.com/WireCatLabs/attio-cli/blob/main/docs/roadmap.md), and so are notes, tasks, custom
|
|
193
|
+
objects, lists and a one-click sign-in.
|
|
194
|
+
- Only a workspace admin can make the token, and it reads the whole workspace.
|
|
195
|
+
- Attio documents 100 reads and 25 writes a second
|
|
196
|
+
([rate limits](https://docs.attio.com/rest-api/guides/rate-limiting)).
|
|
197
|
+
- Before 1.0, a minor version may change commands, `--json` fields and MCP tools. The changelog lists each such
|
|
198
|
+
change under "may break callers".
|
|
199
|
+
|
|
200
|
+
## Security
|
|
201
|
+
|
|
202
|
+
The token reads your whole workspace, so `attio` keeps it in the system keyring and never prints it, in output,
|
|
203
|
+
errors or run records. It talks only to `api.attio.com`. Text from Attio is marked as untrusted, so an agent reads a
|
|
204
|
+
deal title as data, not as an instruction.
|
|
205
|
+
|
|
206
|
+
More: [security](https://github.com/WireCatLabs/attio-cli/blob/main/docs/security.md) · Report a vulnerability:
|
|
207
|
+
[SECURITY.md](https://github.com/WireCatLabs/attio-cli/blob/main/SECURITY.md)
|
|
208
|
+
|
|
209
|
+
## When something goes wrong
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
attio doctor # what is set up, without connecting
|
|
213
|
+
attio work session status --check # asks Attio which workspace the token belongs to
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
More: [troubleshooting](https://github.com/WireCatLabs/attio-cli/blob/main/docs/troubleshooting.md) · Ask on
|
|
217
|
+
[Discord](https://discord.gg/DebENqbRrJ) · Bugs go to this repository's
|
|
218
|
+
[issues](https://github.com/WireCatLabs/attio-cli/issues).
|
|
219
|
+
|
|
220
|
+
## Documentation
|
|
221
|
+
|
|
222
|
+
Everything is in [docs/](https://github.com/WireCatLabs/attio-cli/blob/main/docs/index.md): installation, usage, MCP,
|
|
223
|
+
permissions, settings, the command reference and the roadmap.
|
|
224
|
+
|
|
225
|
+
## Development
|
|
226
|
+
|
|
227
|
+
You need Node.js 22.16 or a later 22.x, or Node.js 24 or later, and pnpm.
|
|
228
|
+
|
|
229
|
+
```sh
|
|
230
|
+
pnpm install && pnpm test
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Tests use a fake Attio built from Attio's API description, with invented records, and nothing reaches a real
|
|
234
|
+
workspace. The CLI is described in one file, `wirecat.config.ts`, and started from
|
|
235
|
+
[cli-template](https://github.com/WireCatLabs/cli-template).
|
|
236
|
+
|
|
237
|
+
More: [design](https://github.com/WireCatLabs/attio-cli/blob/main/docs/dev/DESIGN.md) ·
|
|
238
|
+
[working rules](https://github.com/WireCatLabs/attio-cli/blob/main/AGENTS.md)
|
|
239
|
+
|
|
240
|
+
Pull requests, bug reports and ideas go to [issues](https://github.com/WireCatLabs/attio-cli/issues).
|
|
241
|
+
|
|
242
|
+
## Part of WireCat
|
|
243
|
+
|
|
244
|
+
`attio` is one of the [WireCat](https://wirecat.dev) tools: open-source, local-first command-line tools that give AI
|
|
245
|
+
agents your context from messengers, mail, calendars, CRMs and documents. Each one works on its own.
|
|
246
|
+
|
|
247
|
+
## License
|
|
248
|
+
|
|
249
|
+
[Apache 2.0](https://github.com/WireCatLabs/attio-cli/blob/main/LICENSE)
|