@canonry/canonry 7.117.0 → 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/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-4y1oQn1V.js → AccessControls-CCvvzEec.js} +2 -2
- package/assets/assets/{AgentSetupPage-Bulql2xU.js → AgentSetupPage-B-vXoIII.js} +4 -4
- package/assets/assets/{AuditHistoryPanel-LAJvBwz7.js → AuditHistoryPanel-ClexSdME.js} +1 -1
- package/assets/assets/{BacklinksPage-HoInwKA9.js → BacklinksPage-QMPUVhzl.js} +1 -1
- package/assets/assets/{ChartPrimitives-9e4Uk_ou.js → ChartPrimitives-Dd9VFWrj.js} +1 -1
- package/assets/assets/{HistoryPage-CjbhISjr.js → HistoryPage-CzQLFEZG.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-BirXf9xb.js → MeasurementPropertyPage-BTgy_3-R.js} +3 -3
- package/assets/assets/ProjectPage-DLgYLplH.js +15 -0
- package/assets/assets/{RunsPage-CTdVk0MW.js → RunsPage-CnWXQk8q.js} +1 -1
- package/assets/assets/ServerTrafficSection-DqVZznpe.js +41 -0
- package/assets/assets/{SettingsPage-CcUN3Xwn.js → SettingsPage-D2j93m5Q.js} +1 -1
- package/assets/assets/ToneBadge-Dym1_0XC.js +60 -0
- package/assets/assets/{TrafficPage-C_N7VjbI.js → TrafficPage-CzieybRn.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CbMzqWRU.js → TrafficSourceDetailPage-CtmGPXZc.js} +1 -1
- package/assets/assets/{account-context-Cp3gUKpA.js → account-context-ClThq0Zv.js} +1 -1
- package/assets/assets/agent-trust-copy-C0WnWM9W.js +1 -0
- package/assets/assets/{card-BdycYoUe.js → card-C-9Q2kJl.js} +1 -1
- package/assets/assets/{index-BWK1ufZ4.css → index-C9Op8ix9.css} +1 -1
- package/assets/assets/index-CzPXJ0Qs.js +43 -0
- package/assets/assets/{preload-helper-DhMqMP1i.js → preload-helper-DV4nEYWy.js} +1 -1
- package/assets/assets/{query-client-CKdvw14M.js → query-client-plQHRUyr.js} +1 -1
- package/assets/assets/react-query-Dz0xmEkM.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BifxdtsK.js → react-sigma_core.esm.min-B-tTeVwc.js} +1 -1
- package/assets/assets/{server-traffic-CzeAohmZ.js → server-traffic-BNdX8qZ4.js} +1 -1
- package/assets/assets/service-CN4HIDuw.js +1 -0
- package/assets/index.html +10 -10
- package/dist/{ads-WGHRYBI4.js → ads-GVOTYDS3.js} +4 -4
- package/dist/{agent-WCTEOSHB.js → agent-RFYMQYMN.js} +8 -8
- package/dist/{agent-ask-GQ2R654T.js → agent-ask-MZRUCCJO.js} +4 -4
- package/dist/{agent-conversations-5QQDBC77.js → agent-conversations-WBP5TI3X.js} +4 -4
- package/dist/{agent-journeys-TEBI4S2U.js → agent-journeys-6CR77XCZ.js} +4 -4
- package/dist/{agent-memory-5E37W5RB.js → agent-memory-PH3Y7OKJ.js} +4 -4
- package/dist/{agent-providers-TPEFZYEI.js → agent-providers-3CBKNXSW.js} +4 -4
- package/dist/{agent-transcript-BTWB7B44.js → agent-transcript-BN3DCK33.js} +4 -4
- package/dist/{analytics-T6KHZBRJ.js → analytics-43UR5IMY.js} +4 -4
- package/dist/{apply-FV2EIDYF.js → apply-POV25FNG.js} +4 -4
- package/dist/{backfill-RUGFDQ4K.js → backfill-CWC3W72X.js} +11 -11
- package/dist/{backlinks-HFP4VW6Y.js → backlinks-W3SLOIHP.js} +4 -4
- package/dist/{bing-MRP7HHFP.js → bing-HGKOR5GV.js} +11 -9
- package/dist/{bootstrap-HYLV7ZDL.js → bootstrap-XAKQKZCC.js} +11 -11
- package/dist/{cdp-724G6FYJ.js → cdp-WAB5BPGB.js} +8 -8
- package/dist/{chunk-JWZ5AG27.js → chunk-35DM6ZZ2.js} +2 -2
- package/dist/{chunk-364F7UHP.js → chunk-377K7XSP.js} +126 -8
- package/dist/{chunk-DAH257DW.js → chunk-3C6A63IG.js} +15 -5
- package/dist/{chunk-FSWYJRKJ.js → chunk-4A2JURHR.js} +2 -2
- package/dist/{chunk-QHVRNO5T.js → chunk-6AJ4Y3QL.js} +2 -2
- package/dist/{chunk-LMN6GFYR.js → chunk-6ORW2OUQ.js} +1 -1
- package/dist/{chunk-5SYONZTG.js → chunk-6UNZDUB6.js} +1 -1
- package/dist/{chunk-HQATGNXD.js → chunk-7ACE6HGU.js} +3 -3
- package/dist/{chunk-NCTXENRW.js → chunk-7JFPGEXQ.js} +34 -7
- package/dist/{chunk-QFRX3G36.js → chunk-CDPZTIK2.js} +4 -4
- package/dist/{chunk-C6SNVKJE.js → chunk-G2JP3KNY.js} +4 -4
- package/dist/{chunk-O5LPKFE3.js → chunk-G3HBHMML.js} +1 -1
- package/dist/{chunk-2DDMEFQV.js → chunk-GSQQ6VVV.js} +1 -1
- package/dist/{chunk-CLL42E6C.js → chunk-GY7YLVMD.js} +4 -4
- package/dist/{chunk-EXUNFJZM.js → chunk-HIPSMSH3.js} +386 -379
- package/dist/{chunk-MT24J6HQ.js → chunk-HQ6GLLVU.js} +2 -2
- package/dist/{chunk-HJGEUXEE.js → chunk-HZTKUGQ4.js} +3 -3
- package/dist/{chunk-UVBBDQY7.js → chunk-ILDAN5TW.js} +1 -1
- package/dist/{chunk-WMGA5B6O.js → chunk-IOOJ7DQ6.js} +1 -1
- package/dist/{chunk-7SPPW7RL.js → chunk-LBNJVTGN.js} +10 -7
- package/dist/{chunk-7YI5TKLS.js → chunk-LSNAMUIJ.js} +2 -2
- package/dist/{chunk-KCNLELKC.js → chunk-NJWBSLRW.js} +8 -8
- package/dist/{chunk-V24FJMBV.js → chunk-NZZSWCNM.js} +1 -1
- package/dist/{chunk-GWV5FDSB.js → chunk-O67HAPZL.js} +7 -7
- package/dist/{chunk-KHHI2RES.js → chunk-OKPD7X4P.js} +85 -98
- package/dist/{chunk-4EZXHPWO.js → chunk-Q7LU7GTH.js} +1 -1
- package/dist/{chunk-PDEA6DFG.js → chunk-QOFWKOKD.js} +4 -4
- package/dist/{chunk-NNHI6SOT.js → chunk-QT475Y6O.js} +4 -4
- package/dist/{chunk-CFFQ7N7H.js → chunk-RLDRNIB4.js} +5 -5
- package/dist/{chunk-3ZEMWSBQ.js → chunk-SBLC7FYP.js} +2 -2
- package/dist/{chunk-IYUYV4DV.js → chunk-SG7E3WTC.js} +5 -5
- package/dist/{chunk-R6H6C6XL.js → chunk-SZSZSOXP.js} +2 -2
- package/dist/{chunk-7TZGXK32.js → chunk-U3TO2MFS.js} +4 -4
- package/dist/{chunk-Z27VH6RO.js → chunk-UKFXP4R5.js} +1301 -1140
- package/dist/{chunk-RIWCGXFR.js → chunk-V2VWIGVT.js} +1 -1
- package/dist/{chunk-7VACCYGL.js → chunk-VU3TF5CD.js} +1 -1
- package/dist/{chunk-AY2CWNOQ.js → chunk-WKYQRF5A.js} +3 -3
- package/dist/{chunk-XKVZ7MMK.js → chunk-XDOP2ANX.js} +7876 -7816
- package/dist/{citations-KC7Y7N5P.js → citations-IMPVSN25.js} +5 -5
- package/dist/{cli-catalog-O4M5O6QC.js → cli-catalog-OFMWOBCF.js} +4 -4
- package/dist/cli-commands-HZNVXGGC.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-3QTT47SE.js → competitor-2NFTABZM.js} +4 -4
- package/dist/{content-NBJUBXAK.js → content-HYV3JOIS.js} +4 -4
- package/dist/{dashboard-4354AUW2.js → dashboard-DCYRYQ6M.js} +7 -7
- package/dist/{demo-BCYZJNE7.js → demo-X44XG3CF.js} +3 -3
- package/dist/{demo-server-4R3LP7S4.js → demo-server-SPMBNVZA.js} +13 -13
- package/dist/{discover-DPHOON57.js → discover-VIQMARSR.js} +5 -5
- package/dist/{discover-eval-PXPAIASG.js → discover-eval-M5RRXWMX.js} +4 -4
- package/dist/{doctor-UDBBA6AL.js → doctor-HATXMESK.js} +4 -4
- package/dist/{evidence-I3XISHLS.js → evidence-C3IBS7TO.js} +4 -4
- package/dist/{export-cmd-3L67R5HU.js → export-cmd-F674KINC.js} +4 -4
- package/dist/{ga-KQ4ECR2W.js → ga-AWBTXHSN.js} +4 -4
- package/dist/{gbp-F6MDUS5L.js → gbp-NAZYXN4S.js} +4 -4
- package/dist/{google-RH4SIEJU.js → google-IYDAWLIV.js} +5 -5
- package/dist/{google-marketing-UPSMKGNA.js → google-marketing-NHV7BCQM.js} +2 -2
- package/dist/{health-cmd-25O4GVVB.js → health-cmd-ASZUPWDG.js} +5 -5
- package/dist/{history-XLKSQRKU.js → history-TFLEYUHW.js} +4 -4
- package/dist/index.d.ts +107 -104
- package/dist/index.js +27 -27
- package/dist/{init-TKSOQQLY.js → init-ZMIYUSPN.js} +13 -13
- package/dist/{insights-CHKPXVYD.js → insights-VMU43BJM.js} +4 -4
- package/dist/intelligence-service-TGXLLDIW.js +15 -0
- package/dist/{journeys-TXW3D4BK.js → journeys-DSPUDWGM.js} +4 -4
- package/dist/{keys-KOZJQ6RL.js → keys-K56VXNJX.js} +4 -4
- package/dist/{keyword-JFXAWLJ3.js → keyword-FCMS45PF.js} +4 -4
- package/dist/{logs-LVLJZK4Y.js → logs-75HP7UD3.js} +4 -4
- package/dist/{mcp-6DEVFKO5.js → mcp-D7P73XVO.js} +5 -5
- package/dist/mcp.js +11 -11
- package/dist/{measurement-plan-YKHZK3Y5.js → measurement-plan-AX6G3RWU.js} +6 -6
- package/dist/{notify-45ZU2G36.js → notify-QUOFVHKS.js} +4 -4
- package/dist/{organic-evidence-VUBMMPWH.js → organic-evidence-PPHL7QGS.js} +4 -4
- package/dist/{overview-GBS5NHCJ.js → overview-C6SSTCC6.js} +6 -6
- package/dist/{project-J2YNWGEX.js → project-MMQ2H6TH.js} +4 -4
- package/dist/{project-setup-EC5HNSZF.js → project-setup-6DGYQAG2.js} +4 -4
- package/dist/{query-ACWZGWJW.js → query-EJGNRC2F.js} +4 -4
- package/dist/{research-RNQ3RKYQ.js → research-X43RAY3W.js} +4 -4
- package/dist/{results-export-LLYRKV4I.js → results-export-FOQXK6NA.js} +4 -4
- package/dist/{run-YQMLKJ5Q.js → run-D4CFXIFR.js} +6 -6
- package/dist/{schedule-JNFVQ64W.js → schedule-UFOJOPKA.js} +4 -4
- package/dist/{search-3YMN7RGP.js → search-6C3ZPK24.js} +4 -4
- package/dist/{serve-H3FSLDBB.js → serve-5WZQBOXG.js} +28 -28
- package/dist/{session-BUG4PC4Q.js → session-3YQ2HXJW.js} +15 -15
- package/dist/{settings-2MF34VZU.js → settings-6AGLHMPI.js} +4 -4
- package/dist/{sitemaps-W62QTGEY.js → sitemaps-FIN5CVTH.js} +4 -4
- package/dist/{skills-LG2OK3RV.js → skills-3ZD3N6S7.js} +3 -3
- package/dist/{snapshot-26HVOJOZ.js → snapshot-EFW3B6TM.js} +4 -4
- package/dist/{src-HJXB6FE7.js → src-QSFAXHBF.js} +2 -2
- package/dist/{status-6DARHG6B.js → status-CLWEOZP4.js} +6 -6
- package/dist/{support-CUPMHQCX.js → support-P5H555LC.js} +2 -2
- package/dist/{technical-aeo-F577YYRG.js → technical-aeo-IVNC26PJ.js} +4 -4
- package/dist/{telemetry-LQC6MZQY.js → telemetry-ZUFUNFST.js} +5 -5
- package/dist/{tools-X3QOUX35.js → tools-QYZRDVAH.js} +12 -12
- package/dist/{traffic-AUNXJSDG.js → traffic-CN667DLE.js} +20 -26
- package/dist/{trends-3ERZYH3R.js → trends-2XLTO3EN.js} +4 -4
- package/dist/{users-GXDHZJOY.js → users-NXZSJ7CM.js} +4 -4
- package/dist/{visibility-stats-YQQJOAF3.js → visibility-stats-DTJD4TEN.js} +5 -5
- package/dist/{wordpress-IHRTXC6Z.js → wordpress-LE6UNQCX.js} +4 -4
- package/package.json +1 -1
- package/assets/assets/ProjectPage-YYOXIYdF.js +0 -15
- package/assets/assets/ServerTrafficSection-XNmPLx9Y.js +0 -41
- package/assets/assets/ToneBadge-z_iW7szG.js +0 -60
- package/assets/assets/agent-trust-copy-sJKxj75E.js +0 -1
- package/assets/assets/index-C1-XnmeI.js +0 -43
- package/assets/assets/react-query-BlKsyRU6.js +0 -1
- package/assets/assets/service-B_C7q30t.js +0 -1
- package/dist/cli-commands-DLA3O4E6.js +0 -18
- package/dist/intelligence-service-HPGRQXUW.js +0 -15
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usageError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VU3TF5CD.js";
|
|
4
4
|
import {
|
|
5
5
|
AppError,
|
|
6
6
|
parseWindowIn,
|
|
7
7
|
resolveDateRange
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XDOP2ANX.js";
|
|
9
9
|
|
|
10
10
|
// src/cli-access.ts
|
|
11
11
|
var CLI_ACCESS_BY_ID = Object.freeze({
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-VJWDBFSL.js";
|
|
5
5
|
import {
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WKYQRF5A.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
isMachineFormat
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VU3TF5CD.js";
|
|
12
12
|
import {
|
|
13
13
|
describeError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XDOP2ANX.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/mcp.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VU3TF5CD.js";
|
|
4
4
|
import {
|
|
5
5
|
AGENT_PROVIDER_IDS,
|
|
6
6
|
AgentProviderIds,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveProviderModel,
|
|
23
23
|
schedulableRunKindSchema,
|
|
24
24
|
sentimentEvaluatorProviderSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XDOP2ANX.js";
|
|
26
26
|
|
|
27
27
|
// ../config/src/index.ts
|
|
28
28
|
import { z as z5 } from "zod";
|
|
@@ -1082,11 +1082,14 @@ Do not use "canonry init --force" for recovery. It replaces credentials without
|
|
|
1082
1082
|
message: `Invalid config at ${configPath}: dashboard.managedSweeps must be true, false, or left blank.`
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1085
|
+
for (const key of ["whatsNewOnly", "showFeedback"]) {
|
|
1086
|
+
const value = parsed.dashboard?.[key];
|
|
1087
|
+
if (value != null && typeof value !== "boolean") {
|
|
1088
|
+
throw new CliError({
|
|
1089
|
+
code: "CONFIG_INVALID",
|
|
1090
|
+
message: `Invalid config at ${configPath}: dashboard.${key} must be true, false, or left blank.`
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1090
1093
|
}
|
|
1091
1094
|
if (!researchAllowViewersSchema.safeParse(parsed.research?.allowViewers).success) {
|
|
1092
1095
|
throw new CliError({
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LBNJVTGN.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-XDOP2ANX.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
reparseStoredResult4,
|
|
9
9
|
reparseStoredResult5,
|
|
10
10
|
resolveStoredApiResponse
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RLDRNIB4.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LBNJVTGN.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
isMachineFormat
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VU3TF5CD.js";
|
|
19
19
|
import {
|
|
20
20
|
determineCitationState
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Q7LU7GTH.js";
|
|
22
22
|
import {
|
|
23
23
|
backfillProjectAnswerMentions,
|
|
24
24
|
competitorIdentityColumns,
|
|
25
25
|
createRunCompetitorResolver,
|
|
26
26
|
readMarketCompetitorNames,
|
|
27
27
|
refreshSnapshotMentionIdentity
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UKFXP4R5.js";
|
|
29
29
|
import {
|
|
30
30
|
RawEventSampleEventTypes,
|
|
31
31
|
auditLog,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
querySnapshots,
|
|
40
40
|
rawEventSamples,
|
|
41
41
|
runs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-G3HBHMML.js";
|
|
43
43
|
import {
|
|
44
44
|
ProviderNames,
|
|
45
45
|
RetrievalContracts,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
extractRecommendedCompetitors,
|
|
53
53
|
normalizeUrlPath,
|
|
54
54
|
openRouterRouteModel
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-XDOP2ANX.js";
|
|
56
56
|
|
|
57
57
|
// src/commands/backfill.ts
|
|
58
58
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -430,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
async function backfillInsightsCommand(project, opts) {
|
|
433
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
433
|
+
const { IntelligenceService } = await import("./intelligence-service-TGXLLDIW.js");
|
|
434
434
|
const config = loadConfig();
|
|
435
435
|
const db = createClient(config.database);
|
|
436
436
|
migrate(db);
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3C6A63IG.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS,
|
|
11
11
|
resolveAeroSkillDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QT475Y6O.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASONING_LEVELS,
|
|
15
15
|
aeroStreamFn,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
resolveApiKeyFor,
|
|
24
24
|
resolveModelForProvider,
|
|
25
25
|
validateAgentProviderRegistry
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LBNJVTGN.js";
|
|
27
27
|
import {
|
|
28
28
|
CanonryMcpToolNames,
|
|
29
29
|
canonryMcpTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-377K7XSP.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-35DM6ZZ2.js";
|
|
34
34
|
import {
|
|
35
35
|
agentToolEvents,
|
|
36
36
|
llmUsageEvents
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-G3HBHMML.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-XDOP2ANX.js";
|
|
49
49
|
|
|
50
50
|
// src/agent/session.ts
|
|
51
51
|
import fs2 from "fs";
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O67HAPZL.js";
|
|
28
28
|
import {
|
|
29
29
|
answerServiceAdapters,
|
|
30
30
|
answerServiceDescriptors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IOOJ7DQ6.js";
|
|
32
32
|
import {
|
|
33
33
|
isManagedCanonryInstall
|
|
34
34
|
} from "./chunk-XAJS5FH3.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
buildAeroStateTools,
|
|
39
39
|
isAeroToolProfile,
|
|
40
40
|
truncateToolResult
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3C6A63IG.js";
|
|
42
42
|
import {
|
|
43
43
|
getGoogleAuthConfig,
|
|
44
44
|
getGoogleConnection,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
removeCloudflareTrafficConnection,
|
|
58
58
|
removeCloudflareTrafficConnectionBySourceId,
|
|
59
59
|
upsertCloudflareTrafficConnection
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6ORW2OUQ.js";
|
|
61
61
|
import {
|
|
62
62
|
claudeAdapter,
|
|
63
63
|
embedQueries,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
openrouterAdapter,
|
|
70
70
|
perplexityAdapter,
|
|
71
71
|
startTrafficReclassification
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RLDRNIB4.js";
|
|
73
73
|
import {
|
|
74
74
|
classifyUsageSurface,
|
|
75
75
|
createApiUsageTelemetry,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
startOutcomeTimer,
|
|
82
82
|
trackFeatureCompleted,
|
|
83
83
|
trackInstallState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-GY7YLVMD.js";
|
|
85
85
|
import {
|
|
86
86
|
isLoopbackBindHost
|
|
87
87
|
} from "./chunk-TSENU4GG.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
isApiProviderRegistrable,
|
|
90
90
|
isCdpProviderRegistrable,
|
|
91
91
|
registeredProviderNames
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-ILDAN5TW.js";
|
|
93
93
|
import {
|
|
94
94
|
checkLatestVersionForServer,
|
|
95
95
|
getOrCreateAnonymousId,
|
|
@@ -101,17 +101,17 @@ import {
|
|
|
101
101
|
recordDashboardEvent,
|
|
102
102
|
setTelemetryPreference,
|
|
103
103
|
trackEvent
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-LSNAMUIJ.js";
|
|
105
105
|
import {
|
|
106
106
|
createCanonryMcpServer
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-7JFPGEXQ.js";
|
|
108
108
|
import {
|
|
109
109
|
CANONRY_MCP_TIERS,
|
|
110
110
|
CANONRY_MCP_TOOLKIT_NAMES
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-QT475Y6O.js";
|
|
112
112
|
import {
|
|
113
113
|
ApiClient
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-WKYQRF5A.js";
|
|
115
115
|
import {
|
|
116
116
|
AGENT_PROVIDERS,
|
|
117
117
|
PROVIDER_MODELS,
|
|
@@ -146,39 +146,39 @@ import {
|
|
|
146
146
|
saveConfigPatch,
|
|
147
147
|
sentimentInstallReadiness,
|
|
148
148
|
updateSharedProviderExecutionGate
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-LBNJVTGN.js";
|
|
150
150
|
import {
|
|
151
151
|
getBundledSkillSnapshots
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-6AJ4Y3QL.js";
|
|
153
153
|
import {
|
|
154
154
|
computeFactorAverages,
|
|
155
155
|
deleteSiteCrawlGraphLayout,
|
|
156
156
|
persistSiteCrawlGraphLayout,
|
|
157
157
|
prepareSiteCrawlGraphLayout,
|
|
158
158
|
recordedSharePct
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-4A2JURHR.js";
|
|
160
160
|
import {
|
|
161
161
|
CanonryMcpToolNames,
|
|
162
162
|
canonryMcpTools
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-377K7XSP.js";
|
|
164
164
|
import {
|
|
165
165
|
PACKAGE_VERSION
|
|
166
166
|
} from "./chunk-AOJU5LKX.js";
|
|
167
167
|
import {
|
|
168
168
|
CliError
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-VU3TF5CD.js";
|
|
170
170
|
import {
|
|
171
171
|
IntelligenceService
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-SG7E3WTC.js";
|
|
173
173
|
import {
|
|
174
174
|
computeCitedCompetitorDomains,
|
|
175
175
|
determineCitationState
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-Q7LU7GTH.js";
|
|
177
177
|
import {
|
|
178
178
|
addLogListener,
|
|
179
179
|
createFastifyLogger,
|
|
180
180
|
createLogger
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-35DM6ZZ2.js";
|
|
182
182
|
import {
|
|
183
183
|
BingApiError,
|
|
184
184
|
CC_CACHE_DIR,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
webhookTargetRefusalReason,
|
|
331
331
|
webhookUserAgent,
|
|
332
332
|
writeAuditLog
|
|
333
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-UKFXP4R5.js";
|
|
334
334
|
import {
|
|
335
335
|
OperationalLogStore,
|
|
336
336
|
SentimentIdempotencyConflict,
|
|
@@ -432,7 +432,7 @@ import {
|
|
|
432
432
|
unrecognizedAgentEventsHourly,
|
|
433
433
|
unrecognizedAgentNotifyState,
|
|
434
434
|
usageCounters
|
|
435
|
-
} from "./chunk-
|
|
435
|
+
} from "./chunk-G3HBHMML.js";
|
|
436
436
|
import {
|
|
437
437
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
438
438
|
AI_ENGINE_DOMAINS,
|
|
@@ -579,6 +579,7 @@ import {
|
|
|
579
579
|
contentBriefDtoSchema,
|
|
580
580
|
createTemplateLinkDetectionTally,
|
|
581
581
|
createTemplateLinkPairIndex,
|
|
582
|
+
defaultSearchSitemapUrl,
|
|
582
583
|
deliveryFailed,
|
|
583
584
|
deriveCitedUrlCandidates,
|
|
584
585
|
deriveGoogleAdsEffectiveGoalGraph,
|
|
@@ -714,7 +715,7 @@ import {
|
|
|
714
715
|
winnabilityClassLabel,
|
|
715
716
|
withRetry,
|
|
716
717
|
withSkippedProviders
|
|
717
|
-
} from "./chunk-
|
|
718
|
+
} from "./chunk-XDOP2ANX.js";
|
|
718
719
|
|
|
719
720
|
// src/google-marketing-runtime.ts
|
|
720
721
|
import crypto2 from "crypto";
|
|
@@ -6194,39 +6195,37 @@ function removeGa4Connection(config, projectName) {
|
|
|
6194
6195
|
}
|
|
6195
6196
|
|
|
6196
6197
|
// src/cloud-run-config.ts
|
|
6197
|
-
function
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6198
|
+
function saveConnections(config, connections, persist) {
|
|
6199
|
+
const cloudRun = connections.length ? { ...config.cloudRun, connections } : void 0;
|
|
6200
|
+
persist?.({ cloudRun });
|
|
6201
|
+
if (cloudRun) config.cloudRun = cloudRun;
|
|
6202
|
+
else delete config.cloudRun;
|
|
6203
|
+
}
|
|
6204
|
+
function listCloudRunConnections(config) {
|
|
6205
|
+
return config.cloudRun?.connections ?? [];
|
|
6201
6206
|
}
|
|
6202
6207
|
function getCloudRunConnection(config, projectName) {
|
|
6203
6208
|
return (config.cloudRun?.connections ?? []).find((c) => c.projectName === projectName);
|
|
6204
6209
|
}
|
|
6205
|
-
function upsertCloudRunConnection(config, connection) {
|
|
6206
|
-
const connections =
|
|
6210
|
+
function upsertCloudRunConnection(config, connection, persist) {
|
|
6211
|
+
const connections = [...listCloudRunConnections(config)];
|
|
6207
6212
|
const index = connections.findIndex((c) => c.projectName === connection.projectName);
|
|
6208
|
-
if (index === -1)
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
}
|
|
6212
|
-
connections[index] = connection;
|
|
6213
|
+
if (index === -1) connections.push(connection);
|
|
6214
|
+
else connections[index] = connection;
|
|
6215
|
+
saveConnections(config, connections, persist);
|
|
6213
6216
|
return connection;
|
|
6214
6217
|
}
|
|
6215
|
-
function removeCloudRunConnection(config, projectName) {
|
|
6218
|
+
function removeCloudRunConnection(config, projectName, persist) {
|
|
6216
6219
|
const connections = config.cloudRun?.connections;
|
|
6217
6220
|
if (!connections?.length) return false;
|
|
6218
6221
|
const next = connections.filter((c) => c.projectName !== projectName);
|
|
6219
6222
|
if (next.length === connections.length) return false;
|
|
6220
|
-
|
|
6221
|
-
config.cloudRun.connections = next;
|
|
6222
|
-
if (next.length === 0) {
|
|
6223
|
-
delete config.cloudRun;
|
|
6224
|
-
}
|
|
6223
|
+
saveConnections(config, next, persist);
|
|
6225
6224
|
return true;
|
|
6226
6225
|
}
|
|
6227
6226
|
|
|
6228
6227
|
// src/wordpress-traffic-config.ts
|
|
6229
|
-
function
|
|
6228
|
+
function ensureConnections4(config) {
|
|
6230
6229
|
if (!config.wordpressTraffic) config.wordpressTraffic = {};
|
|
6231
6230
|
if (!config.wordpressTraffic.connections) config.wordpressTraffic.connections = [];
|
|
6232
6231
|
return config.wordpressTraffic.connections;
|
|
@@ -6235,7 +6234,7 @@ function getWordpressTrafficConnection(config, projectName) {
|
|
|
6235
6234
|
return (config.wordpressTraffic?.connections ?? []).find((c) => c.projectName === projectName);
|
|
6236
6235
|
}
|
|
6237
6236
|
function upsertWordpressTrafficConnection(config, connection) {
|
|
6238
|
-
const connections =
|
|
6237
|
+
const connections = ensureConnections4(config);
|
|
6239
6238
|
const index = connections.findIndex((c) => c.projectName === connection.projectName);
|
|
6240
6239
|
if (index === -1) {
|
|
6241
6240
|
connections.push(connection);
|
|
@@ -6258,7 +6257,7 @@ function removeWordpressTrafficConnection(config, projectName) {
|
|
|
6258
6257
|
}
|
|
6259
6258
|
|
|
6260
6259
|
// src/vercel-traffic-config.ts
|
|
6261
|
-
function
|
|
6260
|
+
function ensureConnections5(config) {
|
|
6262
6261
|
if (!config.vercelTraffic) config.vercelTraffic = {};
|
|
6263
6262
|
if (!config.vercelTraffic.connections) config.vercelTraffic.connections = [];
|
|
6264
6263
|
return config.vercelTraffic.connections;
|
|
@@ -6267,7 +6266,7 @@ function getVercelTrafficConnection(config, projectName) {
|
|
|
6267
6266
|
return (config.vercelTraffic?.connections ?? []).find((c) => c.projectName === projectName);
|
|
6268
6267
|
}
|
|
6269
6268
|
function upsertVercelTrafficConnection(config, connection) {
|
|
6270
|
-
const connections =
|
|
6269
|
+
const connections = ensureConnections5(config);
|
|
6271
6270
|
const index = connections.findIndex((c) => c.projectName === connection.projectName);
|
|
6272
6271
|
if (index === -1) {
|
|
6273
6272
|
connections.push(connection);
|
|
@@ -6296,7 +6295,7 @@ function buildCloudflareIngestUrlTemplate(config) {
|
|
|
6296
6295
|
}
|
|
6297
6296
|
|
|
6298
6297
|
// src/wordpress-config.ts
|
|
6299
|
-
function
|
|
6298
|
+
function ensureConnections6(config) {
|
|
6300
6299
|
if (!config.wordpress) config.wordpress = {};
|
|
6301
6300
|
if (!config.wordpress.connections) config.wordpress.connections = [];
|
|
6302
6301
|
return config.wordpress.connections;
|
|
@@ -6313,7 +6312,7 @@ function getWordpressConnection(config, projectName) {
|
|
|
6313
6312
|
return (config.wordpress?.connections ?? []).find((connection) => connection.projectName === projectName);
|
|
6314
6313
|
}
|
|
6315
6314
|
function upsertWordpressConnection(config, connection) {
|
|
6316
|
-
const connections =
|
|
6315
|
+
const connections = ensureConnections6(config);
|
|
6317
6316
|
const normalized = normalizeConnection(connection);
|
|
6318
6317
|
const index = connections.findIndex((entry) => entry.projectName === connection.projectName);
|
|
6319
6318
|
if (index === -1) {
|
|
@@ -6468,7 +6467,7 @@ function nonBlank(value) {
|
|
|
6468
6467
|
return trimmed ? trimmed : void 0;
|
|
6469
6468
|
}
|
|
6470
6469
|
function resolveBuildCommit(env = process.env) {
|
|
6471
|
-
const embedded = true ? "
|
|
6470
|
+
const embedded = true ? "4eca6fdd82ff9626bd450a591a6321722dcc15c7" : void 0;
|
|
6472
6471
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6473
6472
|
}
|
|
6474
6473
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -10569,7 +10568,7 @@ async function getAdGroupInsights(apiKey, adGroupId, opts) {
|
|
|
10569
10568
|
}
|
|
10570
10569
|
|
|
10571
10570
|
// src/ads-config.ts
|
|
10572
|
-
function
|
|
10571
|
+
function ensureConnections7(config) {
|
|
10573
10572
|
if (!config.openaiAds) config.openaiAds = {};
|
|
10574
10573
|
if (!config.openaiAds.connections) config.openaiAds.connections = [];
|
|
10575
10574
|
return config.openaiAds.connections;
|
|
@@ -10578,7 +10577,7 @@ function getOpenAiAdsConnection(config, projectName) {
|
|
|
10578
10577
|
return (config.openaiAds?.connections ?? []).find((c) => c.projectName === projectName);
|
|
10579
10578
|
}
|
|
10580
10579
|
function upsertOpenAiAdsConnection(config, connection) {
|
|
10581
|
-
const connections =
|
|
10580
|
+
const connections = ensureConnections7(config);
|
|
10582
10581
|
const index = connections.findIndex((c) => c.projectName === connection.projectName);
|
|
10583
10582
|
if (index === -1) {
|
|
10584
10583
|
connections.push(connection);
|
|
@@ -11160,7 +11159,8 @@ async function executeInspectSitemap(db, runId, projectId, opts) {
|
|
|
11160
11159
|
const persistConfigPatch = opts.saveConfigPatch ?? saveConfigPatch;
|
|
11161
11160
|
persistConfigPatch(opts.config);
|
|
11162
11161
|
}
|
|
11163
|
-
const sitemapUrl = opts.sitemapUrl || conn.sitemapUrl ||
|
|
11162
|
+
const sitemapUrl = opts.sitemapUrl || conn.sitemapUrl || defaultSearchSitemapUrl(conn.propertyId, project.canonicalDomain);
|
|
11163
|
+
if (!sitemapUrl) throw withOutcomeReason(new Error("Cannot determine a sitemap URL for this Search Console property"), OutcomeReasonCodes.VALIDATION);
|
|
11164
11164
|
log9.info("sitemap.fetch", { runId, projectId, sitemapUrl });
|
|
11165
11165
|
const urls = await fetchAndParseSitemap(sitemapUrl);
|
|
11166
11166
|
log9.info("sitemap.parsed", { runId, projectId, urlCount: urls.length, sitemapUrl });
|
|
@@ -11298,7 +11298,8 @@ async function executeBingInspectSitemap(db, runId, projectId, opts) {
|
|
|
11298
11298
|
OutcomeReasonCodes.PROPERTY_NOT_FOUND
|
|
11299
11299
|
);
|
|
11300
11300
|
}
|
|
11301
|
-
const sitemapUrl = opts.sitemapUrl ??
|
|
11301
|
+
const sitemapUrl = opts.sitemapUrl ?? defaultSearchSitemapUrl(conn.siteUrl, project.canonicalDomain);
|
|
11302
|
+
if (!sitemapUrl) throw withOutcomeReason(new Error("Cannot determine a sitemap URL for this Bing site"), OutcomeReasonCodes.VALIDATION);
|
|
11302
11303
|
log10.info("sitemap.fetch", { runId, projectId, sitemapUrl });
|
|
11303
11304
|
phase = OutcomePhases.crawl;
|
|
11304
11305
|
const sitemapUrls = await fetchAndParseSitemap(sitemapUrl);
|
|
@@ -22386,14 +22387,24 @@ async function createServer(opts) {
|
|
|
22386
22387
|
opts.config.bing?.apiKey || opts.config.bing?.connections?.some((c) => c.apiKey)
|
|
22387
22388
|
)
|
|
22388
22389
|
};
|
|
22390
|
+
function saveSearchConnection(section, change) {
|
|
22391
|
+
const draft = { ...opts.config, [section]: structuredClone(opts.config[section]) };
|
|
22392
|
+
const result = change(draft);
|
|
22393
|
+
if (result) {
|
|
22394
|
+
persistConfigPatch({ [section]: draft[section] });
|
|
22395
|
+
opts.config[section] = draft[section];
|
|
22396
|
+
}
|
|
22397
|
+
return result;
|
|
22398
|
+
}
|
|
22389
22399
|
const bingConnectionStore = {
|
|
22400
|
+
getSavedApiKey: () => opts.config.bing?.apiKey,
|
|
22390
22401
|
getConnection: (domain) => {
|
|
22391
22402
|
return opts.config.bing?.connections?.find((c) => c.domain === domain);
|
|
22392
22403
|
},
|
|
22393
|
-
upsertConnection: (connection) => {
|
|
22394
|
-
if (!
|
|
22395
|
-
if (!
|
|
22396
|
-
const idx =
|
|
22404
|
+
upsertConnection: (connection) => saveSearchConnection("bing", (draft) => {
|
|
22405
|
+
if (!draft.bing) draft.bing = {};
|
|
22406
|
+
if (!draft.bing.connections) draft.bing.connections = [];
|
|
22407
|
+
const idx = draft.bing.connections.findIndex(
|
|
22397
22408
|
(c) => c.domain === connection.domain
|
|
22398
22409
|
);
|
|
22399
22410
|
const normalized = {
|
|
@@ -22401,32 +22412,29 @@ async function createServer(opts) {
|
|
|
22401
22412
|
createdByProjectId: connection.createdByProjectId ?? null
|
|
22402
22413
|
};
|
|
22403
22414
|
if (idx >= 0) {
|
|
22404
|
-
|
|
22415
|
+
draft.bing.connections[idx] = normalized;
|
|
22405
22416
|
} else {
|
|
22406
|
-
|
|
22417
|
+
draft.bing.connections.push(normalized);
|
|
22407
22418
|
}
|
|
22408
|
-
persistConfigPatch(opts.config);
|
|
22409
22419
|
return normalized;
|
|
22410
|
-
},
|
|
22411
|
-
updateConnection: (domain, patch) => {
|
|
22412
|
-
const conn =
|
|
22420
|
+
}),
|
|
22421
|
+
updateConnection: (domain, patch) => saveSearchConnection("bing", (draft) => {
|
|
22422
|
+
const conn = draft.bing?.connections?.find(
|
|
22413
22423
|
(c) => c.domain === domain
|
|
22414
22424
|
);
|
|
22415
22425
|
if (!conn) return void 0;
|
|
22416
22426
|
Object.assign(conn, patch);
|
|
22417
|
-
persistConfigPatch(opts.config);
|
|
22418
22427
|
return conn;
|
|
22419
|
-
},
|
|
22420
|
-
deleteConnection: (domain) => {
|
|
22421
|
-
if (!
|
|
22422
|
-
const idx =
|
|
22428
|
+
}),
|
|
22429
|
+
deleteConnection: (domain) => saveSearchConnection("bing", (draft) => {
|
|
22430
|
+
if (!draft.bing?.connections) return false;
|
|
22431
|
+
const idx = draft.bing.connections.findIndex(
|
|
22423
22432
|
(c) => c.domain === domain
|
|
22424
22433
|
);
|
|
22425
22434
|
if (idx < 0) return false;
|
|
22426
|
-
|
|
22427
|
-
persistConfigPatch(opts.config);
|
|
22435
|
+
draft.bing.connections.splice(idx, 1);
|
|
22428
22436
|
return true;
|
|
22429
|
-
}
|
|
22437
|
+
})
|
|
22430
22438
|
};
|
|
22431
22439
|
const ga4CredentialStore = {
|
|
22432
22440
|
getConnection: (projectName) => {
|
|
@@ -22448,14 +22456,10 @@ async function createServer(opts) {
|
|
|
22448
22456
|
return getCloudRunConnection(opts.config, projectName);
|
|
22449
22457
|
},
|
|
22450
22458
|
upsertConnection: (record) => {
|
|
22451
|
-
|
|
22452
|
-
persistConfigPatch(opts.config);
|
|
22453
|
-
return updated;
|
|
22459
|
+
return upsertCloudRunConnection(opts.config, record, persistConfigPatch);
|
|
22454
22460
|
},
|
|
22455
22461
|
deleteConnection: (projectName) => {
|
|
22456
|
-
|
|
22457
|
-
if (removed) persistConfigPatch(opts.config);
|
|
22458
|
-
return removed;
|
|
22462
|
+
return removeCloudRunConnection(opts.config, projectName, persistConfigPatch);
|
|
22459
22463
|
}
|
|
22460
22464
|
};
|
|
22461
22465
|
const wordpressTrafficCredentialStore = {
|
|
@@ -22521,30 +22525,9 @@ async function createServer(opts) {
|
|
|
22521
22525
|
const googleConnectionStore = {
|
|
22522
22526
|
listConnections: (domain) => listGoogleConnections(opts.config, domain),
|
|
22523
22527
|
getConnection: (domain, connectionType) => getGoogleConnection(opts.config, domain, connectionType),
|
|
22524
|
-
upsertConnection: (connection) =>
|
|
22525
|
-
|
|
22526
|
-
|
|
22527
|
-
return updated;
|
|
22528
|
-
},
|
|
22529
|
-
updateConnection: (domain, connectionType, patch) => {
|
|
22530
|
-
const updated = patchGoogleConnection(
|
|
22531
|
-
opts.config,
|
|
22532
|
-
domain,
|
|
22533
|
-
connectionType,
|
|
22534
|
-
patch
|
|
22535
|
-
);
|
|
22536
|
-
if (updated) persistConfigPatch(opts.config);
|
|
22537
|
-
return updated;
|
|
22538
|
-
},
|
|
22539
|
-
deleteConnection: (domain, connectionType) => {
|
|
22540
|
-
const removed = removeGoogleConnection(
|
|
22541
|
-
opts.config,
|
|
22542
|
-
domain,
|
|
22543
|
-
connectionType
|
|
22544
|
-
);
|
|
22545
|
-
if (removed) persistConfigPatch(opts.config);
|
|
22546
|
-
return removed;
|
|
22547
|
-
}
|
|
22528
|
+
upsertConnection: (connection) => saveSearchConnection("google", (draft) => upsertGoogleConnection(draft, connection)),
|
|
22529
|
+
updateConnection: (domain, connectionType, patch) => saveSearchConnection("google", (draft) => patchGoogleConnection(draft, domain, connectionType, patch)),
|
|
22530
|
+
deleteConnection: (domain, connectionType) => saveSearchConnection("google", (draft) => removeGoogleConnection(draft, domain, connectionType))
|
|
22548
22531
|
};
|
|
22549
22532
|
const wordpressConnectionStore = {
|
|
22550
22533
|
getConnection: (projectName) => {
|
|
@@ -22582,6 +22565,7 @@ async function createServer(opts) {
|
|
|
22582
22565
|
}
|
|
22583
22566
|
const dashboardRequirePassword = resolveDashboardRequirePassword(process.env, opts.config);
|
|
22584
22567
|
const dashboardShowResourceLinks = resolveDashboardShowResourceLinks(process.env, opts.config);
|
|
22568
|
+
const dashboardShowFeedback = parseBooleanEnv(process.env.CANONRY_DASHBOARD_SHOW_FEEDBACK) ?? opts.config.dashboard?.showFeedback ?? true;
|
|
22585
22569
|
const managedInstall = isManagedCanonryInstall();
|
|
22586
22570
|
const dashboardShowLocalAgentSetup = resolveDashboardShowLocalAgentSetup(process.env, opts.config);
|
|
22587
22571
|
const dashboardShowUpdateNotification = resolveDashboardShowUpdateNotification(process.env, opts.config);
|
|
@@ -23739,6 +23723,9 @@ async function createServer(opts) {
|
|
|
23739
23723
|
if (!dashboardShowResourceLinks) {
|
|
23740
23724
|
dashboardConfig.showResourceLinks = false;
|
|
23741
23725
|
}
|
|
23726
|
+
if (!dashboardShowFeedback) {
|
|
23727
|
+
dashboardConfig.showFeedback = false;
|
|
23728
|
+
}
|
|
23742
23729
|
if (!dashboardShowLocalAgentSetup) {
|
|
23743
23730
|
dashboardConfig.showLocalAgentSetup = false;
|
|
23744
23731
|
}
|