@canonry/canonry 7.51.5 → 7.51.6
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/dist/ads-ABAT3K4K.js +544 -0
- package/dist/agent-5G4DRLYX.js +70 -0
- package/dist/agent-ask-UDVCZRO7.js +139 -0
- package/dist/agent-conversations-5E4JP2QZ.js +52 -0
- package/dist/agent-memory-7IIJ4HGZ.js +92 -0
- package/dist/agent-providers-BOXPUXZ4.js +55 -0
- package/dist/agent-transcript-4O56G6PQ.js +77 -0
- package/dist/analytics-PKMWX5XL.js +240 -0
- package/dist/apply-OK4XEBDA.js +175 -0
- package/dist/backfill-2OT56CX2.js +41 -0
- package/dist/backlinks-547WCHND.js +303 -0
- package/dist/bing-ZVBV4ZD5.js +418 -0
- package/dist/bootstrap-HUB7XQ73.js +326 -0
- package/dist/cdp-KQKQ4PWJ.js +162 -0
- package/dist/chunk-2G6IP3MO.js +517 -0
- package/dist/chunk-42D2LE2B.js +1273 -0
- package/dist/chunk-4MJYGB56.js +124 -0
- package/dist/chunk-63ISSSGX.js +9150 -0
- package/dist/{chunk-PLYJX67A.js → chunk-6G6FTDWC.js} +8080 -13939
- package/dist/chunk-6GO5VVAC.js +15 -0
- package/dist/{chunk-4YCGZGA3.js → chunk-73P65KPW.js} +2 -2
- package/dist/chunk-7B2Q4NJE.js +133 -0
- package/dist/{chunk-JBZZEIM2.js → chunk-7WZ2FPB4.js} +2 -13
- package/dist/chunk-AOJU5LKX.js +8 -0
- package/dist/chunk-B2FR2ZQ4.js +420 -0
- package/dist/{chunk-HAHXPJQ5.js → chunk-B5J675KK.js} +16 -1684
- package/dist/{chunk-SFMWHPMX.js → chunk-D6COIM3U.js} +17128 -17143
- package/dist/{chunk-A3WSAAQS.js → chunk-DGVUTH7W.js} +9086 -34522
- package/dist/chunk-ELCLGWUT.js +83 -0
- package/dist/chunk-GO2J7SYT.js +1034 -0
- package/dist/chunk-HACZUMGM.js +145 -0
- package/dist/chunk-HM4NNKLG.js +94 -0
- package/dist/chunk-I3A56PFP.js +58 -0
- package/dist/chunk-I77PLCWG.js +961 -0
- package/dist/chunk-ISOQPVPY.js +232 -0
- package/dist/chunk-KFT5LOP2.js +610 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-MMEO22MF.js +38 -0
- package/dist/chunk-NHQ2U5I4.js +78 -0
- package/dist/chunk-PCXRFT3N.js +530 -0
- package/dist/chunk-PITHTCAX.js +15376 -0
- package/dist/chunk-QWKPSFGL.js +30 -0
- package/dist/chunk-RKIXES2B.js +609 -0
- package/dist/chunk-TSENU4GG.js +18 -0
- package/dist/{chunk-HLVEB5TB.js → chunk-TUTKNUMV.js} +7 -5
- package/dist/chunk-U3AHE2RT.js +1160 -0
- package/dist/chunk-UQ3MOZGC.js +644 -0
- package/dist/{chunk-AZFPA7JV.js → chunk-VBCE4CLX.js} +6 -4
- package/dist/chunk-VJWDBFSL.js +69 -0
- package/dist/chunk-VYMZ3QXG.js +8264 -0
- package/dist/chunk-WAULJDKO.js +2686 -0
- package/dist/chunk-WDFI5YMD.js +204 -0
- package/dist/chunk-XEBKF4N5.js +8 -0
- package/dist/chunk-Z7IUAJOF.js +13 -0
- package/dist/{chunk-KEATAHXH.js → chunk-ZWJRY5UI.js} +358 -581
- package/dist/chunk-ZXUAWVWM.js +15 -0
- package/dist/citations-UYB2RU5U.js +106 -0
- package/dist/{cli-catalog-MO6Z2CIZ.js → cli-catalog-F6FI7NB2.js} +5 -3
- package/dist/cli-commands-ZG5ILKDA.js +19 -0
- package/dist/cli.js +35 -29
- package/dist/competitor-EKP4R7YY.js +561 -0
- package/dist/content-DREE6JF3.js +257 -0
- package/dist/dashboard-ZALEOLLU.js +71 -0
- package/dist/demo-JG4Y22O4.js +75 -0
- package/dist/{demo-server-GIWDJGJX.js → demo-server-3A4J2C65.js} +22 -9
- package/dist/discover-W6GMD2HS.js +372 -0
- package/dist/discover-eval-CKFZHRBW.js +282 -0
- package/dist/doctor-TNGBSUMA.js +152 -0
- package/dist/evidence-3H2GFQBZ.js +57 -0
- package/dist/export-cmd-WUIKU5GK.js +49 -0
- package/dist/ga-JI6REFO4.js +911 -0
- package/dist/gbp-4ENDM5NS.js +370 -0
- package/dist/google-HKQSCLOC.js +946 -0
- package/dist/google-marketing-KQR5J2S4.js +403 -0
- package/dist/health-cmd-TS7EMMCS.js +64 -0
- package/dist/history-MSD5DK6K.js +90 -0
- package/dist/index.d.ts +47 -47
- package/dist/index.js +29 -6
- package/dist/init-L6WAEOWX.js +432 -0
- package/dist/insights-RTZ3IZTD.js +63 -0
- package/dist/intelligence-service-TH52PCNJ.js +15 -0
- package/dist/keys-625DZBRM.js +116 -0
- package/dist/keyword-CW46RNRR.js +164 -0
- package/dist/logs-V33SHBIW.js +30 -0
- package/dist/mcp-DFEDPSEG.js +14 -0
- package/dist/mcp.js +14 -5
- package/dist/measurement-plan-6W37RUOP.js +42 -0
- package/dist/notify-DSUOT7WO.js +125 -0
- package/dist/organic-evidence-BMN6L4OB.js +53 -0
- package/dist/overview-WRRMBZ6S.js +213 -0
- package/dist/project-2GJIU3FE.js +460 -0
- package/dist/query-3XPMGJUA.js +211 -0
- package/dist/research-V433CKJ4.js +200 -0
- package/dist/results-export-RGBU7QQQ.js +27 -0
- package/dist/run-NIAC6OJN.js +31 -0
- package/dist/schedule-KDWXRIE7.js +177 -0
- package/dist/search-626MPUJN.js +42 -0
- package/dist/serve-73SMMASI.js +557 -0
- package/dist/session-7WWOETZB.js +47 -0
- package/dist/settings-VKFQO6F2.js +107 -0
- package/dist/skills-5HC5H7TE.js +33 -0
- package/dist/snapshot-BSJUHFBC.js +538 -0
- package/dist/src-F6HM73TN.js +316 -0
- package/dist/status-V4OWP7LZ.js +126 -0
- package/dist/support-ARF4HER7.js +24 -0
- package/dist/technical-aeo-TG7CGU3F.js +625 -0
- package/dist/telemetry-O2IUNUBW.js +118 -0
- package/dist/tools-2GJIDKND.js +41 -0
- package/dist/traffic-XV4I3UPH.js +1295 -0
- package/dist/users-VGBLDL5K.js +170 -0
- package/dist/visibility-stats-UKJYJ6PP.js +241 -0
- package/dist/wordpress-JZA7CGC6.js +600 -0
- package/package.json +1 -1
- package/dist/chunk-4QQYYRHV.js +0 -23082
- package/dist/cli-commands-FOJR3HHU.js +0 -15
- package/dist/intelligence-service-XQCNWAPL.js +0 -9
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getTelemetryStatus,
|
|
3
|
+
setTelemetryPreference
|
|
4
|
+
} from "./chunk-RKIXES2B.js";
|
|
5
|
+
import {
|
|
6
|
+
createApiClient
|
|
7
|
+
} from "./chunk-B5J675KK.js";
|
|
8
|
+
import {
|
|
9
|
+
configExists,
|
|
10
|
+
getConfigPath
|
|
11
|
+
} from "./chunk-UQ3MOZGC.js";
|
|
12
|
+
import "./chunk-AOJU5LKX.js";
|
|
13
|
+
import {
|
|
14
|
+
CliError,
|
|
15
|
+
isMachineFormat,
|
|
16
|
+
usageError
|
|
17
|
+
} from "./chunk-HGMYEDAQ.js";
|
|
18
|
+
import {
|
|
19
|
+
normalizeTelemetryStatus
|
|
20
|
+
} from "./chunk-D6COIM3U.js";
|
|
21
|
+
import "./chunk-MLKGABMK.js";
|
|
22
|
+
|
|
23
|
+
// src/commands/telemetry.ts
|
|
24
|
+
function telemetryTarget(value) {
|
|
25
|
+
if (value === void 0 || value === "local") return "local";
|
|
26
|
+
if (value === "server") return "server";
|
|
27
|
+
throw usageError('Error: --target must be "local" or "server"', {
|
|
28
|
+
message: '--target must be "local" or "server"',
|
|
29
|
+
details: { command: "telemetry", target: value, allowed: ["local", "server"] }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function emitStatus(payload, format, mutation = false) {
|
|
33
|
+
if (isMachineFormat(format)) {
|
|
34
|
+
console.log(JSON.stringify(payload, null, 2));
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const targetSuffix = payload.target === "server" ? " (server)" : "";
|
|
38
|
+
if (mutation && payload.enabled === payload.configuredEnabled) {
|
|
39
|
+
console.log(`Telemetry${targetSuffix} ${payload.enabled ? "enabled." : "disabled. No data will be sent."}`);
|
|
40
|
+
} else if (payload.reason === "CANONRY_TELEMETRY_DISABLED") {
|
|
41
|
+
console.log(`Telemetry${targetSuffix}: disabled (CANONRY_TELEMETRY_DISABLED=1)`);
|
|
42
|
+
} else if (payload.reason === "DO_NOT_TRACK") {
|
|
43
|
+
console.log(`Telemetry${targetSuffix}: disabled (DO_NOT_TRACK=1)`);
|
|
44
|
+
} else if (payload.reason === "CI") {
|
|
45
|
+
console.log(`Telemetry${targetSuffix}: disabled (CI environment detected)`);
|
|
46
|
+
} else if (payload.reason === "NO_CONFIG") {
|
|
47
|
+
console.log(`Telemetry${targetSuffix}: enabled (no config yet \u2014 run "canonry bootstrap" first)`);
|
|
48
|
+
} else {
|
|
49
|
+
console.log(`Telemetry${targetSuffix}: ${payload.enabled ? "enabled" : "disabled"}`);
|
|
50
|
+
}
|
|
51
|
+
if (payload.enabled !== payload.configuredEnabled) {
|
|
52
|
+
console.log(`Configured telemetry: ${payload.configuredEnabled ? "enabled" : "disabled"}; effective state overridden by ${payload.reason}.`);
|
|
53
|
+
}
|
|
54
|
+
if (payload.anonymousId) console.log(`Anonymous ID: ${payload.anonymousId}`);
|
|
55
|
+
}
|
|
56
|
+
function localStatus() {
|
|
57
|
+
const status = getTelemetryStatus();
|
|
58
|
+
return {
|
|
59
|
+
...status,
|
|
60
|
+
...status.anonymousId ? { anonymousIdMasked: status.anonymousId } : {},
|
|
61
|
+
...configExists() ? { configPath: getConfigPath() } : {}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function requireLocalConfig(command) {
|
|
65
|
+
if (!configExists()) {
|
|
66
|
+
throw new CliError({
|
|
67
|
+
code: "CONFIG_REQUIRED",
|
|
68
|
+
message: 'No config found. Run "canonry bootstrap" first.',
|
|
69
|
+
displayMessage: 'No config found. Run "canonry bootstrap" first.',
|
|
70
|
+
details: { command }
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async function serverTelemetryCommand(subcommand, format) {
|
|
75
|
+
const client = createApiClient();
|
|
76
|
+
const response = subcommand === "status" ? await client.getTelemetry() : await client.updateTelemetry(subcommand === "enable");
|
|
77
|
+
emitStatus(normalizeTelemetryStatus(response), format, subcommand !== "status");
|
|
78
|
+
}
|
|
79
|
+
function telemetryCommand(subcommand, format = "text", targetValue) {
|
|
80
|
+
const available = ["status", "enable", "disable"];
|
|
81
|
+
const target = telemetryTarget(targetValue);
|
|
82
|
+
if (target === "server") {
|
|
83
|
+
if (subcommand === "status" || subcommand === "enable" || subcommand === "disable") {
|
|
84
|
+
return serverTelemetryCommand(subcommand, format);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
switch (subcommand) {
|
|
88
|
+
case "status": {
|
|
89
|
+
emitStatus(localStatus(), format);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
case "enable": {
|
|
93
|
+
requireLocalConfig("telemetry.enable");
|
|
94
|
+
void setTelemetryPreference(true, "cli");
|
|
95
|
+
emitStatus(localStatus(), format, true);
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
case "disable": {
|
|
99
|
+
requireLocalConfig("telemetry.disable");
|
|
100
|
+
const delivery = setTelemetryPreference(false, "cli");
|
|
101
|
+
emitStatus(localStatus(), format, true);
|
|
102
|
+
return delivery;
|
|
103
|
+
}
|
|
104
|
+
default:
|
|
105
|
+
throw usageError(`Error: unknown telemetry subcommand: ${subcommand ?? "(none)"}
|
|
106
|
+
Usage: canonry telemetry <status|enable|disable> [--target local|server] [--format json]`, {
|
|
107
|
+
message: `unknown telemetry subcommand: ${subcommand ?? "(none)"}`,
|
|
108
|
+
details: {
|
|
109
|
+
command: "telemetry",
|
|
110
|
+
usage: "canonry telemetry <status|enable|disable> [--target local|server] [--format json]",
|
|
111
|
+
available
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
telemetryCommand
|
|
118
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AERO_ADS_OPERATOR_CONTEXT_TOOL_NAME,
|
|
3
|
+
AERO_ADS_OPERATOR_MCP_TOOL_NAMES,
|
|
4
|
+
AERO_TOOL_PROFILES,
|
|
5
|
+
AERO_TOOL_SCOPES,
|
|
6
|
+
AeroAgentToolNames,
|
|
7
|
+
AeroToolProfiles,
|
|
8
|
+
AeroToolScopes,
|
|
9
|
+
buildAdsOperatorTools,
|
|
10
|
+
buildAeroStateTools,
|
|
11
|
+
buildAllTools,
|
|
12
|
+
buildReadTools,
|
|
13
|
+
isAeroToolProfile
|
|
14
|
+
} from "./chunk-U3AHE2RT.js";
|
|
15
|
+
import "./chunk-B5J675KK.js";
|
|
16
|
+
import "./chunk-UQ3MOZGC.js";
|
|
17
|
+
import "./chunk-ZWJRY5UI.js";
|
|
18
|
+
import "./chunk-HM4NNKLG.js";
|
|
19
|
+
import "./chunk-HACZUMGM.js";
|
|
20
|
+
import "./chunk-AOJU5LKX.js";
|
|
21
|
+
import "./chunk-HGMYEDAQ.js";
|
|
22
|
+
import "./chunk-DGVUTH7W.js";
|
|
23
|
+
import "./chunk-PITHTCAX.js";
|
|
24
|
+
import "./chunk-7B2Q4NJE.js";
|
|
25
|
+
import "./chunk-63ISSSGX.js";
|
|
26
|
+
import "./chunk-D6COIM3U.js";
|
|
27
|
+
import "./chunk-MLKGABMK.js";
|
|
28
|
+
export {
|
|
29
|
+
AERO_ADS_OPERATOR_CONTEXT_TOOL_NAME,
|
|
30
|
+
AERO_ADS_OPERATOR_MCP_TOOL_NAMES,
|
|
31
|
+
AERO_TOOL_PROFILES,
|
|
32
|
+
AERO_TOOL_SCOPES,
|
|
33
|
+
AeroAgentToolNames,
|
|
34
|
+
AeroToolProfiles,
|
|
35
|
+
AeroToolScopes,
|
|
36
|
+
buildAdsOperatorTools,
|
|
37
|
+
buildAeroStateTools,
|
|
38
|
+
buildAllTools,
|
|
39
|
+
buildReadTools,
|
|
40
|
+
isAeroToolProfile
|
|
41
|
+
};
|