@canonry/canonry 7.121.0 → 7.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agent-workspace/skills/aero/SKILL.md +6 -4
- package/assets/agent-workspace/skills/aero/references/orchestration.md +2 -2
- package/assets/agent-workspace/skills/aero/references/reporting.md +1 -1
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +3 -2
- package/assets/assets/{AccessControls-CP27J4pe.js → AccessControls-qKt0MIwz.js} +2 -2
- package/assets/assets/{AgentSetupPage-Cr4N8PtT.js → AgentSetupPage-CS6TAG_q.js} +4 -4
- package/assets/assets/{AuditHistoryPanel-DLQzK10v.js → AuditHistoryPanel-C9muxa5U.js} +1 -1
- package/assets/assets/{BacklinksPage-DQL-PEeM.js → BacklinksPage-YSi04rze.js} +1 -1
- package/assets/assets/{ChartPrimitives-C-1eZmHk.js → ChartPrimitives-DA5ldw5q.js} +1 -1
- package/assets/assets/{Hint-DiyoPGOX.js → Hint-Drf3KqdJ.js} +1 -1
- package/assets/assets/{HistoryPage-BBzUc2Ba.js → HistoryPage-tTCABHZr.js} +1 -1
- package/assets/assets/{InfoTooltip-laRfQjZw.js → InfoTooltip-Dm4gYO4N.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-B-eHRFSF.js +4 -0
- package/assets/assets/ProjectPage-DK7y3uMN.js +15 -0
- package/assets/assets/{RunsPage-D4ul_xdH.js → RunsPage-B6HxjqFp.js} +1 -1
- package/assets/assets/ServerTrafficSection-BCPF6Rxk.js +41 -0
- package/assets/assets/SettingsPage-Dlsqc0Xk.js +1 -0
- package/assets/assets/{ToneBadge-co0skd0y.js → ToneBadge-BekCDc9B.js} +3 -3
- package/assets/assets/{TrafficPage-DXjB09Mc.js → TrafficPage-CcZ2VKWS.js} +1 -1
- package/assets/assets/TrafficSourceDetailPage-BUWRBlEj.js +1 -0
- package/assets/assets/{account-context-DtBBZ6kn.js → account-context-CTgTl_U3.js} +1 -1
- package/assets/assets/{agent-trust-copy-KHOU1_xL.js → agent-trust-copy-C3Su6oTh.js} +1 -1
- package/assets/assets/{card-Cky0yiDz.js → card-fF4DLMtN.js} +1 -1
- package/assets/assets/index-CZK8ELxf.js +43 -0
- package/assets/assets/index-ODrMZLgB.css +1 -0
- package/assets/assets/preload-helper-D6vLhNAZ.js +1 -0
- package/assets/assets/{query-client-BGk_rgH_.js → query-client-bLCsQvmN.js} +1 -1
- package/assets/assets/react-query-DPn84_Mu.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-DY78Y3sE.js → react-sigma_core.esm.min-Dkaqqban.js} +1 -1
- package/assets/assets/{server-traffic-CqU3z6oz.js → server-traffic-CCdnHKbu.js} +1 -1
- package/assets/assets/service-CUnyHRGl.js +1 -0
- package/assets/assets/{use-tooltip-position-CM1lD8cm.js → use-tooltip-position-71Ffohl_.js} +1 -1
- package/assets/assets/vendor-lucide-C3F7vHjd.js +1 -0
- package/assets/assets/{vendor-markdown-CQdHmjWd.js → vendor-markdown-DMxglFrF.js} +1 -1
- package/assets/assets/{vendor-radix-WbUsEVSn.js → vendor-radix-CXYx3LLU.js} +1 -1
- package/assets/assets/{vendor-recharts-DCxaNd0O.js → vendor-recharts-DAGVAt0P.js} +1 -1
- package/assets/assets/{vendor-tanstack-C613NhXZ.js → vendor-tanstack-ZnWhYpCU.js} +1 -1
- package/assets/index.html +18 -18
- package/dist/activity-NEHRLN66.js +13 -0
- package/dist/{ads-RVWK3WOT.js → ads-OXZFLKFO.js} +4 -4
- package/dist/{agent-OSSTIYD5.js → agent-VMLMGUVU.js} +8 -8
- package/dist/{agent-ask-2SPA6RIE.js → agent-ask-IGL7KSBW.js} +4 -4
- package/dist/{agent-conversations-36UMFQY6.js → agent-conversations-ZQQJTVLM.js} +4 -4
- package/dist/{agent-journeys-TW2CF6JI.js → agent-journeys-Z3ZILTRB.js} +4 -4
- package/dist/{agent-memory-GD2X65LE.js → agent-memory-MEFTNQWG.js} +4 -4
- package/dist/{agent-providers-A4E2TUJ7.js → agent-providers-ZZ6RN4TB.js} +4 -4
- package/dist/{agent-transcript-JLHXL72N.js → agent-transcript-QK3OTZ7B.js} +4 -4
- package/dist/{analytics-BZ7FJTK4.js → analytics-VAJT24GQ.js} +4 -4
- package/dist/{apply-BJDXDQXK.js → apply-IWCME5ZF.js} +4 -4
- package/dist/{backfill-F2OC7F22.js → backfill-5E2D3HFJ.js} +11 -11
- package/dist/{backlinks-IGSJG4TC.js → backlinks-QVFDZZCI.js} +4 -4
- package/dist/{bing-HHWCD5QU.js → bing-JUCW5FTY.js} +4 -4
- package/dist/{bootstrap-5LOT7HNU.js → bootstrap-R2O2TPAR.js} +11 -11
- package/dist/{cdp-5XNSVSBE.js → cdp-VTQYZVW5.js} +8 -8
- package/dist/chunk-2DT55UKG.js +34 -0
- package/dist/{chunk-HGXAKSRX.js → chunk-2J6LXZPK.js} +1 -1
- package/dist/{chunk-3LJH6WL6.js → chunk-2RG6CSZB.js} +1 -1
- package/dist/{chunk-WKYQ7255.js → chunk-6URM26ZP.js} +2 -2
- package/dist/{chunk-UYRC244Y.js → chunk-73AQQAPC.js} +403 -294
- package/dist/{chunk-NGTWSJSP.js → chunk-7D735WS6.js} +1 -1
- package/dist/{chunk-6TKNNXDP.js → chunk-7E2TDSUH.js} +382 -370
- package/dist/{chunk-QE3PIF67.js → chunk-7G4YTMZE.js} +8 -8
- package/dist/{chunk-E6WE5AZN.js → chunk-AMVQA6NC.js} +28 -28
- package/dist/{chunk-SPNDMTXM.js → chunk-AUMR4UXI.js} +18 -5
- package/dist/{chunk-3CT756HO.js → chunk-BNL3BKXK.js} +1 -1
- package/dist/{chunk-F5UUN6UB.js → chunk-BSUAO3RJ.js} +1 -1
- package/dist/{chunk-RVRQJ2SA.js → chunk-BVJUYSOB.js} +2 -2
- package/dist/{chunk-X2WJ563G.js → chunk-CCBFBQFR.js} +3 -3
- package/dist/{chunk-ZA44DK2O.js → chunk-DMFFERXC.js} +1 -1
- package/dist/{chunk-GDAL3L25.js → chunk-DPUAVYEG.js} +4 -4
- package/dist/{chunk-XDCXC6DL.js → chunk-F3PBATIZ.js} +1 -1
- package/dist/{chunk-EGH7MBFI.js → chunk-F3UXTYXA.js} +4 -4
- package/dist/{chunk-VXBYTMSM.js → chunk-FLUYAMPP.js} +113 -37
- package/dist/{chunk-S6GBOBNO.js → chunk-HSYZCNXY.js} +2 -2
- package/dist/{chunk-NJTIZSBH.js → chunk-ITX7ELLK.js} +5 -5
- package/dist/{chunk-TH6JFDUI.js → chunk-LGD3K4G5.js} +4 -4
- package/dist/{chunk-LNBJ3ZEK.js → chunk-LQGTGSA5.js} +16 -3
- package/dist/{chunk-BB2KXNOG.js → chunk-LWGO6ETW.js} +2 -2
- package/dist/{chunk-LJ3MSVVW.js → chunk-NZOLX55S.js} +1 -1
- package/dist/{chunk-LZSY5GNZ.js → chunk-OCL6NZGL.js} +2 -2
- package/dist/{chunk-QFPQIPX3.js → chunk-QXUNANMR.js} +2 -2
- package/dist/{chunk-REDBG2JO.js → chunk-R2P6XGND.js} +5 -5
- package/dist/{chunk-D4G3FP7N.js → chunk-RBUT6DJG.js} +5 -5
- package/dist/{chunk-NZQWQK4N.js → chunk-RHH2K4BZ.js} +8 -4
- package/dist/{chunk-YETOLZWJ.js → chunk-SLHX5HBD.js} +4 -4
- package/dist/{chunk-G56TRFKC.js → chunk-TCHIEN67.js} +6 -6
- package/dist/{chunk-M2OSHVTB.js → chunk-TTK6ZZHK.js} +2 -2
- package/dist/{chunk-E6WLCHXT.js → chunk-XXSDKDKU.js} +4 -4
- package/dist/{chunk-CCFEMZI5.js → chunk-YWLJQ2FY.js} +1 -1
- package/dist/{chunk-IQGRGJFP.js → chunk-YXM6FPGD.js} +1 -1
- package/dist/{chunk-RHWKLRLF.js → chunk-Z6ZH7N6U.js} +3 -3
- package/dist/{chunk-TAFIB6LC.js → chunk-ZP6PZZAW.js} +3 -2
- package/dist/{citations-BJKMX32Y.js → citations-HQQQM73E.js} +5 -5
- package/dist/{cli-catalog-VK4DK55E.js → cli-catalog-STHVOXXT.js} +4 -4
- package/dist/cli-commands-AHQK2WVB.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-ONXSUUEJ.js → competitor-VP52MSQM.js} +4 -4
- package/dist/{content-U276NS4F.js → content-IHFS2BRF.js} +4 -4
- package/dist/{dashboard-SVYP4JIF.js → dashboard-S4KT2J34.js} +7 -7
- package/dist/{demo-CJEZXMD7.js → demo-E4Q6WQ5R.js} +3 -3
- package/dist/{demo-server-ASS76Y3T.js → demo-server-GYJZICT7.js} +15 -13
- package/dist/{discover-O6MXXTQP.js → discover-X2RATQCF.js} +5 -5
- package/dist/{discover-eval-RWCDKTW2.js → discover-eval-FEQ3HAM2.js} +4 -4
- package/dist/{doctor-LDHRSYBN.js → doctor-2CM5FVMJ.js} +4 -4
- package/dist/{evidence-HCQ3XGR3.js → evidence-5IAVY6JN.js} +4 -4
- package/dist/{export-cmd-FCD27XDA.js → export-cmd-LGXY4GIT.js} +4 -4
- package/dist/{ga-DNE32K5T.js → ga-KVFZSSFH.js} +4 -4
- package/dist/{gbp-BD6N5ZNR.js → gbp-PLSX7QBV.js} +4 -4
- package/dist/{google-JGLRBRDJ.js → google-R7HNCZNY.js} +5 -5
- package/dist/{google-marketing-VGDUCHDK.js → google-marketing-ZEU6ZNTS.js} +2 -2
- package/dist/{health-cmd-SSUFVJXH.js → health-cmd-UNYQIHHZ.js} +5 -5
- package/dist/{history-FPNPI3FR.js → history-IR234HUF.js} +4 -4
- package/dist/index.d.ts +33 -29
- package/dist/index.js +26 -26
- package/dist/{init-VSXHQ7IH.js → init-ZRVCNBSL.js} +13 -13
- package/dist/{insights-JXWPCIKX.js → insights-OQ4TYD7O.js} +4 -4
- package/dist/intelligence-service-G3EHHS35.js +15 -0
- package/dist/{journeys-ULUM5VHN.js → journeys-G72GTTDS.js} +4 -4
- package/dist/{keys-K7LFSZEV.js → keys-A2NSFAJR.js} +4 -4
- package/dist/{keyword-FEVMF4GU.js → keyword-4ECZAEFL.js} +4 -4
- package/dist/{logs-IFSEC6EG.js → logs-OMBVVMGA.js} +4 -4
- package/dist/{mcp-GEHAKVJQ.js → mcp-OALO7GAG.js} +5 -5
- package/dist/mcp.js +10 -10
- package/dist/{measurement-plan-P3VN75M2.js → measurement-plan-3KJSVBMM.js} +6 -6
- package/dist/{notify-J4FVK5NC.js → notify-AYBCSPXF.js} +4 -4
- package/dist/{organic-evidence-X53DBTMQ.js → organic-evidence-XMS6WPCR.js} +4 -4
- package/dist/{overview-F3LYI5W4.js → overview-K4RBEW7T.js} +52 -29
- package/dist/{project-RXT5IJKZ.js → project-KGIYKLEE.js} +4 -4
- package/dist/{project-setup-ATO24GGB.js → project-setup-OBS4PSB4.js} +4 -4
- package/dist/{query-LGPJDI56.js → query-TJAMHSAJ.js} +4 -4
- package/dist/{research-BHOCLEHN.js → research-REDM6KKM.js} +4 -4
- package/dist/{results-export-PFKBOBPA.js → results-export-E7P2G3FV.js} +4 -4
- package/dist/{run-ASLSXRUQ.js → run-43C6BWTO.js} +6 -6
- package/dist/{schedule-SQOLIVNL.js → schedule-B4TSMTC4.js} +4 -4
- package/dist/{search-3ZHHJHIN.js → search-VE7DGSD7.js} +4 -4
- package/dist/{serve-63VQPOQF.js → serve-LWXCQAA2.js} +27 -27
- package/dist/{session-KZJB4SN3.js → session-4FP4QJTN.js} +14 -14
- package/dist/{settings-JOPGFAZS.js → settings-W3SCNC25.js} +4 -4
- package/dist/{sitemaps-AAEYPCF3.js → sitemaps-YPD7U2ZP.js} +4 -4
- package/dist/{skills-IWK7KYBF.js → skills-K6BM2BQV.js} +3 -3
- package/dist/{snapshot-N45FCZO3.js → snapshot-GK6G72YF.js} +4 -4
- package/dist/{src-D5YFNRUG.js → src-RUWMU4ZS.js} +2 -2
- package/dist/{status-O4GQAJV5.js → status-I23DTMWM.js} +6 -6
- package/dist/{support-RNNKG6QY.js → support-PEI7R4MY.js} +2 -2
- package/dist/{technical-aeo-IMGI4ST7.js → technical-aeo-W5ZF2TPH.js} +4 -4
- package/dist/{telemetry-ELCKZQGI.js → telemetry-YV6IHYS7.js} +5 -5
- package/dist/{tools-7NYNPJTI.js → tools-46YC2R4V.js} +12 -12
- package/dist/{traffic-NJ476WXB.js → traffic-SQ4O6QW6.js} +6 -6
- package/dist/{trends-ULBZCMKS.js → trends-MCDIYFQB.js} +4 -4
- package/dist/{users-TFQRXDHF.js → users-R66ASOSH.js} +4 -4
- package/dist/{visibility-stats-Q3F5ORLR.js → visibility-stats-7XTGKFPE.js} +5 -5
- package/dist/{wordpress-JPDUJ7ZW.js → wordpress-ZMNF2C2H.js} +4 -4
- package/package.json +1 -1
- package/assets/assets/MeasurementPropertyPage-BQorimIL.js +0 -4
- package/assets/assets/ProjectPage-5TzCjfke.js +0 -15
- package/assets/assets/ServerTrafficSection-Dbg74DP1.js +0 -41
- package/assets/assets/SettingsPage-BlCcsRj8.js +0 -1
- package/assets/assets/TrafficSourceDetailPage-Bs-C93Kj.js +0 -1
- package/assets/assets/index-C9Op8ix9.css +0 -1
- package/assets/assets/index-KAuh2d07.js +0 -43
- package/assets/assets/preload-helper-BzmljT8n.js +0 -1
- package/assets/assets/react-query-DOCVYs22.js +0 -1
- package/assets/assets/service-BNdGdFA8.js +0 -1
- package/assets/assets/vendor-lucide-7AWeFVeL.js +0 -1
- package/dist/cli-commands-RQU2FMPV.js +0 -18
- package/dist/intelligence-service-XCADQRDI.js +0 -15
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
normalizeTrafficPathPattern,
|
|
20
20
|
sessionizeJourneyRequests,
|
|
21
21
|
verifyRequestSignature
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2J6LXZPK.js";
|
|
23
23
|
import {
|
|
24
24
|
currentOutcomeAttribution,
|
|
25
25
|
getRequestContext,
|
|
26
26
|
registerRequestContext,
|
|
27
27
|
requestAuditIdentity,
|
|
28
28
|
sanitizeRequestContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YWLJQ2FY.js";
|
|
30
30
|
import {
|
|
31
31
|
RawEventSampleEventTypes,
|
|
32
32
|
SentimentIdempotencyConflict,
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
userSessions,
|
|
191
191
|
users,
|
|
192
192
|
writeNegativeReviewMaxStars
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-NZOLX55S.js";
|
|
194
194
|
import {
|
|
195
195
|
ADS_ACTIVATE_SCOPE,
|
|
196
196
|
ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
|
|
@@ -377,6 +377,8 @@ import {
|
|
|
377
377
|
OPERATIONAL_LOG_OPT_IN_CONTEXT_FIELDS,
|
|
378
378
|
OPERATION_ACCESS_HEADER,
|
|
379
379
|
OUTSTANDING_PROVIDER_BATCH_STATUSES,
|
|
380
|
+
OVERVIEW_ACTIVITY_DEFAULT_DAYS,
|
|
381
|
+
OVERVIEW_ACTIVITY_EXCLUDED_KINDS,
|
|
380
382
|
OVERVIEW_WHAT_CHANGED_QUERY_LIMIT,
|
|
381
383
|
OperationAccesses,
|
|
382
384
|
OutcomeOperationKinds,
|
|
@@ -1073,6 +1075,7 @@ import {
|
|
|
1073
1075
|
orderLocationsDefaultFirst,
|
|
1074
1076
|
organicEvidenceDtoSchema,
|
|
1075
1077
|
outcomeSurfaceSchema,
|
|
1078
|
+
overviewActivityRuns,
|
|
1076
1079
|
parseBoundedRate,
|
|
1077
1080
|
parseCitationUrlCategories,
|
|
1078
1081
|
parseEmbedQueryLimit,
|
|
@@ -1196,6 +1199,7 @@ import {
|
|
|
1196
1199
|
runStatusSchema,
|
|
1197
1200
|
runTriggerRequestSchema,
|
|
1198
1201
|
runTriggerSchema,
|
|
1202
|
+
runsAttentionDtoSchema,
|
|
1199
1203
|
runtimeStateMissing,
|
|
1200
1204
|
schedulableRunKindSchema,
|
|
1201
1205
|
scheduleDtoSchema,
|
|
@@ -1391,7 +1395,7 @@ import {
|
|
|
1391
1395
|
wordpressSchemaDeployResultDtoSchema,
|
|
1392
1396
|
wordpressSchemaStatusResultDtoSchema,
|
|
1393
1397
|
wordpressStatusDtoSchema
|
|
1394
|
-
} from "./chunk-
|
|
1398
|
+
} from "./chunk-73AQQAPC.js";
|
|
1395
1399
|
|
|
1396
1400
|
// ../api-routes/src/user-session.ts
|
|
1397
1401
|
import crypto2 from "crypto";
|
|
@@ -18967,6 +18971,42 @@ async function runRoutes(app, opts) {
|
|
|
18967
18971
|
const rows = app.db.select().from(runs).where(and36(...filters)).orderBy(desc14(runs.createdAt), desc14(runs.id)).limit(limit).all();
|
|
18968
18972
|
return reply.send(rows.map(formatRun));
|
|
18969
18973
|
});
|
|
18974
|
+
app.get("/runs/attention", async (request, reply) => {
|
|
18975
|
+
const since = parseListSince(request.query.since, new Date(Date.now() - OVERVIEW_ACTIVITY_DEFAULT_DAYS * 24 * 60 * 60 * 1e3).toISOString());
|
|
18976
|
+
const filters = [gte9(runs.createdAt, since), notProbeRun(), notInArray(runs.kind, [...OVERVIEW_ACTIVITY_EXCLUDED_KINDS])];
|
|
18977
|
+
const scopedProjectId = request.apiKey?.projectId;
|
|
18978
|
+
if (scopedProjectId) filters.push(eq45(runs.projectId, scopedProjectId));
|
|
18979
|
+
const candidates = app.db.select({
|
|
18980
|
+
id: runs.id,
|
|
18981
|
+
projectId: runs.projectId,
|
|
18982
|
+
kind: runs.kind,
|
|
18983
|
+
status: runs.status,
|
|
18984
|
+
trigger: runs.trigger,
|
|
18985
|
+
createdAt: runs.createdAt,
|
|
18986
|
+
location: runs.location,
|
|
18987
|
+
sourceId: runs.sourceId,
|
|
18988
|
+
queries: runs.queries,
|
|
18989
|
+
measurementScope: runs.measurementScope
|
|
18990
|
+
}).from(runs).where(and36(...filters)).all();
|
|
18991
|
+
const picked = overviewActivityRuns(candidates.map((row) => ({
|
|
18992
|
+
...row,
|
|
18993
|
+
kind: row.kind,
|
|
18994
|
+
status: row.status,
|
|
18995
|
+
trigger: row.trigger
|
|
18996
|
+
})));
|
|
18997
|
+
const ids = picked.map((run) => run.id);
|
|
18998
|
+
const rowsById = new Map(ids.length === 0 ? [] : app.db.select().from(runs).where(inArray24(runs.id, ids)).all().map((row) => [row.id, row]));
|
|
18999
|
+
const projectIds = [...new Set(picked.map((run) => run.projectId))];
|
|
19000
|
+
const projectsById = new Map(projectIds.length === 0 ? [] : app.db.select({ id: projects.id, name: projects.name, displayName: projects.displayName }).from(projects).where(inArray24(projects.id, projectIds)).all().map((project) => [project.id, project]));
|
|
19001
|
+
const items = picked.flatMap((run) => {
|
|
19002
|
+
const row = rowsById.get(run.id);
|
|
19003
|
+
const project = projectsById.get(run.projectId);
|
|
19004
|
+
if (!row || !project) return [];
|
|
19005
|
+
const { measurementManifest: _manifest, ...formatted } = formatRun(row);
|
|
19006
|
+
return [{ project, run: formatted }];
|
|
19007
|
+
});
|
|
19008
|
+
return reply.send({ since, items });
|
|
19009
|
+
});
|
|
18970
19010
|
app.post("/runs", async (request, reply) => {
|
|
18971
19011
|
const scopedProjectId = request.apiKey?.projectId;
|
|
18972
19012
|
const allProjects = (scopedProjectId ? app.db.select().from(projects).where(eq45(projects.id, scopedProjectId)) : app.db.select().from(projects)).all();
|
|
@@ -38718,26 +38758,32 @@ function readAdvancedSignalTransitions(db, projectId, runId) {
|
|
|
38718
38758
|
var PREVIOUS_CHECK_MAX_RUNS = 100;
|
|
38719
38759
|
var SNAPSHOT_ID_CHUNK = 500;
|
|
38720
38760
|
function buildOverviewWhatChanged(db, input) {
|
|
38721
|
-
const
|
|
38761
|
+
const changes = input.advanced === null ? simpleSignalChanges(db, input.project, input.latestSweep, input.runs) : advancedSignalChanges(input.advanced, input.latestSweep, input.location, input.since);
|
|
38722
38762
|
const activeRuns = input.runs.filter(isWhatChangedActiveRun);
|
|
38723
|
-
const lostMentions = signalDto(
|
|
38724
|
-
const lostCitations = signalDto(
|
|
38763
|
+
const lostMentions = signalDto(changes.lostMentions);
|
|
38764
|
+
const lostCitations = signalDto(changes.lostCitations);
|
|
38765
|
+
const gainedMentions = signalDto(changes.gainedMentions);
|
|
38766
|
+
const gainedCitations = signalDto(changes.gainedCitations);
|
|
38725
38767
|
return {
|
|
38726
38768
|
mode: input.advanced === null ? "simple" : "advanced",
|
|
38727
|
-
latestCheck:
|
|
38728
|
-
comparison:
|
|
38769
|
+
latestCheck: changes.latestCheck,
|
|
38770
|
+
comparison: changes.comparison,
|
|
38729
38771
|
lostMentions,
|
|
38730
38772
|
lostCitations,
|
|
38773
|
+
gainedMentions,
|
|
38774
|
+
gainedCitations,
|
|
38731
38775
|
activeRuns: { count: activeRuns.length, runIds: activeRuns.map((run) => run.id) },
|
|
38732
38776
|
items: whatChangedProjectItems(input.project, {
|
|
38733
38777
|
lostMentionQueries: lostMentions.queryCount,
|
|
38778
|
+
gainedMentionQueries: gainedMentions.queryCount,
|
|
38734
38779
|
lostCitationQueries: lostCitations.queryCount,
|
|
38780
|
+
gainedCitationQueries: gainedCitations.queryCount,
|
|
38735
38781
|
activeRuns: activeRuns.length
|
|
38736
38782
|
})
|
|
38737
38783
|
};
|
|
38738
38784
|
}
|
|
38739
|
-
function record2(
|
|
38740
|
-
let entry =
|
|
38785
|
+
function record2(changed, answer) {
|
|
38786
|
+
let entry = changed.get(answer.queryKey);
|
|
38741
38787
|
if (!entry) {
|
|
38742
38788
|
entry = {
|
|
38743
38789
|
queryId: answer.queryId,
|
|
@@ -38748,7 +38794,7 @@ function record2(lost, answer) {
|
|
|
38748
38794
|
properties: /* @__PURE__ */ new Map(),
|
|
38749
38795
|
markets: /* @__PURE__ */ new Map()
|
|
38750
38796
|
};
|
|
38751
|
-
|
|
38797
|
+
changed.set(answer.queryKey, entry);
|
|
38752
38798
|
}
|
|
38753
38799
|
entry.classes.add(answer.queryClass);
|
|
38754
38800
|
entry.providers.add(answer.provider);
|
|
@@ -38759,8 +38805,8 @@ function record2(lost, answer) {
|
|
|
38759
38805
|
function unavailable5(reason) {
|
|
38760
38806
|
return { state: "unavailable", reason };
|
|
38761
38807
|
}
|
|
38762
|
-
function
|
|
38763
|
-
return { latestCheck, comparison,
|
|
38808
|
+
function nothingChanged(latestCheck, comparison) {
|
|
38809
|
+
return { latestCheck, comparison, lostMentions: /* @__PURE__ */ new Map(), lostCitations: /* @__PURE__ */ new Map(), gainedMentions: /* @__PURE__ */ new Map(), gainedCitations: /* @__PURE__ */ new Map() };
|
|
38764
38810
|
}
|
|
38765
38811
|
function sweepCheck(sweep) {
|
|
38766
38812
|
const first = sweep.at(0);
|
|
@@ -38774,6 +38820,7 @@ var SNAPSHOT_SIGNAL_COLUMNS = {
|
|
|
38774
38820
|
provider: querySnapshots.provider,
|
|
38775
38821
|
location: querySnapshots.location,
|
|
38776
38822
|
citationState: querySnapshots.citationState,
|
|
38823
|
+
retrievalStatus: querySnapshots.retrievalStatus,
|
|
38777
38824
|
answerMentioned: querySnapshots.answerMentioned,
|
|
38778
38825
|
answerText: querySnapshots.answerText,
|
|
38779
38826
|
mentionIdentity: querySnapshots.mentionIdentity
|
|
@@ -38804,9 +38851,9 @@ function newestEarlierAnswers(db, runIds) {
|
|
|
38804
38851
|
function compareRecency(left, right, runOrder) {
|
|
38805
38852
|
return (runOrder.get(left.runId) ?? 0) - (runOrder.get(right.runId) ?? 0) || compareText(right.createdAt, left.createdAt) || compareText(left.id, right.id);
|
|
38806
38853
|
}
|
|
38807
|
-
function
|
|
38854
|
+
function simpleSignalChanges(db, project, latestSweep, overviewRuns) {
|
|
38808
38855
|
const latestCheck = sweepCheck(latestSweep);
|
|
38809
|
-
if (latestCheck === null) return
|
|
38856
|
+
if (latestCheck === null) return nothingChanged(null, unavailable5("not-measured"));
|
|
38810
38857
|
const tracked = db.select({ id: queries.id, query: queries.query }).from(queries).where(eq76(queries.projectId, project.id)).all();
|
|
38811
38858
|
const trackedById = new Map(tracked.map((query2) => [query2.id, query2]));
|
|
38812
38859
|
const trackedByText = new Map(tracked.map((query2) => [normalizeQueryText(query2.query), query2]));
|
|
@@ -38840,9 +38887,11 @@ function simpleLostSignals(db, project, latestSweep, overviewRuns) {
|
|
|
38840
38887
|
}
|
|
38841
38888
|
}
|
|
38842
38889
|
const classes = readQueryClasses(db, project, tracked);
|
|
38843
|
-
const mentioned = (
|
|
38844
|
-
const
|
|
38845
|
-
const
|
|
38890
|
+
const mentioned = snapshotMentionObserver(project);
|
|
38891
|
+
const lostMentions = /* @__PURE__ */ new Map();
|
|
38892
|
+
const lostCitations = /* @__PURE__ */ new Map();
|
|
38893
|
+
const gainedMentions = /* @__PURE__ */ new Map();
|
|
38894
|
+
const gainedCitations = /* @__PURE__ */ new Map();
|
|
38846
38895
|
for (const [key, { query: query2, snapshot }] of current) {
|
|
38847
38896
|
const chosen = previousIdBySlot.get(key);
|
|
38848
38897
|
const previous = chosen === void 0 ? void 0 : previousById.get(chosen.id);
|
|
@@ -38855,28 +38904,32 @@ function simpleLostSignals(db, project, latestSweep, overviewRuns) {
|
|
|
38855
38904
|
provider: snapshot.provider,
|
|
38856
38905
|
location: snapshot.location
|
|
38857
38906
|
};
|
|
38858
|
-
|
|
38859
|
-
if (
|
|
38907
|
+
const [wasMentioned, isMentioned] = [mentioned(previous), mentioned(snapshot)];
|
|
38908
|
+
if (wasMentioned === true && isMentioned === false) record2(lostMentions, answer);
|
|
38909
|
+
if (wasMentioned === false && isMentioned === true) record2(gainedMentions, answer);
|
|
38910
|
+
const [wasCited, isCited] = [readCitationState(previous), readCitationState(snapshot)];
|
|
38911
|
+
if (wasCited === CitationStates.cited && isCited === CitationStates["not-cited"]) record2(lostCitations, answer);
|
|
38912
|
+
if (wasCited === CitationStates["not-cited"] && isCited === CitationStates.cited) record2(gainedCitations, answer);
|
|
38860
38913
|
}
|
|
38861
38914
|
const previousRunIds = [...new Set([...previousIdBySlot.values()].map((previous) => previous.runId))].sort((left, right) => (runOrder.get(left) ?? 0) - (runOrder.get(right) ?? 0));
|
|
38862
38915
|
const comparison = previousRunIds.length === 0 ? unavailable5("no-previous-check") : { state: "available", previousRunIds };
|
|
38863
|
-
return { latestCheck, comparison,
|
|
38916
|
+
return { latestCheck, comparison, lostMentions, lostCitations, gainedMentions, gainedCitations };
|
|
38864
38917
|
}
|
|
38865
|
-
function
|
|
38918
|
+
function advancedSignalChanges(advanced, latestSweep, location, since) {
|
|
38866
38919
|
if (advanced.plan === "legacy") {
|
|
38867
38920
|
const latestCheck2 = sweepCheck(latestSweep);
|
|
38868
|
-
return
|
|
38921
|
+
return nothingChanged(latestCheck2, unavailable5(latestCheck2 === null ? "not-measured" : "legacy-plan"));
|
|
38869
38922
|
}
|
|
38870
38923
|
const { current } = advanced;
|
|
38871
|
-
if (current === null) return
|
|
38924
|
+
if (current === null) return nothingChanged(null, unavailable5("not-measured"));
|
|
38872
38925
|
const latestCheck = { runIds: [current.id], createdAt: current.createdAt };
|
|
38873
38926
|
const changes = advancedSignalTransitions(advanced, since);
|
|
38874
|
-
if (changes.state === "unavailable") return
|
|
38875
|
-
const
|
|
38876
|
-
const
|
|
38927
|
+
if (changes.state === "unavailable") return nothingChanged(latestCheck, unavailable5(changes.reason));
|
|
38928
|
+
const moved = (transitions, toState) => {
|
|
38929
|
+
const changed = /* @__PURE__ */ new Map();
|
|
38877
38930
|
for (const transition of transitions) {
|
|
38878
|
-
if (transition.to !==
|
|
38879
|
-
record2(
|
|
38931
|
+
if (transition.to !== toState || !locationMatches(transition.location, location)) continue;
|
|
38932
|
+
record2(changed, {
|
|
38880
38933
|
queryKey: transition.queryId ?? `text:${transition.query}`,
|
|
38881
38934
|
queryId: transition.queryId,
|
|
38882
38935
|
query: transition.query,
|
|
@@ -38887,11 +38940,16 @@ function advancedLostSignals(advanced, latestSweep, location, since) {
|
|
|
38887
38940
|
markets: transition.markets
|
|
38888
38941
|
});
|
|
38889
38942
|
}
|
|
38890
|
-
return
|
|
38943
|
+
return changed;
|
|
38944
|
+
};
|
|
38945
|
+
return {
|
|
38946
|
+
latestCheck,
|
|
38947
|
+
comparison: { state: "available", previousRunIds: [changes.previousRunId] },
|
|
38948
|
+
lostMentions: moved(changes.mention, MentionStates["not-mentioned"]),
|
|
38949
|
+
lostCitations: moved(changes.citation, CitationStates["not-cited"]),
|
|
38950
|
+
gainedMentions: moved(changes.mention, MentionStates.mentioned),
|
|
38951
|
+
gainedCitations: moved(changes.citation, CitationStates.cited)
|
|
38891
38952
|
};
|
|
38892
|
-
const mentions = losses(changes.mention, MentionStates["not-mentioned"]);
|
|
38893
|
-
const citations = losses(changes.citation, CitationStates["not-cited"]);
|
|
38894
|
-
return { latestCheck, comparison: { state: "available", previousRunIds: [changes.previousRunId] }, mentions, citations };
|
|
38895
38953
|
}
|
|
38896
38954
|
function compareNullableText(left, right) {
|
|
38897
38955
|
if (left === right) return 0;
|
|
@@ -38902,8 +38960,8 @@ function compareNullableText(left, right) {
|
|
|
38902
38960
|
function keyedLabels(values) {
|
|
38903
38961
|
return [...values].map(([key, label]) => ({ key, label })).sort((left, right) => compareText(left.label, right.label) || compareText(left.key, right.key));
|
|
38904
38962
|
}
|
|
38905
|
-
function signalDto(
|
|
38906
|
-
const rows = [...
|
|
38963
|
+
function signalDto(changed) {
|
|
38964
|
+
const rows = [...changed.values()].sort((left, right) => compareText(left.query, right.query) || compareNullableText(left.queryId, right.queryId));
|
|
38907
38965
|
return {
|
|
38908
38966
|
queryCount: rows.length,
|
|
38909
38967
|
queries: rows.slice(0, OVERVIEW_WHAT_CHANGED_QUERY_LIMIT).map((row) => ({
|
|
@@ -40820,6 +40878,7 @@ var SCHEMA_TABLE = {
|
|
|
40820
40878
|
RunDetailDto: runDetailDtoSchema,
|
|
40821
40879
|
RunFillResponseDto: runFillResponseDtoSchema,
|
|
40822
40880
|
RunDto: runDtoSchema,
|
|
40881
|
+
RunsAttentionDto: runsAttentionDtoSchema,
|
|
40823
40882
|
SchedulableRunKind: schedulableRunKindSchema,
|
|
40824
40883
|
CalendarRecurrence: calendarRecurrenceSchema,
|
|
40825
40884
|
ScheduleDto: scheduleDtoSchema,
|
|
@@ -43814,6 +43873,23 @@ var routeCatalog = [
|
|
|
43814
43873
|
200: jsonArrayResponse("Runs returned.", "RunDto")
|
|
43815
43874
|
}
|
|
43816
43875
|
},
|
|
43876
|
+
{
|
|
43877
|
+
method: "get",
|
|
43878
|
+
path: "/api/v1/runs/attention",
|
|
43879
|
+
summary: "List the jobs that need attention",
|
|
43880
|
+
description: "Overview's Activity across the projects the key can see: each job's latest run, kept when it failed, finished partly, was cancelled, or is still queued or running, newest first, with its project. A job is one project, run kind, location and source, with spot checks apart from full sweeps, so a run elsewhere never hides a failure. Probes and per-URL inspections are left out. `since` bounds the runs read (default 30 days ago); a job with no run since then is not listed. Runs come without their measurement manifests. Stored read: no provider calls.",
|
|
43881
|
+
tags: ["runs"],
|
|
43882
|
+
parameters: [{
|
|
43883
|
+
name: "since",
|
|
43884
|
+
in: "query",
|
|
43885
|
+
description: "Read runs created at or after this ISO 8601 timestamp. Defaults to 30 days ago.",
|
|
43886
|
+
schema: stringSchema
|
|
43887
|
+
}],
|
|
43888
|
+
responses: {
|
|
43889
|
+
200: jsonResponse("Jobs that need attention returned.", "RunsAttentionDto"),
|
|
43890
|
+
400: errorResponse("`since` is not a valid timestamp.")
|
|
43891
|
+
}
|
|
43892
|
+
},
|
|
43817
43893
|
{
|
|
43818
43894
|
method: "post",
|
|
43819
43895
|
path: "/api/v1/runs",
|
|
@@ -48368,7 +48444,7 @@ var routeCatalog = [
|
|
|
48368
48444
|
method: "get",
|
|
48369
48445
|
path: "/api/v1/projects/{name}/overview",
|
|
48370
48446
|
summary: "Get a composite overview of project health",
|
|
48371
|
-
description: 'Bundles project info, latest run, top undismissed insights, health, independent mention and citation coverage, query-basket comparability, and separate mention/citation movement over the shared query cohort. queryClassScope labels queryCounts, scores (except mentionShare), transitions and the movement fields as pooling branded and non-brand. Answers from an engine that returns no sources (a local model) are not measured for citation: every cited figure leaves them out of numerator and denominator and reports them in `citationNotMeasured` / `citationNotMeasuredQueries`, and a cited rate with nothing measured is null. whatChanged is the dashboard\'s "What changed": the queries that lost a mention and those that lost a citation in the latest check (each query once, the two signals counted apart), the AI Visibility runs in progress (probes excluded), and the rows the dashboard lists. Simple projects compare each engine\'s answer with its previous check of the same query and location; Advanced projects compare each Property\'s answer with the comparable previous sweep. Designed for the "how is project X doing?" question so agents can answer in one call.',
|
|
48447
|
+
description: 'Bundles project info, latest run, top undismissed insights, health, independent mention and citation coverage, query-basket comparability, and separate mention/citation movement over the shared query cohort. queryClassScope labels queryCounts, scores (except mentionShare), transitions and the movement fields as pooling branded and non-brand. Answers from an engine that returns no sources (a local model) are not measured for citation: every cited figure leaves them out of numerator and denominator and reports them in `citationNotMeasured` / `citationNotMeasuredQueries`, and a cited rate with nothing measured is null. whatChanged is the dashboard\'s "What changed": the queries that lost or gained a mention and those that lost or gained a citation in the latest check (each query once per direction, the two signals counted apart; a query can lose on one engine and gain on another), the AI Visibility runs in progress (probes excluded), and the rows the dashboard lists. Simple projects compare each engine\'s answer with its previous check of the same query and location; Advanced projects compare each Property\'s answer with the comparable previous sweep. Designed for the "how is project X doing?" question so agents can answer in one call.',
|
|
48372
48448
|
tags: ["intelligence"],
|
|
48373
48449
|
parameters: [nameParameter],
|
|
48374
48450
|
responses: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackIntegrationConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XXSDKDKU.js";
|
|
4
4
|
import {
|
|
5
5
|
cliRuntimeContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OCL6NZGL.js";
|
|
7
7
|
|
|
8
8
|
// src/cli-connection-telemetry.ts
|
|
9
9
|
function trackCliConnection(properties) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LQGTGSA5.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
DEPRECATED_MCP_TOOL_ALIAS_NAMES,
|
|
7
7
|
canonryMcpTools
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AUMR4UXI.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DMFFERXC.js";
|
|
12
12
|
import {
|
|
13
13
|
buildOpenApiDocument
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FLUYAMPP.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-73AQQAPC.js";
|
|
28
28
|
|
|
29
29
|
// src/agent/tools.ts
|
|
30
30
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SNAPSHOT_CELL_LEGEND,
|
|
3
3
|
citationGlyph,
|
|
4
4
|
mentionGlyph
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3PBATIZ.js";
|
|
6
6
|
import {
|
|
7
7
|
createApiClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LQGTGSA5.js";
|
|
9
9
|
import {
|
|
10
10
|
emitJsonl
|
|
11
11
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
CliError,
|
|
14
14
|
EXIT_SYSTEM_ERROR,
|
|
15
15
|
isMachineFormat
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DMFFERXC.js";
|
|
17
17
|
import {
|
|
18
18
|
MentionIdentities,
|
|
19
19
|
OUTSTANDING_PROVIDER_BATCH_STATUSES,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
formatMicros,
|
|
24
24
|
formatRunErrorOneLine,
|
|
25
25
|
resolveProviderInput
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-73AQQAPC.js";
|
|
27
27
|
|
|
28
28
|
// src/commands/run.ts
|
|
29
29
|
function getClient() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6URM26ZP.js";
|
|
4
4
|
import {
|
|
5
5
|
PACKAGE_VERSION
|
|
6
6
|
} from "./chunk-AOJU5LKX.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
CliError,
|
|
9
9
|
EXIT_SYSTEM_ERROR,
|
|
10
10
|
EXIT_USER_ERROR
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DMFFERXC.js";
|
|
12
12
|
import {
|
|
13
13
|
CANONRY_NPM_PACKAGE_URL,
|
|
14
14
|
OPERATIONAL_LOG_FIELDS_HEADER,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sentimentSettingsReadSchema,
|
|
37
37
|
sentimentSummaryReadSchema,
|
|
38
38
|
upgradeCommandFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-73AQQAPC.js";
|
|
40
40
|
|
|
41
41
|
// ../api-client-generated/src/generated/core/bodySerializer.gen.ts
|
|
42
42
|
var jsonBodySerializer = {
|
|
@@ -1772,6 +1772,11 @@ var getApiV1ProjectsByNameSetup = (options) => (options.client ?? client).get({
|
|
|
1772
1772
|
url: "/api/v1/projects/{name}/setup",
|
|
1773
1773
|
...options
|
|
1774
1774
|
});
|
|
1775
|
+
var getApiV1RunsAttention = (options) => (options?.client ?? client).get({
|
|
1776
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1777
|
+
url: "/api/v1/runs/attention",
|
|
1778
|
+
...options
|
|
1779
|
+
});
|
|
1775
1780
|
var getApiV1RunsById = (options) => (options.client ?? client).get({
|
|
1776
1781
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1777
1782
|
url: "/api/v1/runs/{id}",
|
|
@@ -4871,6 +4876,14 @@ var ApiClient = class {
|
|
|
4871
4876
|
})
|
|
4872
4877
|
);
|
|
4873
4878
|
}
|
|
4879
|
+
/**
|
|
4880
|
+
* Overview's Activity (`GET /runs/attention`): each job's latest run that
|
|
4881
|
+
* failed, finished partly, was cancelled, or is still queued or running,
|
|
4882
|
+
* across the projects the key can see. `since` defaults to 30 days ago.
|
|
4883
|
+
*/
|
|
4884
|
+
async getRunsAttention(query = {}) {
|
|
4885
|
+
return this.invoke(() => getApiV1RunsAttention({ client: this.heyClient, query: { since: query.since } }));
|
|
4886
|
+
}
|
|
4874
4887
|
async previewRun(project) {
|
|
4875
4888
|
return this.invoke(() => getApiV1ProjectsByNameRunPreview({ client: this.heyClient, path: { name: project } }));
|
|
4876
4889
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRequestContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YWLJQ2FY.js";
|
|
4
4
|
import {
|
|
5
5
|
diagnosticIdentity,
|
|
6
6
|
redactLogString,
|
|
7
7
|
redactLogValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-73AQQAPC.js";
|
|
9
9
|
|
|
10
10
|
// ../api-routes/src/runtime-logger.ts
|
|
11
11
|
import { format } from "util";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6URM26ZP.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-73AQQAPC.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliError,
|
|
3
3
|
EXIT_SYSTEM_ERROR
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DMFFERXC.js";
|
|
5
5
|
import {
|
|
6
6
|
describeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-73AQQAPC.js";
|
|
8
8
|
|
|
9
9
|
// src/gsc-sitemap-submission.ts
|
|
10
10
|
function dedupeGscSitemapUrls(urls) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pickProjectCitedDomain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2RG6CSZB.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LWGO6ETW.js";
|
|
7
7
|
import {
|
|
8
8
|
GBP_INSIGHT_PROVIDER,
|
|
9
9
|
PERSISTENT_GAP_THRESHOLD,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
notScopedRun,
|
|
19
19
|
readGscQueryDailyRows,
|
|
20
20
|
readLatestGscDataDate
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FLUYAMPP.js";
|
|
22
22
|
import {
|
|
23
23
|
competitors,
|
|
24
24
|
gbpDailyMetrics,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
queries,
|
|
37
37
|
querySnapshots,
|
|
38
38
|
runs
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NZOLX55S.js";
|
|
40
40
|
import {
|
|
41
41
|
CitationStates,
|
|
42
42
|
RunKinds,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
effectiveDomains,
|
|
46
46
|
isCitationStateMeasured,
|
|
47
47
|
readCitationState
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-73AQQAPC.js";
|
|
49
49
|
|
|
50
50
|
// src/intelligence-service.ts
|
|
51
51
|
import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LWGO6ETW.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-FLUYAMPP.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-2J6LXZPK.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-NZOLX55S.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-73AQQAPC.js";
|
|
88
88
|
|
|
89
89
|
// ../provider-openai/src/normalize.ts
|
|
90
90
|
import OpenAI from "openai";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolveCliAccess,
|
|
4
4
|
resolveCliAccessForInvocation,
|
|
5
5
|
windowOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZP6PZZAW.js";
|
|
7
7
|
import {
|
|
8
8
|
emitJsonl
|
|
9
9
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
CliError,
|
|
12
12
|
EXIT_USER_ERROR,
|
|
13
13
|
usageError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DMFFERXC.js";
|
|
15
15
|
import {
|
|
16
16
|
OperationAccesses
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-73AQQAPC.js";
|
|
18
18
|
|
|
19
19
|
// src/cli-catalog.ts
|
|
20
20
|
import { createRequire } from "module";
|
|
@@ -122,7 +122,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
|
|
|
122
122
|
const accessValue = accessFilterFromArgs(argsWithoutHelp);
|
|
123
123
|
validateAccessFilter(accessValue);
|
|
124
124
|
if (fallbackFormat !== "text") {
|
|
125
|
-
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-
|
|
125
|
+
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-STHVOXXT.js");
|
|
126
126
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
127
127
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
128
128
|
return true;
|
|
@@ -413,6 +413,10 @@ var CLI_ROOT_SUMMARIES = {
|
|
|
413
413
|
"section": "Monitoring",
|
|
414
414
|
"summary": "Show the stored project overview"
|
|
415
415
|
},
|
|
416
|
+
"activity": {
|
|
417
|
+
"section": "Monitoring",
|
|
418
|
+
"summary": "List the jobs that failed or are still running across projects"
|
|
419
|
+
},
|
|
416
420
|
"results": {
|
|
417
421
|
"section": "Monitoring",
|
|
418
422
|
"summary": "Read stored run and query results"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LQGTGSA5.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-YXM6FPGD.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DMFFERXC.js";
|
|
15
15
|
import {
|
|
16
16
|
CITATION_NOT_MEASURED_REASON,
|
|
17
17
|
MeasurementEvidenceShapes,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
unattributedAnswersLabel,
|
|
40
40
|
uncheckedSourcesLabel,
|
|
41
41
|
visibilityReportRequestSchema
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-73AQQAPC.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/measurement-plan.ts
|
|
45
45
|
import crypto from "crypto";
|