@wirecat/hubspot-cli 0.1.0 → 0.3.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 +41 -0
- package/README.md +40 -16
- package/contracts/wirecat.json +1516 -173
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/agent-A7ARC3QB.js +40 -0
- package/dist/bundle/{all-profiles-64JAUYW4.js → all-profiles-6452VSJB.js} +64 -22
- package/dist/bundle/{anthropic-VJOS4OUM.js → anthropic-VQUOVYOW.js} +6 -6
- package/dist/bundle/{app-server-422MCA7S.js → app-server-FFYKM37G.js} +79 -68
- package/dist/bundle/{bun-M3J2QTR3.js → bun-AJPJ4ZUN.js} +2 -2
- package/dist/bundle/{bun-sqlite-IX3XYA5F.js → bun-sqlite-AGXGSF6D.js} +7 -7
- package/dist/bundle/{chunk-N2XADGL4.js → chunk-2A64XS22.js} +4 -4
- package/dist/bundle/{chunk-HTAN663T.js → chunk-2HYGCLKN.js} +93 -565
- package/dist/bundle/{chunk-FOZYMDRL.js → chunk-2NCO4E4T.js} +6 -6
- package/dist/bundle/{chunk-FBCCBCFH.js → chunk-2PRVWEJC.js} +3 -3
- package/dist/bundle/{chunk-LOBVOGOE.js → chunk-3DIXAEGH.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3I2FGNWO.js} +1 -1
- package/dist/bundle/{chunk-65TWQ7BV.js → chunk-3PEKYGZ3.js} +2 -2
- package/dist/bundle/{chunk-DRWWJLI6.js → chunk-3R4KRNUZ.js} +8 -8
- package/dist/bundle/{chunk-2VGD63G6.js → chunk-3TEFE6YU.js} +7 -7
- package/dist/bundle/{chunk-BKXDHU3G.js → chunk-3WIVJJNB.js} +19 -17
- package/dist/bundle/{chunk-TI46WQXQ.js → chunk-4DNHXRCJ.js} +7 -7
- package/dist/bundle/{chunk-QU25DA5N.js → chunk-5AYKCKSE.js} +11 -11
- package/dist/bundle/chunk-5HD64ETI.js +561 -0
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-5K3FGXZH.js} +1 -1
- package/dist/bundle/{chunk-24ERVFJP.js → chunk-5YNAVVCW.js} +3 -3
- package/dist/bundle/chunk-77CUE3VX.js +46 -0
- package/dist/bundle/{chunk-36ITRDYY.js → chunk-7LQRXVQ3.js} +783 -482
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-7NZT7Y55.js} +1 -1
- package/dist/bundle/{chunk-C32AKHTY.js → chunk-7UEL65GQ.js} +35 -12
- package/dist/bundle/chunk-7VHBS5BJ.js +108 -0
- package/dist/bundle/{chunk-O55RWNSH.js → chunk-A6UFH3QU.js} +4 -4
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-ABXVU5O4.js} +8 -1
- package/dist/bundle/{chunk-4W6BMH45.js → chunk-AF7DANIR.js} +2 -100
- package/dist/bundle/{chunk-LNV33FDC.js → chunk-AFL2C4JR.js} +60 -50
- package/dist/bundle/{chunk-2VGZRYEH.js → chunk-ARTJLL7W.js} +6 -6
- package/dist/bundle/chunk-AVUMH42T.js +194 -0
- package/dist/bundle/chunk-B2W3C4N6.js +338 -0
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-B3EH22CO.js} +1 -1
- package/dist/bundle/{chunk-E52JAS35.js → chunk-BAUK2MD5.js} +6 -6
- package/dist/bundle/{chunk-JLDBMEKZ.js → chunk-BN22EKQQ.js} +2 -2
- package/dist/bundle/{chunk-DB2XKHI4.js → chunk-BUGROVF3.js} +2 -2
- package/dist/bundle/{chunk-DSP36YHQ.js → chunk-CBCEMFCF.js} +2 -2
- package/dist/bundle/{chunk-WQBX7XYP.js → chunk-CYADK744.js} +1559 -1888
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-DQB5JMTY.js} +1 -1
- package/dist/bundle/{chunk-JRCPCVPI.js → chunk-DQP2GAAO.js} +75 -66
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-DSRXCLPO.js} +1 -1
- package/dist/bundle/{chunk-UUMUL4L3.js → chunk-DW23LM47.js} +2 -2
- package/dist/bundle/{chunk-TKVL2C3B.js → chunk-E4X7JAFC.js} +3 -3
- package/dist/bundle/{chunk-NUU4WZVL.js → chunk-EE4JSYGZ.js} +3 -3
- package/dist/bundle/{chunk-NWHEHV3K.js → chunk-EMOVVERN.js} +5 -5
- package/dist/bundle/{chunk-PVKF24ZW.js → chunk-FIVD4HM4.js} +8 -8
- package/dist/bundle/{chunk-QJW35N5V.js → chunk-GC6FLHZF.js} +12 -12
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-GRFICQTZ.js} +1 -1
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-HPZRUY6S.js} +1 -1
- package/dist/bundle/{chunk-CLAN3FES.js → chunk-IBTMK5KD.js} +54 -34
- package/dist/bundle/{chunk-5A6ZYNAQ.js → chunk-IQ2XZ62J.js} +18 -18
- package/dist/bundle/{chunk-DBEQI5YM.js → chunk-ITGNDZRR.js} +3 -3
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-IXZLMFPO.js} +1 -1
- package/dist/bundle/{chunk-TOSCB4SO.js → chunk-J5P5VSRG.js} +16 -10
- package/dist/bundle/{chunk-VIEYMDBR.js → chunk-J6C2QWL5.js} +3 -3
- package/dist/bundle/{chunk-ZBDSHFG4.js → chunk-JG7YMHNB.js} +3427 -3284
- package/dist/bundle/{chunk-RMIYKDUL.js → chunk-JK2SNLU5.js} +17 -17
- package/dist/bundle/{chunk-43EKCUBJ.js → chunk-JP2HJXFO.js} +3 -3
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-JUKAIXKY.js} +1 -1
- package/dist/bundle/{chunk-5GBUCHRU.js → chunk-KO4VR5NK.js} +4 -4
- package/dist/bundle/{chunk-PPHBRESD.js → chunk-KVXEEKBB.js} +2 -2
- package/dist/bundle/{chunk-SDQGB4KB.js → chunk-L433IDOX.js} +9 -9
- package/dist/bundle/chunk-LA3YU4K7.js +40 -0
- package/dist/bundle/{chunk-ECEZOLOD.js → chunk-LKSNISYV.js} +4 -4
- package/dist/bundle/{chunk-5K7QLJMM.js → chunk-LT5KE44Q.js} +226 -226
- package/dist/bundle/chunk-M763RNWP.js +733 -0
- package/dist/bundle/chunk-M7XLG6AN.js +353 -0
- package/dist/bundle/{chunk-IMJQRPLN.js → chunk-NNMU2TDU.js} +1 -1
- package/dist/bundle/chunk-NTQBS2JL.js +52 -0
- package/dist/bundle/{chunk-HCAZV5NP.js → chunk-NZGI74GS.js} +6 -6
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-O3VM5PTJ.js} +1 -1
- package/dist/bundle/chunk-OPVNUI4M.js +195 -0
- package/dist/bundle/{chunk-7ELMWE3P.js → chunk-PHXOL5HZ.js} +176 -160
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-B3MANLNK.js → chunk-PLRUUXK7.js} +19 -233
- package/dist/bundle/{chunk-RR5MX5TM.js → chunk-PMP37KLR.js} +4 -4
- package/dist/bundle/{chunk-FTFV3HFW.js → chunk-Q27QAB4X.js} +9 -9
- package/dist/bundle/{chunk-2TWQIWWG.js → chunk-QFZD6MTF.js} +35 -29
- package/dist/bundle/{chunk-2QZK5BEP.js → chunk-RVWGFD32.js} +30 -15
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-QGFX5MXL.js → chunk-SEELWPRD.js} +9 -9
- package/dist/bundle/{chunk-SAKK2YRU.js → chunk-SMTTIKZ5.js} +12 -12
- package/dist/bundle/{chunk-X7XUX7A4.js → chunk-TDQJS3JG.js} +10 -10
- package/dist/bundle/{chunk-HC5ZWE5X.js → chunk-TIHDBKA7.js} +2 -2
- package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-U6XA3OOM.js} +2 -2
- package/dist/bundle/{chunk-NXERIDPJ.js → chunk-VQEAZXTV.js} +7 -7
- package/dist/bundle/{chunk-P5BHKKBI.js → chunk-VW5F6FK3.js} +4 -4
- package/dist/bundle/{chunk-XRREFEIW.js → chunk-WCQW4GYO.js} +7 -7
- package/dist/bundle/{chunk-H3TNVEQX.js → chunk-WGBVRDY3.js} +29 -4
- package/dist/bundle/chunk-WRCKE5ND.js +80 -0
- package/dist/bundle/{chunk-TBJYLC5K.js → chunk-X5S5KUSU.js} +75 -75
- package/dist/bundle/command-contract-R2FGN7CQ.js +40 -0
- package/dist/bundle/{command-server-entry-DJKVVZCQ.js → command-server-entry-GJSMDSNE.js} +29 -29
- package/dist/bundle/{decode-FC65Y4IV.js → decode-6PLXHVHW.js} +6 -6
- package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-TAQ7635E.js} +8 -8
- package/dist/bundle/{dist-MYZZKZJ7.js → dist-7TGU56B2.js} +1 -1
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-UZ7QLRE2.js} +2 -2
- package/dist/bundle/{embed-VNBZFPYH.js → embed-AWLL4EBF.js} +7 -7
- package/dist/bundle/{embedder-6U4NOFRO.js → embedder-MM225YJ6.js} +10 -10
- package/dist/bundle/{failure-FZ6VYKEQ.js → failure-MR2XVHFP.js} +3 -3
- package/dist/bundle/first-run-MAUI6QJ7.js +29 -0
- package/dist/bundle/first-screen-SCDV7TXT.js +40 -0
- package/dist/bundle/hubspot.js +26 -26
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-ZJ7U3QUE.js} +1 -1
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-CNV7F2XZ.js} +2 -2
- package/dist/bundle/meeting-combined-EL5XZIJ5.js +25 -0
- package/dist/bundle/meeting-model-OYXB2NOE.js +25 -0
- package/dist/bundle/{meeting-semantic-JY3OGCBS.js → meeting-semantic-S3DBB7XD.js} +7 -7
- package/dist/bundle/{node-CXZIFHZC.js → node-HGCZGZ4R.js} +2 -2
- package/dist/bundle/{node-sqlite-P3O7XN7Q.js → node-sqlite-RKYSRKEB.js} +8 -8
- package/dist/bundle/oauth-PYDCAQ7Y.js +20 -0
- package/dist/bundle/{open-F4P6YV54.js → open-UCDSQUN2.js} +6 -6
- package/dist/bundle/{openai-4AICLIK3.js → openai-Y4F5ZC7O.js} +16 -16
- package/dist/bundle/{process-5RUXWGYS.js → process-P7FB7YO7.js} +1 -1
- package/dist/bundle/{program-POG5GHUQ.js → program-2D5D32HK.js} +835 -261
- package/dist/bundle/{prompt-NFMDVBZ4.js → prompt-E5TKZ37Q.js} +6 -6
- package/dist/bundle/{recognize-DKN3RY4V.js → recognize-5NYPTSLT.js} +5 -5
- package/dist/bundle/{remote-6QHAGQWY.js → remote-U4LUAHF2.js} +10 -10
- package/dist/bundle/{rerank-M4KHEHUZ.js → rerank-AJAVKK5L.js} +8 -8
- package/dist/bundle/{schemas-JRL3DLMP.js → schemas-QLQ2K6DL.js} +7 -33
- package/dist/bundle/{serve-DNU43ND6.js → serve-4UJ3R5IP.js} +11 -11
- package/dist/bundle/server-CN6VQNNF.js +86 -0
- package/dist/bundle/{server-XJSNF3K5.js → server-OJPCTV77.js} +73 -61
- package/dist/bundle/{source-A3SBLHC4.js → source-VHDK74YS.js} +133 -399
- package/dist/bundle/{sqlite-runtime-EMQAC63N.js → sqlite-runtime-KLEA4XAU.js} +7 -7
- package/dist/bundle/{state-T45CX7VY.js → state-COGSYMVH.js} +7 -7
- package/dist/bundle/{store-6TZ2FCVA.js → store-BJXCSP26.js} +25 -24
- package/dist/bundle/store-HXA2MRWI.js +32 -0
- package/dist/bundle/{store-6LCEVBAZ.js → store-V5UMSWK4.js} +27 -22
- package/dist/bundle/store-maintenance-command-AC7GGLYC.js +73 -0
- package/dist/bundle/surface-ZZNG3OW2.js +72 -0
- package/dist/bundle/writer-CZYA657G.js +86 -0
- package/dist/commands/api.d.ts +4 -4
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +12 -7
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/crm-shared.d.ts +2 -2
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +20 -4
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/config.d.ts +46 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +133 -12
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/crm/source.d.ts +7 -2
- package/dist/crm/source.d.ts.map +1 -1
- package/dist/crm/source.js +26 -29
- package/dist/crm/source.js.map +1 -1
- package/dist/crm/writer.d.ts +15 -0
- package/dist/crm/writer.d.ts.map +1 -0
- package/dist/crm/writer.js +199 -0
- package/dist/crm/writer.js.map +1 -0
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +6 -116
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +160 -0
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/hubspot/transport.d.ts +6 -1
- package/dist/hubspot/transport.d.ts.map +1 -1
- package/dist/hubspot/transport.js +13 -5
- package/dist/hubspot/transport.js.map +1 -1
- package/dist/identity.js +3 -3
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -1
- package/dist/program.js.map +1 -1
- package/dist/setup/texts.en.json +3 -3
- package/dist/setup/texts.es.json +3 -3
- package/dist/setup/texts.ru.json +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/hubspot-cli/SKILL.md +13 -8
- package/skills/hubspot-cli/references/api/api-advanced.md +51 -0
- package/skills/hubspot-cli/references/api/api-basic.md +602 -0
- package/skills/hubspot-cli/references/api/api-batch.md +575 -0
- package/skills/hubspot-cli/references/api.md +3 -2
- package/dist/bundle/command-contract-C6CBFXZF.js +0 -40
- package/dist/bundle/first-run-RPIJZEDT.js +0 -29
- package/dist/bundle/first-screen-RTVMGHAE.js +0 -40
- package/dist/bundle/meeting-combined-L5AGBPYX.js +0 -25
- package/dist/bundle/meeting-model-NTB4RK3F.js +0 -25
- package/dist/bundle/oauth-HNCY4B2S.js +0 -20
- package/dist/bundle/server-C3ZHA7AZ.js +0 -77
- package/dist/bundle/store-CCDNUB6A.js +0 -32
- package/dist/bundle/store-maintenance-command-BRCG6MNA.js +0 -68
- package/dist/commands/comments.d.ts +0 -3
- package/dist/commands/comments.d.ts.map +0 -1
- package/dist/commands/comments.js +0 -114
- package/dist/commands/comments.js.map +0 -1
- package/dist/sample/comments.d.ts +0 -61
- package/dist/sample/comments.d.ts.map +0 -1
- package/dist/sample/comments.js +0 -39
- package/dist/sample/comments.js.map +0 -1
- package/dist/sample/records.d.ts +0 -16
- package/dist/sample/records.d.ts.map +0 -1
- package/dist/sample/records.js +0 -22
- package/dist/sample/records.js.map +0 -1
- package/dist/sample/transport.d.ts +0 -42
- package/dist/sample/transport.d.ts.map +0 -1
- package/dist/sample/transport.js +0 -153
- package/dist/sample/transport.js.map +0 -1
package/dist/setup/texts.ru.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"key.title": "Создайте ключ",
|
|
3
|
-
"key.intro": "hubspot читает ваши сделки, контакты и компании из одного аккаунта HubSpot.
|
|
3
|
+
"key.intro": "hubspot читает ваши сделки, контакты и компании из одного аккаунта HubSpot. Меняет их, только если вы дадите ключу и права на запись.",
|
|
4
4
|
"key.service": "Это один раз делает суперадминистратор или пользователь с правом HubSpot **Developer tools access** (названия из английского интерфейса):\n\n1. Откройте **Development**, затем в меню слева **Keys → Service keys**. В некоторых аккаунтах это **Settings → Integrations → Service keys**.\n2. Нажмите **Create service key** и назовите ключ *WireCat*.\n3. Нажмите **Add new scope**, отметьте каждое право на чтение ниже и нажмите **Update**. Ключ получает только те права, что есть у его автора.\n4. Нажмите **Create** и подтвердите.\n\nИнструкция HubSpot: https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys\n\nПрава на чтение:",
|
|
5
|
-
"key.leads": "На Sales Hub Professional или Enterprise добавьте `crm.objects.leads.read`, чтобы читать и лиды. Добавьте `tickets`, если `api` должен читать тикеты.",
|
|
5
|
+
"key.leads": "На Sales Hub Professional или Enterprise добавьте `crm.objects.leads.read`, чтобы читать и лиды. Добавьте `tickets`, если `api` должен читать тикеты. Чтобы hubspot мог менять записи, добавьте `crm.objects.contacts.write`, `crm.objects.companies.write` и `crm.objects.deals.write`; без них ключ только читает.",
|
|
6
6
|
"key.private.title": "Уже есть старое приватное приложение?",
|
|
7
7
|
"key.private": "HubSpot перестал создавать приватные приложения 26 октября 2026 года, но токен существующего работает. Дайте ему те же права на чтение и скопируйте токен доступа на вкладке **Auth** приложения.",
|
|
8
8
|
"token.title": "Вставьте ключ",
|
|
9
9
|
"token.where": "В **Keys → Service keys** нажмите на имя ключа, затем **Show** и **Copy**. Токен приватного приложения лежит на его вкладке **Auth**. Оба начинаются с `pat-`.",
|
|
10
10
|
"token.label": "Сервисный ключ или токен доступа",
|
|
11
11
|
"token.hint": "Хранится в системной связке ключей, а без неё в файле, который можете прочитать только вы.",
|
|
12
|
-
"token.rights": "Ключ читает только то, что разрешают его права. Каждый профиль входит в свой аккаунт HubSpot: второй профиль на том же аккаунте отклоняется.",
|
|
12
|
+
"token.rights": "Ключ читает и меняет только то, что разрешают его права. Каждый профиль входит в свой аккаунт HubSpot: второй профиль на том же аккаунте отклоняется.",
|
|
13
13
|
"check.title": "Проверяем ключ",
|
|
14
14
|
"check.body": "hubspot спрашивает у HubSpot, чей аккаунт у этого ключа. Ключ сохранится, только если HubSpot ответит.",
|
|
15
15
|
"failed.title": "Проверка не прошла",
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/hubspot-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "HubSpot CRM CLI for AI agents: a local copy of deals, contacts and companies, an MCP server and every
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "HubSpot CRM CLI for AI agents: a local copy of deals, contacts and companies, an MCP server, deal and contact writes, and every operation of HubSpot's CRM API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hubspot",
|
|
7
7
|
"hubspot-api",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"spec:sync": "node --experimental-strip-types scripts/sync-spec.ts"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@wirecat/cli-base": "0.
|
|
76
|
-
"@wirecat/cli-core": "0.
|
|
75
|
+
"@wirecat/cli-base": "0.119.0",
|
|
76
|
+
"@wirecat/cli-core": "0.699.0",
|
|
77
77
|
"commander": "15.0.0",
|
|
78
78
|
"valibot": "1.5.0"
|
|
79
79
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hubspot-cli
|
|
3
|
-
description: "Use hubspot to read a HubSpot account's CRM - deals, leads, pipelines and stages, contacts (people), companies (organizations), owners (users), notes, calls, e-mails, meetings and tasks - with the owner's profile and JSON answers. Deals with their contacts and companies are synced into the local WireCat store and read offline, and `changes list` shows what changed for a morning digest. Use when a question could be answered from the owner's HubSpot sales data (how a deal stands, what is open, what changed, who a client is), or
|
|
3
|
+
description: "Use hubspot to read and change a HubSpot account's CRM - deals, leads, pipelines and stages, contacts (people), companies (organizations), owners (users), notes, calls, e-mails, meetings and tasks - with the owner's profile and JSON answers. Deals with their contacts and companies are synced into the local WireCat store and read offline, and `changes list` shows what changed for a morning digest. Use when a question could be answered from the owner's HubSpot sales data (how a deal stands, what is open, what changed, who a client is), to create, update, move or close a deal or change a contact or company, or to set hubspot up."
|
|
4
4
|
metadata:
|
|
5
5
|
openclaw:
|
|
6
6
|
requires:
|
|
@@ -13,8 +13,9 @@ metadata:
|
|
|
13
13
|
|
|
14
14
|
# hubspot: a HubSpot account's CRM from the command line
|
|
15
15
|
|
|
16
|
-
`hubspot` reads the owner's **real company CRM**.
|
|
17
|
-
|
|
16
|
+
`hubspot` reads and changes the owner's **real company CRM**. Every write goes through the owner's permissions: a
|
|
17
|
+
delete and every `api` write ask first at a terminal, while over MCP only `deny` stops one, and a key without write
|
|
18
|
+
scopes changes nothing.
|
|
18
19
|
|
|
19
20
|
Find only the commands the task needs: `hubspot commands info deals list --json` is one command's contract,
|
|
20
21
|
`hubspot help deals list` the short help with its query fields, `hubspot commands --json` the whole tree.
|
|
@@ -60,7 +61,7 @@ The first word is the profile: `hubspot work deals list` is profile `work`. Ther
|
|
|
60
61
|
|
|
61
62
|
## The raw API
|
|
62
63
|
|
|
63
|
-
`api` has one command per
|
|
64
|
+
`api` has one command per operation of HubSpot's CRM API, version 2026-03, named like `deals-search` or
|
|
64
65
|
`contacts-list`. [references/api.md](references/api.md) (`hubspot skill show api`) lists the groups, and
|
|
65
66
|
`hubspot skill show api-<group>` one group with each command's flags.
|
|
66
67
|
|
|
@@ -70,8 +71,11 @@ The first word is the profile: `hubspot work deals list` is profile `work`. Ther
|
|
|
70
71
|
field the spec requires: `--body '{"after":"0","filterGroups":[],"limit":5,"properties":["dealname","amount"],"sorts":[]}'`.
|
|
71
72
|
- A search returns at most 10,000 results and HubSpot allows about 5 searches a second for the account. Prefer the
|
|
72
73
|
store for anything `deals list` can answer.
|
|
73
|
-
- **
|
|
74
|
-
|
|
74
|
+
- **Writes.** `deals create|update|move|close|delete`, `people create|update` and `organizations create|update`
|
|
75
|
+
change records and store HubSpot's answer. Notes, tasks, a deal's contacts and company go through `api`
|
|
76
|
+
(`api notes-create`, `api associations-default-replace`). Run a write with `--dry-run` first: it names each key it
|
|
77
|
+
checks. An `outcome_unknown` write may have happened: read the record before repeating it. `--email` and
|
|
78
|
+
`--phone` replace the whole list and `--name` both name parts: one `--phone` clears the mobile number.
|
|
75
79
|
- **Exit `5` is the owner's decision, not a fault.** Do not work around a refused read with settings, another profile
|
|
76
80
|
or another command. Say what was refused and why.
|
|
77
81
|
- Over MCP, `session start`, `session end` and adding a timer are refused: ask the owner to run them in a terminal.
|
|
@@ -84,8 +88,9 @@ token hidden or from stdin. Never ask for the key, and never pass it as an argum
|
|
|
84
88
|
profile on the same account is refused (`session.duplicate`).
|
|
85
89
|
|
|
86
90
|
The key needs read scopes: `crm.objects.{contacts,companies,deals,owners}.read`,
|
|
87
|
-
`crm.schemas.{contacts,companies,deals}.read`, and `
|
|
88
|
-
|
|
91
|
+
`crm.schemas.{contacts,companies,deals}.read`, and `sales-email-read` for logged e-mails. Writes need
|
|
92
|
+
`crm.objects.{contacts,companies,deals}.write`, which the owner may leave out. A `hubspot.scope-missing` error names
|
|
93
|
+
the scope to add: tell the owner, do not retry.
|
|
89
94
|
|
|
90
95
|
## Output
|
|
91
96
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<!-- Generated from the API manifest and the command tree by pnpm generate. Do not edit. -->
|
|
2
|
+
|
|
3
|
+
# HubSpot API: Advanced
|
|
4
|
+
|
|
5
|
+
## `hubspot api companies-merge [options]`
|
|
6
|
+
|
|
7
|
+
- What: Merge two companies
|
|
8
|
+
- Call: `POST /crm/objects/2026-03/companies/merge`, effect: destructive
|
|
9
|
+
- Permission keys: `organizations.delete`
|
|
10
|
+
- Body: `PublicMergeInput`, required
|
|
11
|
+
|
|
12
|
+
| Flag | Required | What |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `--body <json>` | no | the request body as JSON; - reads it from stdin |
|
|
15
|
+
| `--body-file <path>` | no | the request body from a JSON file; - is stdin |
|
|
16
|
+
|
|
17
|
+
## `hubspot api contacts-gdpr-delete [options]`
|
|
18
|
+
|
|
19
|
+
- What: Permanently delete a contact (GDPR-compliant)
|
|
20
|
+
- Call: `POST /crm/objects/2026-03/contacts/gdpr-delete`, effect: destructive
|
|
21
|
+
- Permission keys: `people.delete`, `people.erase`
|
|
22
|
+
- Body: `PublicGdprDeleteInput`, required
|
|
23
|
+
|
|
24
|
+
| Flag | Required | What |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `--body <json>` | no | the request body as JSON; - reads it from stdin |
|
|
27
|
+
| `--body-file <path>` | no | the request body from a JSON file; - is stdin |
|
|
28
|
+
|
|
29
|
+
## `hubspot api contacts-merge [options]`
|
|
30
|
+
|
|
31
|
+
- What: Merge two contacts
|
|
32
|
+
- Call: `POST /crm/objects/2026-03/contacts/merge`, effect: destructive
|
|
33
|
+
- Permission keys: `people.delete`
|
|
34
|
+
- Body: `PublicMergeInput`, required
|
|
35
|
+
|
|
36
|
+
| Flag | Required | What |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| `--body <json>` | no | the request body as JSON; - reads it from stdin |
|
|
39
|
+
| `--body-file <path>` | no | the request body from a JSON file; - is stdin |
|
|
40
|
+
|
|
41
|
+
## `hubspot api tickets-merge [options]`
|
|
42
|
+
|
|
43
|
+
- What: Merge two tickets
|
|
44
|
+
- Call: `POST /crm/objects/2026-03/tickets/merge`, effect: destructive
|
|
45
|
+
- Permission keys: `tickets.delete`
|
|
46
|
+
- Body: `PublicMergeInput`, required
|
|
47
|
+
|
|
48
|
+
| Flag | Required | What |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| `--body <json>` | no | the request body as JSON; - reads it from stdin |
|
|
51
|
+
| `--body-file <path>` | no | the request body from a JSON file; - is stdin |
|