@canonry/canonry 7.108.1 → 7.108.3
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 +59 -24
- 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/{AgentSetupPage-CR6hyf9a.js → AgentSetupPage-H8VoauIK.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-CpYhSd3d.js → MeasurementPropertyPage-x4S_SV30.js} +1 -1
- package/assets/assets/ProjectPage-DnDw0Cvk.js +15 -0
- package/assets/assets/{RunsPage-Cc3kJZ39.js → RunsPage-DG43ZJib.js} +1 -1
- package/assets/assets/{ServerTrafficSection-umoq1lg0.js → ServerTrafficSection-B-QGjFGD.js} +1 -1
- package/assets/assets/{SettingsPage-NebxmvVG.js → SettingsPage-CJlAiPn3.js} +1 -1
- package/assets/assets/{TrafficPage-Dia9_FuQ.js → TrafficPage-Dlp26Fvy.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-DJ5EQEL9.js → TrafficSourceDetailPage-D-x32dzk.js} +1 -1
- package/assets/assets/{index-CyETulrn.js → index-C05Wdzzv.js} +2 -2
- package/assets/assets/{react-sigma_core.esm.min-4xPWl4Kl.js → react-sigma_core.esm.min-sHrGO6oc.js} +1 -1
- package/assets/index.html +1 -1
- package/dist/{ads-IJHKPMDL.js → ads-ZU44TW6I.js} +3 -3
- package/dist/{agent-X5SDBTII.js → agent-R5WTIW7T.js} +7 -7
- package/dist/{agent-ask-UPROPFVK.js → agent-ask-YDKBWYQG.js} +3 -3
- package/dist/{agent-conversations-A7W74X6Q.js → agent-conversations-QJOBINIB.js} +3 -3
- package/dist/{agent-journeys-WOLFWP3G.js → agent-journeys-4GGOACCO.js} +3 -3
- package/dist/{agent-memory-TH6ORG63.js → agent-memory-3YG553SD.js} +3 -3
- package/dist/{agent-providers-FKVRHV4J.js → agent-providers-TVVMJQN7.js} +3 -3
- package/dist/{agent-transcript-UFEBYD4L.js → agent-transcript-RZC6273N.js} +3 -3
- package/dist/{analytics-XNFXAKRP.js → analytics-U4TVQGMD.js} +3 -3
- package/dist/{apply-O46BRKQG.js → apply-GVBOUXIO.js} +3 -3
- package/dist/{backfill-IUCWBDEI.js → backfill-5FQEVO4U.js} +10 -10
- package/dist/{backlinks-PB2Y3APJ.js → backlinks-YGCLFL6X.js} +3 -3
- package/dist/{bing-YOUZDEA2.js → bing-LT62N7BY.js} +3 -3
- package/dist/{bootstrap-E4EI2W54.js → bootstrap-XSFNQARX.js} +10 -10
- package/dist/{cdp-72553DTZ.js → cdp-5MY2I2N3.js} +7 -7
- package/dist/{chunk-WTNB7B2K.js → chunk-2QJP2EKJ.js} +1 -1
- package/dist/{chunk-HABH5YAF.js → chunk-3T5N2K7K.js} +1 -1
- package/dist/{chunk-CLWAZBJY.js → chunk-7XJZM7F5.js} +1 -1
- package/dist/{chunk-FU324DV3.js → chunk-A2XEI5JG.js} +2 -2
- package/dist/{chunk-3XYCTAL7.js → chunk-BPGQZNU6.js} +8 -7
- package/dist/{chunk-BPKV6YLN.js → chunk-BUJD4PDG.js} +7 -7
- package/dist/{chunk-7K3EFBNK.js → chunk-C5PWXO5G.js} +1 -1
- package/dist/{chunk-HOKR2Q26.js → chunk-DHPVTGOX.js} +1 -1
- package/dist/{chunk-2S25YWMO.js → chunk-DJA35P57.js} +1 -1
- package/dist/{chunk-JH6E6IV4.js → chunk-E3B4JEYL.js} +2 -2
- package/dist/{chunk-EFY5C7ZJ.js → chunk-E4WDOYDS.js} +4 -4
- package/dist/{chunk-MA5VHGWC.js → chunk-F5KJWMYH.js} +10 -8
- package/dist/{chunk-JRG52PSI.js → chunk-FCKYBJCJ.js} +366 -366
- package/dist/{chunk-E2ACURKW.js → chunk-HASKRW5X.js} +2 -2
- package/dist/{chunk-LU3TWJX7.js → chunk-JKXLOSXJ.js} +3 -3
- package/dist/{chunk-7SPS7ZPW.js → chunk-LDYUNH5Q.js} +22 -22
- package/dist/{chunk-QNSTLSVL.js → chunk-NWKFGMF3.js} +2 -2
- package/dist/{chunk-6OBPZ6WK.js → chunk-NXX3E7JX.js} +1 -1
- package/dist/{chunk-SHCFV7PL.js → chunk-OQ4BIGR5.js} +7 -7
- package/dist/{chunk-IZMQNTWQ.js → chunk-PQL22SU6.js} +3 -3
- package/dist/{chunk-7XDDCPZV.js → chunk-QGGHCVKX.js} +1 -1
- package/dist/{chunk-CORHE557.js → chunk-QHNM2UTO.js} +4 -4
- package/dist/{chunk-AVBTCCAY.js → chunk-QRYPKPBN.js} +2 -2
- package/dist/{chunk-PYLSLW6L.js → chunk-R25V7AQG.js} +1 -1
- package/dist/{chunk-6Y3I2QFU.js → chunk-SAAYXL6V.js} +2 -2
- package/dist/{chunk-WJUF7P7N.js → chunk-SDF6U4XX.js} +1 -1
- package/dist/{chunk-VHXEXBGL.js → chunk-TV6CKQ2M.js} +4 -4
- package/dist/{chunk-PKD22D4H.js → chunk-UMPRDHNQ.js} +1 -1
- package/dist/{chunk-4FEKXZYP.js → chunk-VHESSGBR.js} +5 -5
- package/dist/{chunk-K6HCS36A.js → chunk-VQIEAP5U.js} +6 -6
- package/dist/{chunk-QJGQOAUK.js → chunk-VSYYI634.js} +1 -1
- package/dist/{chunk-46QQ3MQC.js → chunk-VYIM2IUO.js} +1 -2
- package/dist/{chunk-OEV6HQ3X.js → chunk-XHFLXURT.js} +1 -1
- package/dist/{chunk-5KH7Y233.js → chunk-XZ25DG73.js} +5 -5
- package/dist/{chunk-HAOLFBSD.js → chunk-ZBNFFCA5.js} +3 -3
- package/dist/{chunk-V342HTLC.js → chunk-ZVCDFSFW.js} +3 -3
- package/dist/{citations-A3N7E44V.js → citations-YW5QU7GI.js} +4 -4
- package/dist/{cli-catalog-2IKVWAJ7.js → cli-catalog-VSPAEL7Y.js} +3 -3
- package/dist/{cli-commands-RQNXVVYE.js → cli-commands-GJD73IE6.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-CZV7O3YY.js → competitor-KUG7ZH4D.js} +3 -3
- package/dist/{content-7Y6QZH2G.js → content-SE7WEAKG.js} +3 -3
- package/dist/{dashboard-OOCOW7VZ.js → dashboard-43VOXHID.js} +6 -6
- package/dist/{demo-72QLTRMQ.js → demo-TWI6ROFX.js} +1 -1
- package/dist/{demo-server-NFJOZ6ZF.js → demo-server-AQKTQ6AW.js} +12 -12
- package/dist/{discover-LUCA6O5X.js → discover-X65CLZYY.js} +4 -4
- package/dist/{discover-eval-U2XY45WE.js → discover-eval-R4XVP5LH.js} +3 -3
- package/dist/{doctor-4O3ZZJAG.js → doctor-VUBA5CN3.js} +3 -3
- package/dist/{evidence-COM64MWY.js → evidence-UIFGERY4.js} +3 -3
- package/dist/{export-cmd-HEQ5TZER.js → export-cmd-6RTU5OZG.js} +3 -3
- package/dist/{ga-F5KCSFBL.js → ga-AZG7BHWQ.js} +3 -3
- package/dist/{gbp-GNHJKLUF.js → gbp-FBC5KMEQ.js} +3 -3
- package/dist/{google-SAW6YWIC.js → google-6TQ4YWAS.js} +4 -4
- package/dist/{google-marketing-SIZWYSL2.js → google-marketing-7MPF6LFW.js} +1 -1
- package/dist/{health-cmd-5IZFIQK2.js → health-cmd-Y5ZQ4TLG.js} +4 -4
- package/dist/{history-O3VAYWT6.js → history-YGGU2RYB.js} +3 -3
- package/dist/index.d.ts +70 -70
- package/dist/index.js +25 -25
- package/dist/{init-PYBQBY4K.js → init-Z64A6CBW.js} +12 -12
- package/dist/{insights-UFSQCY2N.js → insights-7XFNQHTX.js} +3 -3
- package/dist/intelligence-service-3U6RMPRG.js +16 -0
- package/dist/{journeys-XUPV4POH.js → journeys-PDWXN3IM.js} +3 -3
- package/dist/{keys-MWIC2RAM.js → keys-BKNJETWE.js} +3 -3
- package/dist/{keyword-BI6JIKFU.js → keyword-Z37NIEW4.js} +3 -3
- package/dist/{logs-DJAPNQRC.js → logs-ENWHNCTC.js} +3 -3
- package/dist/{mcp-K7KJOU2D.js → mcp-MV2VUJ4E.js} +4 -4
- package/dist/mcp.js +9 -9
- package/dist/{measurement-plan-IZ3ONXKO.js → measurement-plan-AWNVH5MW.js} +5 -5
- package/dist/{notify-23XROT44.js → notify-ZAFR4B47.js} +3 -3
- package/dist/{organic-evidence-MY3YS2FV.js → organic-evidence-ZK5IAVLI.js} +3 -3
- package/dist/{overview-XF3HRTRP.js → overview-ZFZYSJPU.js} +5 -5
- package/dist/{project-BTX7G7RS.js → project-HPZQGUR7.js} +3 -3
- package/dist/{project-setup-OEF4VHVO.js → project-setup-CEVH6KLJ.js} +3 -3
- package/dist/{query-67PA6WZ2.js → query-TOOIX2PP.js} +3 -3
- package/dist/{research-AFDDYAZS.js → research-HYJ76XNV.js} +3 -3
- package/dist/{results-export-6BI6P2MI.js → results-export-2MMDPWIU.js} +3 -3
- package/dist/{run-24TJZZXB.js → run-NNYEDFEF.js} +5 -5
- package/dist/{schedule-J2LIJ52P.js → schedule-S5W3XMP3.js} +3 -3
- package/dist/{search-6RAWS2IO.js → search-CPOTR6WQ.js} +3 -3
- package/dist/{serve-NI5YIJIJ.js → serve-5Y342F64.js} +26 -26
- package/dist/{session-ZZG6G4D7.js → session-WWV5MXI4.js} +13 -13
- package/dist/{settings-UV6TFSYN.js → settings-4UFTKOY4.js} +3 -3
- package/dist/{sitemaps-YVX6NKUG.js → sitemaps-FAZT7L64.js} +3 -3
- package/dist/{skills-6GYQKVDM.js → skills-K5RXHUIL.js} +2 -2
- package/dist/{snapshot-N6RFEDB5.js → snapshot-JM2B2WXU.js} +3 -3
- package/dist/{src-U2E6JQJF.js → src-UU4CGSEN.js} +2 -2
- package/dist/{status-HZHN6UNX.js → status-DYJPL4WJ.js} +5 -5
- package/dist/{technical-aeo-ZQD4Q7DP.js → technical-aeo-XSLLHFE5.js} +3 -3
- package/dist/{telemetry-GQA2LXOM.js → telemetry-26GTSZNT.js} +4 -4
- package/dist/{tools-XH6DGBGV.js → tools-QR2RY6LW.js} +11 -11
- package/dist/{traffic-Y6T2OKJF.js → traffic-OF52YJKX.js} +5 -5
- package/dist/{trends-DTHOUJUU.js → trends-SECIYTNL.js} +3 -3
- package/dist/{users-JSG4WKPW.js → users-ZM7IR4US.js} +3 -3
- package/dist/{visibility-stats-4FW4DZSK.js → visibility-stats-V5P4CZO4.js} +4 -4
- package/dist/{wordpress-AHTU5C7M.js → wordpress-Z32JMXJK.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/ProjectPage-2oJ95fiK.js +0 -15
- package/dist/intelligence-service-OZIEPTCK.js +0 -16
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VYIM2IUO.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-XHFLXURT.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2XEI5JG.js";
|
|
4
4
|
import {
|
|
5
5
|
emitJsonl
|
|
6
6
|
} from "./chunk-Z7IUAJOF.js";
|
|
7
7
|
import {
|
|
8
8
|
measurementDraftOperationSchema,
|
|
9
9
|
runMeasurementDraftAction
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QGGHCVKX.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
unattributedAnswersLabel,
|
|
40
40
|
uncheckedSourcesLabel,
|
|
41
41
|
visibilityReportRequestSchema
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-XHFLXURT.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/measurement-plan.ts
|
|
45
45
|
import crypto from "crypto";
|
|
@@ -24,18 +24,18 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VQIEAP5U.js";
|
|
28
28
|
import {
|
|
29
29
|
answerServiceAdapters,
|
|
30
30
|
answerServiceDescriptors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R25V7AQG.js";
|
|
32
32
|
import {
|
|
33
33
|
AeroToolProfiles,
|
|
34
34
|
AeroToolScopes,
|
|
35
35
|
buildAeroStateTools,
|
|
36
36
|
isAeroToolProfile,
|
|
37
37
|
truncateToolResult
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QHNM2UTO.js";
|
|
39
39
|
import {
|
|
40
40
|
getGoogleAuthConfig,
|
|
41
41
|
getGoogleConnection,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
removeCloudflareTrafficConnection,
|
|
55
55
|
removeCloudflareTrafficConnectionBySourceId,
|
|
56
56
|
upsertCloudflareTrafficConnection
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VSYYI634.js";
|
|
58
58
|
import {
|
|
59
59
|
claudeAdapter,
|
|
60
60
|
embedQueries,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
openrouterAdapter,
|
|
67
67
|
perplexityAdapter,
|
|
68
68
|
startTrafficReclassification
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-VHESSGBR.js";
|
|
70
70
|
import {
|
|
71
71
|
classifyUsageSurface,
|
|
72
72
|
createApiUsageTelemetry,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
startOutcomeTimer,
|
|
79
79
|
trackFeatureCompleted,
|
|
80
80
|
trackInstallState
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-E4WDOYDS.js";
|
|
82
82
|
import {
|
|
83
83
|
isLoopbackBindHost
|
|
84
84
|
} from "./chunk-TSENU4GG.js";
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
isApiProviderRegistrable,
|
|
87
87
|
isCdpProviderRegistrable,
|
|
88
88
|
registeredProviderNames
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-SDF6U4XX.js";
|
|
90
90
|
import {
|
|
91
91
|
checkLatestVersionForServer,
|
|
92
92
|
getOrCreateAnonymousId,
|
|
@@ -98,17 +98,17 @@ import {
|
|
|
98
98
|
recordDashboardEvent,
|
|
99
99
|
setTelemetryPreference,
|
|
100
100
|
trackEvent
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-HASKRW5X.js";
|
|
102
102
|
import {
|
|
103
103
|
createCanonryMcpServer
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-OQ4BIGR5.js";
|
|
105
105
|
import {
|
|
106
106
|
CANONRY_MCP_TIERS,
|
|
107
107
|
CANONRY_MCP_TOOLKIT_NAMES
|
|
108
108
|
} from "./chunk-YW6J3STO.js";
|
|
109
109
|
import {
|
|
110
110
|
ApiClient
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-A2XEI5JG.js";
|
|
112
112
|
import {
|
|
113
113
|
AGENT_PROVIDERS,
|
|
114
114
|
PROVIDER_MODELS,
|
|
@@ -143,21 +143,21 @@ import {
|
|
|
143
143
|
saveConfigPatch,
|
|
144
144
|
sentimentInstallReadiness,
|
|
145
145
|
updateSharedProviderExecutionGate
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-VYIM2IUO.js";
|
|
147
147
|
import {
|
|
148
148
|
getBundledSkillSnapshots
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-2QJP2EKJ.js";
|
|
150
150
|
import {
|
|
151
151
|
computeFactorAverages,
|
|
152
152
|
deleteSiteCrawlGraphLayout,
|
|
153
153
|
persistSiteCrawlGraphLayout,
|
|
154
154
|
prepareSiteCrawlGraphLayout,
|
|
155
155
|
recordedSharePct
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-QRYPKPBN.js";
|
|
157
157
|
import {
|
|
158
158
|
CanonryMcpToolNames,
|
|
159
159
|
canonryMcpTools
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-BPGQZNU6.js";
|
|
161
161
|
import {
|
|
162
162
|
PACKAGE_VERSION
|
|
163
163
|
} from "./chunk-AOJU5LKX.js";
|
|
@@ -166,16 +166,16 @@ import {
|
|
|
166
166
|
} from "./chunk-HGMYEDAQ.js";
|
|
167
167
|
import {
|
|
168
168
|
IntelligenceService
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-XZ25DG73.js";
|
|
170
170
|
import {
|
|
171
171
|
computeCitedCompetitorDomains,
|
|
172
172
|
determineCitationState
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-UMPRDHNQ.js";
|
|
174
174
|
import {
|
|
175
175
|
addLogListener,
|
|
176
176
|
createFastifyLogger,
|
|
177
177
|
createLogger
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-NWKFGMF3.js";
|
|
179
179
|
import {
|
|
180
180
|
BingApiError,
|
|
181
181
|
CC_CACHE_DIR,
|
|
@@ -323,7 +323,7 @@ import {
|
|
|
323
323
|
webhookResponseReason,
|
|
324
324
|
webhookTargetRefusalReason,
|
|
325
325
|
writeAuditLog
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-F5KJWMYH.js";
|
|
327
327
|
import {
|
|
328
328
|
OperationalLogStore,
|
|
329
329
|
SentimentIdempotencyConflict,
|
|
@@ -423,7 +423,7 @@ import {
|
|
|
423
423
|
unrecognizedAgentEventsHourly,
|
|
424
424
|
unrecognizedAgentNotifyState,
|
|
425
425
|
usageCounters
|
|
426
|
-
} from "./chunk-
|
|
426
|
+
} from "./chunk-C5PWXO5G.js";
|
|
427
427
|
import {
|
|
428
428
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
429
429
|
AI_ENGINE_DOMAINS,
|
|
@@ -704,7 +704,7 @@ import {
|
|
|
704
704
|
winnabilityClassLabel,
|
|
705
705
|
withRetry,
|
|
706
706
|
withSkippedProviders
|
|
707
|
-
} from "./chunk-
|
|
707
|
+
} from "./chunk-XHFLXURT.js";
|
|
708
708
|
|
|
709
709
|
// src/google-marketing-runtime.ts
|
|
710
710
|
import crypto2 from "crypto";
|
|
@@ -5048,7 +5048,7 @@ var localAdapter = {
|
|
|
5048
5048
|
name: "local",
|
|
5049
5049
|
displayName: "Local",
|
|
5050
5050
|
mode: "api",
|
|
5051
|
-
// normalize.ts folds the location into the
|
|
5051
|
+
// normalize.ts folds the location into the user message.
|
|
5052
5052
|
supportsLocationContext: true,
|
|
5053
5053
|
modelRegistry: {
|
|
5054
5054
|
defaultModel: "llama3",
|
|
@@ -6458,7 +6458,7 @@ function nonBlank(value) {
|
|
|
6458
6458
|
return trimmed ? trimmed : void 0;
|
|
6459
6459
|
}
|
|
6460
6460
|
function resolveBuildCommit(env = process.env) {
|
|
6461
|
-
const embedded = true ? "
|
|
6461
|
+
const embedded = true ? "42321b563bf8f0b576ed77b3494681ed1728b5a6" : void 0;
|
|
6462
6462
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6463
6463
|
}
|
|
6464
6464
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRequestContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DHPVTGOX.js";
|
|
4
4
|
import {
|
|
5
5
|
diagnosticIdentity,
|
|
6
6
|
redactLogString,
|
|
7
7
|
redactLogValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XHFLXURT.js";
|
|
9
9
|
|
|
10
10
|
// ../api-routes/src/runtime-logger.ts
|
|
11
11
|
import { format } from "util";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createApiClient,
|
|
9
9
|
runWithUsageTags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A2XEI5JG.js";
|
|
11
11
|
import {
|
|
12
12
|
canonryMcpTools,
|
|
13
13
|
mcpOutputSchema,
|
|
14
14
|
toolOperationAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BPGQZNU6.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-XHFLXURT.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. Connected 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 means the engine returns no sources: 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. canonry_help returns all liveTools for this connection; each needs approval, including read-only tools.\nREST exposes x-canonry-access; CLI help/catalog expose access; MCP help lists liveTools.\nStored-only
|
|
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. Connected 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 means the engine returns no sources: 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. canonry_help returns all liveTools for this connection; each needs approval, including read-only tools.\nREST exposes x-canonry-access; CLI help/catalog expose access; MCP help lists liveTools.\nStored-only refuses live operations and writes, including doctor. Use CLI --stored-only or CANONRY_STORED_ONLY=1. For stdio MCP, use --stored-only, --scope=stored-only or CANONRY_MCP_SCOPE=stored-only. The CLI reports STORED_ONLY_REFUSED. Local skill updates and update checks are skipped. Explicit exports can write files. The server still runs its own accounting and scheduled work.\nHelp and skills grant no permissions; the server enforces authority. Report missing tools or 403; never bypass them 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. Get approval before sending one external report through canonry_feedback. Exclude secrets and 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
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SNAPSHOT_CELL_LEGEND,
|
|
3
3
|
citationGlyph,
|
|
4
4
|
mentionGlyph
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3T5N2K7K.js";
|
|
6
6
|
import {
|
|
7
7
|
createApiClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A2XEI5JG.js";
|
|
9
9
|
import {
|
|
10
10
|
emitJsonl
|
|
11
11
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
formatMicros,
|
|
24
24
|
formatRunErrorOneLine,
|
|
25
25
|
resolveProviderInput
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XHFLXURT.js";
|
|
27
27
|
|
|
28
28
|
// src/commands/run.ts
|
|
29
29
|
function getClient() {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
measurementDraftUpsertGroupRequestSchema,
|
|
24
24
|
measurementDraftUpsertMarketRequestSchema,
|
|
25
25
|
measurementDraftUpsertTargetRequestSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XHFLXURT.js";
|
|
27
27
|
|
|
28
28
|
// src/measurement-draft-actions.ts
|
|
29
29
|
import { z } from "zod";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2XEI5JG.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
DEPRECATED_MCP_TOOL_ALIAS_NAMES,
|
|
7
7
|
canonryMcpTools
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BPGQZNU6.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-F5KJWMYH.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-XHFLXURT.js";
|
|
28
28
|
|
|
29
29
|
// src/agent/tools.ts
|
|
30
30
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
siteCrawlGraphNodes,
|
|
6
6
|
siteCrawlPages,
|
|
7
7
|
siteCrawlSnapshots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C5PWXO5G.js";
|
|
9
9
|
import {
|
|
10
10
|
SITE_CRAWL_GRAPH_MAX_EDGES,
|
|
11
11
|
SITE_CRAWL_GRAPH_MAX_NODES,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
factorStatusFromDistribution,
|
|
16
16
|
factorStatusFromScore,
|
|
17
17
|
roundPreservingTotal
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XHFLXURT.js";
|
|
19
19
|
|
|
20
20
|
// src/site-audit-factors.ts
|
|
21
21
|
function recordedSharePct(factor) {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-VJWDBFSL.js";
|
|
5
5
|
import {
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A2XEI5JG.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-XHFLXURT.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/mcp.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registeredProviderNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SDF6U4XX.js";
|
|
4
4
|
import {
|
|
5
5
|
configExists,
|
|
6
6
|
loadConfigRaw
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VYIM2IUO.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-UU4CGSEN.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-5Y342F64.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NWKFGMF3.js";
|
|
4
4
|
import {
|
|
5
5
|
addLikelyFakeAgentHits,
|
|
6
6
|
correctBackgroundCallJourneys,
|
|
7
7
|
mergeSplitJourneyVisitors,
|
|
8
8
|
repairAiReferralArrivalsOnStartup,
|
|
9
9
|
writeUnrecognizedAgentBuckets
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5KJWMYH.js";
|
|
11
11
|
import {
|
|
12
12
|
AGENT_TRUST_RULES_VERSION,
|
|
13
13
|
BROWSER_AGENT_BOT_IDS,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
normalizeTrafficPathPattern,
|
|
32
32
|
rulesShareVerificationList,
|
|
33
33
|
unrecognizedAgentName
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NXX3E7JX.js";
|
|
35
35
|
import {
|
|
36
36
|
RawEventSampleEventTypes,
|
|
37
37
|
agentJourneyCaptureDays,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
trafficReclassificationState,
|
|
49
49
|
trafficSources,
|
|
50
50
|
unrecognizedAgentEventsHourly
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-C5PWXO5G.js";
|
|
52
52
|
import {
|
|
53
53
|
AI_ENGINE_DOMAINS,
|
|
54
54
|
AI_ENGINE_SELF_DOMAINS,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
sortedUnique,
|
|
85
85
|
usageCount,
|
|
86
86
|
withRetry
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-XHFLXURT.js";
|
|
88
88
|
|
|
89
89
|
// ../provider-openai/src/normalize.ts
|
|
90
90
|
import OpenAI from "openai";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QHNM2UTO.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS,
|
|
11
11
|
resolveAeroSkillDir
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
resolveApiKeyFor,
|
|
24
24
|
resolveModelForProvider,
|
|
25
25
|
validateAgentProviderRegistry
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VYIM2IUO.js";
|
|
27
27
|
import {
|
|
28
28
|
CanonryMcpToolNames,
|
|
29
29
|
canonryMcpTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BPGQZNU6.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NWKFGMF3.js";
|
|
34
34
|
import {
|
|
35
35
|
agentToolEvents,
|
|
36
36
|
llmUsageEvents
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-C5PWXO5G.js";
|
|
38
38
|
import {
|
|
39
39
|
MeasurementPortfolioLists,
|
|
40
40
|
SEO_TREND_METRICS_BY_KIND,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
describeError,
|
|
46
46
|
validationError,
|
|
47
47
|
visibilityReportRequestSchema
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XHFLXURT.js";
|
|
49
49
|
|
|
50
50
|
// src/agent/session.ts
|
|
51
51
|
import fs2 from "fs";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveProviderModel,
|
|
23
23
|
schedulableRunKindSchema,
|
|
24
24
|
sentimentEvaluatorProviderSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XHFLXURT.js";
|
|
26
26
|
|
|
27
27
|
// ../config/src/index.ts
|
|
28
28
|
import { z as z5 } from "zod";
|
|
@@ -223,7 +223,6 @@ function resolveOperatorApiKeyIds(source) {
|
|
|
223
223
|
var envSchema = z5.object({
|
|
224
224
|
DATABASE_URL: z5.string().default("postgresql://aeo:aeo@postgres:5432/aeo_platform"),
|
|
225
225
|
API_PORT: z5.coerce.number().int().positive().default(3e3),
|
|
226
|
-
WORKER_PORT: z5.coerce.number().int().positive().default(3001),
|
|
227
226
|
WEB_PORT: z5.coerce.number().int().positive().default(4173),
|
|
228
227
|
BOOTSTRAP_SECRET: z5.string().default("change-me"),
|
|
229
228
|
CANONRY_BASE_PATH: z5.string().default("/"),
|