@canonry/canonry 7.116.1 → 7.118.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/README.md +1 -0
- package/assets/agent-workspace/skills/aero/references/agent-operations.md +4 -1
- package/assets/agent-workspace/skills/aero/references/getting-started.md +8 -6
- package/assets/agent-workspace/skills/canonry/SKILL.md +4 -1
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +12 -1
- package/assets/agent-workspace/skills/canonry/references/getting-started.md +8 -6
- package/assets/agent-workspace/skills/canonry/references/indexing.md +6 -1
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +13 -0
- package/assets/assets/{AccessControls-BTEv8WEG.js → AccessControls-CCvvzEec.js} +2 -2
- package/assets/assets/{AgentSetupPage-s4qM5l-m.js → AgentSetupPage-B-vXoIII.js} +7 -7
- package/assets/assets/{AuditHistoryPanel-BzSIEL75.js → AuditHistoryPanel-ClexSdME.js} +1 -1
- package/assets/assets/BacklinksPage-QMPUVhzl.js +1 -0
- package/assets/assets/{ChartPrimitives-IodrWRFV.js → ChartPrimitives-Dd9VFWrj.js} +1 -1
- package/assets/assets/{Hint-3TTi0MgX.js → Hint-DiyoPGOX.js} +1 -1
- package/assets/assets/{HistoryPage-C3iaKueQ.js → HistoryPage-CzQLFEZG.js} +1 -1
- package/assets/assets/{InfoTooltip-D29JcNMW.js → InfoTooltip-laRfQjZw.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-BTgy_3-R.js +4 -0
- package/assets/assets/ProjectPage-DLgYLplH.js +15 -0
- package/assets/assets/{RunsPage-DdZT_ymi.js → RunsPage-CnWXQk8q.js} +1 -1
- package/assets/assets/ServerTrafficSection-DqVZznpe.js +41 -0
- package/assets/assets/SettingsPage-D2j93m5Q.js +1 -0
- package/assets/assets/ToneBadge-Dym1_0XC.js +60 -0
- package/assets/assets/{TrafficPage-BiOAIZ_a.js → TrafficPage-CzieybRn.js} +1 -1
- package/assets/assets/TrafficSourceDetailPage-CtmGPXZc.js +1 -0
- package/assets/assets/{account-context-CBRGXimz.js → account-context-ClThq0Zv.js} +1 -1
- package/assets/assets/{agent-trust-copy-Bfe0oX0J.js → agent-trust-copy-C0WnWM9W.js} +1 -1
- package/assets/assets/{card-Biwv3_aH.js → card-C-9Q2kJl.js} +1 -1
- package/assets/assets/index-C9Op8ix9.css +1 -0
- package/assets/assets/index-CzPXJ0Qs.js +43 -0
- package/assets/assets/preload-helper-DV4nEYWy.js +1 -0
- package/assets/assets/{query-client-CsLay1me.js → query-client-plQHRUyr.js} +1 -1
- package/assets/assets/react-query-Dz0xmEkM.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BVgWTcxp.js → react-sigma_core.esm.min-B-tTeVwc.js} +1 -1
- package/assets/assets/server-traffic-BNdX8qZ4.js +1 -0
- package/assets/assets/service-CN4HIDuw.js +1 -0
- package/assets/assets/{use-tooltip-position-BOzm-6Wy.js → use-tooltip-position-CM1lD8cm.js} +1 -1
- package/assets/assets/vendor-lucide-7AWeFVeL.js +1 -0
- package/assets/assets/{vendor-markdown-BBGbNklj.js → vendor-markdown-CQdHmjWd.js} +1 -1
- package/assets/assets/{vendor-radix-DKCt5Z_h.js → vendor-radix-WbUsEVSn.js} +1 -1
- package/assets/assets/{vendor-recharts-ColROAYR.js → vendor-recharts-DCxaNd0O.js} +1 -1
- package/assets/assets/{vendor-tanstack-16u6cATb.js → vendor-tanstack-C613NhXZ.js} +1 -1
- package/assets/index.html +17 -17
- package/dist/{ads-JE6P76GB.js → ads-GVOTYDS3.js} +4 -5
- package/dist/{agent-BFX6GSRF.js → agent-RFYMQYMN.js} +8 -9
- package/dist/{agent-ask-SKR5ZR3S.js → agent-ask-MZRUCCJO.js} +4 -5
- package/dist/{agent-conversations-AI6UIDDB.js → agent-conversations-WBP5TI3X.js} +4 -5
- package/dist/{agent-journeys-PBVXSG4K.js → agent-journeys-6CR77XCZ.js} +4 -5
- package/dist/{agent-memory-MUPLQMXZ.js → agent-memory-PH3Y7OKJ.js} +4 -5
- package/dist/{agent-providers-56SGYO6F.js → agent-providers-3CBKNXSW.js} +4 -5
- package/dist/{agent-transcript-W2TCKZHU.js → agent-transcript-BN3DCK33.js} +4 -5
- package/dist/{analytics-E5DJUXYW.js → analytics-43UR5IMY.js} +4 -5
- package/dist/{apply-4BBHEPRB.js → apply-POV25FNG.js} +4 -5
- package/dist/{backfill-WNCUA5QU.js → backfill-CWC3W72X.js} +11 -12
- package/dist/{backlinks-F7KVYHNP.js → backlinks-W3SLOIHP.js} +4 -5
- package/dist/{bing-BKM3V5KY.js → bing-HGKOR5GV.js} +11 -10
- package/dist/{bootstrap-CJ4T6WIR.js → bootstrap-XAKQKZCC.js} +11 -12
- package/dist/{cdp-4DP7RUMV.js → cdp-WAB5BPGB.js} +8 -9
- package/dist/{chunk-GNXQMAHP.js → chunk-35DM6ZZ2.js} +2 -2
- package/dist/{chunk-QFIUKE5K.js → chunk-377K7XSP.js} +126 -8
- package/dist/{chunk-D7XW5LNC.js → chunk-3C6A63IG.js} +15 -5
- package/dist/{chunk-LSYMN3XT.js → chunk-4A2JURHR.js} +2 -2
- package/dist/{chunk-A2SB6EMM.js → chunk-6AJ4Y3QL.js} +2 -2
- package/dist/{chunk-IOMPGPSF.js → chunk-6ORW2OUQ.js} +1 -1
- package/dist/{chunk-LK6KW5JN.js → chunk-6UNZDUB6.js} +1 -1
- package/dist/{chunk-ZPHDPDLL.js → chunk-7ACE6HGU.js} +3 -3
- package/dist/{chunk-OSATM2GX.js → chunk-7JFPGEXQ.js} +34 -7
- package/dist/{chunk-DCW5R7SJ.js → chunk-CDPZTIK2.js} +4 -4
- package/dist/{chunk-64EMWVEP.js → chunk-G2JP3KNY.js} +4 -4
- package/dist/{chunk-BBMZ6534.js → chunk-G3HBHMML.js} +2 -4
- package/dist/{chunk-BGIH54A3.js → chunk-GSQQ6VVV.js} +1 -1
- package/dist/{chunk-T2AF4QN7.js → chunk-GY7YLVMD.js} +4 -4
- package/dist/{chunk-CSQTR3JO.js → chunk-HIPSMSH3.js} +387 -380
- package/dist/{chunk-QNWN7VRZ.js → chunk-HQ6GLLVU.js} +2 -2
- package/dist/{chunk-TKD5RVLL.js → chunk-HZTKUGQ4.js} +3 -3
- package/dist/{chunk-G5O4D7I6.js → chunk-ILDAN5TW.js} +1 -1
- package/dist/{chunk-X3ZK4A2L.js → chunk-IOOJ7DQ6.js} +1 -1
- package/dist/{chunk-3BMWBXHZ.js → chunk-LBNJVTGN.js} +11 -2
- package/dist/{chunk-LA42RIFU.js → chunk-LSNAMUIJ.js} +2 -2
- package/dist/{chunk-LLKXFSCH.js → chunk-NJWBSLRW.js} +8 -8
- package/dist/{chunk-3NUSGD54.js → chunk-NZZSWCNM.js} +1 -1
- package/dist/{chunk-WAFH2X45.js → chunk-O67HAPZL.js} +7 -7
- package/dist/{chunk-7Q4DS5JP.js → chunk-OKPD7X4P.js} +102 -102
- package/dist/{chunk-PSP56PWY.js → chunk-Q7LU7GTH.js} +1 -1
- package/dist/{chunk-P5EFITKV.js → chunk-QOFWKOKD.js} +4 -4
- package/dist/{chunk-NNHI6SOT.js → chunk-QT475Y6O.js} +4 -4
- package/dist/{chunk-BBVTNECC.js → chunk-RLDRNIB4.js} +5 -5
- package/dist/{chunk-RRBIKOMI.js → chunk-SBLC7FYP.js} +2 -2
- package/dist/{chunk-JU3KGXW6.js → chunk-SG7E3WTC.js} +5 -5
- package/dist/{chunk-L6TNLBXW.js → chunk-SZSZSOXP.js} +2 -2
- package/dist/{chunk-YNWBNADZ.js → chunk-U3TO2MFS.js} +4 -4
- package/dist/{chunk-3MUJYDIH.js → chunk-UKFXP4R5.js} +1301 -1140
- package/dist/{chunk-F44DLEKZ.js → chunk-V2VWIGVT.js} +1 -1
- package/dist/{chunk-HGMYEDAQ.js → chunk-VU3TF5CD.js} +4 -6
- package/dist/{chunk-GXMQORTQ.js → chunk-WKYQRF5A.js} +3 -3
- package/dist/chunk-XAJS5FH3.js +10 -0
- package/dist/{chunk-LABWX26D.js → chunk-XDOP2ANX.js} +7891 -7816
- package/dist/{citations-4FVSVZT2.js → citations-IMPVSN25.js} +5 -6
- package/dist/{cli-catalog-SAUMPDAU.js → cli-catalog-OFMWOBCF.js} +4 -5
- package/dist/cli-commands-HZNVXGGC.js +18 -0
- package/dist/cli.js +14 -15
- package/dist/{competitor-MJZ2BYYY.js → competitor-2NFTABZM.js} +4 -5
- package/dist/{content-GRWRFY7N.js → content-HYV3JOIS.js} +4 -5
- package/dist/{dashboard-SWAO3TZZ.js → dashboard-DCYRYQ6M.js} +7 -8
- package/dist/{demo-QIIAAUSK.js → demo-X44XG3CF.js} +3 -3
- package/dist/{demo-server-UUENUNWU.js → demo-server-SPMBNVZA.js} +13 -14
- package/dist/{discover-KFWFOOT5.js → discover-VIQMARSR.js} +5 -6
- package/dist/{discover-eval-DOUPPY2M.js → discover-eval-M5RRXWMX.js} +4 -5
- package/dist/{doctor-ZGZ2VEAR.js → doctor-HATXMESK.js} +4 -5
- package/dist/{evidence-27V4BDDW.js → evidence-C3IBS7TO.js} +4 -5
- package/dist/{export-cmd-HCS5ILVI.js → export-cmd-F674KINC.js} +4 -5
- package/dist/{ga-MP2CGERV.js → ga-AWBTXHSN.js} +4 -5
- package/dist/{gbp-OLZAMOYH.js → gbp-NAZYXN4S.js} +4 -5
- package/dist/{google-QB5MVADA.js → google-IYDAWLIV.js} +5 -6
- package/dist/{google-marketing-LWQPSXDT.js → google-marketing-NHV7BCQM.js} +2 -3
- package/dist/{health-cmd-YITDAMGQ.js → health-cmd-ASZUPWDG.js} +5 -6
- package/dist/{history-UUSJUU64.js → history-TFLEYUHW.js} +4 -5
- package/dist/index.d.ts +8 -4
- package/dist/index.js +28 -28
- package/dist/{init-HU3CQ3KE.js → init-ZMIYUSPN.js} +13 -14
- package/dist/{insights-Y2CVUEG7.js → insights-VMU43BJM.js} +4 -5
- package/dist/intelligence-service-TGXLLDIW.js +15 -0
- package/dist/{journeys-DJ7VEJHO.js → journeys-DSPUDWGM.js} +4 -5
- package/dist/{keys-DLI7ZAYO.js → keys-K56VXNJX.js} +4 -5
- package/dist/{keyword-VXU2JWZW.js → keyword-FCMS45PF.js} +4 -5
- package/dist/{logs-WINF42ZW.js → logs-75HP7UD3.js} +4 -5
- package/dist/{mcp-OBWG4O3Z.js → mcp-D7P73XVO.js} +5 -6
- package/dist/mcp.js +11 -12
- package/dist/{measurement-plan-MFZD2EVF.js → measurement-plan-AX6G3RWU.js} +6 -7
- package/dist/{notify-UXPTKXDA.js → notify-QUOFVHKS.js} +4 -5
- package/dist/{organic-evidence-7L6ZTSAH.js → organic-evidence-PPHL7QGS.js} +4 -5
- package/dist/{overview-M3OFICCH.js → overview-C6SSTCC6.js} +6 -7
- package/dist/{project-54O4VABG.js → project-MMQ2H6TH.js} +4 -5
- package/dist/{project-setup-KQBXILOX.js → project-setup-6DGYQAG2.js} +4 -5
- package/dist/{query-QAX5GMLH.js → query-EJGNRC2F.js} +4 -5
- package/dist/{research-5FO3VMLG.js → research-X43RAY3W.js} +4 -5
- package/dist/{results-export-75SDUK5R.js → results-export-FOQXK6NA.js} +4 -5
- package/dist/{run-ZYFBIQJ4.js → run-D4CFXIFR.js} +6 -7
- package/dist/{schedule-5MXMD6MZ.js → schedule-UFOJOPKA.js} +4 -5
- package/dist/{search-AVVB33MS.js → search-6C3ZPK24.js} +4 -5
- package/dist/{serve-AAGQ7AV7.js → serve-5WZQBOXG.js} +29 -29
- package/dist/{session-QLNH3YT4.js → session-3YQ2HXJW.js} +15 -16
- package/dist/{settings-LJ4W7KYC.js → settings-6AGLHMPI.js} +4 -5
- package/dist/{sitemaps-E26UGDHB.js → sitemaps-FIN5CVTH.js} +4 -5
- package/dist/{skills-KDKO76BH.js → skills-3ZD3N6S7.js} +3 -4
- package/dist/{snapshot-H6ESNKUI.js → snapshot-EFW3B6TM.js} +4 -5
- package/dist/{src-SS2AAYBS.js → src-QSFAXHBF.js} +2 -3
- package/dist/{status-RTXJFACN.js → status-CLWEOZP4.js} +6 -7
- package/dist/support-P5H555LC.js +41 -0
- package/dist/{technical-aeo-KMN7F4ZM.js → technical-aeo-IVNC26PJ.js} +4 -5
- package/dist/{telemetry-GKKKHJSB.js → telemetry-ZUFUNFST.js} +5 -6
- package/dist/{tools-HDZAXBXJ.js → tools-QYZRDVAH.js} +12 -13
- package/dist/{traffic-H57O776E.js → traffic-CN667DLE.js} +20 -27
- package/dist/{trends-JD5DR6AW.js → trends-2XLTO3EN.js} +4 -5
- package/dist/{users-TEDPJX74.js → users-NXZSJ7CM.js} +4 -5
- package/dist/{visibility-stats-UQLDR4QJ.js → visibility-stats-DTJD4TEN.js} +5 -6
- package/dist/{wordpress-NQGK7CYA.js → wordpress-LE6UNQCX.js} +4 -5
- package/package.json +1 -1
- package/assets/assets/BacklinksPage-ChKIJpMB.js +0 -1
- package/assets/assets/MeasurementPropertyPage-D5As0Tnh.js +0 -4
- package/assets/assets/ProjectPage-DpsuPdQ6.js +0 -15
- package/assets/assets/ServerTrafficSection-Co3bhYAQ.js +0 -41
- package/assets/assets/SettingsPage-BBMyfzb2.js +0 -1
- package/assets/assets/ToneBadge-D3F2fbxC.js +0 -60
- package/assets/assets/TrafficSourceDetailPage-CmA6q6Gi.js +0 -1
- package/assets/assets/index-CvmK3vq7.css +0 -1
- package/assets/assets/index-yaR6JS3H.js +0 -43
- package/assets/assets/preload-helper-BHTtLTWU.js +0 -1
- package/assets/assets/react-query-DNgX0alO.js +0 -1
- package/assets/assets/server-traffic-CvK4BAVZ.js +0 -1
- package/assets/assets/service-DxCuciCi.js +0 -1
- package/assets/assets/vendor-lucide-iE5MEh2-.js +0 -1
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/cli-commands-J2E4ZSGG.js +0 -19
- package/dist/intelligence-service-R7ZGIFFP.js +0 -16
- package/dist/support-ARF4HER7.js +0 -24
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
configExists,
|
|
3
3
|
loadConfigRaw,
|
|
4
4
|
saveConfigPatch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LBNJVTGN.js";
|
|
6
6
|
import {
|
|
7
7
|
BUNDLED_SKILL_NAMES,
|
|
8
8
|
installSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6AJ4Y3QL.js";
|
|
10
10
|
import {
|
|
11
11
|
PACKAGE_VERSION
|
|
12
12
|
} from "./chunk-AOJU5LKX.js";
|
|
13
13
|
import {
|
|
14
14
|
SKILL_MANIFEST_FILENAME,
|
|
15
15
|
SkillsClients
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XDOP2ANX.js";
|
|
17
17
|
|
|
18
18
|
// src/skills-autosync.ts
|
|
19
19
|
import fs from "fs";
|
|
@@ -3,29 +3,29 @@ import {
|
|
|
3
3
|
CANONRY_MCP_TOOLKIT_NAMES,
|
|
4
4
|
isCanonryMcpToolkitName,
|
|
5
5
|
resolveAeroSkillDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QT475Y6O.js";
|
|
7
7
|
import {
|
|
8
8
|
createApiClient,
|
|
9
9
|
runWithUsageTags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WKYQRF5A.js";
|
|
11
11
|
import {
|
|
12
12
|
canonryMcpTools,
|
|
13
13
|
mcpOutputSchema,
|
|
14
14
|
toolOperationAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-377K7XSP.js";
|
|
16
16
|
import {
|
|
17
17
|
PACKAGE_VERSION
|
|
18
18
|
} from "./chunk-AOJU5LKX.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VU3TF5CD.js";
|
|
22
22
|
import {
|
|
23
23
|
OperationAccesses,
|
|
24
24
|
RESEARCH_RUN_SCOPE,
|
|
25
25
|
isReadOnlyKey,
|
|
26
26
|
restrictedWriteScopes,
|
|
27
27
|
upgradeCaveatFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XDOP2ANX.js";
|
|
29
29
|
|
|
30
30
|
// src/mcp/server.ts
|
|
31
31
|
import { randomUUID } from "crypto";
|
|
@@ -249,6 +249,33 @@ var OPERATIONS_GUIDE = {
|
|
|
249
249
|
"playbookRule": 'Read each listed playbook with canonry_help({playbook:"<slug>"}) before interpreting results.',
|
|
250
250
|
"playbookNote": `Shared with Canonry's built-in agent and CLI hosts. Where it names aero_* tools, read_skill_doc or shell cnry commands, use the matching canonry_* tool on this connection. Read a reference it names (references/<slug>.md) with canonry_help({playbook:"<slug>"}). Playbooks are guidance, not permission.`,
|
|
251
251
|
"workflows": {
|
|
252
|
+
"connections": {
|
|
253
|
+
"keywords": [
|
|
254
|
+
"connections",
|
|
255
|
+
"connect",
|
|
256
|
+
"connecting",
|
|
257
|
+
"reconnect"
|
|
258
|
+
],
|
|
259
|
+
"next": [
|
|
260
|
+
"canonry_status",
|
|
261
|
+
"canonry_projects_list",
|
|
262
|
+
"canonry_google_connections_list",
|
|
263
|
+
"canonry_ga_status",
|
|
264
|
+
"canonry_bing_status",
|
|
265
|
+
"canonry_traffic_sources_list"
|
|
266
|
+
],
|
|
267
|
+
"actions": [
|
|
268
|
+
"canonry_gsc_connect",
|
|
269
|
+
"canonry_ga_oauth_start",
|
|
270
|
+
"canonry_ga_connect",
|
|
271
|
+
"canonry_bing_connect",
|
|
272
|
+
"canonry_traffic_connect_cloud_run"
|
|
273
|
+
],
|
|
274
|
+
"playbooks": [
|
|
275
|
+
"getting-started"
|
|
276
|
+
],
|
|
277
|
+
"guidance": "Check the project's saved connections first. Use an offered action for the approved project and source. The operator completes Google consent in the browser and enters new keys in the dashboard. Report any missing permission or credential."
|
|
278
|
+
},
|
|
252
279
|
"seo": {
|
|
253
280
|
"keywords": [
|
|
254
281
|
"seo",
|
|
@@ -367,11 +394,11 @@ var OPERATIONS_GUIDE = {
|
|
|
367
394
|
"keywords": [
|
|
368
395
|
"integrations",
|
|
369
396
|
"integration",
|
|
370
|
-
"connect",
|
|
371
397
|
"connection",
|
|
372
398
|
"traffic",
|
|
373
399
|
"gsc",
|
|
374
400
|
"ga4",
|
|
401
|
+
"bing",
|
|
375
402
|
"ads",
|
|
376
403
|
"gtm"
|
|
377
404
|
],
|
|
@@ -437,7 +464,7 @@ var OPERATIONS_GUIDE = {
|
|
|
437
464
|
"guidance": "Read canonry_project_setup for the next first-run step, then the getting-started playbook for the full loop and the questions to ask. Propose each scan, check, sync, live read, connection or write; never start one to fill a gap."
|
|
438
465
|
}
|
|
439
466
|
},
|
|
440
|
-
"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`, `start`, or a short task\ndescription. Use `start` when the user is new or unsure what to ask. 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**Start:** for a new user or one unsure what to ask, read\n`canonry_project_setup` and follow its `nextAction`, then the `getting-started`\nplaybook. It walks the loop from setup to monthly reports, says who does each\nstep, and lists questions the user can ask at each stage.\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"
|
|
467
|
+
"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`, `connections`,\n`seo`, `reports`, `start`, or a short task\ndescription. Use `start` when the user is new or unsure what to ask. 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**Start:** for a new user or one unsure what to ask, read\n`canonry_project_setup` and follow its `nextAction`, then the `getting-started`\nplaybook. It walks the loop from setup to monthly reports, says who does each\nstep, and lists questions the user can ask at each stage.\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.\nFor project setup, call `canonry_help({intent:\"connect\"})`. Its actions and\ntoolkit suggestions reflect the current MCP connection. The getting-started\nplaybook covers browser consent, saved credentials and resource selection.\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"
|
|
441
468
|
};
|
|
442
469
|
|
|
443
470
|
// src/mcp/operations-guide.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registeredProviderNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ILDAN5TW.js";
|
|
4
4
|
import {
|
|
5
5
|
configExists,
|
|
6
6
|
loadConfigRaw
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LBNJVTGN.js";
|
|
8
8
|
|
|
9
9
|
// src/setup-state.ts
|
|
10
10
|
import fs from "fs";
|
|
@@ -28,7 +28,7 @@ async function buildSetupState() {
|
|
|
28
28
|
}
|
|
29
29
|
if (dbPath && fs.existsSync(dbPath)) {
|
|
30
30
|
try {
|
|
31
|
-
const { createClient, projects, queries: queriesTable } = await import("./src-
|
|
31
|
+
const { createClient, projects, queries: queriesTable } = await import("./src-QSFAXHBF.js");
|
|
32
32
|
const db = createClient(dbPath);
|
|
33
33
|
project_count = db.select({ id: projects.id }).from(projects).all().length;
|
|
34
34
|
const firstQuery = db.select({ id: queriesTable.id }).from(queriesTable).limit(1).all();
|
|
@@ -47,7 +47,7 @@ function queueServeHandoff() {
|
|
|
47
47
|
async function runPendingServeHandoff(format) {
|
|
48
48
|
if (!pendingServeHandoff) return;
|
|
49
49
|
pendingServeHandoff = false;
|
|
50
|
-
const { serveCommand } = await import("./serve-
|
|
50
|
+
const { serveCommand } = await import("./serve-5WZQBOXG.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolveCliAccess,
|
|
4
4
|
resolveCliAccessForInvocation,
|
|
5
5
|
windowOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HQ6GLLVU.js";
|
|
7
7
|
import {
|
|
8
8
|
emitJsonl
|
|
9
9
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
CliError,
|
|
12
12
|
EXIT_USER_ERROR,
|
|
13
13
|
usageError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VU3TF5CD.js";
|
|
15
15
|
import {
|
|
16
16
|
OperationAccesses
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XDOP2ANX.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-OFMWOBCF.js");
|
|
126
126
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
127
127
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
128
128
|
return true;
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
SeoAdapterOutcomes,
|
|
6
6
|
SeoRunStatuses,
|
|
7
7
|
SiteHealthTemplateDetections,
|
|
8
|
+
__export,
|
|
8
9
|
classifyAiReferralTrafficClass,
|
|
9
10
|
createTemplateLinkPairIndex,
|
|
10
11
|
deriveSiteHealthState,
|
|
@@ -20,10 +21,7 @@ import {
|
|
|
20
21
|
templateLinkRatio,
|
|
21
22
|
templateLinkUbiquityAvailable,
|
|
22
23
|
validationError
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
__export
|
|
26
|
-
} from "./chunk-MLKGABMK.js";
|
|
24
|
+
} from "./chunk-XDOP2ANX.js";
|
|
27
25
|
|
|
28
26
|
// ../db/src/client.ts
|
|
29
27
|
import { mkdirSync } from "fs";
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bucketCliCommandDuration,
|
|
3
3
|
isTelemetryEnabled,
|
|
4
4
|
trackEvent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LSNAMUIJ.js";
|
|
6
6
|
import {
|
|
7
7
|
getConfigDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LBNJVTGN.js";
|
|
9
9
|
import {
|
|
10
10
|
currentOutcomeAttribution
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GSQQ6VVV.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-XDOP2ANX.js";
|
|
23
23
|
|
|
24
24
|
// src/outcome-telemetry.ts
|
|
25
25
|
import fs from "fs";
|