@wirecat/hubspot-cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +40 -16
- package/contracts/wirecat.json +1441 -136
- package/dist/bin/hubspot.js +2 -2
- package/dist/bundle/{app-server-422MCA7S.js → app-server-GXV2OFML.js} +5 -5
- package/dist/bundle/chunk-2UOJ7DLZ.js +46 -0
- package/dist/bundle/{chunk-BKXDHU3G.js → chunk-3WLYWRGG.js} +1 -1
- package/dist/bundle/{chunk-SAKK2YRU.js → chunk-GPYCBYX5.js} +1 -1
- package/dist/bundle/chunk-IJADZW42.js +195 -0
- package/dist/bundle/{chunk-2TWQIWWG.js → chunk-LXZ66MCH.js} +2 -2
- package/dist/bundle/{chunk-WQBX7XYP.js → chunk-MFNMKHML.js} +807 -519
- package/dist/bundle/{chunk-HTAN663T.js → chunk-Q2OLOMHL.js} +1 -1
- package/dist/bundle/{chunk-LNV33FDC.js → chunk-TLKEPUAV.js} +4 -4
- package/dist/bundle/{chunk-JRCPCVPI.js → chunk-URX6YDUL.js} +2 -2
- package/dist/bundle/{chunk-ZBDSHFG4.js → chunk-VOH7S5M4.js} +1301 -1271
- package/dist/bundle/{chunk-X7XUX7A4.js → chunk-YMCY7VRE.js} +4 -4
- package/dist/bundle/{chunk-VIEYMDBR.js → chunk-Z73OL5HV.js} +1 -1
- package/dist/bundle/{dist-MYZZKZJ7.js → dist-7TGU56B2.js} +1 -1
- package/dist/bundle/{first-run-RPIJZEDT.js → first-run-UWAFSINQ.js} +1 -1
- package/dist/bundle/hubspot.js +2 -2
- package/dist/bundle/{program-POG5GHUQ.js → program-XA4C44Z4.js} +173 -40
- package/dist/bundle/{server-XJSNF3K5.js → server-ATG5KY7K.js} +2 -2
- package/dist/bundle/{server-C3ZHA7AZ.js → server-VNWVVH7A.js} +5 -5
- package/dist/bundle/{source-A3SBLHC4.js → source-54HR4IWG.js} +68 -341
- package/dist/bundle/{store-CCDNUB6A.js → store-DXWYNVVB.js} +2 -2
- package/dist/bundle/{store-maintenance-command-BRCG6MNA.js → store-maintenance-command-J57HCJYY.js} +3 -3
- package/dist/bundle/writer-NLLI5YRM.js +79 -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 +137 -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 -1
- package/dist/generated/manifest.js.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 +2 -2
- 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/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
|
@@ -1803,7 +1803,7 @@ var REASONS2 = defineReasons(OWN.filter(([reason]) => !CORE.has(reason)).map(([r
|
|
|
1803
1803
|
var DETAILS2 = ["account", "profile", "profiles", "status", "scope"];
|
|
1804
1804
|
|
|
1805
1805
|
// dist/version.js
|
|
1806
|
-
var VERSION = "0.
|
|
1806
|
+
var VERSION = "0.2.0";
|
|
1807
1807
|
|
|
1808
1808
|
// dist/identity.js
|
|
1809
1809
|
var PACKAGE = "@wirecat/hubspot-cli";
|
|
@@ -1811,7 +1811,7 @@ var IDENTITY = {
|
|
|
1811
1811
|
command: "hubspot",
|
|
1812
1812
|
appName: "hubspot-cli",
|
|
1813
1813
|
envPrefix: "WCHUBSPOT",
|
|
1814
|
-
description: "read a HubSpot account's CRM",
|
|
1814
|
+
description: "read and change a HubSpot account's CRM",
|
|
1815
1815
|
version: VERSION,
|
|
1816
1816
|
issues: "https://github.com/WireCatLabs/hubspot-cli/issues/new",
|
|
1817
1817
|
messenger: false,
|
|
@@ -1828,8 +1828,8 @@ var DESKTOP = {
|
|
|
1828
1828
|
tagline: "HubSpot CRM: deals, contacts and companies",
|
|
1829
1829
|
syncs: "your deals, contacts and companies",
|
|
1830
1830
|
signIn: {
|
|
1831
|
-
gives: "Lets your agent read the account's CRM
|
|
1832
|
-
asks: "A service key or a legacy private app's access token from your HubSpot account, with read scopes."
|
|
1831
|
+
gives: "Lets your agent read the account's CRM, and change it if you give the key the write scopes.",
|
|
1832
|
+
asks: "A service key or a legacy private app's access token from your HubSpot account, with read scopes, and write scopes if you want changes."
|
|
1833
1833
|
}
|
|
1834
1834
|
};
|
|
1835
1835
|
var SKILL = new URL("../skills/hubspot-cli/SKILL.md", new URL("../identity.js", import.meta.url).href);
|
|
@@ -7509,7 +7509,7 @@ var require_dist = __commonJS({
|
|
|
7509
7509
|
}
|
|
7510
7510
|
});
|
|
7511
7511
|
|
|
7512
|
-
// common-js-names:/home/
|
|
7512
|
+
// common-js-names:/home/runner/work/hubspot-cli/hubspot-cli/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js
|
|
7513
7513
|
var cjs = require_dist();
|
|
7514
7514
|
var n0 = cjs["Alias"];
|
|
7515
7515
|
var n1 = cjs["CST"];
|
package/dist/bundle/hubspot.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMCY7VRE.js";
|
|
7
7
|
import "./chunk-H3TNVEQX.js";
|
|
8
8
|
import "./chunk-HC5ZWE5X.js";
|
|
9
9
|
import "./chunk-QGFX5MXL.js";
|
|
@@ -192,7 +192,7 @@ var wcat = await wcatStart(DESKTOP);
|
|
|
192
192
|
if (wcat.code !== void 0) {
|
|
193
193
|
process.exitCode = wcat.code;
|
|
194
194
|
} else {
|
|
195
|
-
const { run } = await import("./program-
|
|
195
|
+
const { run } = await import("./program-XA4C44Z4.js");
|
|
196
196
|
process.exitCode = await run(process.argv.slice(2));
|
|
197
197
|
}
|
|
198
198
|
stopCatching();
|
|
@@ -2,7 +2,13 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
PROVIDER
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z73OL5HV.js";
|
|
6
|
+
import {
|
|
7
|
+
HUBSPOT_WRITES
|
|
8
|
+
} from "./chunk-IJADZW42.js";
|
|
9
|
+
import {
|
|
10
|
+
accountDetails
|
|
11
|
+
} from "./chunk-2UOJ7DLZ.js";
|
|
6
12
|
import {
|
|
7
13
|
LONGEST_PACE_WAIT_MS,
|
|
8
14
|
PACE,
|
|
@@ -10,7 +16,6 @@ import {
|
|
|
10
16
|
REPORT_FORMAT,
|
|
11
17
|
SECTION_CAPS,
|
|
12
18
|
SERVICE,
|
|
13
|
-
accountDetails,
|
|
14
19
|
accountRemoveCommand,
|
|
15
20
|
appDoctorCommand,
|
|
16
21
|
appMcpCommand,
|
|
@@ -34,7 +39,7 @@ import {
|
|
|
34
39
|
skillCommand,
|
|
35
40
|
upgradeCommand,
|
|
36
41
|
writeCsv
|
|
37
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MFNMKHML.js";
|
|
38
43
|
import "./chunk-DRWWJLI6.js";
|
|
39
44
|
import {
|
|
40
45
|
SOURCE_SEARCHED,
|
|
@@ -42,19 +47,22 @@ import {
|
|
|
42
47
|
historySkipsOf,
|
|
43
48
|
offsetOf,
|
|
44
49
|
refuseOffline
|
|
45
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LXZ66MCH.js";
|
|
46
51
|
import "./chunk-X2M6NIQG.js";
|
|
47
52
|
import "./chunk-W7HM2VGO.js";
|
|
48
53
|
import "./chunk-B3MANLNK.js";
|
|
49
54
|
import {
|
|
50
55
|
addStoreMaintenanceCommands
|
|
51
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-URX6YDUL.js";
|
|
52
57
|
import {
|
|
53
58
|
commandPathKey,
|
|
54
59
|
commandPermissions,
|
|
55
60
|
terminalAsker
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3WLYWRGG.js";
|
|
57
62
|
import {
|
|
63
|
+
CRM_ASSIGN_OTHERS_KEY,
|
|
64
|
+
CRM_WRITE_DEFAULTS,
|
|
65
|
+
CRM_WRITE_KEYS,
|
|
58
66
|
Pacer,
|
|
59
67
|
RECORD_ID,
|
|
60
68
|
SYNCED_FROM,
|
|
@@ -65,6 +73,7 @@ import {
|
|
|
65
73
|
createCrmItem,
|
|
66
74
|
createCrmRecord,
|
|
67
75
|
crmAccounts,
|
|
76
|
+
crmAlsoChecks,
|
|
68
77
|
crmStatus,
|
|
69
78
|
crmViewerOf,
|
|
70
79
|
customConditions,
|
|
@@ -103,11 +112,11 @@ import {
|
|
|
103
112
|
withCustomFields,
|
|
104
113
|
withQuery,
|
|
105
114
|
withReadableDeal
|
|
106
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-VOH7S5M4.js";
|
|
107
116
|
import "./chunk-2QZK5BEP.js";
|
|
108
117
|
import "./chunk-NXERIDPJ.js";
|
|
109
118
|
import "./chunk-WE4UFASG.js";
|
|
110
|
-
import "./chunk-
|
|
119
|
+
import "./chunk-GPYCBYX5.js";
|
|
111
120
|
import {
|
|
112
121
|
latestVersion,
|
|
113
122
|
runUpdate,
|
|
@@ -203,7 +212,7 @@ import {
|
|
|
203
212
|
IDENTITY,
|
|
204
213
|
PACKAGE,
|
|
205
214
|
SKILL
|
|
206
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-YMCY7VRE.js";
|
|
207
216
|
import "./chunk-H3TNVEQX.js";
|
|
208
217
|
import "./chunk-HC5ZWE5X.js";
|
|
209
218
|
import "./chunk-QGFX5MXL.js";
|
|
@@ -5373,10 +5382,15 @@ var operations = [
|
|
|
5373
5382
|
method: "PUT",
|
|
5374
5383
|
path: "/crm/pipelines/2026-03/{objectType}/{pipelineId}"
|
|
5375
5384
|
},
|
|
5376
|
-
effect: "
|
|
5385
|
+
effect: "destructive",
|
|
5377
5386
|
summary: "Replace a pipeline",
|
|
5378
5387
|
description: "Replace all properties of an existing pipeline with the provided values.",
|
|
5379
5388
|
tags: ["Basic"],
|
|
5389
|
+
permissions: [
|
|
5390
|
+
{
|
|
5391
|
+
key: "pipelines.delete"
|
|
5392
|
+
}
|
|
5393
|
+
],
|
|
5380
5394
|
parameters: [
|
|
5381
5395
|
{
|
|
5382
5396
|
name: "objectType",
|
|
@@ -6856,20 +6870,120 @@ var security = [
|
|
|
6856
6870
|
];
|
|
6857
6871
|
|
|
6858
6872
|
// dist/config.js
|
|
6873
|
+
var firstWord = /* @__PURE__ */ __name((command) => command.split("-")[0] ?? command, "firstWord");
|
|
6874
|
+
var GROUPS = new Map(operations.flatMap((operation) => (operation.permissions ?? []).flatMap(({ key }) => key.endsWith(".delete") ? [[firstWord(operation.command), key.slice(0, -".delete".length)]] : [])));
|
|
6875
|
+
var COMMAND_KEYS = Object.fromEntries([
|
|
6876
|
+
["deals", "deals"],
|
|
6877
|
+
["contacts", "people"],
|
|
6878
|
+
["companies", "organizations"]
|
|
6879
|
+
].flatMap(([type, noun]) => [
|
|
6880
|
+
[`${type}-create`, [`${noun}.create`]],
|
|
6881
|
+
[`${type}-batch-create`, [`${noun}.create`]],
|
|
6882
|
+
[`${type}-update`, [`${noun}.update`]],
|
|
6883
|
+
[`${type}-batch-update`, [`${noun}.update`]],
|
|
6884
|
+
[`${type}-batch-upsert`, [`${noun}.create`, `${noun}.update`]]
|
|
6885
|
+
]));
|
|
6886
|
+
var offered = /* @__PURE__ */ __name((operation) => !operation.response?.sensitive, "offered");
|
|
6887
|
+
var ERASE_KEY = "people.erase";
|
|
6888
|
+
var ERASES = "contacts-gdpr-delete";
|
|
6889
|
+
var keysOf = /* @__PURE__ */ __name((operation) => {
|
|
6890
|
+
const group = GROUPS.get(firstWord(operation.command));
|
|
6891
|
+
const own = operation.effect === "write" && group ? [{ key: `${group}.write` }] : [];
|
|
6892
|
+
const erases = operation.command === ERASES ? [{ key: ERASE_KEY }] : [];
|
|
6893
|
+
return [...own, ...erases, ...(COMMAND_KEYS[operation.command] ?? []).map((key) => ({ key }))];
|
|
6894
|
+
}, "keysOf");
|
|
6895
|
+
var isRecord2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
|
|
6896
|
+
var propertiesOf = /* @__PURE__ */ __name((body) => {
|
|
6897
|
+
if (!isRecord2(body))
|
|
6898
|
+
return [];
|
|
6899
|
+
const records = Array.isArray(body.inputs) ? body.inputs.filter(isRecord2) : [body];
|
|
6900
|
+
return records.flatMap((record2) => isRecord2(record2.properties) ? [record2.properties] : []);
|
|
6901
|
+
}, "propertiesOf");
|
|
6902
|
+
var sets = /* @__PURE__ */ __name((body, name) => propertiesOf(body).some((properties) => {
|
|
6903
|
+
const value = properties[name];
|
|
6904
|
+
return value !== void 0 && value !== null && String(value).trim() !== "";
|
|
6905
|
+
}), "sets");
|
|
6906
|
+
var implied = /* @__PURE__ */ __name((key, names) => {
|
|
6907
|
+
const paths = names.map((name) => `properties.${name}`);
|
|
6908
|
+
return {
|
|
6909
|
+
/** For `--dry-run` and discovery: a flag the manifest names is a top-level field, so this one never applies. */
|
|
6910
|
+
named: { key, body: paths },
|
|
6911
|
+
checked: {
|
|
6912
|
+
key,
|
|
6913
|
+
when: `with ${paths.join(" or ")} set`,
|
|
6914
|
+
applies: /* @__PURE__ */ __name((body) => names.some((name) => sets(body, name)), "applies")
|
|
6915
|
+
}
|
|
6916
|
+
};
|
|
6917
|
+
}, "implied");
|
|
6918
|
+
var ASSIGNS = implied(CRM_ASSIGN_OTHERS_KEY, ["hubspot_owner_id"]);
|
|
6919
|
+
var MOVES = implied("deals.move", ["dealstage", "pipeline"]);
|
|
6920
|
+
var CLOSES = implied("deals.close", ["dealstage"]);
|
|
6921
|
+
var OWNED = /* @__PURE__ */ new Set([
|
|
6922
|
+
"contacts",
|
|
6923
|
+
"companies",
|
|
6924
|
+
"deals",
|
|
6925
|
+
"tickets",
|
|
6926
|
+
"leads",
|
|
6927
|
+
"notes",
|
|
6928
|
+
"calls",
|
|
6929
|
+
"emails",
|
|
6930
|
+
"meetings",
|
|
6931
|
+
"tasks"
|
|
6932
|
+
]);
|
|
6933
|
+
var RECORD_WRITES = ["create", "update", "batch-create", "batch-update", "batch-upsert"];
|
|
6934
|
+
var bodyKeysOf = /* @__PURE__ */ __name((operation) => {
|
|
6935
|
+
const type = firstWord(operation.command);
|
|
6936
|
+
if (!OWNED.has(type) || !RECORD_WRITES.includes(operation.command.slice(type.length + 1)))
|
|
6937
|
+
return [];
|
|
6938
|
+
return [ASSIGNS, ...type === "deals" ? [MOVES, CLOSES] : []];
|
|
6939
|
+
}, "bodyKeysOf");
|
|
6940
|
+
var bodyPermissions = Object.fromEntries(operations.filter(offered).flatMap((operation) => {
|
|
6941
|
+
const keys = bodyKeysOf(operation).map(({ checked }) => checked);
|
|
6942
|
+
return keys.length ? [[operation.command, keys]] : [];
|
|
6943
|
+
}));
|
|
6859
6944
|
var API = {
|
|
6860
6945
|
manifest: {
|
|
6861
6946
|
...manifest_exports,
|
|
6862
|
-
operations: operations.filter((
|
|
6947
|
+
operations: operations.filter(offered).map(({ security: security2, ...operation }) => ({
|
|
6948
|
+
...operation,
|
|
6949
|
+
// The object specs mark 115 operations `security: []`, which reads as "no sign-in", and the generator's `auth`
|
|
6950
|
+
// keeps it: such an operation went out without the token and HubSpot answered 401. Left out, the manifest's
|
|
6951
|
+
// bearer token applies, as on every other operation.
|
|
6952
|
+
...security2?.length ? { security: security2 } : {},
|
|
6953
|
+
permissions: [
|
|
6954
|
+
...operation.permissions ?? [],
|
|
6955
|
+
...keysOf(operation),
|
|
6956
|
+
// cli-core takes a body key only when the manifest names it; the run checks it through `bodyPermissions`.
|
|
6957
|
+
...bodyKeysOf(operation).map(({ named }) => named)
|
|
6958
|
+
]
|
|
6959
|
+
}))
|
|
6863
6960
|
},
|
|
6864
|
-
service: SERVICE
|
|
6961
|
+
service: SERVICE,
|
|
6962
|
+
bodyPermissions
|
|
6865
6963
|
};
|
|
6866
|
-
var
|
|
6867
|
-
var
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
]
|
|
6964
|
+
var CRM_TYPES = { deal: "deals", person: "contacts", organization: "companies" };
|
|
6965
|
+
var crmApiKeys = /* @__PURE__ */ __name((kind, verb) => {
|
|
6966
|
+
const type = CRM_TYPES[kind];
|
|
6967
|
+
if (!type || verb === "remove")
|
|
6968
|
+
return [];
|
|
6969
|
+
return [`api.${type}-${verb === "create" ? "create" : "update"}`];
|
|
6970
|
+
}, "crmApiKeys");
|
|
6971
|
+
var api = serviceApiPermissions({ manifest: API.manifest });
|
|
6871
6972
|
var keyOf = /* @__PURE__ */ __name((path) => path[0] === "api" && ["list", "show"].includes(path[1] ?? "") ? null : commandPathKey(path), "keyOf");
|
|
6872
|
-
var
|
|
6973
|
+
var COMMAND_DEFAULTS = Object.fromEntries([.../* @__PURE__ */ new Set([...Object.values(COMMAND_KEYS).flat(), MOVES.named.key, CLOSES.named.key])].map((key) => [
|
|
6974
|
+
key,
|
|
6975
|
+
"allow"
|
|
6976
|
+
]));
|
|
6977
|
+
var permissions = commandPermissions({
|
|
6978
|
+
keyOf,
|
|
6979
|
+
extra: [.../* @__PURE__ */ new Set([...api.extra, ...CRM_WRITE_KEYS])],
|
|
6980
|
+
alsoChecks: /* @__PURE__ */ __name((path) => [...api.alsoChecks(path), ...crmAlsoChecks(crmApiKeys)(path)], "alsoChecks"),
|
|
6981
|
+
defaults: {
|
|
6982
|
+
...api.defaults,
|
|
6983
|
+
...COMMAND_DEFAULTS,
|
|
6984
|
+
...CRM_WRITE_DEFAULTS
|
|
6985
|
+
}
|
|
6986
|
+
});
|
|
6873
6987
|
var configuration = settingsFor(IDENTITY, { permissions });
|
|
6874
6988
|
|
|
6875
6989
|
// dist/context.js
|
|
@@ -7185,7 +7299,6 @@ var apiCommand = /* @__PURE__ */ __name(() => {
|
|
|
7185
7299
|
...API,
|
|
7186
7300
|
app: IDENTITY,
|
|
7187
7301
|
configuration,
|
|
7188
|
-
excluded: API_EXCLUDED,
|
|
7189
7302
|
fetch: /* @__PURE__ */ __name((command) => {
|
|
7190
7303
|
const { environment } = contextOf(command);
|
|
7191
7304
|
const { now } = environment;
|
|
@@ -7201,7 +7314,13 @@ var apiCommand = /* @__PURE__ */ __name(() => {
|
|
|
7201
7314
|
...now ? { now: /* @__PURE__ */ __name(() => new Date(now()), "now") } : {}
|
|
7202
7315
|
});
|
|
7203
7316
|
}, "fetch"),
|
|
7204
|
-
failure: /* @__PURE__ */ __name((status, answer2) => failureOf({
|
|
7317
|
+
failure: /* @__PURE__ */ __name((status, answer2, operation) => failureOf({
|
|
7318
|
+
status,
|
|
7319
|
+
writes: operation.effect !== "read",
|
|
7320
|
+
body: answer2,
|
|
7321
|
+
now: sent.now(),
|
|
7322
|
+
timeZone: sent.timeZone
|
|
7323
|
+
}), "failure"),
|
|
7205
7324
|
token: tokenOf,
|
|
7206
7325
|
schemas: /* @__PURE__ */ __name(() => import("./schemas-JRL3DLMP.js").then((module) => module.schemas), "schemas"),
|
|
7207
7326
|
definitions: /* @__PURE__ */ __name(() => import("./definitions-MVPICAWV.js").then((module) => module.definitions), "definitions")
|
|
@@ -7412,12 +7531,12 @@ var DEAL_CSV_COLUMNS = [
|
|
|
7412
7531
|
"updated_at",
|
|
7413
7532
|
"provider_metadata"
|
|
7414
7533
|
];
|
|
7415
|
-
var
|
|
7416
|
-
var at = /* @__PURE__ */ __name((item, path) => path.reduce((value, key) =>
|
|
7534
|
+
var isRecord3 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
|
|
7535
|
+
var at = /* @__PURE__ */ __name((item, path) => path.reduce((value, key) => isRecord3(value) ? value[key] : void 0, item), "at");
|
|
7417
7536
|
var flat = /* @__PURE__ */ __name((value) => {
|
|
7418
7537
|
if (Array.isArray(value))
|
|
7419
7538
|
return value.map(flat).join("; ");
|
|
7420
|
-
if (
|
|
7539
|
+
if (isRecord3(value))
|
|
7421
7540
|
return value.value ?? value.name ?? value.ref ?? JSON.stringify(value);
|
|
7422
7541
|
return value;
|
|
7423
7542
|
}, "flat");
|
|
@@ -7441,11 +7560,11 @@ var customFieldsOf = /* @__PURE__ */ __name((page) => {
|
|
|
7441
7560
|
const extra = /* @__PURE__ */ new Map();
|
|
7442
7561
|
for (const item of page.items) {
|
|
7443
7562
|
const metadata2 = item.provider_metadata;
|
|
7444
|
-
if (!
|
|
7563
|
+
if (!isRecord3(metadata2))
|
|
7445
7564
|
continue;
|
|
7446
7565
|
for (const [code, value] of Object.entries(metadata2))
|
|
7447
7566
|
if (!listed.has(code) && !extra.has(code)) {
|
|
7448
|
-
const label =
|
|
7567
|
+
const label = isRecord3(value) && typeof value.label === "string" ? value.label : null;
|
|
7449
7568
|
extra.set(code, { code, label, type: "string" });
|
|
7450
7569
|
}
|
|
7451
7570
|
}
|
|
@@ -8943,7 +9062,7 @@ var addCrmCommands = honoursDryRun(sharedCommand(addCrmCommandsDefinition));
|
|
|
8943
9062
|
|
|
8944
9063
|
// dist/commands/crm-shared.js
|
|
8945
9064
|
var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
8946
|
-
const { openHubspotStore } = await import("./store-
|
|
9065
|
+
const { openHubspotStore } = await import("./store-DXWYNVVB.js");
|
|
8947
9066
|
const store = await openHubspotStore(env, { readOnly: true }).catch(() => void 0);
|
|
8948
9067
|
if (!store)
|
|
8949
9068
|
return void 0;
|
|
@@ -8957,9 +9076,10 @@ var savedAccount = /* @__PURE__ */ __name(async (env, profile) => {
|
|
|
8957
9076
|
}, "savedAccount");
|
|
8958
9077
|
var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
8959
9078
|
const { env, profile, environment } = contextOf(command);
|
|
8960
|
-
const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }] = await Promise.all([
|
|
8961
|
-
import("./store-
|
|
8962
|
-
import("./source-
|
|
9079
|
+
const [{ openHubspotStore, PROVIDER: PROVIDER2 }, { hubspotCrmSource }, { hubspotCrmWriter }] = await Promise.all([
|
|
9080
|
+
import("./store-DXWYNVVB.js"),
|
|
9081
|
+
import("./source-54HR4IWG.js"),
|
|
9082
|
+
import("./writer-NLLI5YRM.js")
|
|
8963
9083
|
]);
|
|
8964
9084
|
const fromToken = fromEnvironment(command);
|
|
8965
9085
|
const online = metaOf(command).effects?.remote !== "none";
|
|
@@ -8989,6 +9109,7 @@ var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
|
8989
9109
|
account: accountOf
|
|
8990
9110
|
});
|
|
8991
9111
|
let source;
|
|
9112
|
+
const crm = /* @__PURE__ */ __name(() => source ??= hubspotCrmSource(hub, environment.now ? { now: environment.now } : {}), "crm");
|
|
8992
9113
|
return {
|
|
8993
9114
|
profile,
|
|
8994
9115
|
account,
|
|
@@ -8998,7 +9119,17 @@ var openProfile = /* @__PURE__ */ __name(async (command, { readOnly }) => {
|
|
|
8998
9119
|
store,
|
|
8999
9120
|
env,
|
|
9000
9121
|
locked: Boolean(env[`${IDENTITY.envPrefix}_PROFILE_LOCK`]),
|
|
9001
|
-
source:
|
|
9122
|
+
source: crm,
|
|
9123
|
+
// No `self`: the key is the account's, so every `--owner` gives the record to someone else (crm.assign-others).
|
|
9124
|
+
writes: /* @__PURE__ */ __name(() => ({
|
|
9125
|
+
writer: hubspotCrmWriter(hub, crm),
|
|
9126
|
+
app: IDENTITY,
|
|
9127
|
+
env,
|
|
9128
|
+
warn: outputFor(command).renderer.warn,
|
|
9129
|
+
alsoChecks: crmApiKeys,
|
|
9130
|
+
// contextOf, not resolveSettings: it carries the levels `mcp serve --permission` tightened.
|
|
9131
|
+
settings: /* @__PURE__ */ __name(() => ({ ...contextOf(command).settings, permissionDefaults: permissions.defaults }), "settings")
|
|
9132
|
+
}), "writes"),
|
|
9002
9133
|
close: /* @__PURE__ */ __name(() => store.close(), "close")
|
|
9003
9134
|
};
|
|
9004
9135
|
}, "openProfile");
|
|
@@ -9008,6 +9139,7 @@ var crmSharedCommands = /* @__PURE__ */ __name(() => {
|
|
|
9008
9139
|
app: IDENTITY,
|
|
9009
9140
|
open: openProfile,
|
|
9010
9141
|
leads: true,
|
|
9142
|
+
writes: HUBSPOT_WRITES,
|
|
9011
9143
|
live: ["person", "organization", "user"],
|
|
9012
9144
|
activities: true
|
|
9013
9145
|
});
|
|
@@ -9024,16 +9156,16 @@ var scheduleCommand = /* @__PURE__ */ __name(() => scheduleCommandFor({ app: IDE
|
|
|
9024
9156
|
// dist/setup/texts.en.json
|
|
9025
9157
|
var texts_en_default = {
|
|
9026
9158
|
"key.title": "Make a key",
|
|
9027
|
-
"key.intro": "hubspot reads your deals, contacts and companies from one HubSpot account. It changes
|
|
9159
|
+
"key.intro": "hubspot reads your deals, contacts and companies from one HubSpot account. It changes them only if you give the key the write scopes too.",
|
|
9028
9160
|
"key.service": "A super admin, or a user with HubSpot's **Developer tools access** permission, does this once in HubSpot:\n\n1. Open **Development**, then **Keys \u2192 Service keys** in the left menu. Some accounts show it under **Settings \u2192 Integrations \u2192 Service keys** instead.\n2. Click **Create service key** and name it *WireCat*.\n3. Click **Add new scope**, tick each read scope below, and click **Update**. A key gets only the scopes its maker has.\n4. Click **Create** and confirm.\n\nHubSpot's guide: https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys\n\nThe read scopes:",
|
|
9029
|
-
"key.leads": "On Sales Hub Professional or Enterprise, add `crm.objects.leads.read` to read leads too. Add `tickets` if you want `api` to read tickets.",
|
|
9161
|
+
"key.leads": "On Sales Hub Professional or Enterprise, add `crm.objects.leads.read` to read leads too. Add `tickets` if you want `api` to read tickets. To let hubspot change records, add `crm.objects.contacts.write`, `crm.objects.companies.write` and `crm.objects.deals.write`; without them the key only reads.",
|
|
9030
9162
|
"key.private.title": "Already have a legacy private app?",
|
|
9031
9163
|
"key.private": "HubSpot stopped new private apps on 26 October 2026, but an existing one's token still works. Give it the same read scopes, then copy its access token from the app's **Auth** tab.",
|
|
9032
9164
|
"token.title": "Paste the key",
|
|
9033
9165
|
"token.where": "In **Keys \u2192 Service keys**, click the key's name, then **Show** and **Copy**. A private app's token is on its **Auth** tab. Both start with `pat-`.",
|
|
9034
9166
|
"token.label": "Service key or access token",
|
|
9035
9167
|
"token.hint": "Kept in your system keyring or, without one, in a file only you can read.",
|
|
9036
|
-
"token.rights": "The key reads only what its scopes allow. Each profile signs in to its own HubSpot account: a second profile on the same account is refused.",
|
|
9168
|
+
"token.rights": "The key reads and changes only what its scopes allow. Each profile signs in to its own HubSpot account: a second profile on the same account is refused.",
|
|
9037
9169
|
"check.title": "Checking the key",
|
|
9038
9170
|
"check.body": "hubspot asks HubSpot which account the key belongs to. It saves the key only if HubSpot answers.",
|
|
9039
9171
|
"failed.title": "The check did not pass",
|
|
@@ -9045,16 +9177,16 @@ var texts_en_default = {
|
|
|
9045
9177
|
// dist/setup/texts.es.json
|
|
9046
9178
|
var texts_es_default = {
|
|
9047
9179
|
"key.title": "Crea una clave",
|
|
9048
|
-
"key.intro": "hubspot lee tus negocios, contactos y empresas de una cuenta de HubSpot.
|
|
9180
|
+
"key.intro": "hubspot lee tus negocios, contactos y empresas de una cuenta de HubSpot. Solo los cambia si le das a la clave tambi\xE9n los permisos de escritura.",
|
|
9049
9181
|
"key.service": "Un superadministrador, o un usuario con el permiso **Developer tools access** de HubSpot, lo hace una vez en HubSpot:\n\n1. Abre **Development** y luego **Keys \u2192 Service keys** en el men\xFA de la izquierda. En algunas cuentas est\xE1 en **Settings \u2192 Integrations \u2192 Service keys**.\n2. Haz clic en **Create service key** y ll\xE1mala *WireCat*.\n3. Haz clic en **Add new scope**, marca cada permiso de lectura de abajo y haz clic en **Update**. Una clave solo recibe los permisos que tiene quien la crea.\n4. Haz clic en **Create** y confirma.\n\nGu\xEDa de HubSpot: https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys\n\nLos permisos de lectura:",
|
|
9050
|
-
"key.leads": "Con Sales Hub Professional o Enterprise, a\xF1ade `crm.objects.leads.read` para leer tambi\xE9n los leads. A\xF1ade `tickets` si quieres que `api` lea los tickets.",
|
|
9182
|
+
"key.leads": "Con Sales Hub Professional o Enterprise, a\xF1ade `crm.objects.leads.read` para leer tambi\xE9n los leads. A\xF1ade `tickets` si quieres que `api` lea los tickets. Para que hubspot pueda cambiar registros, a\xF1ade `crm.objects.contacts.write`, `crm.objects.companies.write` y `crm.objects.deals.write`; sin ellos la clave solo lee.",
|
|
9051
9183
|
"key.private.title": "\xBFYa tienes una aplicaci\xF3n privada antigua?",
|
|
9052
9184
|
"key.private": "HubSpot dej\xF3 de crear aplicaciones privadas el 26 de octubre de 2026, pero el token de una que ya existe sigue funcionando. Dale los mismos permisos de lectura y copia su token de acceso de la pesta\xF1a **Auth** de la aplicaci\xF3n.",
|
|
9053
9185
|
"token.title": "Pega la clave",
|
|
9054
9186
|
"token.where": "En **Keys \u2192 Service keys**, haz clic en el nombre de la clave y luego en **Show** y **Copy**. El token de una aplicaci\xF3n privada est\xE1 en su pesta\xF1a **Auth**. Los dos empiezan por `pat-`.",
|
|
9055
9187
|
"token.label": "Clave de servicio o token de acceso",
|
|
9056
9188
|
"token.hint": "Se guarda en el llavero del sistema o, si no hay, en un archivo que solo t\xFA puedes leer.",
|
|
9057
|
-
"token.rights": "La clave solo lee lo que permiten sus permisos. Cada perfil entra en su propia cuenta de HubSpot: se rechaza un segundo perfil en la misma cuenta.",
|
|
9189
|
+
"token.rights": "La clave solo lee y cambia lo que permiten sus permisos. Cada perfil entra en su propia cuenta de HubSpot: se rechaza un segundo perfil en la misma cuenta.",
|
|
9058
9190
|
"check.title": "Comprobando la clave",
|
|
9059
9191
|
"check.body": "hubspot pregunta a HubSpot a qu\xE9 cuenta pertenece la clave. Solo la guarda si HubSpot responde.",
|
|
9060
9192
|
"failed.title": "La comprobaci\xF3n no ha pasado",
|
|
@@ -9066,16 +9198,16 @@ var texts_es_default = {
|
|
|
9066
9198
|
// dist/setup/texts.ru.json
|
|
9067
9199
|
var texts_ru_default = {
|
|
9068
9200
|
"key.title": "\u0421\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u043A\u043B\u044E\u0447",
|
|
9069
|
-
"key.intro": "hubspot \u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0441\u0434\u0435\u043B\u043A\u0438, \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u044B \u0438 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438 \u0438\u0437 \u043E\u0434\u043D\u043E\u0433\u043E \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430 HubSpot. \
|
|
9201
|
+
"key.intro": "hubspot \u0447\u0438\u0442\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0441\u0434\u0435\u043B\u043A\u0438, \u043A\u043E\u043D\u0442\u0430\u043A\u0442\u044B \u0438 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0438 \u0438\u0437 \u043E\u0434\u043D\u043E\u0433\u043E \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430 HubSpot. \u041C\u0435\u043D\u044F\u0435\u0442 \u0438\u0445, \u0442\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u0432\u044B \u0434\u0430\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0443 \u0438 \u043F\u0440\u0430\u0432\u0430 \u043D\u0430 \u0437\u0430\u043F\u0438\u0441\u044C.",
|
|
9070
9202
|
"key.service": "\u042D\u0442\u043E \u043E\u0434\u0438\u043D \u0440\u0430\u0437 \u0434\u0435\u043B\u0430\u0435\u0442 \u0441\u0443\u043F\u0435\u0440\u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440 \u0438\u043B\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0441 \u043F\u0440\u0430\u0432\u043E\u043C HubSpot **Developer tools access** (\u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0438\u0437 \u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430):\n\n1. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 **Development**, \u0437\u0430\u0442\u0435\u043C \u0432 \u043C\u0435\u043D\u044E \u0441\u043B\u0435\u0432\u0430 **Keys \u2192 Service keys**. \u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430\u0445 \u044D\u0442\u043E **Settings \u2192 Integrations \u2192 Service keys**.\n2. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 **Create service key** \u0438 \u043D\u0430\u0437\u043E\u0432\u0438\u0442\u0435 \u043A\u043B\u044E\u0447 *WireCat*.\n3. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 **Add new scope**, \u043E\u0442\u043C\u0435\u0442\u044C\u0442\u0435 \u043A\u0430\u0436\u0434\u043E\u0435 \u043F\u0440\u0430\u0432\u043E \u043D\u0430 \u0447\u0442\u0435\u043D\u0438\u0435 \u043D\u0438\u0436\u0435 \u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 **Update**. \u041A\u043B\u044E\u0447 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u0435 \u043F\u0440\u0430\u0432\u0430, \u0447\u0442\u043E \u0435\u0441\u0442\u044C \u0443 \u0435\u0433\u043E \u0430\u0432\u0442\u043E\u0440\u0430.\n4. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 **Create** \u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435.\n\n\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044F HubSpot: https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/account-service-keys\n\n\u041F\u0440\u0430\u0432\u0430 \u043D\u0430 \u0447\u0442\u0435\u043D\u0438\u0435:",
|
|
9071
|
-
"key.leads": "\u041D\u0430 Sales Hub Professional \u0438\u043B\u0438 Enterprise \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 `crm.objects.leads.read`, \u0447\u0442\u043E\u0431\u044B \u0447\u0438\u0442\u0430\u0442\u044C \u0438 \u043B\u0438\u0434\u044B. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 `tickets`, \u0435\u0441\u043B\u0438 `api` \u0434\u043E\u043B\u0436\u0435\u043D \u0447\u0438\u0442\u0430\u0442\u044C \u0442\u0438\u043A\u0435\u0442\u044B.",
|
|
9203
|
+
"key.leads": "\u041D\u0430 Sales Hub Professional \u0438\u043B\u0438 Enterprise \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 `crm.objects.leads.read`, \u0447\u0442\u043E\u0431\u044B \u0447\u0438\u0442\u0430\u0442\u044C \u0438 \u043B\u0438\u0434\u044B. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 `tickets`, \u0435\u0441\u043B\u0438 `api` \u0434\u043E\u043B\u0436\u0435\u043D \u0447\u0438\u0442\u0430\u0442\u044C \u0442\u0438\u043A\u0435\u0442\u044B. \u0427\u0442\u043E\u0431\u044B hubspot \u043C\u043E\u0433 \u043C\u0435\u043D\u044F\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u0438, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 `crm.objects.contacts.write`, `crm.objects.companies.write` \u0438 `crm.objects.deals.write`; \u0431\u0435\u0437 \u043D\u0438\u0445 \u043A\u043B\u044E\u0447 \u0442\u043E\u043B\u044C\u043A\u043E \u0447\u0438\u0442\u0430\u0435\u0442.",
|
|
9072
9204
|
"key.private.title": "\u0423\u0436\u0435 \u0435\u0441\u0442\u044C \u0441\u0442\u0430\u0440\u043E\u0435 \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435?",
|
|
9073
9205
|
"key.private": "HubSpot \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u043B \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u044B\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F 26 \u043E\u043A\u0442\u044F\u0431\u0440\u044F 2026 \u0433\u043E\u0434\u0430, \u043D\u043E \u0442\u043E\u043A\u0435\u043D \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0433\u043E \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442. \u0414\u0430\u0439\u0442\u0435 \u0435\u043C\u0443 \u0442\u0435 \u0436\u0435 \u043F\u0440\u0430\u0432\u0430 \u043D\u0430 \u0447\u0442\u0435\u043D\u0438\u0435 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0442\u043E\u043A\u0435\u043D \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043D\u0430 \u0432\u043A\u043B\u0430\u0434\u043A\u0435 **Auth** \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F.",
|
|
9074
9206
|
"token.title": "\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043A\u043B\u044E\u0447",
|
|
9075
9207
|
"token.where": "\u0412 **Keys \u2192 Service keys** \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u0438\u043C\u044F \u043A\u043B\u044E\u0447\u0430, \u0437\u0430\u0442\u0435\u043C **Show** \u0438 **Copy**. \u0422\u043E\u043A\u0435\u043D \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u043E\u0433\u043E \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u043B\u0435\u0436\u0438\u0442 \u043D\u0430 \u0435\u0433\u043E \u0432\u043A\u043B\u0430\u0434\u043A\u0435 **Auth**. \u041E\u0431\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u044E\u0442\u0441\u044F \u0441 `pat-`.",
|
|
9076
9208
|
"token.label": "\u0421\u0435\u0440\u0432\u0438\u0441\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0438\u043B\u0438 \u0442\u043E\u043A\u0435\u043D \u0434\u043E\u0441\u0442\u0443\u043F\u0430",
|
|
9077
9209
|
"token.hint": "\u0425\u0440\u0430\u043D\u0438\u0442\u0441\u044F \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u043A\u0435 \u043A\u043B\u044E\u0447\u0435\u0439, \u0430 \u0431\u0435\u0437 \u043D\u0435\u0451 \u0432 \u0444\u0430\u0439\u043B\u0435, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0432\u044B.",
|
|
9078
|
-
"token.rights": "\u041A\u043B\u044E\u0447 \u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u043E, \u0447\u0442\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044E\u0442 \u0435\u0433\u043E \u043F\u0440\u0430\u0432\u0430. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u0432\u0445\u043E\u0434\u0438\u0442 \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 HubSpot: \u0432\u0442\u043E\u0440\u043E\u0439 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u043D\u0430 \u0442\u043E\u043C \u0436\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0435 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u0435\u0442\u0441\u044F.",
|
|
9210
|
+
"token.rights": "\u041A\u043B\u044E\u0447 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043C\u0435\u043D\u044F\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u043E, \u0447\u0442\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044E\u0442 \u0435\u0433\u043E \u043F\u0440\u0430\u0432\u0430. \u041A\u0430\u0436\u0434\u044B\u0439 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u0432\u0445\u043E\u0434\u0438\u0442 \u0432 \u0441\u0432\u043E\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 HubSpot: \u0432\u0442\u043E\u0440\u043E\u0439 \u043F\u0440\u043E\u0444\u0438\u043B\u044C \u043D\u0430 \u0442\u043E\u043C \u0436\u0435 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0435 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u0435\u0442\u0441\u044F.",
|
|
9079
9211
|
"check.title": "\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u043C \u043A\u043B\u044E\u0447",
|
|
9080
9212
|
"check.body": "hubspot \u0441\u043F\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0443 HubSpot, \u0447\u0435\u0439 \u0430\u043A\u043A\u0430\u0443\u043D\u0442 \u0443 \u044D\u0442\u043E\u0433\u043E \u043A\u043B\u044E\u0447\u0430. \u041A\u043B\u044E\u0447 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0441\u044F, \u0442\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 HubSpot \u043E\u0442\u0432\u0435\u0442\u0438\u0442.",
|
|
9081
9213
|
"failed.title": "\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043D\u0435 \u043F\u0440\u043E\u0448\u043B\u0430",
|
|
@@ -9207,7 +9339,8 @@ var definition = /* @__PURE__ */ __name(() => ({
|
|
|
9207
9339
|
{ command: 'search all "kitchen"', does: "stored deals beside your other WireCat tools' data" },
|
|
9208
9340
|
{ command: 'people list "Anna"', does: "any contact, read live from the account" },
|
|
9209
9341
|
{ command: "activities list", does: "notes, calls, e-mails, meetings and tasks on your deals" },
|
|
9210
|
-
{ command: "
|
|
9342
|
+
{ command: "deals close deal:12 won", does: "close a deal won or lost in HubSpot, with the key's write scopes" },
|
|
9343
|
+
{ command: "api deals-list --limit 5", does: "any operation of HubSpot's CRM API, one command per operation" }
|
|
9211
9344
|
],
|
|
9212
9345
|
start: `${IDENTITY.command} work session start`
|
|
9213
9346
|
},
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q2OLOMHL.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResources
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-4W6BMH45.js";
|
|
23
23
|
import {
|
|
24
24
|
wholeList
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VOH7S5M4.js";
|
|
26
26
|
import "./chunk-2QZK5BEP.js";
|
|
27
27
|
import "./chunk-WE4UFASG.js";
|
|
28
28
|
import "./chunk-RR5MX5TM.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
envelope,
|
|
7
7
|
serveOverHttpUntilStopped,
|
|
8
8
|
serveOverStdio
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TLKEPUAV.js";
|
|
10
|
+
import "./chunk-LXZ66MCH.js";
|
|
11
11
|
import "./chunk-X2M6NIQG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-Q2OLOMHL.js";
|
|
13
13
|
import "./chunk-B3MANLNK.js";
|
|
14
14
|
import "./chunk-4W6BMH45.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3WLYWRGG.js";
|
|
16
|
+
import "./chunk-VOH7S5M4.js";
|
|
17
17
|
import "./chunk-2QZK5BEP.js";
|
|
18
18
|
import "./chunk-WE4UFASG.js";
|
|
19
19
|
import "./chunk-RR5MX5TM.js";
|