@wirecat/hubspot-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 +29 -0
- package/LICENSE +204 -0
- package/README.md +256 -2
- package/contracts/wirecat.json +1965 -0
- package/dist/bin/hubspot.d.ts +3 -0
- package/dist/bin/hubspot.d.ts.map +1 -0
- package/dist/bin/hubspot.js +40 -0
- package/dist/bin/hubspot.js.map +1 -0
- package/dist/bundle/all-profiles-64JAUYW4.js +279 -0
- package/dist/bundle/anthropic-VJOS4OUM.js +91 -0
- package/dist/bundle/app-server-422MCA7S.js +245 -0
- package/dist/bundle/bun-M3J2QTR3.js +169 -0
- package/dist/bundle/bun-sqlite-IX3XYA5F.js +76 -0
- package/dist/bundle/chunk-24ERVFJP.js +73 -0
- package/dist/bundle/chunk-2QZK5BEP.js +392 -0
- package/dist/bundle/chunk-2TWQIWWG.js +1328 -0
- package/dist/bundle/chunk-2VGD63G6.js +604 -0
- package/dist/bundle/chunk-2VGZRYEH.js +334 -0
- package/dist/bundle/chunk-36ITRDYY.js +63116 -0
- package/dist/bundle/chunk-43EKCUBJ.js +72 -0
- package/dist/bundle/chunk-4W6BMH45.js +731 -0
- package/dist/bundle/chunk-5A6ZYNAQ.js +2003 -0
- package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
- package/dist/bundle/chunk-5GBUCHRU.js +274 -0
- package/dist/bundle/chunk-5K7QLJMM.js +4072 -0
- package/dist/bundle/chunk-65TWQ7BV.js +54 -0
- package/dist/bundle/chunk-7ELMWE3P.js +12066 -0
- package/dist/bundle/chunk-ADLS6FVG.js +24600 -0
- package/dist/bundle/chunk-B3MANLNK.js +602 -0
- package/dist/bundle/chunk-BKXDHU3G.js +1395 -0
- package/dist/bundle/chunk-C32AKHTY.js +2310 -0
- package/dist/bundle/chunk-CLAN3FES.js +1246 -0
- package/dist/bundle/chunk-CWXOXIWS.js +46 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-DB2XKHI4.js +72 -0
- package/dist/bundle/chunk-DBEQI5YM.js +100 -0
- package/dist/bundle/chunk-DFCHHR5M.js +38 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DRWWJLI6.js +188 -0
- package/dist/bundle/chunk-DSP36YHQ.js +29 -0
- package/dist/bundle/chunk-E52JAS35.js +1028 -0
- package/dist/bundle/chunk-E5WLE7BM.js +78 -0
- package/dist/bundle/chunk-ECEZOLOD.js +230 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-FBCCBCFH.js +288 -0
- package/dist/bundle/chunk-FKA7DOCK.js +53 -0
- package/dist/bundle/chunk-FOZYMDRL.js +259 -0
- package/dist/bundle/chunk-FPUGMDJV.js +7 -0
- package/dist/bundle/chunk-FTFV3HFW.js +721 -0
- package/dist/bundle/chunk-H3TNVEQX.js +782 -0
- package/dist/bundle/chunk-HC5ZWE5X.js +193 -0
- package/dist/bundle/chunk-HCAZV5NP.js +95 -0
- package/dist/bundle/chunk-HTAN663T.js +4045 -0
- package/dist/bundle/chunk-HZRQLAHO.js +16 -0
- package/dist/bundle/chunk-IMJQRPLN.js +92 -0
- package/dist/bundle/chunk-JLDBMEKZ.js +106 -0
- package/dist/bundle/chunk-JRCPCVPI.js +9393 -0
- package/dist/bundle/chunk-LNV33FDC.js +786 -0
- package/dist/bundle/chunk-LOBVOGOE.js +66 -0
- package/dist/bundle/chunk-MVA5HVKL.js +1392 -0
- package/dist/bundle/chunk-N2XADGL4.js +76 -0
- package/dist/bundle/chunk-NHHJHXMQ.js +58 -0
- package/dist/bundle/chunk-NUU4WZVL.js +52 -0
- package/dist/bundle/chunk-NWHEHV3K.js +133 -0
- package/dist/bundle/chunk-NXERIDPJ.js +319 -0
- package/dist/bundle/chunk-O3DYRCIT.js +23 -0
- package/dist/bundle/chunk-O55RWNSH.js +161 -0
- package/dist/bundle/chunk-P5BHKKBI.js +206 -0
- package/dist/bundle/chunk-PPHBRESD.js +82 -0
- package/dist/bundle/chunk-PVKF24ZW.js +364 -0
- package/dist/bundle/chunk-QGFX5MXL.js +460 -0
- package/dist/bundle/chunk-QJW35N5V.js +761 -0
- package/dist/bundle/chunk-QU25DA5N.js +360 -0
- package/dist/bundle/chunk-RMIYKDUL.js +1068 -0
- package/dist/bundle/chunk-RR5MX5TM.js +142 -0
- package/dist/bundle/chunk-SAKK2YRU.js +218 -0
- package/dist/bundle/chunk-SDQGB4KB.js +185 -0
- package/dist/bundle/chunk-TBJYLC5K.js +2788 -0
- package/dist/bundle/chunk-TI46WQXQ.js +1197 -0
- package/dist/bundle/chunk-TKVL2C3B.js +170 -0
- package/dist/bundle/chunk-TOSCB4SO.js +1227 -0
- package/dist/bundle/chunk-TP7GDWVF.js +6848 -0
- package/dist/bundle/chunk-UUMUL4L3.js +72 -0
- package/dist/bundle/chunk-VIEYMDBR.js +41 -0
- package/dist/bundle/chunk-W53EJOFQ.js +63 -0
- package/dist/bundle/chunk-W7HM2VGO.js +24 -0
- package/dist/bundle/chunk-WE4UFASG.js +88 -0
- package/dist/bundle/chunk-WQBX7XYP.js +26174 -0
- package/dist/bundle/chunk-X2M6NIQG.js +18 -0
- package/dist/bundle/chunk-X7XUX7A4.js +1846 -0
- package/dist/bundle/chunk-XRREFEIW.js +372 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-ZBDSHFG4.js +40933 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-C6CBFXZF.js +40 -0
- package/dist/bundle/command-server-entry-DJKVVZCQ.js +169 -0
- package/dist/bundle/decode-FC65Y4IV.js +297 -0
- package/dist/bundle/definitions-MVPICAWV.js +2991 -0
- package/dist/bundle/dispatch-KOISQ5QJ.js +411 -0
- package/dist/bundle/dist-MYZZKZJ7.js +7577 -0
- package/dist/bundle/echarts-FVTUDXDU.js +42501 -0
- package/dist/bundle/embed-VNBZFPYH.js +38 -0
- package/dist/bundle/embedder-6U4NOFRO.js +111 -0
- package/dist/bundle/failure-FZ6VYKEQ.js +25 -0
- package/dist/bundle/first-run-RPIJZEDT.js +29 -0
- package/dist/bundle/first-screen-RTVMGHAE.js +40 -0
- package/dist/bundle/hubspot.js +198 -0
- package/dist/bundle/instructions-HET7BCYK.js +11 -0
- package/dist/bundle/mcp-RGNRW77S.js +167 -0
- package/dist/bundle/meeting-combined-L5AGBPYX.js +25 -0
- package/dist/bundle/meeting-model-NTB4RK3F.js +25 -0
- package/dist/bundle/meeting-semantic-JY3OGCBS.js +22 -0
- package/dist/bundle/node-CXZIFHZC.js +176 -0
- package/dist/bundle/node-P4E63KXA.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-P3O7XN7Q.js +74 -0
- package/dist/bundle/oauth-HNCY4B2S.js +20 -0
- package/dist/bundle/open-F4P6YV54.js +23 -0
- package/dist/bundle/openai-4AICLIK3.js +238 -0
- package/dist/bundle/process-5RUXWGYS.js +91 -0
- package/dist/bundle/program-POG5GHUQ.js +9241 -0
- package/dist/bundle/prompt-NFMDVBZ4.js +17 -0
- package/dist/bundle/recognize-DKN3RY4V.js +26 -0
- package/dist/bundle/remote-6QHAGQWY.js +31 -0
- package/dist/bundle/rerank-M4KHEHUZ.js +52 -0
- package/dist/bundle/schemas-JRL3DLMP.js +952 -0
- package/dist/bundle/serve-DNU43ND6.js +199 -0
- package/dist/bundle/server-C3ZHA7AZ.js +77 -0
- package/dist/bundle/server-XJSNF3K5.js +207 -0
- package/dist/bundle/source-A3SBLHC4.js +934 -0
- package/dist/bundle/sqlite-runtime-EMQAC63N.js +20 -0
- package/dist/bundle/state-T45CX7VY.js +36 -0
- package/dist/bundle/store-6LCEVBAZ.js +176 -0
- package/dist/bundle/store-6TZ2FCVA.js +295 -0
- package/dist/bundle/store-CCDNUB6A.js +32 -0
- package/dist/bundle/store-maintenance-command-BRCG6MNA.js +68 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +87 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +9 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +65 -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-shared.d.ts +8 -0
- package/dist/commands/crm-shared.d.ts.map +1 -0
- package/dist/commands/crm-shared.js +93 -0
- package/dist/commands/crm-shared.js.map +1 -0
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +14 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +164 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +22 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +88 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +137 -0
- package/dist/context.js.map +1 -0
- package/dist/crm/activities.d.ts +24 -0
- package/dist/crm/activities.d.ts.map +1 -0
- package/dist/crm/activities.js +214 -0
- package/dist/crm/activities.js.map +1 -0
- package/dist/crm/associations.d.ts +20 -0
- package/dist/crm/associations.d.ts.map +1 -0
- package/dist/crm/associations.js +47 -0
- package/dist/crm/associations.js.map +1 -0
- package/dist/crm/records.d.ts +63 -0
- package/dist/crm/records.d.ts.map +1 -0
- package/dist/crm/records.js +333 -0
- package/dist/crm/records.js.map +1 -0
- package/dist/crm/search.d.ts +57 -0
- package/dist/crm/search.d.ts.map +1 -0
- package/dist/crm/search.js +47 -0
- package/dist/crm/search.js.map +1 -0
- package/dist/crm/source.d.ts +32 -0
- package/dist/crm/source.d.ts.map +1 -0
- package/dist/crm/source.js +369 -0
- package/dist/crm/source.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 +2987 -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 +6499 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +205 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +810 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +1114 -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/hubspot/account.d.ts +12 -0
- package/dist/hubspot/account.d.ts.map +1 -0
- package/dist/hubspot/account.js +23 -0
- package/dist/hubspot/account.js.map +1 -0
- package/dist/hubspot/transport.d.ts +76 -0
- package/dist/hubspot/transport.d.ts.map +1 -0
- package/dist/hubspot/transport.js +346 -0
- package/dist/hubspot/transport.js.map +1 -0
- package/dist/identity.d.ts +7 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +32 -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 +77 -0
- package/dist/program.js.map +1 -0
- package/dist/reasons.d.ts +10 -0
- package/dist/reasons.d.ts.map +1 -0
- package/dist/reasons.js +33 -0
- package/dist/reasons.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/setup/flow.d.ts +2 -0
- package/dist/setup/flow.d.ts.map +1 -0
- package/dist/setup/flow.js +97 -0
- package/dist/setup/flow.js.map +1 -0
- package/dist/setup/texts.en.json +19 -0
- package/dist/setup/texts.es.json +19 -0
- package/dist/setup/texts.ru.json +19 -0
- package/dist/store.d.ts +16 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +34 -0
- package/dist/store.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/dist/whoami.d.ts +19 -0
- package/dist/whoami.d.ts.map +1 -0
- package/dist/whoami.js +15 -0
- package/dist/whoami.js.map +1 -0
- package/package.json +98 -4
- package/skills/hubspot-cli/SKILL.md +97 -0
- package/skills/hubspot-cli/references/api/api-basic.md +462 -0
- package/skills/hubspot-cli/references/api/api-batch.md +149 -0
- package/skills/hubspot-cli/references/api/api-search.md +147 -0
- package/skills/hubspot-cli/references/api.md +15 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `@wirecat/hubspot-cli`. One section per version, newest first.
|
|
4
|
+
|
|
5
|
+
## 0.1.0 — 17.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Started from `@wirecat/cli-template` 0.25.0.
|
|
10
|
+
- **`session start` signs a profile in with a HubSpot service key or a private app token.** The key is read hidden or
|
|
11
|
+
from stdin, never as an argument, checked against the account, and kept in the keyring with the account's id. A
|
|
12
|
+
second profile on the same account is refused. `WCHUBSPOT_TOKEN` works in CI beside `WCHUBSPOT_ACCOUNT`, the
|
|
13
|
+
account's id. See [installation](docs/installation.md).
|
|
14
|
+
- **`sync` copies the account's CRM into WireCat's shared store.** Deals, contacts, companies, leads (Sales Hub
|
|
15
|
+
Professional or Enterprise), owners, pipelines and properties, and the notes, calls, e-mails, meetings and tasks
|
|
16
|
+
once the activities setting is on. `deals list`, `pipelines`, `changes list` and `search all` then answer offline. A
|
|
17
|
+
key names no user, so every profile reads the whole copy: filter by `owner:<owner id>`, not `owner:me`.
|
|
18
|
+
- **`people`, `organizations` and `users` read contacts, companies and owners live from the account.**
|
|
19
|
+
- **`api` offers every read operation of HubSpot's CRM API, version 2026-03, from its 15 specs.** One command per
|
|
20
|
+
operation, each with its own permission key. This release only reads: the API's writes are not offered, and
|
|
21
|
+
`api show` on one says so.
|
|
22
|
+
- **A spent daily allowance ends the request at once and says when it comes back.** HubSpot shares one daily
|
|
23
|
+
allowance among every app on the account. `hubspot` reports `hubspot.daily-limit` with the wait to the account's
|
|
24
|
+
midnight, and stops every process on the account from asking again before then. The ten-second limit is waited
|
|
25
|
+
out.
|
|
26
|
+
- **`WCHUBSPOT_ACCOUNT` is checked against `WCHUBSPOT_TOKEN` before anything is written.** A `sync` with an id of
|
|
27
|
+
another account stops with `account.mismatch`, naming both ids, so one account's CRM is never filed under another's.
|
|
28
|
+
`session status --check` with the token alone prints the id to set. See
|
|
29
|
+
[troubleshooting](docs/troubleshooting.md).
|
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,257 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/WireCatLabs/hubspot-cli/main/docs/images/social-preview.png" alt="HubSpot CRM CLI for AI agents" width="100%">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
# hubspot: HubSpot CRM CLI for AI agents
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
Know where every deal stands and what changed overnight, without opening HubSpot. Ask your AI agent, and it answers
|
|
9
|
+
from a copy of your deals, contacts and companies on your computer, even offline.
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="docs/index.md">Docs</a> ·
|
|
14
|
+
<a href="docs/usage.md">Examples</a> ·
|
|
15
|
+
<a href="https://discord.gg/DebENqbRrJ">Discord</a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<a href="https://github.com/WireCatLabs/hubspot-cli/actions/workflows/ci.yml"><img src="https://github.com/WireCatLabs/hubspot-cli/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
20
|
+
<a href="https://github.com/WireCatLabs/hubspot-cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License: Apache 2.0"></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
- **Ask instead of clicking.** "Which deals are stuck in Contract sent?" gets an answer in a second, in Claude Code,
|
|
24
|
+
Codex or any app that speaks MCP.
|
|
25
|
+
- **The morning starts with what changed.** `changes list` shows what each sync saw change, and a schedule sends it to
|
|
26
|
+
you.
|
|
27
|
+
- **Read only.** This release changes nothing in HubSpot. The key it signs in with needs read scopes only.
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
You: What changed in the CRM since yesterday?
|
|
31
|
+
Agent: (runs hubspot work changes list "at>=1d")
|
|
32
|
+
· New deal "Example kitchen", 15 000 EUR, in Appointment scheduled
|
|
33
|
+
· "Example office" moved to Closed won, 8 200 EUR
|
|
34
|
+
You: Who is the contact on Example kitchen?
|
|
35
|
+
Agent: (runs hubspot work deals show deal:12)
|
|
36
|
+
Anna Example, anna@example.com, at Example LLC.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
*Invented deals, illustrative output.*
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
A super admin of the HubSpot account makes one key first: a **service key** (Development → Keys → Service keys) or
|
|
44
|
+
the access token of a legacy **private app**. Give it these read scopes:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
crm.objects.contacts.read crm.objects.companies.read crm.objects.deals.read
|
|
48
|
+
crm.objects.owners.read crm.schemas.contacts.read crm.schemas.companies.read
|
|
49
|
+
crm.schemas.deals.read sales-email-read
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Add `crm.objects.leads.read` on Sales Hub Professional or Enterprise to read leads, and `tickets` to read tickets
|
|
53
|
+
through `api`. A scope you leave out fails only the commands that need it.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
npm install -g @wirecat/hubspot-cli
|
|
57
|
+
hubspot skill install # the agent skill, for Claude Code, Codex and Gemini CLI
|
|
58
|
+
hubspot work session start # paste the key when asked, it goes to the keyring
|
|
59
|
+
hubspot work sync # copy your deals, contacts and companies
|
|
60
|
+
hubspot work deals list status:open
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`work` is a profile, a name you choose for this account. It is the first word of every command that uses the
|
|
64
|
+
account. You need Node.js 22.16 or a later 22.x, or Node.js 24 or later. `hubspot doctor` shows what is set up and
|
|
65
|
+
needs no network.
|
|
66
|
+
|
|
67
|
+
More: [install and connect](docs/installation.md)
|
|
68
|
+
|
|
69
|
+
## What you can do
|
|
70
|
+
|
|
71
|
+
- **Know the pipeline.** Open deals with their stage, amount and owner, the board of each pipeline and how many deals
|
|
72
|
+
stand in each stage.
|
|
73
|
+
- **See what changed.** Deals made, moved, won and lost, given another owner, and new activities, since any time you
|
|
74
|
+
name.
|
|
75
|
+
- **Find a client.** Any contact or company in the account, read live, with its phones and e-mails.
|
|
76
|
+
- **Follow the work on a deal.** Notes, calls, e-mails, meetings and tasks, copied with the deals.
|
|
77
|
+
- **Reach past the copy.** Every read operation of HubSpot's CRM API is a command of its own, tickets included.
|
|
78
|
+
- **Search across your work.** A deal turns up next to the chat where you agreed on it and the meeting where you
|
|
79
|
+
discussed it, if you use the other WireCat tools.
|
|
80
|
+
|
|
81
|
+
## For AI agents
|
|
82
|
+
|
|
83
|
+
Ask in plain words. The agent picks the commands.
|
|
84
|
+
|
|
85
|
+
> *"Use hubspot. Which deals are waiting in Contract sent, and for how much?"*
|
|
86
|
+
> *"Use hubspot. What changed in the CRM since yesterday?"*
|
|
87
|
+
|
|
88
|
+
- **Claude Code, Codex, Gemini CLI, OpenClaw** and other agents with a terminal run `hubspot` themselves.
|
|
89
|
+
`hubspot skill install` teaches them how.
|
|
90
|
+
- **Claude Desktop, Cursor** and other MCP apps connect to `hubspot work mcp serve`.
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
hubspot work mcp add claude-code --allow-writes # or: codex
|
|
94
|
+
hubspot work mcp config # the entry for Claude Desktop, Cursor and others
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
`--allow-writes` confirms you saw that the server offers commands that change something on this computer, such as
|
|
98
|
+
`sync` and schedules. None of them changes anything in HubSpot. Text from the account reaches the agent marked as
|
|
99
|
+
untrusted, so the agent reads it as data, never as instructions. The sign-in commands are not offered over MCP.
|
|
100
|
+
|
|
101
|
+
More: [agents and MCP](docs/usage.md#agents)
|
|
102
|
+
|
|
103
|
+
## Why hubspot
|
|
104
|
+
|
|
105
|
+
- **A copy of your CRM on your computer.** `sync` copies your deals with their contacts and companies, and the next
|
|
106
|
+
sync takes only the changes. Lists, the pipeline and search then answer with no request to HubSpot, also offline.
|
|
107
|
+
- **The key stays in the system keyring.** It never appears in output, errors or run records, and no command takes it
|
|
108
|
+
as an argument.
|
|
109
|
+
- **A permission on every command.** Each command and each read operation of HubSpot's API has its own level, so
|
|
110
|
+
you decide what an agent may read.
|
|
111
|
+
- **Your CRM beside your other context.** Deals sit in the same local store as your messages, notes and meetings from
|
|
112
|
+
the other WireCat tools, and `search all` finds them together.
|
|
113
|
+
- **As many accounts as you need.** Each HubSpot account is a profile you name in the command, and none is ever picked
|
|
114
|
+
for you.
|
|
115
|
+
- **Free and open source.** Apache 2.0.
|
|
116
|
+
|
|
117
|
+
## Main features
|
|
118
|
+
|
|
119
|
+
### Deals and the pipeline
|
|
120
|
+
|
|
121
|
+
```sh
|
|
122
|
+
hubspot work deals list stage:"Contract sent" # from the copy, offline too
|
|
123
|
+
hubspot work deals show deal:12 # one deal with its stage, amount and the people on it
|
|
124
|
+
hubspot work pipelines list # the deal pipelines and their stages
|
|
125
|
+
hubspot work leads list # leads, on Sales Hub Professional or Enterprise
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Contacts, companies and owners
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
hubspot work people list "Anna" # any contact in the account, read live
|
|
132
|
+
hubspot work organizations list "Example LLC" # any company, read live
|
|
133
|
+
hubspot work users list # the account's owners
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Activities and what changed
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
hubspot work activities list # notes, calls, e-mails, meetings and tasks
|
|
140
|
+
hubspot work changes list "at>=1d" # what changed in the last day
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Activities are copied once you turn on the activities setting. `activities list` names the setting.
|
|
144
|
+
|
|
145
|
+
### Any read of the API
|
|
146
|
+
|
|
147
|
+
```sh
|
|
148
|
+
hubspot work api list # every read operation, without calling HubSpot
|
|
149
|
+
hubspot work api deals-list --limit 5 # one of them
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`api` offers every read operation of HubSpot's CRM API version 2026-03, from its 15 specs, each with its own
|
|
153
|
+
permission. Tickets are read here.
|
|
154
|
+
|
|
155
|
+
### With your other sources
|
|
156
|
+
|
|
157
|
+
```sh
|
|
158
|
+
hubspot work search all "Example LLC" # the deal beside your other WireCat data
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
More: [use it](docs/usage.md) · [command reference](docs/commands.md)
|
|
162
|
+
|
|
163
|
+
### How it works
|
|
164
|
+
|
|
165
|
+
- **A key, not a user.** A service key or a private app token belongs to the account, not to a person. `hubspot`
|
|
166
|
+
copies the whole account, and `owner:me` names nobody: filter by `owner:<owner id>` from `users list`.
|
|
167
|
+
- **Polite to HubSpot.** `hubspot` sends at most 4 requests a second for each profile, under HubSpot's limits on
|
|
168
|
+
every plan. When the account has spent its daily allowance, it says when the allowance comes back.
|
|
169
|
+
- **Made for scripts.** `--json` prints one JSON value, and every error has a code to branch on.
|
|
170
|
+
|
|
171
|
+
## Sign-in and profiles
|
|
172
|
+
|
|
173
|
+
A profile is a name you choose for one HubSpot account, such as `work`. It is the first word of every command that
|
|
174
|
+
uses the account, and none is ever assumed: a command without one stops and names the choices.
|
|
175
|
+
`WCHUBSPOT_PROFILE=work` sets it for one shell session.
|
|
176
|
+
|
|
177
|
+
`hubspot work session start` asks for the key without showing it, or reads it from stdin. It checks the key against
|
|
178
|
+
the account and keeps it in the system keyring. `--credential-storage file` keeps it in a private file instead.
|
|
179
|
+
`session status --check` names the account the key reads, `session end` forgets the key on this computer, and
|
|
180
|
+
`session list` lists the profiles. `account remove --keep-data` or `--delete-data` forgets a profile, keeping or
|
|
181
|
+
deleting its copy of the CRM.
|
|
182
|
+
|
|
183
|
+
A second profile that signs in to the same HubSpot account is refused, so one copy is never synced twice.
|
|
184
|
+
|
|
185
|
+
More: [sign in](docs/installation.md#sign-in) · [profiles](docs/usage.md#the-profile-comes-first)
|
|
186
|
+
|
|
187
|
+
## Settings and permissions
|
|
188
|
+
|
|
189
|
+
Each profile has a permission level for every command and every API operation: `allow`, `ask`, `readonly` or `deny`.
|
|
190
|
+
A command's key is its name, such as `deals.list`. An API operation's key is `api.<command>`, such as
|
|
191
|
+
`api.deals-search`, and `api` covers them all.
|
|
192
|
+
|
|
193
|
+
```sh
|
|
194
|
+
hubspot work config set permissions.people deny # this profile reads no contacts
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Over MCP nobody is there to answer, so `ask` lets the command run. Set a key to `readonly` or `deny` to stop an
|
|
198
|
+
agent. `hubspot work mcp serve --permission people.list=deny` makes a key stricter for one server only, never looser.
|
|
199
|
+
`WCHUBSPOT_READ_ONLY=1` refuses every write.
|
|
200
|
+
|
|
201
|
+
More: [settings and permissions](docs/configuration.md#permissions)
|
|
202
|
+
|
|
203
|
+
## Limits
|
|
204
|
+
|
|
205
|
+
- `hubspot` is tested against a fake account built from HubSpot's API reference, not yet against a live account.
|
|
206
|
+
- Read only: no command changes deals, contacts or companies in this release, `api` included.
|
|
207
|
+
- Tickets are read only through `api`, not copied.
|
|
208
|
+
- Leads need Sales Hub Professional or Enterprise.
|
|
209
|
+
- Before 1.0, a minor version may change commands, `--json` fields and MCP tools. The changelog marks each such
|
|
210
|
+
change.
|
|
211
|
+
|
|
212
|
+
## Security
|
|
213
|
+
|
|
214
|
+
The key works like a password: anyone who has it can read what its scopes allow. `hubspot` keeps it in the system
|
|
215
|
+
keyring and never prints it. `hubspot` cannot revoke a key, so after a leak delete or rotate it in HubSpot.
|
|
216
|
+
|
|
217
|
+
More: [security](docs/security.md) · Report a vulnerability: [SECURITY.md](SECURITY.md)
|
|
218
|
+
|
|
219
|
+
## When something goes wrong
|
|
220
|
+
|
|
221
|
+
```sh
|
|
222
|
+
hubspot doctor # what is set up, without connecting
|
|
223
|
+
hubspot work session status --check # whether the key works, and for which account
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
More: [troubleshooting](docs/troubleshooting.md) · Ask on [Discord](https://discord.gg/DebENqbRrJ) · Bugs go to this
|
|
227
|
+
repository's [issues](https://github.com/WireCatLabs/hubspot-cli/issues).
|
|
228
|
+
|
|
229
|
+
## Documentation
|
|
230
|
+
|
|
231
|
+
Every page is in [docs/](docs/index.md): [install](docs/installation.md), [use it](docs/usage.md),
|
|
232
|
+
[commands](docs/commands.md), [settings](docs/configuration.md), [troubleshooting](docs/troubleshooting.md) and
|
|
233
|
+
[security](docs/security.md).
|
|
234
|
+
|
|
235
|
+
## Development
|
|
236
|
+
|
|
237
|
+
```sh
|
|
238
|
+
pnpm install && pnpm build
|
|
239
|
+
node dist/bin/hubspot.js --help
|
|
240
|
+
pnpm test
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Tests run against a fake account built from HubSpot's API reference, with invented records and an injected keyring.
|
|
244
|
+
Nothing reaches a real account. `pnpm release:check` runs every check a release needs.
|
|
245
|
+
|
|
246
|
+
More: [testing](docs/dev/TESTING.md) · [design](docs/dev/DESIGN.md)
|
|
247
|
+
|
|
248
|
+
Pull requests, bug reports and ideas go to [issues](https://github.com/WireCatLabs/hubspot-cli/issues).
|
|
249
|
+
|
|
250
|
+
## Part of WireCat
|
|
251
|
+
|
|
252
|
+
`hubspot` is one of the [WireCat](https://wirecat.dev) tools: open-source, local-first command-line tools that give AI
|
|
253
|
+
agents your context from messengers, mail, calendars, documents and CRMs. Each one works on its own.
|
|
254
|
+
|
|
255
|
+
## License
|
|
256
|
+
|
|
257
|
+
[Apache 2.0](LICENSE)
|