@canonry/canonry 7.130.0 → 7.131.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/canonry/references/canonry-cli.md +5 -3
- package/dist/{activity-VIJVNTMK.js → activity-URKAZ4QI.js} +4 -4
- package/dist/{ads-PLZRG4BQ.js → ads-OEKDHREI.js} +4 -4
- package/dist/{agent-RFRMOTLE.js → agent-TBU46LO6.js} +6 -6
- package/dist/{agent-ask-CB756SUB.js → agent-ask-EDJZGROO.js} +25 -21
- package/dist/agent-conversations-BQKCD4CA.js +44 -0
- package/dist/{agent-journeys-PLYAVLGB.js → agent-journeys-ASY5XCAJ.js} +3 -3
- package/dist/agent-memory-HAGNNLCP.js +74 -0
- package/dist/agent-providers-WUDOCAHF.js +49 -0
- package/dist/agent-transcript-4MAQ7NCM.js +62 -0
- package/dist/{analytics-W6B2FQSA.js → analytics-RYRF5TFC.js} +3 -3
- package/dist/{answerability-BDOOPOJF.js → answerability-7VPMCZHE.js} +3 -3
- package/dist/{apply-LCANKKT5.js → apply-BNTPH5FW.js} +8 -5
- package/dist/{backfill-E3EVDP2O.js → backfill-2DYJLCOU.js} +5 -5
- package/dist/{backlinks-ZXSN3XNV.js → backlinks-5HZTCZFW.js} +11 -6
- package/dist/{bing-FMDKRCXN.js → bing-S6BOIOTS.js} +31 -17
- package/dist/{bootstrap-IHKKYDBO.js → bootstrap-EITWL66P.js} +6 -6
- package/dist/{cdp-ASPLW35M.js → cdp-TY2TZB7J.js} +13 -7
- package/dist/{chunk-MI575M4K.js → chunk-3CDHCDCE.js} +25 -24
- package/dist/{chunk-JUZ4ZCOX.js → chunk-3GAJD5NP.js} +3 -3
- package/dist/{chunk-MARIMDMX.js → chunk-3LXRY57V.js} +60 -48
- package/dist/{chunk-XVEPR3ZC.js → chunk-3STPYNCP.js} +3 -3
- package/dist/{chunk-Z77D43M5.js → chunk-623X526L.js} +1 -1
- package/dist/{chunk-76N4UIAF.js → chunk-63FHJJUO.js} +435 -444
- package/dist/chunk-APKBR2BP.js +40 -0
- package/dist/{chunk-VEDGR4LZ.js → chunk-BJWPYUKT.js} +1 -1
- package/dist/{chunk-37MF5NMW.js → chunk-CBREBUUV.js} +1 -1
- package/dist/{chunk-NUYKLS2R.js → chunk-CUXA47XW.js} +2 -2
- package/dist/{chunk-HH6FQW5W.js → chunk-DYDATNE5.js} +6 -3
- package/dist/{chunk-NUBJTRIV.js → chunk-HMCDVKHS.js} +4 -4
- package/dist/{chunk-S6X3HHSN.js → chunk-IPUZGRSN.js} +2 -2
- package/dist/{chunk-WZPKPA6I.js → chunk-KJX5CMPC.js} +1 -1
- package/dist/{chunk-4ISL4JNK.js → chunk-LXFLUFQT.js} +2 -2
- package/dist/{chunk-5U4HCSI6.js → chunk-NK4G4JPQ.js} +2 -2
- package/dist/{chunk-JMJSAK2H.js → chunk-NYZH7SM2.js} +2 -2
- package/dist/{chunk-MQFH765X.js → chunk-P4ETUNQR.js} +3 -3
- package/dist/{chunk-VON4PHNS.js → chunk-RGT2S3VS.js} +35 -15
- package/dist/{chunk-KQQERQJ2.js → chunk-RSB3X7UR.js} +2 -2
- package/dist/{chunk-52J7GFCK.js → chunk-T6CABZ3N.js} +1 -1
- package/dist/{chunk-GVCL4XBU.js → chunk-UFVVOJU3.js} +2 -2
- package/dist/{chunk-BERGWPA7.js → chunk-WEJOT2VP.js} +1 -1
- package/dist/{chunk-4KITKJPN.js → chunk-WIQBXZMU.js} +4 -4
- package/dist/{chunk-ZHWJJVCT.js → chunk-X3ES2XOJ.js} +1 -1
- package/dist/{chunk-QRIKJT6Y.js → chunk-Y7JEJNNS.js} +32 -3
- package/dist/{chunk-GXLF45FF.js → chunk-ZSVQTHX3.js} +7 -6
- package/dist/{citations-YWXR3WBL.js → citations-ERRYYKNY.js} +7 -5
- package/dist/{cli-catalog-RT3QPDLR.js → cli-catalog-ETUQDYOX.js} +3 -3
- package/dist/{cli-commands-6J6A5ULK.js → cli-commands-ORLKC2XM.js} +7 -6
- package/dist/cli.js +30 -19
- package/dist/{competitor-6ZTA2SZH.js → competitor-IC6KRZAD.js} +7 -4
- package/dist/{content-DJYGQ5CP.js → content-3Y6ZKQHG.js} +6 -5
- package/dist/{dashboard-F7NFKQLL.js → dashboard-XBS4EVSA.js} +4 -4
- package/dist/{demo-653PUOIB.js → demo-7D4W32J6.js} +2 -2
- package/dist/{demo-server-PVBLYPC5.js → demo-server-CGOD7EPX.js} +5 -5
- package/dist/{discover-3E7QM2TL.js → discover-34E5JIM5.js} +3 -3
- package/dist/{discover-eval-NAZPA6PV.js → discover-eval-TLH2MMNK.js} +41 -16
- package/dist/{doctor-OFFSPNBK.js → doctor-SGJQPWRI.js} +3 -3
- package/dist/{evidence-VOSSML2G.js → evidence-TFFVSNEL.js} +6 -5
- package/dist/{export-cmd-IVACTDSV.js → export-cmd-YRG7CEVX.js} +3 -3
- package/dist/{ga-BX4C7TPI.js → ga-VVJWYWQX.js} +6 -5
- package/dist/{gbp-SV3J2VG3.js → gbp-RYA62WDX.js} +23 -10
- package/dist/{google-J23OD7TR.js → google-5HRSXPUF.js} +13 -12
- package/dist/{google-marketing-TTLXMDMD.js → google-marketing-UGMDLFPE.js} +1 -1
- package/dist/{health-cmd-26AHD5XL.js → health-cmd-WUBFEQX6.js} +3 -3
- package/dist/{history-QWBRFDQR.js → history-5GFG76UO.js} +5 -3
- package/dist/index.d.ts +29 -29
- package/dist/index.js +15 -15
- package/dist/{init-URQ4E3XR.js → init-CHZSBQOK.js} +10 -9
- package/dist/{insights-PMTHHZ2H.js → insights-LWLKXKNO.js} +3 -3
- package/dist/{intelligence-service-GPA7IGDX.js → intelligence-service-LMVQQRPN.js} +2 -2
- package/dist/{journeys-IA7TF753.js → journeys-IQLWLZBY.js} +3 -3
- package/dist/{keys-DOHLZTRI.js → keys-3VVORLK2.js} +3 -3
- package/dist/{keyword-3C2ZU6OB.js → keyword-3MWGUBHL.js} +7 -4
- package/dist/{logs-P7VRVZ5N.js → logs-PSV4DZ6F.js} +3 -3
- package/dist/{mcp-6NA62OAY.js → mcp-NNBM3MLW.js} +5 -4
- package/dist/mcp.js +8 -8
- package/dist/{measurement-plan-RHKCARVE.js → measurement-plan-M4VLA2ZN.js} +5 -4
- package/dist/{notify-ODCY7TD3.js → notify-EDSJINE5.js} +3 -3
- package/dist/{organic-evidence-76P5AYB3.js → organic-evidence-VBT6URMQ.js} +3 -3
- package/dist/{overview-5T776SEB.js → overview-LRNI342W.js} +6 -6
- package/dist/{project-ITMGW45M.js → project-HO4GOEC4.js} +3 -3
- package/dist/{project-setup-A3Q6ZX73.js → project-setup-AXVIZND6.js} +4 -4
- package/dist/{query-3QAQITK3.js → query-E2D2K6MD.js} +8 -5
- package/dist/{research-R74N3VRL.js → research-Z3IZQH2M.js} +3 -3
- package/dist/{results-export-23GY45AY.js → results-export-TVWWLJQA.js} +3 -3
- package/dist/{run-ID66JYBN.js → run-RJDJPROH.js} +4 -4
- package/dist/{schedule-HZ2CRUAL.js → schedule-NVDN72YG.js} +3 -3
- package/dist/{search-DM5WWMTE.js → search-A4PBZ53D.js} +3 -3
- package/dist/{serve-3QDHKCHE.js → serve-7WPMQUVW.js} +16 -16
- package/dist/{session-ZN3YZI2D.js → session-VPJH4TRC.js} +8 -8
- package/dist/{settings-SIEKVYD7.js → settings-EYEXRKTM.js} +5 -5
- package/dist/{sitemaps-M4IAZLK2.js → sitemaps-4HCWZJOZ.js} +3 -3
- package/dist/{skills-J6LWTNU5.js → skills-GPYMDDRH.js} +2 -2
- package/dist/{snapshot-SM3BVX5M.js → snapshot-SNR7KBK4.js} +3 -3
- package/dist/{status-BHJJOUCK.js → status-VTQJVZFU.js} +12 -6
- package/dist/{support-FPXXXJPZ.js → support-H7ANOX67.js} +1 -1
- package/dist/{technical-aeo-4DJWWPUN.js → technical-aeo-IDMFUDXP.js} +7 -5
- package/dist/{telemetry-LKVQUSO7.js → telemetry-DA43ILAA.js} +4 -4
- package/dist/{tools-Y67PVNIJ.js → tools-F3FZEG5K.js} +7 -7
- package/dist/{traffic-QSZYZHFW.js → traffic-EPWP3D2K.js} +21 -29
- package/dist/{trends-WIHWJVJR.js → trends-IVYSKMND.js} +3 -3
- package/dist/{users-HQOPQRTP.js → users-ZJMBGWUF.js} +3 -3
- package/dist/{visibility-stats-MCY5CAUC.js → visibility-stats-M2I3SUES.js} +11 -5
- package/dist/{wordpress-IB5YOJSM.js → wordpress-BGIOJPIF.js} +3 -3
- package/package.json +1 -1
- package/dist/agent-conversations-RRI7T74B.js +0 -51
- package/dist/agent-memory-R5Q7DLRZ.js +0 -91
- package/dist/agent-providers-HNMGZ7GY.js +0 -58
- package/dist/agent-transcript-N6ZBTF72.js +0 -76
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RSB3X7UR.js";
|
|
4
|
+
import "./chunk-T6CABZ3N.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
8
8
|
import "./chunk-AOJU5LKX.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
|
+
errorCodeFor,
|
|
12
|
+
exitCodeFor,
|
|
11
13
|
isMachineFormat,
|
|
14
|
+
mostSevereExitCode,
|
|
12
15
|
usageError
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Y7JEJNNS.js";
|
|
14
17
|
import {
|
|
15
18
|
describeError,
|
|
16
19
|
formatPercent,
|
|
17
|
-
formatRunErrorOneLine
|
|
20
|
+
formatRunErrorOneLine,
|
|
21
|
+
shellQuote
|
|
18
22
|
} from "./chunk-FGEBFVHB.js";
|
|
19
23
|
|
|
20
24
|
// src/commands/bing.ts
|
|
@@ -101,7 +105,7 @@ async function bingStatus(project, format) {
|
|
|
101
105
|
}
|
|
102
106
|
if (!result.connected) {
|
|
103
107
|
console.log(`No Bing connection for project "${project}".`);
|
|
104
|
-
console.log(
|
|
108
|
+
console.log(`Run "canonry bing connect ${shellQuote(project)} --api-key <key>" to connect.`);
|
|
105
109
|
return;
|
|
106
110
|
}
|
|
107
111
|
console.log(`Bing Webmaster Tools for "${project}":
|
|
@@ -203,7 +207,7 @@ async function bingCoverageHistory(project, opts) {
|
|
|
203
207
|
return;
|
|
204
208
|
}
|
|
205
209
|
if (rows.length === 0) {
|
|
206
|
-
console.log(
|
|
210
|
+
console.log(`No coverage history found. Run "canonry bing coverage ${shellQuote(project)}" or "canonry bing refresh ${shellQuote(project)}" first to capture a snapshot.`);
|
|
207
211
|
return;
|
|
208
212
|
}
|
|
209
213
|
console.log(`
|
|
@@ -263,6 +267,12 @@ async function bingInspections(project, opts) {
|
|
|
263
267
|
);
|
|
264
268
|
}
|
|
265
269
|
}
|
|
270
|
+
function failedReinspectionsSentence(failed, total) {
|
|
271
|
+
const urlsByError = /* @__PURE__ */ new Map();
|
|
272
|
+
for (const f of failed) urlsByError.set(f.error, [...urlsByError.get(f.error) ?? [], f.url]);
|
|
273
|
+
const reasons = [...urlsByError].map(([error, urls]) => urls.length === 1 ? `${urls[0]}: ${error}` : `${urls.length} URLs: ${error}`);
|
|
274
|
+
return `${failed.length} of ${total} URL${total === 1 ? "" : "s"} failed to re-inspect: ${reasons.join("; ")}`;
|
|
275
|
+
}
|
|
266
276
|
async function bingRefresh(project, format) {
|
|
267
277
|
const client = getClient();
|
|
268
278
|
const rows = await client.bingInspections(project);
|
|
@@ -279,17 +289,17 @@ async function bingRefresh(project, format) {
|
|
|
279
289
|
process.stderr.write(`Re-inspecting ${uniqueUrls.length} URL(s) via Bing`);
|
|
280
290
|
}
|
|
281
291
|
const CONCURRENCY = 10;
|
|
282
|
-
const
|
|
292
|
+
const failed = [];
|
|
283
293
|
for (let i = 0; i < uniqueUrls.length; i += CONCURRENCY) {
|
|
284
294
|
const batch = uniqueUrls.slice(i, i + CONCURRENCY);
|
|
285
295
|
const results = await Promise.allSettled(
|
|
286
296
|
batch.map((url) => client.bingInspectUrl(project, url))
|
|
287
297
|
);
|
|
288
|
-
|
|
298
|
+
results.forEach((r, j) => {
|
|
289
299
|
if (r.status === "rejected") {
|
|
290
|
-
|
|
300
|
+
failed.push({ url: batch[j], code: errorCodeFor(r.reason), exitCode: exitCodeFor(r.reason), error: describeError(r.reason) });
|
|
291
301
|
}
|
|
292
|
-
}
|
|
302
|
+
});
|
|
293
303
|
if (!isMachineFormat(format)) {
|
|
294
304
|
process.stderr.write(".");
|
|
295
305
|
}
|
|
@@ -297,11 +307,15 @@ async function bingRefresh(project, format) {
|
|
|
297
307
|
if (!isMachineFormat(format)) {
|
|
298
308
|
process.stderr.write("\n");
|
|
299
309
|
}
|
|
300
|
-
if (errors.length > 0) {
|
|
301
|
-
process.stderr.write(`${errors.length} URL(s) failed to re-inspect.
|
|
302
|
-
`);
|
|
303
|
-
}
|
|
304
310
|
await bingCoverage(project, format);
|
|
311
|
+
if (failed.length > 0) {
|
|
312
|
+
throw new CliError({
|
|
313
|
+
code: "BING_REFRESH_INCOMPLETE",
|
|
314
|
+
message: failedReinspectionsSentence(failed, uniqueUrls.length),
|
|
315
|
+
exitCode: mostSevereExitCode(failed.map((f) => f.exitCode)),
|
|
316
|
+
details: { project, total: uniqueUrls.length, failed }
|
|
317
|
+
});
|
|
318
|
+
}
|
|
305
319
|
}
|
|
306
320
|
async function bingRequestIndexing(project, opts) {
|
|
307
321
|
const client = getClient();
|
|
@@ -440,7 +454,7 @@ async function bingSync(project, opts) {
|
|
|
440
454
|
console.log(JSON.stringify(run, null, 2));
|
|
441
455
|
return;
|
|
442
456
|
}
|
|
443
|
-
console.log(`Bing data sync started (run ${run.id}). Check it with "canonry
|
|
457
|
+
console.log(`Bing data sync started (run ${run.id}). Check it with "canonry run show ${run.id}".`);
|
|
444
458
|
return;
|
|
445
459
|
}
|
|
446
460
|
const current = await waitForRunStatus(client, run.id, {
|
|
@@ -628,7 +642,7 @@ async function bingKeywordDemand(project, opts) {
|
|
|
628
642
|
if (printJson(opts.format, result, (opts.query ? result.history : result.rows).map((row) => ({ project, ...row })))) return;
|
|
629
643
|
if (opts.query) {
|
|
630
644
|
if (result.history.length === 0) {
|
|
631
|
-
console.log(`No stored Bing demand for "${opts.query}". It is read during "canonry bing sync" for tracked queries.`);
|
|
645
|
+
console.log(`No stored Bing demand for "${opts.query}". It is read during "canonry bing sync ${shellQuote(project)}" for tracked queries.`);
|
|
632
646
|
return;
|
|
633
647
|
}
|
|
634
648
|
console.log(`Weekly Bing searches for "${opts.query}" (${result.market.country}, ${result.market.language}):
|
|
@@ -714,7 +728,7 @@ async function bingLinks(project, opts) {
|
|
|
714
728
|
const result = await client.bingLinks(project, { url: opts.url, page: opts.page === void 0 ? void 0 : String(opts.page) });
|
|
715
729
|
if (printJson(opts.format, result, result.rows.map((row) => ({ project, ...row })))) return;
|
|
716
730
|
if (result.rows.length === 0) {
|
|
717
|
-
console.log(
|
|
731
|
+
console.log(`Bing reported no inbound links. Bing often returns none for smaller sites; Common Crawl backlinks ("canonry backlinks list ${shellQuote(project)}") cover more.`);
|
|
718
732
|
return;
|
|
719
733
|
}
|
|
720
734
|
console.log(opts.url ? `External pages linking to ${opts.url} (page ${result.page + 1} of ${result.totalPages}):
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackCliConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUXA47XW.js";
|
|
4
4
|
import {
|
|
5
5
|
answerServiceDescriptors
|
|
6
6
|
} from "./chunk-AP54KLWN.js";
|
|
7
7
|
import {
|
|
8
8
|
outcomeFailure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LXFLUFQT.js";
|
|
10
10
|
import {
|
|
11
11
|
isLoopbackBindHost
|
|
12
12
|
} from "./chunk-TSENU4GG.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
isTelemetryEnabled,
|
|
18
18
|
recordInstallRef
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KJX5CMPC.js";
|
|
20
20
|
import {
|
|
21
21
|
createApiClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RSB3X7UR.js";
|
|
23
23
|
import {
|
|
24
24
|
configExists,
|
|
25
25
|
getAnswerServiceEnv,
|
|
@@ -30,14 +30,14 @@ import {
|
|
|
30
30
|
loadConfigRaw,
|
|
31
31
|
saveConfig,
|
|
32
32
|
withBootstrapProviderDefaults
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T6CABZ3N.js";
|
|
34
34
|
import "./chunk-AOJU5LKX.js";
|
|
35
35
|
import {
|
|
36
36
|
CliError,
|
|
37
37
|
isEndpointMissing,
|
|
38
38
|
isMachineFormat,
|
|
39
39
|
systemError
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Y7JEJNNS.js";
|
|
41
41
|
import "./chunk-C4JM5HJW.js";
|
|
42
42
|
import {
|
|
43
43
|
apiKeys,
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackCliConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUXA47XW.js";
|
|
4
4
|
import {
|
|
5
5
|
outcomeFailure
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LXFLUFQT.js";
|
|
7
|
+
import "./chunk-KJX5CMPC.js";
|
|
8
8
|
import {
|
|
9
9
|
createApiClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RSB3X7UR.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
saveConfigPatch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T6CABZ3N.js";
|
|
15
15
|
import "./chunk-AOJU5LKX.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
|
+
exitCodeFor,
|
|
18
19
|
isMachineFormat
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y7JEJNNS.js";
|
|
20
21
|
import "./chunk-C4JM5HJW.js";
|
|
21
22
|
import {
|
|
22
23
|
cdpChromeLaunchHint,
|
|
@@ -94,7 +95,8 @@ async function cdpStatus(format) {
|
|
|
94
95
|
throw new CliError({
|
|
95
96
|
code: "CDP_STATUS_FAILED",
|
|
96
97
|
message: `Error checking CDP status: ${msg}`,
|
|
97
|
-
displayMessage: `Error checking CDP status: ${msg}
|
|
98
|
+
displayMessage: `Error checking CDP status: ${msg}`,
|
|
99
|
+
exitCode: exitCodeFor(err)
|
|
98
100
|
});
|
|
99
101
|
}
|
|
100
102
|
}
|
|
@@ -144,11 +146,15 @@ async function cdpScreenshot(query, opts) {
|
|
|
144
146
|
}
|
|
145
147
|
} catch (err) {
|
|
146
148
|
const msg = describeError(err);
|
|
149
|
+
const cause = err instanceof CliError ? err : void 0;
|
|
147
150
|
throw new CliError({
|
|
148
151
|
code: "CDP_SCREENSHOT_FAILED",
|
|
149
152
|
message: `CDP screenshot failed: ${msg}`,
|
|
150
153
|
displayMessage: `CDP screenshot failed: ${msg}`,
|
|
154
|
+
exitCode: exitCodeFor(err),
|
|
151
155
|
details: {
|
|
156
|
+
...cause?.details,
|
|
157
|
+
...cause ? { causeCode: cause.code } : {},
|
|
152
158
|
query
|
|
153
159
|
}
|
|
154
160
|
});
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3STPYNCP.js";
|
|
28
28
|
import {
|
|
29
29
|
AeroToolProfiles,
|
|
30
30
|
AeroToolScopes,
|
|
31
31
|
buildAeroStateTools,
|
|
32
32
|
isAeroToolProfile,
|
|
33
33
|
truncateToolResult
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WIQBXZMU.js";
|
|
35
35
|
import {
|
|
36
36
|
answerServiceAdapters,
|
|
37
37
|
answerServiceDescriptors
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
openrouterAdapter,
|
|
70
70
|
perplexityAdapter,
|
|
71
71
|
startTrafficReclassification
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-CBREBUUV.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-LXFLUFQT.js";
|
|
85
85
|
import {
|
|
86
86
|
isLoopbackBindHost
|
|
87
87
|
} from "./chunk-TSENU4GG.js";
|
|
@@ -101,17 +101,17 @@ import {
|
|
|
101
101
|
recordDashboardEvent,
|
|
102
102
|
setTelemetryPreference,
|
|
103
103
|
trackEvent
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-KJX5CMPC.js";
|
|
105
105
|
import {
|
|
106
106
|
createCanonryMcpServer
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-3GAJD5NP.js";
|
|
108
108
|
import {
|
|
109
109
|
CANONRY_MCP_TIERS,
|
|
110
110
|
CANONRY_MCP_TOOLKIT_NAMES
|
|
111
111
|
} from "./chunk-MG4COK23.js";
|
|
112
112
|
import {
|
|
113
113
|
ApiClient
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-RSB3X7UR.js";
|
|
115
115
|
import {
|
|
116
116
|
AGENT_PROVIDERS,
|
|
117
117
|
PROVIDER_MODELS,
|
|
@@ -146,10 +146,10 @@ import {
|
|
|
146
146
|
saveConfigPatch,
|
|
147
147
|
sentimentInstallReadiness,
|
|
148
148
|
updateSharedProviderExecutionGate
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-T6CABZ3N.js";
|
|
150
150
|
import {
|
|
151
151
|
getBundledSkillSnapshots
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-623X526L.js";
|
|
153
153
|
import {
|
|
154
154
|
computeFactorAverages,
|
|
155
155
|
deleteSiteCrawlGraphLayout,
|
|
@@ -160,16 +160,16 @@ import {
|
|
|
160
160
|
import {
|
|
161
161
|
CanonryMcpToolNames,
|
|
162
162
|
canonryMcpTools
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-IPUZGRSN.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-Y7JEJNNS.js";
|
|
170
170
|
import {
|
|
171
171
|
IntelligenceService
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-WEJOT2VP.js";
|
|
173
173
|
import {
|
|
174
174
|
computeCitedCompetitorDomains,
|
|
175
175
|
determineCitationState
|
|
@@ -339,7 +339,7 @@ import {
|
|
|
339
339
|
webhookTargetRefusalReason,
|
|
340
340
|
webhookUserAgent,
|
|
341
341
|
writeAuditLog
|
|
342
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-HMCDVKHS.js";
|
|
343
343
|
import {
|
|
344
344
|
OperationalLogStore,
|
|
345
345
|
SentimentIdempotencyConflict,
|
|
@@ -714,6 +714,7 @@ import {
|
|
|
714
714
|
seoRankingSettingsSchema,
|
|
715
715
|
serializeForInlineScript,
|
|
716
716
|
serializeRunError,
|
|
717
|
+
shellQuote,
|
|
717
718
|
shiftIsoCalendarDate,
|
|
718
719
|
siteAuditRequestIdentity,
|
|
719
720
|
siteAuditScheduleChecks,
|
|
@@ -6527,7 +6528,7 @@ function nonBlank(value) {
|
|
|
6527
6528
|
return trimmed ? trimmed : void 0;
|
|
6528
6529
|
}
|
|
6529
6530
|
function resolveBuildCommit(env = process.env) {
|
|
6530
|
-
const embedded = true ? "
|
|
6531
|
+
const embedded = true ? "b5bb40af0a2186911bec8f1194b1e87b7000bdae" : void 0;
|
|
6531
6532
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6532
6533
|
}
|
|
6533
6534
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -9328,7 +9329,7 @@ async function executeGscSync(db, runId, projectId, opts) {
|
|
|
9328
9329
|
}
|
|
9329
9330
|
if (!conn.propertyId) {
|
|
9330
9331
|
throw withOutcomeReason(
|
|
9331
|
-
new Error('No GSC property selected.
|
|
9332
|
+
new Error('No GSC property selected. List the sites with "canonry google properties <project>", then pick one with "canonry google set-property <project> <url>".'),
|
|
9332
9333
|
OutcomeReasonCodes.PROPERTY_NOT_FOUND
|
|
9333
9334
|
);
|
|
9334
9335
|
}
|
|
@@ -9793,7 +9794,7 @@ async function executeGbpSync(db, runId, projectId, opts) {
|
|
|
9793
9794
|
const conn = getGoogleConnection(opts.config, project.canonicalDomain, "gbp");
|
|
9794
9795
|
if (!conn || !conn.refreshToken) {
|
|
9795
9796
|
throw withOutcomeReason(
|
|
9796
|
-
new Error('No GBP connection found or connection is incomplete. Run "canonry gbp connect" first.'),
|
|
9797
|
+
new Error('No GBP connection found or connection is incomplete. Run "canonry gbp connect <project>" first.'),
|
|
9797
9798
|
OutcomeReasonCodes.NOT_CONNECTED
|
|
9798
9799
|
);
|
|
9799
9800
|
}
|
|
@@ -10102,7 +10103,7 @@ async function refreshSelectedLocationProfiles(db, projectId, accessToken, locat
|
|
|
10102
10103
|
const missing = accountRows.filter((row) => !remoteByName.has(row.locationName));
|
|
10103
10104
|
if (missing.length > 0) {
|
|
10104
10105
|
throw withOutcomeReason(
|
|
10105
|
-
new Error(`Selected GBP location(s) no longer appear under ${accountName}: ${missing.map((row) => row.locationName).join(", ")}. Run "canonry gbp locations discover" to refresh the selection.`),
|
|
10106
|
+
new Error(`Selected GBP location(s) no longer appear under ${accountName}: ${missing.map((row) => row.locationName).join(", ")}. Run "canonry gbp locations discover <project>" to refresh the selection.`),
|
|
10106
10107
|
OutcomeReasonCodes.PROPERTY_NOT_FOUND
|
|
10107
10108
|
);
|
|
10108
10109
|
}
|
|
@@ -10789,12 +10790,12 @@ async function executeAdsSync(db, runId, projectId, opts) {
|
|
|
10789
10790
|
if (!project) throw withOutcomeReason(new Error(`Project not found: ${projectId}`), OutcomeReasonCodes.NOT_FOUND);
|
|
10790
10791
|
const connRow = db.select().from(adsConnections).where(eq11(adsConnections.projectId, projectId)).get();
|
|
10791
10792
|
if (!connRow) {
|
|
10792
|
-
throw withOutcomeReason(new Error(
|
|
10793
|
+
throw withOutcomeReason(new Error(`No ads connection found for this project. Run "canonry ads connect ${shellQuote(project.name)} --api-key <sdk-key>" first.`), OutcomeReasonCodes.NOT_CONNECTED);
|
|
10793
10794
|
}
|
|
10794
10795
|
const cfgConn = getOpenAiAdsConnection(opts.config, project.name);
|
|
10795
10796
|
if (!cfgConn?.apiKey) {
|
|
10796
10797
|
throw withOutcomeReason(
|
|
10797
|
-
new Error(
|
|
10798
|
+
new Error(`No OpenAI Ads API key in the local Canonry config. Run "canonry ads connect ${shellQuote(project.name)} --api-key <sdk-key>" first.`),
|
|
10798
10799
|
OutcomeReasonCodes.NOT_CONNECTED
|
|
10799
10800
|
);
|
|
10800
10801
|
}
|
|
@@ -11279,7 +11280,7 @@ async function executeInspectSitemap(db, runId, projectId, opts) {
|
|
|
11279
11280
|
}
|
|
11280
11281
|
if (!conn.propertyId) {
|
|
11281
11282
|
throw withOutcomeReason(
|
|
11282
|
-
new Error('No GSC property selected.
|
|
11283
|
+
new Error('No GSC property selected. List the sites with "canonry google properties <project>", then pick one with "canonry google set-property <project> <url>".'),
|
|
11283
11284
|
OutcomeReasonCodes.PROPERTY_NOT_FOUND
|
|
11284
11285
|
);
|
|
11285
11286
|
}
|
|
@@ -11427,7 +11428,7 @@ async function executeBingInspectSitemap(db, runId, projectId, opts) {
|
|
|
11427
11428
|
const conn = opts.config.bing?.connections?.find((c) => c.domain === project.canonicalDomain);
|
|
11428
11429
|
if (!conn) {
|
|
11429
11430
|
throw withOutcomeReason(
|
|
11430
|
-
new Error('No Bing connection found for this project. Run "canonry bing connect <project>" first.'),
|
|
11431
|
+
new Error('No Bing connection found for this project. Run "canonry bing connect <project> --api-key <key>" first.'),
|
|
11431
11432
|
OutcomeReasonCodes.NOT_CONNECTED
|
|
11432
11433
|
);
|
|
11433
11434
|
}
|
|
@@ -11773,7 +11774,7 @@ async function executeBingSync(db, runId, projectId, opts) {
|
|
|
11773
11774
|
const conn = opts.config.bing?.connections?.find((c) => c.domain === project.canonicalDomain);
|
|
11774
11775
|
if (!conn) {
|
|
11775
11776
|
throw withOutcomeReason(
|
|
11776
|
-
new Error('No Bing connection found for this project. Run "canonry bing connect <project>" first.'),
|
|
11777
|
+
new Error('No Bing connection found for this project. Run "canonry bing connect <project> --api-key <key>" first.'),
|
|
11777
11778
|
OutcomeReasonCodes.NOT_CONNECTED
|
|
11778
11779
|
);
|
|
11779
11780
|
}
|
|
@@ -13041,7 +13042,7 @@ function writeDiscoveryInsight(db, input) {
|
|
|
13041
13042
|
recommendation: {
|
|
13042
13043
|
action: "review-discovered-basket",
|
|
13043
13044
|
target: input.sessionId,
|
|
13044
|
-
reason: `Run \`canonry discover show ${input.sessionId} --format json\` to inspect the per-query breakdown, then \`canonry discover promote <project> ${input.sessionId}\` to merge cited + aspirational findings into the project. Top competitors: ${topCompetitors.map((c) => c.domain).join(", ") || "none"} | Buckets: cited=${buckets.cited} aspirational=${buckets.aspirational} wasted=${buckets["wasted-surface"]}`
|
|
13045
|
+
reason: `Run \`canonry discover show <project> ${input.sessionId} --format json\` to inspect the per-query breakdown, then \`canonry discover promote <project> ${input.sessionId}\` to merge cited + aspirational findings into the project. Top competitors: ${topCompetitors.map((c) => c.domain).join(", ") || "none"} | Buckets: cited=${buckets.cited} aspirational=${buckets.aspirational} wasted=${buckets["wasted-surface"]}`
|
|
13045
13046
|
},
|
|
13046
13047
|
cause: {
|
|
13047
13048
|
cause: `Discovery session ${input.sessionId} probed ${totalProbes} representative queries via ${input.seedProvider}`,
|
|
@@ -19004,7 +19005,7 @@ ${lines.join("\n")}
|
|
|
19004
19005
|
}
|
|
19005
19006
|
}
|
|
19006
19007
|
providerRecovery(reason) {
|
|
19007
|
-
const action = reason === ProviderErrorCodes.PROVIDER_BILLING ? "Restore credit or billing access in the provider account." : "Repair the provider key or account access; run canonry settings reload-providers if you changed config.yaml.";
|
|
19008
|
+
const action = reason === ProviderErrorCodes.PROVIDER_BILLING ? "Restore credit or billing access in the provider account." : "Repair the provider key or account access; run `canonry settings reload-providers` if you changed config.yaml.";
|
|
19008
19009
|
return `${action} Then send Aero a prompt to retry now. Automatic work can resume after the pause expires.`;
|
|
19009
19010
|
}
|
|
19010
19011
|
resolveProjectId(projectName) {
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createApiClient,
|
|
9
9
|
runWithUsageTags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RSB3X7UR.js";
|
|
11
11
|
import {
|
|
12
12
|
canonryMcpTools,
|
|
13
13
|
mcpOutputSchema,
|
|
14
14
|
toolOperationAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IPUZGRSN.js";
|
|
16
16
|
import {
|
|
17
17
|
PACKAGE_VERSION
|
|
18
18
|
} from "./chunk-AOJU5LKX.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y7JEJNNS.js";
|
|
22
22
|
import {
|
|
23
23
|
OperationAccesses,
|
|
24
24
|
RESEARCH_RUN_SCOPE,
|