@canonry/canonry 7.108.2 → 7.110.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/assets/agent-workspace/skills/aero/SKILL.md +16 -7
- package/assets/agent-workspace/skills/aero/references/aeo-discovery.md +40 -30
- package/assets/agent-workspace/skills/aero/references/agent-operations.md +14 -7
- package/assets/agent-workspace/skills/aero/references/ai-traffic-tracking.md +12 -20
- package/assets/agent-workspace/skills/aero/references/memory-patterns.md +3 -3
- package/assets/agent-workspace/skills/aero/references/orchestration.md +22 -9
- package/assets/agent-workspace/skills/aero/references/portfolio-analysis.md +10 -8
- package/assets/agent-workspace/skills/aero/references/regression-playbook.md +11 -7
- package/assets/agent-workspace/skills/aero/references/seo-analysis.md +4 -3
- package/assets/agent-workspace/skills/aero/references/site-health.md +3 -2
- package/assets/agent-workspace/skills/aero/references/wordpress-elementor-mcp.md +48 -219
- package/assets/agent-workspace/skills/aero/soul.md +1 -1
- package/assets/agent-workspace/skills/canonry/SKILL.md +14 -7
- package/assets/agent-workspace/skills/canonry/references/aeo-analysis.md +18 -25
- package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +12 -20
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +70 -27
- package/assets/agent-workspace/skills/canonry/references/google-business-profile.md +18 -24
- package/assets/agent-workspace/skills/canonry/references/google-marketing.md +10 -10
- package/assets/agent-workspace/skills/canonry/references/indexing.md +25 -27
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +8 -15
- package/assets/agent-workspace/skills/canonry/references/wordpress-integration.md +6 -2
- package/assets/assets/{AccessControls-B6bkOAge.js → AccessControls-DmKPF5t5.js} +2 -2
- package/assets/assets/{AgentSetupPage-H8VoauIK.js → AgentSetupPage-BvoJ7cu0.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-Cmm537Mw.js → AuditHistoryPanel-GHjaPPXk.js} +1 -1
- package/assets/assets/{BacklinksPage-Dg6IJr83.js → BacklinksPage-Ca3l7bel.js} +1 -1
- package/assets/assets/{ChartPrimitives-C1meaNiX.js → ChartPrimitives-CJLgYfSw.js} +1 -1
- package/assets/assets/{HistoryPage-DMmZ0fSd.js → HistoryPage-HqdlYIsd.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-x4S_SV30.js → MeasurementPropertyPage-D71Ki-q4.js} +1 -1
- package/assets/assets/ProjectPage-wGYGNnLC.js +15 -0
- package/assets/assets/{RunsPage-DG43ZJib.js → RunsPage-CeXFTDg4.js} +1 -1
- package/assets/assets/{ServerTrafficSection-B-QGjFGD.js → ServerTrafficSection-BZVlcCO2.js} +1 -1
- package/assets/assets/{SettingsPage-CJlAiPn3.js → SettingsPage-MiW1TGtF.js} +1 -1
- package/assets/assets/ToneBadge-BXxSLZUc.js +60 -0
- package/assets/assets/{TrafficPage-Dlp26Fvy.js → TrafficPage-1ZXZ2BLa.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-D-x32dzk.js → TrafficSourceDetailPage-BJPiUWus.js} +1 -1
- package/assets/assets/{account-context-C66suepK.js → account-context-DHUo7ntg.js} +1 -1
- package/assets/assets/{agent-trust-copy-BKQRIoVJ.js → agent-trust-copy-x8ECjEJu.js} +1 -1
- package/assets/assets/{card-iPmHn3JZ.js → card-bE38V9NH.js} +1 -1
- package/assets/assets/{index-C05Wdzzv.js → index-Ce3zYiH3.js} +15 -15
- package/assets/assets/{query-client-D_jULVYr.js → query-client-CBtgvGgy.js} +1 -1
- package/assets/assets/{react-query-ih29UP0I.js → react-query-CsgUn_pT.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-sHrGO6oc.js → react-sigma_core.esm.min-DeLn6mIk.js} +1 -1
- package/assets/assets/{server-traffic-BScF0-_t.js → server-traffic-Dwwd7cw6.js} +1 -1
- package/assets/assets/{service-DYJdF5mP.js → service-Bq_5mBI4.js} +1 -1
- package/assets/index.html +8 -8
- package/dist/{ads-IJHKPMDL.js → ads-VITOHLIW.js} +3 -3
- package/dist/{agent-X5SDBTII.js → agent-N57IKFTH.js} +10 -10
- package/dist/{agent-ask-UPROPFVK.js → agent-ask-VPK4ED7D.js} +3 -3
- package/dist/{agent-conversations-A7W74X6Q.js → agent-conversations-DPEGQ5NJ.js} +3 -3
- package/dist/{agent-journeys-WOLFWP3G.js → agent-journeys-7AS543HY.js} +3 -3
- package/dist/{agent-memory-TH6ORG63.js → agent-memory-OKKNU2MA.js} +3 -3
- package/dist/{agent-providers-FKVRHV4J.js → agent-providers-JZGGMH5H.js} +3 -3
- package/dist/{agent-transcript-UFEBYD4L.js → agent-transcript-AICHEB4B.js} +3 -3
- package/dist/{analytics-XNFXAKRP.js → analytics-FXNYSIAY.js} +3 -3
- package/dist/{apply-O46BRKQG.js → apply-DYYB2I2S.js} +3 -3
- package/dist/{backfill-IUCWBDEI.js → backfill-CXKKDOST.js} +10 -10
- package/dist/{backlinks-PB2Y3APJ.js → backlinks-442C4H4M.js} +3 -3
- package/dist/{bing-YOUZDEA2.js → bing-HRSXPL7O.js} +3 -3
- package/dist/{bootstrap-E4EI2W54.js → bootstrap-U5UVQDHJ.js} +10 -10
- package/dist/{cdp-72553DTZ.js → cdp-JSOEQZJJ.js} +7 -7
- package/dist/{chunk-46QQ3MQC.js → chunk-35H5E662.js} +1 -2
- package/dist/{chunk-7K3EFBNK.js → chunk-3AVO5OWE.js} +26 -1
- package/dist/{chunk-WTNB7B2K.js → chunk-3WAGCCAO.js} +1 -1
- package/dist/{chunk-WJUF7P7N.js → chunk-4CTVYOBQ.js} +1 -1
- package/dist/{chunk-K6HCS36A.js → chunk-5RMDU4MM.js} +6 -6
- package/dist/{chunk-PYLSLW6L.js → chunk-5SN2O7QH.js} +1 -1
- package/dist/{chunk-VGJCR6MC.js → chunk-66OTF2QQ.js} +587 -354
- package/dist/{chunk-JH6E6IV4.js → chunk-7GU4F2QO.js} +2 -2
- package/dist/{chunk-IZMQNTWQ.js → chunk-A334LHJ7.js} +3 -3
- package/dist/{chunk-V342HTLC.js → chunk-DMCJJ5FT.js} +3 -3
- package/dist/{chunk-QJGQOAUK.js → chunk-ES7XSOBY.js} +1 -1
- package/dist/{chunk-5KH7Y233.js → chunk-EU6JYD3C.js} +5 -5
- package/dist/{chunk-OEV6HQ3X.js → chunk-FEIDW5BU.js} +70 -2
- package/dist/{chunk-4FEKXZYP.js → chunk-FRKHFU6D.js} +5 -5
- package/dist/{chunk-J7RHAKTA.js → chunk-HGKB6J7I.js} +4 -4
- package/dist/{chunk-7XDDCPZV.js → chunk-HH4XK3FX.js} +1 -1
- package/dist/{chunk-LU3TWJX7.js → chunk-HX4KJWQO.js} +3 -3
- package/dist/{chunk-FU324DV3.js → chunk-JJ7RXQ2W.js} +2 -2
- package/dist/{chunk-AVBTCCAY.js → chunk-JXFFKZOI.js} +2 -2
- package/dist/{chunk-QNSTLSVL.js → chunk-M7R7GSO5.js} +2 -2
- package/dist/{chunk-6OBPZ6WK.js → chunk-ME74SV2T.js} +1 -1
- package/dist/{chunk-MA5VHGWC.js → chunk-OJYY6W5S.js} +1438 -1206
- package/dist/{chunk-CLWAZBJY.js → chunk-Q3IXAH34.js} +1 -1
- package/dist/{chunk-CORHE557.js → chunk-QIGC5JGR.js} +4 -4
- package/dist/{chunk-HAOLFBSD.js → chunk-QXBHZSOW.js} +3 -3
- package/dist/{chunk-6Y3I2QFU.js → chunk-RHY7GL5R.js} +2 -2
- package/dist/{chunk-2S25YWMO.js → chunk-S2I5FPQC.js} +1 -1
- package/dist/{chunk-EFY5C7ZJ.js → chunk-TV6BFBRI.js} +4 -4
- package/dist/{chunk-PKD22D4H.js → chunk-UC2LPOW4.js} +1 -1
- package/dist/chunk-UX3HJV2V.js +12 -0
- package/dist/{chunk-SHCFV7PL.js → chunk-VDAC54IW.js} +7 -7
- package/dist/{chunk-HOKR2Q26.js → chunk-VYPDVWRG.js} +1 -1
- package/dist/{chunk-BPKV6YLN.js → chunk-XS3S3UQE.js} +7 -7
- package/dist/{chunk-HABH5YAF.js → chunk-YKEXZBB4.js} +1 -1
- package/dist/{chunk-3XYCTAL7.js → chunk-ZABO7FFF.js} +13 -15
- package/dist/{chunk-E2ACURKW.js → chunk-ZVKWDSKW.js} +2 -2
- package/dist/{chunk-L6G22DGG.js → chunk-ZVLZ7YFW.js} +366 -366
- package/dist/{citations-A3N7E44V.js → citations-A6QP2QOT.js} +4 -4
- package/dist/{cli-catalog-2IKVWAJ7.js → cli-catalog-OJT3WVRE.js} +3 -3
- package/dist/{cli-commands-SEYCDGTO.js → cli-commands-KQQPOXIP.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-CZV7O3YY.js → competitor-AY5SURO6.js} +3 -3
- package/dist/{content-7Y6QZH2G.js → content-UZJF7XQV.js} +3 -3
- package/dist/{dashboard-OOCOW7VZ.js → dashboard-IXNMMT5P.js} +6 -6
- package/dist/{demo-72QLTRMQ.js → demo-Y7DDERG7.js} +1 -1
- package/dist/{demo-server-NFJOZ6ZF.js → demo-server-PNPTTPGQ.js} +13 -12
- package/dist/{discover-LUCA6O5X.js → discover-45FOFNGO.js} +4 -4
- package/dist/{discover-eval-U2XY45WE.js → discover-eval-CJ5G32A6.js} +3 -3
- package/dist/{doctor-4O3ZZJAG.js → doctor-2R4J6QC7.js} +3 -3
- package/dist/{evidence-COM64MWY.js → evidence-HDUJMIIR.js} +3 -3
- package/dist/{export-cmd-HEQ5TZER.js → export-cmd-3AXP4C3S.js} +3 -3
- package/dist/{ga-F5KCSFBL.js → ga-RYK2FEEH.js} +3 -3
- package/dist/{gbp-GNHJKLUF.js → gbp-TAA3TNDA.js} +16 -5
- package/dist/{google-SAW6YWIC.js → google-62PQ4SMC.js} +4 -4
- package/dist/{google-marketing-SIZWYSL2.js → google-marketing-UWGFDUUZ.js} +1 -1
- package/dist/{health-cmd-5IZFIQK2.js → health-cmd-ZDHMZLYQ.js} +4 -4
- package/dist/{history-O3VAYWT6.js → history-RVBQUMCX.js} +3 -3
- package/dist/index.d.ts +87 -3
- package/dist/index.js +26 -25
- package/dist/{init-KAEFZHQB.js → init-XP3J3HPB.js} +12 -12
- package/dist/{insights-UFSQCY2N.js → insights-I2YS7U6L.js} +3 -3
- package/dist/intelligence-service-OHEFN77N.js +16 -0
- package/dist/{journeys-XUPV4POH.js → journeys-BELWHYCZ.js} +3 -3
- package/dist/{keys-MWIC2RAM.js → keys-XDILBZFM.js} +3 -3
- package/dist/{keyword-BI6JIKFU.js → keyword-BQ4ECK2Z.js} +3 -3
- package/dist/{logs-DJAPNQRC.js → logs-UAZUYRCJ.js} +3 -3
- package/dist/{mcp-K7KJOU2D.js → mcp-4262JRAS.js} +4 -4
- package/dist/mcp.js +10 -9
- package/dist/{measurement-plan-IZ3ONXKO.js → measurement-plan-D4DFV7XU.js} +5 -5
- package/dist/{notify-23XROT44.js → notify-TIAGVEYL.js} +12 -22
- package/dist/{organic-evidence-MY3YS2FV.js → organic-evidence-2TUODD26.js} +3 -3
- package/dist/{overview-XF3HRTRP.js → overview-WP2DO3GW.js} +5 -5
- package/dist/{project-BTX7G7RS.js → project-OOUUH5QM.js} +3 -3
- package/dist/{project-setup-OEF4VHVO.js → project-setup-HBKPIBNL.js} +3 -3
- package/dist/{query-67PA6WZ2.js → query-M7XT5UL3.js} +3 -3
- package/dist/{research-AFDDYAZS.js → research-O36LMQ6N.js} +3 -3
- package/dist/{results-export-6BI6P2MI.js → results-export-EQWWL2FH.js} +3 -3
- package/dist/{run-24TJZZXB.js → run-2I7SGZWI.js} +5 -5
- package/dist/{schedule-J2LIJ52P.js → schedule-UIPFPM64.js} +3 -3
- package/dist/{search-6RAWS2IO.js → search-L3BSPUWL.js} +3 -3
- package/dist/{serve-IURZ4D4U.js → serve-CKQIXMZH.js} +27 -26
- package/dist/{session-ZZG6G4D7.js → session-JMUEO4JX.js} +14 -13
- package/dist/{settings-UV6TFSYN.js → settings-CCYLUD6M.js} +3 -3
- package/dist/{sitemaps-YVX6NKUG.js → sitemaps-QKEA3DLO.js} +3 -3
- package/dist/{skills-6GYQKVDM.js → skills-6QCTDYJX.js} +2 -2
- package/dist/{snapshot-N6RFEDB5.js → snapshot-SPVUDPYM.js} +3 -3
- package/dist/{src-U2E6JQJF.js → src-TV6FYYJC.js} +4 -2
- package/dist/{status-HZHN6UNX.js → status-FU5K5ZIP.js} +5 -5
- package/dist/{technical-aeo-ZQD4Q7DP.js → technical-aeo-A2UNMVHB.js} +3 -3
- package/dist/{telemetry-GQA2LXOM.js → telemetry-4UAREPKB.js} +4 -4
- package/dist/{tools-XH6DGBGV.js → tools-OLOHKI7B.js} +12 -11
- package/dist/{traffic-Y6T2OKJF.js → traffic-3TQUDBQB.js} +5 -5
- package/dist/{trends-DTHOUJUU.js → trends-IHC2MH5V.js} +3 -3
- package/dist/{users-JSG4WKPW.js → users-TYU5PIYM.js} +3 -3
- package/dist/{visibility-stats-4FW4DZSK.js → visibility-stats-BWJF57ON.js} +4 -4
- package/dist/{wordpress-AHTU5C7M.js → wordpress-T4CVB32J.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/ProjectPage-DnDw0Cvk.js +0 -15
- package/assets/assets/ToneBadge-BkNG9buI.js +0 -60
- package/dist/intelligence-service-OZIEPTCK.js +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JJ7RXQ2W.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
DEPRECATED_MCP_TOOL_ALIAS_NAMES,
|
|
7
7
|
canonryMcpTools
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZABO7FFF.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
11
|
} from "./chunk-HGMYEDAQ.js";
|
|
12
12
|
import {
|
|
13
13
|
buildOpenApiDocument
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OJYY6W5S.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
|
|
17
17
|
MeasurementPortfolioLists,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
seoDatasetWithoutVendor,
|
|
25
25
|
seoProviderSchema,
|
|
26
26
|
truncateUtf16
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FEIDW5BU.js";
|
|
28
28
|
|
|
29
29
|
// src/agent/tools.ts
|
|
30
30
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolveCliAccess,
|
|
4
4
|
resolveCliAccessForInvocation,
|
|
5
5
|
windowOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q3IXAH34.js";
|
|
7
7
|
import {
|
|
8
8
|
emitJsonl
|
|
9
9
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-HGMYEDAQ.js";
|
|
15
15
|
import {
|
|
16
16
|
OperationAccesses
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FEIDW5BU.js";
|
|
18
18
|
|
|
19
19
|
// src/cli-catalog.ts
|
|
20
20
|
import { createRequire } from "module";
|
|
@@ -122,7 +122,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
|
|
|
122
122
|
const accessValue = accessFilterFromArgs(argsWithoutHelp);
|
|
123
123
|
validateAccessFilter(accessValue);
|
|
124
124
|
if (fallbackFormat !== "text") {
|
|
125
|
-
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-
|
|
125
|
+
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-OJT3WVRE.js");
|
|
126
126
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
127
127
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
128
128
|
return true;
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-VJWDBFSL.js";
|
|
5
5
|
import {
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JJ7RXQ2W.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
isMachineFormat
|
|
11
11
|
} from "./chunk-HGMYEDAQ.js";
|
|
12
12
|
import {
|
|
13
13
|
describeError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FEIDW5BU.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/mcp.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bucketCliCommandDuration,
|
|
3
3
|
isTelemetryEnabled,
|
|
4
4
|
trackEvent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVKWDSKW.js";
|
|
6
6
|
import {
|
|
7
7
|
getConfigDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-35H5E662.js";
|
|
9
9
|
import {
|
|
10
10
|
currentOutcomeAttribution
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VYPDVWRG.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT_NONE,
|
|
14
14
|
OutcomeSurfaces,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
integrationConnectionPropertiesSchema,
|
|
20
20
|
normalizeAgentSlug,
|
|
21
21
|
usageSurfaceSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FEIDW5BU.js";
|
|
23
23
|
|
|
24
24
|
// src/outcome-telemetry.ts
|
|
25
25
|
import fs from "fs";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createApiClient,
|
|
9
9
|
runWithUsageTags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JJ7RXQ2W.js";
|
|
11
11
|
import {
|
|
12
12
|
canonryMcpTools,
|
|
13
13
|
mcpOutputSchema,
|
|
14
14
|
toolOperationAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZABO7FFF.js";
|
|
16
16
|
import {
|
|
17
17
|
PACKAGE_VERSION
|
|
18
18
|
} from "./chunk-AOJU5LKX.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isReadOnlyKey,
|
|
26
26
|
restrictedWriteScopes,
|
|
27
27
|
upgradeCaveatFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FEIDW5BU.js";
|
|
29
29
|
|
|
30
30
|
// src/mcp/server.ts
|
|
31
31
|
import { randomUUID } from "crypto";
|
|
@@ -238,7 +238,7 @@ var OPERATIONS_GUIDE = {
|
|
|
238
238
|
"guideVersion": "v1",
|
|
239
239
|
"operationsGuideUrl": "https://github.com/Canonry/canonry/blob/main/docs/agent-operations/v1.md",
|
|
240
240
|
"resourceUri": "canonry://agent-operations/v1",
|
|
241
|
-
"initialize": 'Canonry tracks how AI answer engines mention brands and cite domains. Start with canonry_help({intent:"status"}) or a workflow; follow its stored reads and approval boundaries.
|
|
241
|
+
"initialize": 'Canonry tracks how AI answer engines mention brands and cite domains. Start with canonry_help({intent:"status"}) or a workflow; follow its stored reads and approval boundaries. MCP clients need no skill, resource, plugin or local CLI; the Canonry skill offers optional additional guidance.\nmentioned = brand in answer TEXT; cited = domain in SOURCE links. Never compute one from the other. A null answerMentioned means not checked, not false. citationState not-measured (the engine returns no sources) is never a miss. No recorded sweep means no measured figure.\nGet approval for live provider reads, sweeps, probes, research, syncs and writes, scoped to the exact target, action and work. A GET or readOnlyHint does not mean free: every liveTools entry canonry_help returns for this connection needs approval, read-only ones too.\nREST exposes x-canonry-access; CLI help and catalog expose access.\nStored-only (CLI --stored-only or CANONRY_STORED_ONLY=1; stdio MCP --stored-only, --scope=stored-only or CANONRY_MCP_SCOPE=stored-only) refuses live operations and writes, doctor included (CLI: STORED_ONLY_REFUSED), and skips local skill updates and update checks. Explicit exports can write files; server accounting and scheduled work still run.\nHelp and skills grant no permissions; the server enforces them. Report a missing tool or 403; never bypass it with other credentials or endpoints. Hosted catalogs are fixed; use canonry_load_toolkit only when help offers it.\nTell the user about concrete Canonry failures, workarounds or improvements. Send one external report via canonry_feedback only with approval, without secrets or customer data.\n',
|
|
242
242
|
"approvalBoundary": [
|
|
243
243
|
"provider reads",
|
|
244
244
|
"sweeps",
|
|
@@ -270,7 +270,7 @@ var OPERATIONS_GUIDE = {
|
|
|
270
270
|
"playbooks": [
|
|
271
271
|
"seo-analysis"
|
|
272
272
|
],
|
|
273
|
-
"guidance": "Use canonry_seo_trends for comparable saved refreshes. For ranked-keyword profiles, select one search with keyword
|
|
273
|
+
"guidance": "Use canonry_seo_trends for comparable saved refreshes. For ranked-keyword profiles, select one search with keyword. Treat a missing sampled position as unavailable. Preserve target, scope, source, locale, observation dates and missing readings. For exact snapshots use canonry_seo_overview or canonry_seo_market_summary. Keep SEO estimates separate from Search Console and AI citation and mention coverage. For an approved new refresh, get a token from canonry_seo_refresh_intent. To retry the same submission, reuse its token and idempotency key. Keep credentials and billing details private."
|
|
274
274
|
},
|
|
275
275
|
"operations": {
|
|
276
276
|
"keywords": [
|
|
@@ -287,7 +287,7 @@ var OPERATIONS_GUIDE = {
|
|
|
287
287
|
"canonry_telemetry_get",
|
|
288
288
|
"canonry_logs_list"
|
|
289
289
|
],
|
|
290
|
-
"guidance": "Inspect current credential and server state before proposing changes. Runtime logs require instance-wide logs.read
|
|
290
|
+
"guidance": "Inspect current credential and server state before proposing changes. Runtime logs require a host-approved operator key with instance-wide logs.read or wildcard scope. Inspect retention, dropped, and captureErrors before drawing conclusions. File-backed hosts retain bounded redacted logs across restarts. Read audit history separately. Respect a 403. Settings writes require settings.write and explicit approval."
|
|
291
291
|
},
|
|
292
292
|
"status": {
|
|
293
293
|
"keywords": [
|
|
@@ -406,7 +406,7 @@ var OPERATIONS_GUIDE = {
|
|
|
406
406
|
"guidance": "Build the requested summary from stored project overview, organic evidence, and the relevant visibility, measurement, integration, or traffic reads. Retain evidence dates, scope, sample sizes, missing data, and separate mention/citation signals; do not generate fresh runs implicitly."
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
|
-
"markdown": "# Canonry Operations Guide v1\n\nCanonry is an agent-first AI visibility platform. MCP is the universal entry\npoint for connected agents. Host-native skills are optional upgrades, not a\nprerequisite or a permission mechanism.\n\n## Connect and choose a route\n\nRead the initialization guidance, then call `canonry_help` with an `intent`:\n`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`,\n`reports`, or a short task\ndescription. Select an accessible project with `canonry_projects_list` before\nusing its exact name in project tools. Inspect each listed tool's input schema;\nhelp suggests tool names, not invented arguments or authorization.\n\nHelp returns a versioned, compact route: connection `mode`, available `next`\ntools, workflow guidance, approval boundaries, and this guide's URL. It performs\nno provider calls, reads no project data, and changes no permissions.\n`next` lists stored reads. Optional `actions` lists loaded tools for work that\nrequires approval; listing an action does not authorize or execute it.\n`includeCatalog: true` additionally returns toolkit details when needed.\n\nAnalysis routes also return `playbooks`: Canonry's analyst playbooks for that\nwork, the same files its built-in agent reads. Read each one before\ninterpreting results. `canonry_help({ playbook: \"<slug>\" })` returns its full\ntext, a note on using it over MCP, and every available slug. Playbooks are\nguidance, not permission.\n\nHosted connections use a fixed catalog. Help only suggests tools offered by that\nconnection; it never tells a hosted agent to dynamically load a toolkit. A\nprogressive local stdio connection may return `loadToolkits`: call\n`canonry_load_toolkit` with one returned name, await it, then call help again.\nLoading only changes local tool discovery, never server authority.\n\nThe optional `canonry://agent-operations/v1` MCP resource contains this same\nguide. If the host cannot read resources or open links, continue through help.\nDo not install a plugin, local runtime, or skill merely to use connected MCP.\nAn installed Codex or Claude Canonry skill contains a generated copy of this\nguide plus links to host-native references. It does not replace runtime help.\n\n## Vocabulary and evidence\n\n- **Mentioned** means the brand appears in answer text. **Cited** means its\n domain appears in source links. Either, both, or neither can occur; never\n compute one signal from the other.\n- `answerMentioned: null` means not checked, not false. Missing runs and empty\n populations mean no measurement, not zero visibility.\n- `citationState: not-measured` (with `cited: null`) means the engine returns no\n sources, such as a local model without web access, so whether it cites the\n domain was never observed. It is never a miss: cited rates leave it out and\n count it as `citationNotMeasured`, and a cited rate with nothing measured is\n null, not 0. Mention is still measured on those answers. Other reads show the\n same state in their own shape:\n - visibility report: an answer's `citationUnavailableReason:\n citation-not-measured`, or a rate's `reason: citation-not-measured`;\n - Advanced metrics: `{state: unavailable, reason: citation_not_measured}`;\n - research and snapshot answers: `citationMeasured: false` (research also\n sends `citationState: null`);\n - overview: `citationNotMeasuredQueries`, `citationNotMeasuredPairs` and\n `citationNotMeasuredCount`;\n - analytics: the gaps bucket `citationNotMeasured[]` and sources'\n `citationNotMeasuredAnswers`;\n - visibility compare: `excludedNotMeasured`.\n- Preserve project, time window, provider, requested/served model, location,\n sample size, and query class when comparing evidence. Use server-returned\n metrics; do not invent a score from incompatible populations.\n- Simple projects and Advanced portfolios share the workflow. For Advanced\n results, preserve Property, Target, market, plan revision, and class scope.\n Groups organize navigation; do not infer an unrequested fan-out.\n- Research is isolated evidence, not tracked measurement. A probe still spends\n quota and persists evidence but is excluded from normal tracking metrics.\n\n## Workflows\n\n**Status:** read the stored overview and freshness first. Say when evidence is\nmissing instead of silently creating it.\n\n**Setup:** Agent Readiness needs no answer-engine provider; AI Visibility does.\nAfter an Agent Readiness result on an install with no provider (a `NO_PROVIDER`\nnotice, or doctor's `providers.none-configured`), propose AI Visibility setup\nas the next step. The operator adds the provider key in the dashboard or in\ntheir own terminal; never ask for it in chat. A saved key is not a verified one:\nwith approval, `canonry settings provider test <name>` or `canonry_provider_test`\nchecks the saved connection with the provider now (usually one tiny prompt on\nthe operator's account) and reports `connected`, `failed` with the provider's\nreason, or `not-verified`. It needs install administrator authority and\n`settings.write`; while a connection's test is still running, another test of it\nreturns `OPERATION_IN_PROGRESS`, so wait for that result. The latest result is\nkept as the connection's `lastTest` (`canonry settings provider-info <name>` or\n`canonry_provider_settings_get`) until its key, endpoint, model, Vertex project,\nregion or credentials, or CDP endpoint changes, or the connection is\ndisconnected; read it before testing again.\nRerunning `canonry bootstrap` after a provider change reloads saved provider\nsettings on a matching running local server and reports whether they became\nactive. If the server is offline, start it to apply the saved settings. For an\nexplicit reload of the connected server's own config, use\n`canonry settings reload-providers` or `canonry_providers_reload` with install\nadministrator authority. Remote servers are never reloaded automatically by\nbootstrap, and a local server that belongs to another install is left alone.\nPorts and database settings still need a restart.\n\n**Diagnose:** inspect stored history and comparable evidence. Explain what\nchanged separately from why it might have changed. A hypothesis is not a\nmeasured cause. Propose bounded verification if stored evidence is insufficient.\n\n**Agent Readiness:** read `canonry_agent_readiness_issues` for stored findings,\naffected-page counts and example URLs, then `canonry_agent_readiness_issue_pages`\nfor a selected issue's remaining pages. Pin subsequent reads to the returned\nrun. Inspect coverage and omissions: a passing score can still have findings,\nan older scan may lack cross-page evidence, and a partial scan cannot establish\nsite-wide absence. Advisory findings require judgment before proposing a repair.\nAudit evidence informs technical repairs and existing-page recommendations;\nit does not itself establish a new-blog opportunity or authorize any edit.\n\n**Prospecting:** generate a one-shot company snapshot without creating a project.\nInspect stored provider settings first. Agree on the company, domain, selected\nproviders, and queries before starting the quota-spending snapshot action.\nBrowser-only selection requires manual queries. Progressive stdio help offers\nthe discovery toolkit when this connection permits snapshots; load it, then\ncall help again. Fixed catalogs offer only already available actions. Read-only\nand restricted connections must not bypass missing snapshot access.\n\n**Measurement:** inspect the existing setup and results before proposing edits.\nKeep research, query tracking, plan publication, and sweep execution separate.\nFor direct research, submit the final editable query text in one context. For a\nreviewed batch, submit each explicit destination with its final text and one\nidempotency key. Pattern substitution happens in the client before either\nrequest; choosing a market or Property records a destination only and never\nrewrites a query or creates an automatic fan-out. `research.run` does not\nauthorize saving patterns, changing tracking, publishing plans, or settings.\nUse a supported preview where available, inspect its exact destination and\nrevision, then seek approval for the actual change. A preview may itself require\nwrite permission; never treat a dry-run flag as a universal safety guarantee.\n\n**Integrations:** inspect stored connection state and snapshot freshness first.\nProvider configuration evidence does not prove a browser event fired or a\nconversion was recorded. Connection, resource selection, refresh/sync, and live\nreads are separate actions. Credentials belong in the operator's secure setup\nflow, never in chat, tool arguments, reports, or public guidance.\n\n**Reports:** use saved evidence for the requested period and scope. Keep mention\nand citation signals separate, include dates and sample sizes, and state missing\nor stale inputs. For Advanced Property mention rankings, use\n`canonry_measurement_portfolio_summary` and its `mentionRanking.strongest`,\n`.weakest`, and `.excluded` lists. It defaults to non-brand questions; state the\nreturned class and report branded results separately. An unavailable portfolio\naggregate does not invalidate available Property mention rates. Flag excluded\nProperties individually; do not silently replace mention ranking with citation\nranking. Compact `nextCursor` completes only `pageList`; use `list` to enumerate\none ranking, markets, observed names or cited domains, preserving filters.\nFirst-page sibling lists are bounded summaries. Keep sample sizes and ties\nvisible. Preparing a report does not\nauthorize new measurement.\n\n## Authority and approval\n\n### Agent operations\n\nUse `canonry_key_self` (CLI `canonry key whoami --format json`) to inspect the\ncurrent credential's scopes, project boundary, and host-derived `operator`\nauthority without exposing its token. Missing `operator` means unapproved.\n`canonry_settings_get` and\n`canonry_telemetry_get` describe the connected server, not the agent's local\nmachine. Telemetry reports configured preference, effective state, and any\nenvironment override; inspecting status never creates an anonymous identifier.\nAfter approval, `canonry_telemetry_update` changes that preference and\n`canonry_provider_settings_update` changes or resets an already-configured\nprovider's model and quota, restores its built-in endpoint, or removes an\noptional Local key. Both require `settings.write`; neither accepts credentials.\nA reset, restoring the endpoint and removing the Local key included, also\nrequires install administrator authority. Pass the `revision` from\n`canonry_provider_settings_get` as `expectedRevision` to reject a stale edit.\nServer telemetry reads and updates additionally require operator authority.\nOrdinary audit-history reads omit internal telemetry events and their state.\n\nOperator authority is deny-by-default and separate from customer admin roles.\nThe deployment owner must approve a dedicated, instance-wide API key's ID in\nthe server environment variable `CANONRY_OPERATOR_KEY_IDS` (comma-separated IDs),\nthen restart the server. Empty/unset approves nobody; wildcards are invalid.\nKeep the bearer private to internal operators; never approve a customer-held or\nshared proxy/bootstrap key. Use `logs.read` for read-only diagnostics, adding\n`settings.write` only when telemetry control is required. Ordinary key creation,\naccount roles, OAuth consent, and caller headers cannot grant operator status.\nRevoking an approved key invalidates it immediately. Host enrollment is a trust\nbootstrap step, intentionally unavailable through customer-facing APIs.\nAPI, CLI, and MCP enforce the same boundary; MCP hides internal tools unless\nthe server confirms operator authority, including in explicit read-only mode.\nProject analytics, research, and normal project permissions are unchanged.\n\n`canonry_logs_list` reads bounded, redacted runtime events from both the\napplication logger and Fastify request/error logging. It requires an\ninstance-wide `logs.read` grant (or wildcard) and a host-approved direct bearer.\nBrowser sessions, OAuth/delegated credentials, customer admins, and project-scoped\nkeys cannot use it, even with a project filter or a matching allowlist ID.\nA `logs.read`-only key is read-only automatically, without a\nsecond `read` marker. Named `*.read` scopes cannot grant mutations; an explicit\nwrite grant is needed and remains subject to its route gates. Returned messages\nare sanitized and bounded; raw request or response bodies, headers, cookies,\nprovider payloads, and stacks are not\npart of the queryable surface. The same secret-redaction policy runs before\nconsole output and storage. Do not deliberately log secrets: redaction is a\ndefense in depth, not permission to put credentials into diagnostic strings.\nOpaque escaped payloads containing secret assignments are omitted when safe\npartial masking cannot be guaranteed; correlate their retained error codes and IDs.\n\nFile-backed hosts retain runtime logs in SQLite across restarts, bounded to\n10,000 events and seven days. In-memory hosts report `retention: \"process\"`.\nFilter by `actor`, `requestId`, `runId`, `projectId`, `module`, `level`, or an\ninclusive `since`/`until` interval. Keep filters unchanged when resuming an\nopaque cursor; retention eviction can invalidate it. Inspect `retentionPolicy`,\n`captureErrors`, `dropped`, `truncated`, and `retention` before drawing\nconclusions. Missing logs are not proof that an action did not happen. Use\n`canonry_project_history` or `canonry_history_global` for persistent audit events;\noffset pages have deterministic ordering but are not snapshots of concurrent writes.\n\nAudit `actor` comes from authenticated identity (`user:<id>` or `api-key:<id>`),\nnot a caller-supplied header. A delegated MCP credential records its originating\nuser as actor and the actual credential in `credentialId`. `requestId` correlates\nHTTP events; `userAgent` and `actorSession` are bounded, untrusted client hints,\nnever identity or permission grants. Older audit rows are not backfilled with\nidentities the server cannot prove.\n\nBoth shipped HTTP hosts issue restart-safe UUID request IDs and return them in\n`x-request-id`. Use that value to correlate a CLI/API failure with log entries;\nHTTP diagnostics retain the method and route template, not raw URL parameters.\nRequest-bound loggers retain completion attribution, while generic background\ncontinuations stop inheriting caller identity after the response completes.\nCapture covers the owning server process after initialization, not arbitrary\nconsole output, other worker processes, or host/container logs. Run one server\ninstance per process and database, as required by the single-tenant deployment\nmodel; this is not a cross-tenant or distributed log collector.\n\nFor CLI use, settings reads are remote. Google setup and telemetry retain their\nlocal defaults: pass `--target server` explicitly to configure the connected\nserver. `schedule list <project>` lists all schedule kinds, and\n`notify events --target server` discovers the server's event catalog.\n\nMCP returns legacy text JSON plus structured results. Objects keep their shape;\narrays use `{items: [...]}` in `structuredContent`, and scalars use `{value: ...}`.\nErrors preserve the existing envelope and CLI exit codes: HTTP 4xx (including\n429 policy limits) use exit 1; HTTP 5xx use exit 2. Server-provided `Retry-After`\nand request IDs are exposed as `retryAfterMs` and `requestId` when available;\nclients do not infer retryability from HTTP 429 or retry automatically.\nFor a write with an ambiguous outcome, inspect saved state or its receipt before\nretrying; a retry hint is not proof that repeating a write is safe.\n\n### Action boundaries\n\nStart with stored evidence. Before a live provider read, sweep, probe, research\nrun, sync, write, or externally visible action, obtain approval covering its\nexact target, action, and bounded work. Approval already given for that exact\noperation need not be asked for again, but does not extend to more projects,\nlarger batches, retries with new identities, or recurring work.\n\nHTTP GET and MCP `readOnlyHint` describe aspects of an operation, not its cost\nor permission. Provider discovery, account reads, and live diagnostics may\nconsume quota even when labeled read-only. If the tool's effect is unclear,\ninspect its description and request direction before calling it.\n\nAuthentication, role/scope checks, project restrictions, quotas, and guarded\napproval receipts are enforced by the server. Help, skills, resources, and tool\nvisibility cannot grant authority. Never change credentials, endpoints, or\nproject identifiers to work around a missing tool or a `403` response.\n\nFor guarded ads writes, inspect unresolved operation receipts before retrying.\nUse the receipt's supported recovery action; do not replay a mutation under a\nnew identity. An executor cannot create or widen its own human approval grant.\nOn ambiguous results, exhausted bounds, or refusal, stop and report what is\nknown and what permission or operator action is needed.\n\n## Version and source\n\nThis public, versioned document is the source for initialization guidance,\nintent routes, the optional resource, and generated Canonry `SKILL.md` files.\nGuide v1 may receive compatible clarifications; incompatible routing contracts\nrequire a new guide version. The running server's help describes its actual\ncatalog and remains usable without fetching this document.\n"
|
|
409
|
+
"markdown": "# Canonry Operations Guide v1\n\nCanonry is an agent-first AI visibility platform. MCP is the universal entry\npoint for connected agents. Host-native skills are optional upgrades, not a\nprerequisite or a permission mechanism.\n\n## Connect and choose a route\n\nRead the initialization guidance, then call `canonry_help` with an `intent`:\n`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`,\n`seo`, `reports`, or a short task\ndescription. Select an accessible project with `canonry_projects_list` before\nusing its exact name in project tools. Inspect each listed tool's input schema;\nhelp suggests tool names, not invented arguments or authorization.\n\nHelp returns a versioned, compact route: connection `mode`, available `next`\ntools, workflow guidance, approval boundaries, and this guide's URL. It performs\nno provider calls, reads no project data, and changes no permissions.\n`next` lists stored reads. Optional `actions` lists loaded tools for work that\nrequires approval; listing an action does not authorize or execute it.\n`includeCatalog: true` additionally returns toolkit details when needed.\n\nAnalysis routes also return `playbooks`: Canonry's analyst playbooks for that\nwork, the same files its built-in agent reads. Read each one before\ninterpreting results. `canonry_help({ playbook: \"<slug>\" })` returns its full\ntext, a note on using it over MCP, and every available slug. Playbooks are\nguidance, not permission.\n\nHosted connections use a fixed catalog. Help only suggests tools offered by that\nconnection; it never tells a hosted agent to dynamically load a toolkit. A\nprogressive local stdio connection may return `loadToolkits`: call\n`canonry_load_toolkit` with one returned name, await it, then call help again.\nLoading only changes local tool discovery, never server authority.\n\nThe optional `canonry://agent-operations/v1` MCP resource contains this same\nguide. If the host cannot read resources or open links, continue through help.\nDo not install a plugin, local runtime, or skill merely to use connected MCP.\nAn installed Codex or Claude Canonry skill contains a generated copy of this\nguide plus links to host-native references. It does not replace runtime help.\n\n## Vocabulary and evidence\n\n- **Mentioned** means the brand appears in answer text. **Cited** means its\n domain appears in source links. Either, both, or neither can occur; never\n compute one signal from the other.\n- `answerMentioned: null` means not checked, not false. Missing runs and empty\n populations mean no measurement, not zero visibility.\n- `citationState: not-measured` (with `cited: null`) means the adapter captures\n no structured sources, as with Local chat completions. Canonry excludes those\n answers from cited rates and counts them in `citationNotMeasured`. The cited\n rate is null when there are no measured citations. Canonry still measures\n mentions on those answers. Other reads show the\n same state in their own shape:\n - visibility report: an answer's `citationUnavailableReason:\n citation-not-measured`, or a rate's `reason: citation-not-measured`;\n - Advanced metrics: `{state: unavailable, reason: citation_not_measured}`;\n - research and snapshot answers: `citationMeasured: false` (research also\n sends `citationState: null`);\n - overview: `citationNotMeasuredQueries`, `citationNotMeasuredPairs` and\n `citationNotMeasuredCount`;\n - analytics: the gaps bucket `citationNotMeasured[]` and sources'\n `citationNotMeasuredAnswers`;\n - visibility compare: `excludedNotMeasured`.\n- Preserve project, time window, provider, requested/served model, location,\n sample size, and query class when comparing evidence. Use server-returned\n metrics; do not invent a score from incompatible populations.\n- Simple projects and Advanced portfolios share the workflow. For Advanced\n results, preserve Property, Target, market, plan revision, and class scope.\n Groups organize navigation; do not infer an unrequested fan-out.\n- Research is isolated evidence, not tracked measurement. A probe still spends\n quota and persists evidence but is excluded from normal tracking metrics.\n\n## Workflows\n\n**Status:** read the stored overview and freshness first. Say when evidence is\nmissing instead of silently creating it.\n\n**Setup:** Agent Readiness needs no answer-engine provider; AI Visibility does.\nUse `canonry_project_setup` to read stored prerequisites and the suggested next step.\nAfter an Agent Readiness result on an install with no provider (a `NO_PROVIDER`\nnotice, or doctor's `providers.none-configured`), propose AI Visibility setup\nas the next step. The operator adds the provider key in the dashboard or in\ntheir own terminal; never ask for it in chat. A saved key is not a verified one:\nwith approval, `canonry settings provider test <name>` or `canonry_provider_test`\nchecks the saved connection with the provider now (usually one tiny prompt on\nthe operator's account) and reports `connected`, `failed` with the provider's\nreason, or `not-verified`. It needs install administrator authority and\n`settings.write`; while a connection's test is still running, another test of it\nreturns `OPERATION_IN_PROGRESS`, so wait for that result. The latest result is\nkept as the connection's `lastTest` (`canonry settings provider-info <name>` or\n`canonry_provider_settings_get`) until its key, endpoint, model, Vertex project,\nregion or credentials, or CDP endpoint changes, or the connection is\ndisconnected; read it before testing again.\nRerunning `canonry bootstrap` after a provider change reloads saved provider\nsettings on a matching running local server and reports whether they became\nactive. If the server is offline, start it to apply the saved settings. For an\nexplicit reload of the connected server's own config, use\n`canonry settings reload-providers` or `canonry_providers_reload` with install\nadministrator authority. Remote servers are never reloaded automatically by\nbootstrap, and a local server that belongs to another install is left alone.\nPorts and database settings still need a restart.\n\n**Diagnose:** inspect stored history and comparable evidence. Explain what\nchanged separately from why it might have changed. A hypothesis is not a\nmeasured cause. Propose bounded verification if stored evidence is insufficient.\n\n**Agent Readiness:** read `canonry_agent_readiness_issues` for stored findings,\naffected-page counts and example URLs, then `canonry_agent_readiness_issue_pages`\nfor a selected issue's remaining pages. Pin subsequent reads to the returned\nrun. Inspect coverage and omissions: a passing score can still have findings,\nan older scan may lack cross-page evidence, and a partial scan cannot establish\nsite-wide absence. Advisory findings require judgment before proposing a repair.\nAudit evidence informs technical repairs and existing-page recommendations;\nit does not itself establish a new-blog opportunity or authorize any edit.\n\n**Prospecting:** generate a one-shot company snapshot without creating a project.\nInspect stored provider settings first. Agree on the company, domain, selected\nproviders, and queries before starting the quota-spending snapshot action.\nBrowser-only selection requires manual queries. Progressive stdio help offers\nthe discovery toolkit when this connection permits snapshots; load it, then\ncall help again. Fixed catalogs offer only already available actions. Read-only\nand restricted connections must not bypass missing snapshot access.\n\n**Measurement:** inspect the existing setup and results before proposing edits.\nKeep research, query tracking, plan publication, and sweep execution separate.\nFor direct research, submit the final editable query text in one context. For a\nreviewed batch, submit each explicit destination with its final text and one\nidempotency key. Pattern substitution happens in the client before either\nrequest; choosing a market or Property records a destination only and never\nrewrites a query or creates an automatic fan-out. `research.run` does not\nauthorize saving patterns, changing tracking, publishing plans, or settings.\nUse a supported preview where available, inspect its exact destination and\nrevision, then seek approval for the actual change. A preview may itself require\nwrite permission; never treat a dry-run flag as a universal safety guarantee.\n\n`canonry_discover_harvest` reads saved probes and can send query text to Gemini\nto check for paraphrases. Get approval for that live work. Harvest requires an\nadministrator account or a bearer key with `*` scope and access to the project.\nUse the saved session read for stored-only work. Promoting candidates needs its\nown approval.\n\n**Integrations:** inspect stored connection state and snapshot freshness first.\nProvider configuration evidence does not prove a browser event fired or a\nconversion was recorded. Connection, resource selection, refresh/sync, and live\nreads are separate actions. Credentials belong in the operator's secure setup\nflow, never in chat, tool arguments, reports, or public guidance.\n\n**Reports:** use saved evidence for the requested period and scope. Keep mention\nand citation signals separate, include dates and sample sizes, and state missing\nor stale inputs. For Advanced Property mention rankings, use\n`canonry_measurement_portfolio_summary` and its `mentionRanking.strongest`,\n`.weakest`, and `.excluded` lists. It defaults to non-brand queries. State the\nreturned class and report branded results separately. An unavailable portfolio\naggregate does not invalidate available Property mention rates. Flag excluded\nProperties individually; do not silently replace mention ranking with citation\nranking. Compact `nextCursor` completes only `pageList`; use `list` to enumerate\none ranking, markets, observed names or cited domains, preserving filters.\nFirst-page sibling lists are bounded summaries. Keep sample sizes and ties\nvisible. Preparing a report does not\nauthorize new measurement.\n\n## Authority and approval\n\n### Agent operations\n\nUse `canonry_key_self` (CLI `canonry key whoami --format json`) to inspect the\ncurrent credential's scopes, project boundary, and host-derived `operator`\nauthority without exposing its token. Missing `operator` means unapproved.\n`canonry_settings_get` and\n`canonry_telemetry_get` describe the connected server, not the agent's local\nmachine. Telemetry reports configured preference, effective state, and any\nenvironment override; inspecting status never creates an anonymous identifier.\nAfter approval, `canonry_telemetry_update` changes that preference and\n`canonry_provider_settings_update` changes or resets an already-configured\nprovider's model and quota, restores its built-in endpoint, or removes an\noptional Local key. Both require `settings.write`; neither accepts credentials.\nA reset, restoring the endpoint and removing the Local key included, also\nrequires install administrator authority. Pass the `revision` from\n`canonry_provider_settings_get` as `expectedRevision` to reject a stale edit.\nServer telemetry reads and updates additionally require operator authority.\nOrdinary audit-history reads omit internal telemetry events and their state.\n\nOperator authority is deny-by-default and separate from customer admin roles.\nThe deployment owner must approve a dedicated, instance-wide API key's ID in\nthe server environment variable `CANONRY_OPERATOR_KEY_IDS` (comma-separated IDs),\nthen restart the server. Empty/unset approves nobody; wildcards are invalid.\nKeep the bearer private to internal operators; never approve a customer-held or\nshared proxy/bootstrap key. Use `logs.read` for read-only diagnostics, adding\n`settings.write` only when telemetry control is required. Ordinary key creation,\naccount roles, OAuth consent, and caller headers cannot grant operator status.\nRevoking an approved key invalidates it immediately. Host enrollment is a trust\nbootstrap step, intentionally unavailable through customer-facing APIs.\nAPI, CLI, and MCP enforce the same boundary; MCP hides internal tools unless\nthe server confirms operator authority, including in explicit read-only mode.\nProject analytics, research, and normal project permissions are unchanged.\n\n`canonry_logs_list` reads bounded, redacted runtime events from both the\napplication logger and Fastify request/error logging. It requires an\ninstance-wide `logs.read` grant (or wildcard) and a host-approved direct bearer.\nBrowser sessions, OAuth/delegated credentials, customer admins, and project-scoped\nkeys cannot use it, even with a project filter or a matching allowlist ID.\nA `logs.read`-only key is read-only automatically, without a\nsecond `read` marker. Named `*.read` scopes cannot grant mutations; an explicit\nwrite grant is needed and remains subject to its route gates. Returned messages\nare sanitized and bounded; raw request or response bodies, headers, cookies,\nprovider payloads, and stacks are not\npart of the queryable surface. The same secret-redaction policy runs before\nconsole output and storage. Do not deliberately log secrets: redaction is a\ndefense in depth, not permission to put credentials into diagnostic strings.\nOpaque escaped payloads containing secret assignments are omitted when safe\npartial masking cannot be guaranteed; correlate their retained error codes and IDs.\n\nFile-backed hosts retain runtime logs in SQLite across restarts, bounded to\n10,000 events and seven days. In-memory hosts report `retention: \"process\"`.\nFilter by `actor`, `requestId`, `runId`, `projectId`, `module`, `level`, or an\ninclusive `since`/`until` interval. Keep filters unchanged when resuming an\nopaque cursor; retention eviction can invalidate it. Inspect `retentionPolicy`,\n`captureErrors`, `dropped`, `truncated`, and `retention` before drawing\nconclusions. Missing logs are not proof that an action did not happen. Use\n`canonry_project_history` or `canonry_history_global` for persistent audit events;\noffset pages have deterministic ordering but are not snapshots of concurrent writes.\n\nAudit `actor` comes from authenticated identity (`user:<id>` or `api-key:<id>`),\nnot a caller-supplied header. A delegated MCP credential records its originating\nuser as actor and the actual credential in `credentialId`. `requestId` correlates\nHTTP events; `userAgent` and `actorSession` are bounded, untrusted client hints,\nnever identity or permission grants. Older audit rows are not backfilled with\nidentities the server cannot prove.\n\nBoth shipped HTTP hosts issue restart-safe UUID request IDs and return them in\n`x-request-id`. Use that value to correlate a CLI/API failure with log entries;\nHTTP diagnostics retain the method and route template, not raw URL parameters.\nRequest-bound loggers retain completion attribution, while generic background\ncontinuations stop inheriting caller identity after the response completes.\nCapture covers the owning server process after initialization, not arbitrary\nconsole output, other worker processes, or host/container logs. Run one server\ninstance per process and database, as required by the single-tenant deployment\nmodel; this is not a cross-tenant or distributed log collector.\n\nFor CLI use, settings reads are remote. Google setup and telemetry retain their\nlocal defaults: pass `--target server` explicitly to configure the connected\nserver. `schedule list <project>` lists all schedule kinds, and\n`notify events --target server` discovers the server's event catalog.\n\nMCP returns legacy text JSON plus structured results. Objects keep their shape;\narrays use `{items: [...]}` in `structuredContent`, and scalars use `{value: ...}`.\nErrors preserve the existing envelope and CLI exit codes: HTTP 4xx (including\n429 policy limits) use exit 1; HTTP 5xx use exit 2. Server-provided `Retry-After`\nand request IDs are exposed as `retryAfterMs` and `requestId` when available;\nclients do not infer retryability from HTTP 429 or retry automatically.\nFor a write with an ambiguous outcome, inspect saved state or its receipt before\nretrying; a retry hint is not proof that repeating a write is safe.\n\n### Action boundaries\n\nStart with stored evidence. Before a live provider read, sweep, probe, research\nrun, sync, write, or externally visible action, obtain approval covering its\nexact target, action, and bounded work. Approval already given for that exact\noperation need not be asked for again, but does not extend to more projects,\nlarger batches, retries with new identities, or recurring work.\n\nHTTP GET and MCP `readOnlyHint` describe aspects of an operation, not its cost\nor permission. Provider discovery, account reads, and live diagnostics may\nconsume quota even when labeled read-only. If the tool's effect is unclear,\ninspect its description and request direction before calling it.\n\nAuthentication, role/scope checks, project restrictions, quotas, and guarded\napproval receipts are enforced by the server. Help, skills, resources, and tool\nvisibility cannot grant authority. Never change credentials, endpoints, or\nproject identifiers to work around a missing tool or a `403` response.\n\nFor guarded ads writes, inspect unresolved operation receipts before retrying.\nUse the receipt's supported recovery action; do not replay a mutation under a\nnew identity. An executor cannot create or widen its own human approval grant.\nOn ambiguous results, exhausted bounds, or refusal, stop and report what is\nknown and what permission or operator action is needed.\n\n## Version and source\n\nThis public, versioned document is the source for initialization guidance,\nintent routes, the optional resource, and generated Canonry `SKILL.md` files.\nGuide v1 may receive compatible clarifications; incompatible routing contracts\nrequire a new guide version. The running server's help describes its actual\ncatalog and remains usable without fetching this document.\n"
|
|
410
410
|
};
|
|
411
411
|
|
|
412
412
|
// src/mcp/operations-guide.ts
|
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
reparseStoredResult4,
|
|
9
9
|
reparseStoredResult5,
|
|
10
10
|
resolveStoredApiResponse
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FRKHFU6D.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-35H5E662.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
isMachineFormat
|
|
18
18
|
} from "./chunk-HGMYEDAQ.js";
|
|
19
19
|
import {
|
|
20
20
|
determineCitationState
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UC2LPOW4.js";
|
|
22
22
|
import {
|
|
23
23
|
backfillProjectAnswerMentions,
|
|
24
24
|
competitorIdentityColumns,
|
|
25
25
|
createRunCompetitorResolver,
|
|
26
26
|
readMarketCompetitorNames,
|
|
27
27
|
refreshSnapshotMentionIdentity
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OJYY6W5S.js";
|
|
29
29
|
import {
|
|
30
30
|
RawEventSampleEventTypes,
|
|
31
31
|
auditLog,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
querySnapshots,
|
|
40
40
|
rawEventSamples,
|
|
41
41
|
runs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-3AVO5OWE.js";
|
|
43
43
|
import {
|
|
44
44
|
ProviderNames,
|
|
45
45
|
RetrievalContracts,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
extractRecommendedCompetitors,
|
|
53
53
|
normalizeUrlPath,
|
|
54
54
|
openRouterRouteModel
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-FEIDW5BU.js";
|
|
56
56
|
|
|
57
57
|
// src/commands/backfill.ts
|
|
58
58
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -430,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
async function backfillInsightsCommand(project, opts) {
|
|
433
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
433
|
+
const { IntelligenceService } = await import("./intelligence-service-OHEFN77N.js");
|
|
434
434
|
const config = loadConfig();
|
|
435
435
|
const db = createClient(config.database);
|
|
436
436
|
migrate(db);
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AGENT_WEBHOOK_EVENTS
|
|
3
|
+
} from "./chunk-UX3HJV2V.js";
|
|
1
4
|
import {
|
|
2
5
|
dedupeGscSitemapUrls,
|
|
3
6
|
resolveDiscoveredGscSitemapUrls,
|
|
4
7
|
submitGscSitemapBatches
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S2I5FPQC.js";
|
|
6
9
|
import {
|
|
7
10
|
measurementDraftOperationSchema,
|
|
8
11
|
runMeasurementDraftAction
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HH4XK3FX.js";
|
|
10
13
|
import {
|
|
11
14
|
CliError
|
|
12
15
|
} from "./chunk-HGMYEDAQ.js";
|
|
13
16
|
import {
|
|
14
17
|
AGENT_MEMORY_KEY_MAX_LENGTH,
|
|
15
18
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
19
|
+
DISCOVERY_DEFAULT_DEDUP_THRESHOLD,
|
|
16
20
|
DISCOVERY_MAX_PROBES_CAP,
|
|
17
21
|
DISCOVERY_PROBE_CONCURRENCY_CAP,
|
|
18
22
|
GA_SEARCH_LANDING_MAX_LIMIT,
|
|
@@ -197,7 +201,7 @@ import {
|
|
|
197
201
|
trendSurfaceSchema,
|
|
198
202
|
visibilityCompareSelectionSchema,
|
|
199
203
|
visibilityReportRequestSchema
|
|
200
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-FEIDW5BU.js";
|
|
201
205
|
|
|
202
206
|
// src/mcp/tool-registry.ts
|
|
203
207
|
import { z as z2 } from "zod";
|
|
@@ -979,7 +983,7 @@ var discoveryRunInputSchema = z2.object({
|
|
|
979
983
|
icpDescription: z2.string().min(1).optional().describe("Free-text ICP description. If omitted, the project must already have spec.icpDescription stored."),
|
|
980
984
|
buyerDescription: z2.string().min(1).optional().describe("Who evaluates or buys the offering, separate from the ICP. When present, every generated query is anchored on this buyer."),
|
|
981
985
|
seedProviders: z2.array(z2.enum(["gemini", "openai"])).min(1).optional().describe('Which providers generate seed candidates. Omit for the Gemini-only default; ["gemini","openai"] merges both phrasing distributions before dedup.'),
|
|
982
|
-
dedupThreshold: z2.number().min(0).max(1).optional().describe(
|
|
986
|
+
dedupThreshold: z2.number().min(0).max(1).optional().describe(`Cosine similarity threshold for clustering seed candidates. Defaults to ${DISCOVERY_DEFAULT_DEDUP_THRESHOLD}. Lower values dedupe more aggressively.`),
|
|
983
987
|
maxProbes: z2.number().int().positive().max(DISCOVERY_MAX_PROBES_CAP).optional().describe(`Max canonical queries to probe in this session. Default 100, hard cap ${DISCOVERY_MAX_PROBES_CAP}.`),
|
|
984
988
|
probeConcurrency: z2.number().int().min(1).max(DISCOVERY_PROBE_CONCURRENCY_CAP).optional().describe(`How many probes may run in parallel. Default 1 (strictly serial), hard cap ${DISCOVERY_PROBE_CONCURRENCY_CAP}. Probe rows are persisted in canonical order regardless of concurrency, so this only shortens wall-clock time.`)
|
|
985
989
|
}).optional()
|
|
@@ -1182,12 +1186,6 @@ var technicalAeoRunInputSchema = z2.object({
|
|
|
1182
1186
|
includeAgentSkills: siteAuditRunRequestSchema.shape.includeAgentSkills.removeDefault().optional().describe("Check discoverable actions, forms, and agent integrations by default. Set false to disable."),
|
|
1183
1187
|
sites: siteAuditRunRequestSchema.shape.sites.describe("Owned domains this scan covers besides the main domain, which every scan covers, at most 20. Each must be one of the project's owned domains. Omitted uses the project's saved siteAuditDomains (set with canonry_project_update); [] scans the main domain only. The page budget is shared across every site.")
|
|
1184
1188
|
});
|
|
1185
|
-
var AGENT_WEBHOOK_EVENTS = [
|
|
1186
|
-
notificationEventSchema.enum["run.completed"],
|
|
1187
|
-
notificationEventSchema.enum["insight.critical"],
|
|
1188
|
-
notificationEventSchema.enum["insight.high"],
|
|
1189
|
-
notificationEventSchema.enum["citation.gained"]
|
|
1190
|
-
];
|
|
1191
1189
|
var sentimentInputSchema = sentimentSelectionSchema.safeExtend({
|
|
1192
1190
|
project: projectNameSchema,
|
|
1193
1191
|
include: z2.array(sentimentSummaryIncludeSchema).max(2).optional().describe("Opt-in per-query detail: per-engine assessments and per-location scores. Omitted, query rows are compact unless queryId names one query."),
|
|
@@ -3053,11 +3051,11 @@ var rawCanonryMcpTools = [
|
|
|
3053
3051
|
defineTool({
|
|
3054
3052
|
name: "canonry_gbp_location_select",
|
|
3055
3053
|
title: "Toggle GBP location selection",
|
|
3056
|
-
description: "Mark a Google Business Profile location as selected or deselected for sync.",
|
|
3054
|
+
description: "Mark a Google Business Profile location as selected or deselected for sync. Deselecting also deletes that location's stored reviews, rating history and stats from the project; selecting it again fetches current data only, so removed history does not come back. Locations carry websiteMatchesProject: false when their website is not one of the project's domains, usually another business on the same Google account.",
|
|
3057
3055
|
access: "write",
|
|
3058
3056
|
tier: "gbp",
|
|
3059
3057
|
inputSchema: gbpLocationSelectionInputSchema,
|
|
3060
|
-
annotations: writeAnnotations({ idempotentHint: true }),
|
|
3058
|
+
annotations: writeAnnotations({ idempotentHint: true, destructiveHint: true }),
|
|
3061
3059
|
openApiOperations: ["PUT /api/v1/projects/{name}/gbp/locations/{locationName}/selection"],
|
|
3062
3060
|
handler: (client, input) => client.setGbpLocationSelection(input.project, input.locationName, input.selected)
|
|
3063
3061
|
}),
|
|
@@ -3963,7 +3961,7 @@ var rawCanonryMcpTools = [
|
|
|
3963
3961
|
defineTool({
|
|
3964
3962
|
name: "canonry_run_trigger",
|
|
3965
3963
|
title: "Trigger run",
|
|
3966
|
-
description: `Trigger an answer-visibility run for a Canonry project. request.providers accepts direct provider names and pinned OpenRouter model routes such as openrouter:google/gemini-2.5-flash. Multiple routes share the OpenRouter connection credentials and account limits, while preserving independent observations. The bare openrouter connection is not a sweep model. Omit both scoping fields for a full sweep. Pass request.queries[] to measure only some of the project's tracked
|
|
3964
|
+
description: `Trigger an answer-visibility run for a Canonry project. request.providers accepts direct provider names and pinned OpenRouter model routes such as openrouter:google/gemini-2.5-flash. Multiple routes share the OpenRouter connection credentials and account limits, while preserving independent observations. The bare openrouter connection is not a sweep model. Omit both scoping fields for a full sweep. Pass request.queries[] to measure only some of the project's tracked queries. On a project with a published measurement plan, pass request.measurementScope with at least one group or target to measure one slice of that plan \u2014 a group stands for its member Targets, and only the queries those Targets selected are measured. A scope naming nothing is rejected rather than treated as a full sweep, so omit the field entirely when you want everything. Either kind of slice is recorded as a spot check: it never replaces a full sweep in the dashboard, analytics or report. For verification scenarios (testing whether a provider migration worked, reproducing a regression, sanity-checking after a code change), set request.trigger='probe' \u2014 probe runs write a snapshot you can inspect via canonry_run_get but are EXCLUDED from dashboard, analytics, intelligence, report, and notifications. Use 'probe' for approved verification runs whose results should stay outside those surfaces. request.dispatchMode='batch' sends every provider that can (a full sweep of a published plan, a batch-capable provider enabled in config.yaml, every answer's model frozen) to its asynchronous batch API at the batch price; the rest run sync and the run stays running until the batch ends (up to its deadline, 24h by default). A batch request no provider can honour is refused with each provider's reason. Omit it for the ordinary sync sweep. A run is refused with PROVIDERS_FAILING when every provider it would call failed on its account (rejected key, denied access, no credit) in each of its last ${PROVIDER_ACCOUNT_FAILURE_STREAK} runs; details.providers names each provider's code and details.retryAfter when one run is let through again (${PROVIDER_ACCOUNT_RETRY_HOURS}h after the newest failure). Tell the user to fix the key, access or billing; saving a new key, model or endpoint in the provider's settings lets the next run through at once. A probe (request.trigger='probe') is never refused, and one that succeeds clears the refusal, so use a probe to check a fix. When only some providers keep failing that way, the run is queued without them: skippedProviders on the returned run names each with its code and retryAfter, and the run ends partial. Set request.force=true (call every provider) only when the user asks to run anyway.`,
|
|
3967
3965
|
access: "write",
|
|
3968
3966
|
tier: "core",
|
|
3969
3967
|
inputSchema: runTriggerInputSchema,
|
|
@@ -4387,11 +4385,11 @@ var rawCanonryMcpTools = [
|
|
|
4387
4385
|
defineTool({
|
|
4388
4386
|
name: "canonry_discover_harvest",
|
|
4389
4387
|
title: "Harvest discovery search queries",
|
|
4390
|
-
description:
|
|
4388
|
+
description: "Rank candidate search queries by how often they appeared in the stored discovery probes. These issued searches are retrieval evidence, separate from mentions, citations, and search demand. The novelty check can send candidate and tracked query text to Gemini for embeddings. This MCP tool requires a wildcard (*) API key with access to the project. Get approval before the live read. Check semanticNoveltyApplied to see whether embeddings were used. Review candidates before adding any through canonry_queries_add. Use minProbeHits to raise the recurrence floor and anchor=false to skip the subject filter. stats lists rejection counts.",
|
|
4391
4389
|
access: "read",
|
|
4392
4390
|
tier: "discovery",
|
|
4393
4391
|
inputSchema: discoveryHarvestInputSchema,
|
|
4394
|
-
annotations: readAnnotations(),
|
|
4392
|
+
annotations: readAnnotations(true),
|
|
4395
4393
|
openApiOperations: ["GET /api/v1/projects/{name}/discover/sessions/{id}/harvest"],
|
|
4396
4394
|
handler: (client, input) => client.getDiscoveryHarvest(input.project, input.sessionId, {
|
|
4397
4395
|
minProbeHits: input.minProbeHits,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-35H5E662.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_NPM_PACKAGE_URL,
|
|
11
11
|
compareSemver,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
updateCheckEnvOptOut,
|
|
19
19
|
upgradeCaveatFor,
|
|
20
20
|
upgradeCommandFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FEIDW5BU.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|