@canonry/canonry 7.120.1 → 7.121.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 +4 -0
- package/assets/assets/{AccessControls-D9u5mHZy.js → AccessControls-CP27J4pe.js} +1 -1
- package/assets/assets/{AgentSetupPage-sxobNnR4.js → AgentSetupPage-Cr4N8PtT.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-B-br1Rgm.js → AuditHistoryPanel-DLQzK10v.js} +1 -1
- package/assets/assets/{BacklinksPage-DBncT_in.js → BacklinksPage-DQL-PEeM.js} +1 -1
- package/assets/assets/{ChartPrimitives-BVl_On4G.js → ChartPrimitives-C-1eZmHk.js} +1 -1
- package/assets/assets/{HistoryPage-DLzXIHGd.js → HistoryPage-BBzUc2Ba.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-C2RXn2iP.js → MeasurementPropertyPage-BQorimIL.js} +1 -1
- package/assets/assets/{ProjectPage-CUGvozZu.js → ProjectPage-5TzCjfke.js} +3 -3
- package/assets/assets/{RunsPage-CGdstDkz.js → RunsPage-D4ul_xdH.js} +1 -1
- package/assets/assets/{ServerTrafficSection-DsmN-vR2.js → ServerTrafficSection-Dbg74DP1.js} +3 -3
- package/assets/assets/{SettingsPage-DAnYQBff.js → SettingsPage-BlCcsRj8.js} +1 -1
- package/assets/assets/ToneBadge-co0skd0y.js +60 -0
- package/assets/assets/{TrafficPage-HQMcIXhQ.js → TrafficPage-DXjB09Mc.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-BXQX0fyG.js → TrafficSourceDetailPage-Bs-C93Kj.js} +1 -1
- package/assets/assets/{account-context-BNo2KFA7.js → account-context-DtBBZ6kn.js} +1 -1
- package/assets/assets/{agent-trust-copy-B3Dw_M_3.js → agent-trust-copy-KHOU1_xL.js} +1 -1
- package/assets/assets/{card-h-mmYzMc.js → card-Cky0yiDz.js} +1 -1
- package/assets/assets/{index-DpBLjU4G.js → index-KAuh2d07.js} +3 -3
- package/assets/assets/{preload-helper-D2o-5DDv.js → preload-helper-BzmljT8n.js} +1 -1
- package/assets/assets/{query-client-gk-fhrrc.js → query-client-BGk_rgH_.js} +1 -1
- package/assets/assets/{react-query-hUdNgz2a.js → react-query-DOCVYs22.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-CbMudrIV.js → react-sigma_core.esm.min-DY78Y3sE.js} +1 -1
- package/assets/assets/{server-traffic-CL5cYldZ.js → server-traffic-CqU3z6oz.js} +1 -1
- package/assets/assets/{service-CxbxBFUX.js → service-BNdGdFA8.js} +1 -1
- package/assets/index.html +9 -9
- package/dist/{ads-PMDSTHUC.js → ads-RVWK3WOT.js} +4 -4
- package/dist/{agent-5EL5AECW.js → agent-OSSTIYD5.js} +8 -8
- package/dist/{agent-ask-VAZUSWFA.js → agent-ask-2SPA6RIE.js} +4 -4
- package/dist/{agent-conversations-KOBHBQS6.js → agent-conversations-36UMFQY6.js} +4 -4
- package/dist/{agent-journeys-Q5J6K76M.js → agent-journeys-TW2CF6JI.js} +4 -4
- package/dist/{agent-memory-UTZWNL5K.js → agent-memory-GD2X65LE.js} +4 -4
- package/dist/{agent-providers-TBMKTIJT.js → agent-providers-A4E2TUJ7.js} +4 -4
- package/dist/{agent-transcript-4MIMLCSN.js → agent-transcript-JLHXL72N.js} +4 -4
- package/dist/{analytics-VGPQ3P7U.js → analytics-BZ7FJTK4.js} +4 -4
- package/dist/{apply-AL52P3BT.js → apply-BJDXDQXK.js} +4 -4
- package/dist/{backfill-W2EGRHJD.js → backfill-F2OC7F22.js} +11 -11
- package/dist/{backlinks-T5ZWICGA.js → backlinks-IGSJG4TC.js} +4 -4
- package/dist/{bing-DFU4M6P2.js → bing-HHWCD5QU.js} +4 -4
- package/dist/{bootstrap-VBGDPCJ4.js → bootstrap-5LOT7HNU.js} +11 -11
- package/dist/{cdp-WHDGSGRE.js → cdp-5XNSVSBE.js} +8 -8
- package/dist/{chunk-OO4RE44D.js → chunk-3CT756HO.js} +1 -1
- package/dist/{chunk-AOD35IKL.js → chunk-3LJH6WL6.js} +1 -1
- package/dist/{chunk-QGQTURO7.js → chunk-6TKNNXDP.js} +423 -372
- package/dist/{chunk-AHVF5OE5.js → chunk-BB2KXNOG.js} +2 -2
- package/dist/{chunk-TTQBEFSU.js → chunk-CCFEMZI5.js} +1 -1
- package/dist/{chunk-FX4VCCSD.js → chunk-D4G3FP7N.js} +13 -6
- package/dist/{chunk-RNUY27TO.js → chunk-E6WE5AZN.js} +42 -24
- package/dist/{chunk-5KINLLTJ.js → chunk-E6WLCHXT.js} +4 -4
- package/dist/{chunk-ZCRUXUHU.js → chunk-EGH7MBFI.js} +5 -5
- package/dist/{chunk-6KH4XZLA.js → chunk-F5UUN6UB.js} +1 -1
- package/dist/{chunk-2VSOYLSX.js → chunk-G56TRFKC.js} +7 -7
- package/dist/{chunk-W54X45I7.js → chunk-GDAL3L25.js} +4 -4
- package/dist/{chunk-3Q2D53KV.js → chunk-HGXAKSRX.js} +1 -1
- package/dist/{chunk-XTR3KSV2.js → chunk-IQGRGJFP.js} +1 -1
- package/dist/{chunk-VCXKSGZF.js → chunk-LJ3MSVVW.js} +1 -1
- package/dist/{chunk-2FNWSHOE.js → chunk-LNBJ3ZEK.js} +17 -3
- package/dist/{chunk-AOYSK6D2.js → chunk-LZSY5GNZ.js} +2 -2
- package/dist/{chunk-FTPGW2WX.js → chunk-M2OSHVTB.js} +2 -2
- package/dist/{chunk-OXYZQJLV.js → chunk-NGTWSJSP.js} +1 -1
- package/dist/{chunk-TNR2O4HU.js → chunk-NJTIZSBH.js} +5 -5
- package/dist/{chunk-WVZR3J7X.js → chunk-NZQWQK4N.js} +4 -4
- package/dist/{chunk-2SF5JXCY.js → chunk-QE3PIF67.js} +8 -8
- package/dist/{chunk-NQFBIMS4.js → chunk-QFPQIPX3.js} +2 -2
- package/dist/{chunk-6DSEIN3U.js → chunk-REDBG2JO.js} +15 -8
- package/dist/{chunk-EZOBUXLP.js → chunk-RHWKLRLF.js} +3 -3
- package/dist/{chunk-TS477DBZ.js → chunk-RVRQJ2SA.js} +2 -2
- package/dist/{chunk-47Y5UAYA.js → chunk-S6GBOBNO.js} +2 -2
- package/dist/{chunk-ZDYWXTNN.js → chunk-SPNDMTXM.js} +42 -4
- package/dist/{chunk-3N2MSPPU.js → chunk-TAFIB6LC.js} +3 -2
- package/dist/{chunk-QCXKLTVC.js → chunk-TH6JFDUI.js} +4 -4
- package/dist/{chunk-VOK62VGC.js → chunk-UYRC244Y.js} +11 -0
- package/dist/{chunk-5LV4OEAO.js → chunk-VXBYTMSM.js} +118 -35
- package/dist/{chunk-GDRZPBPF.js → chunk-WKYQ7255.js} +2 -2
- package/dist/{chunk-J4FMWPEM.js → chunk-X2WJ563G.js} +3 -3
- package/dist/{chunk-HFNLWW3Z.js → chunk-XDCXC6DL.js} +1 -1
- package/dist/{chunk-QT475Y6O.js → chunk-XXKC266R.js} +2 -2
- package/dist/{chunk-RLLYGXNA.js → chunk-YETOLZWJ.js} +4 -4
- package/dist/{chunk-IWQFTZ75.js → chunk-ZA44DK2O.js} +1 -1
- package/dist/{citations-JOM2DJX3.js → citations-BJKMX32Y.js} +5 -5
- package/dist/{cli-catalog-4ZCK2TFK.js → cli-catalog-VK4DK55E.js} +4 -4
- package/dist/cli-commands-RQU2FMPV.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-FQH7LNR2.js → competitor-ONXSUUEJ.js} +4 -4
- package/dist/{content-KEZJJEV2.js → content-U276NS4F.js} +4 -4
- package/dist/{dashboard-EL7ABV7Y.js → dashboard-SVYP4JIF.js} +7 -7
- package/dist/{demo-LXQZAB7S.js → demo-CJEZXMD7.js} +3 -3
- package/dist/{demo-server-Y772E2L2.js → demo-server-ASS76Y3T.js} +13 -13
- package/dist/{discover-ZB6I2A65.js → discover-O6MXXTQP.js} +5 -5
- package/dist/{discover-eval-XXRA3XDQ.js → discover-eval-RWCDKTW2.js} +4 -4
- package/dist/{doctor-KTGY5L57.js → doctor-LDHRSYBN.js} +4 -4
- package/dist/{evidence-BEBTLKK4.js → evidence-HCQ3XGR3.js} +4 -4
- package/dist/{export-cmd-VIQGUL7N.js → export-cmd-FCD27XDA.js} +4 -4
- package/dist/{ga-YEQKHEN2.js → ga-DNE32K5T.js} +4 -4
- package/dist/{gbp-NFTRCNGZ.js → gbp-BD6N5ZNR.js} +4 -4
- package/dist/{google-MBQW2EGU.js → google-JGLRBRDJ.js} +5 -5
- package/dist/{google-marketing-KIGW7ZGN.js → google-marketing-VGDUCHDK.js} +2 -2
- package/dist/{health-cmd-6B6VSAX3.js → health-cmd-SSUFVJXH.js} +5 -5
- package/dist/{history-DX2QSPL2.js → history-FPNPI3FR.js} +4 -4
- package/dist/index.d.ts +76 -76
- package/dist/index.js +27 -27
- package/dist/{init-GE6BXE4J.js → init-VSXHQ7IH.js} +13 -13
- package/dist/{insights-ZJD3KUA7.js → insights-JXWPCIKX.js} +4 -4
- package/dist/intelligence-service-XCADQRDI.js +15 -0
- package/dist/{journeys-E4FC7PCM.js → journeys-ULUM5VHN.js} +4 -4
- package/dist/{keys-TD6NBRRY.js → keys-K7LFSZEV.js} +4 -4
- package/dist/{keyword-FEOQSKMZ.js → keyword-FEVMF4GU.js} +4 -4
- package/dist/{logs-YV5JPJH3.js → logs-IFSEC6EG.js} +4 -4
- package/dist/{mcp-S3YNKUQQ.js → mcp-GEHAKVJQ.js} +5 -5
- package/dist/mcp.js +11 -11
- package/dist/{measurement-plan-VVDLIBQO.js → measurement-plan-P3VN75M2.js} +6 -6
- package/dist/{notify-GUJ6PLRU.js → notify-J4FVK5NC.js} +21 -5
- package/dist/{organic-evidence-A66B5BWS.js → organic-evidence-X53DBTMQ.js} +4 -4
- package/dist/{overview-JKW5LARL.js → overview-F3LYI5W4.js} +6 -6
- package/dist/{project-XUYBPKWJ.js → project-RXT5IJKZ.js} +4 -4
- package/dist/{project-setup-YO6R26JG.js → project-setup-ATO24GGB.js} +4 -4
- package/dist/{query-YOTYGF4K.js → query-LGPJDI56.js} +4 -4
- package/dist/{research-QVG5XZDF.js → research-BHOCLEHN.js} +4 -4
- package/dist/{results-export-4TMA6DJT.js → results-export-PFKBOBPA.js} +4 -4
- package/dist/{run-HGYYDS6S.js → run-ASLSXRUQ.js} +6 -6
- package/dist/{schedule-RR6OUMKT.js → schedule-SQOLIVNL.js} +4 -4
- package/dist/{search-KO7PIUMR.js → search-3ZHHJHIN.js} +4 -4
- package/dist/{serve-FUYRS76Y.js → serve-63VQPOQF.js} +28 -28
- package/dist/{session-J7JPFAV3.js → session-KZJB4SN3.js} +15 -15
- package/dist/{settings-HDENU4PV.js → settings-JOPGFAZS.js} +4 -4
- package/dist/{sitemaps-GTHH2RP3.js → sitemaps-AAEYPCF3.js} +4 -4
- package/dist/{skills-U3MDHCWF.js → skills-IWK7KYBF.js} +3 -3
- package/dist/{snapshot-SWFUS4D2.js → snapshot-N45FCZO3.js} +4 -4
- package/dist/{src-R74K2NOZ.js → src-D5YFNRUG.js} +2 -2
- package/dist/{status-ACUIXSLV.js → status-O4GQAJV5.js} +6 -6
- package/dist/{support-3IFWJF3E.js → support-RNNKG6QY.js} +2 -2
- package/dist/{technical-aeo-NWE56UCG.js → technical-aeo-IMGI4ST7.js} +4 -4
- package/dist/{telemetry-CHW3LG5A.js → telemetry-ELCKZQGI.js} +5 -5
- package/dist/{tools-WTCPC6VA.js → tools-7NYNPJTI.js} +12 -12
- package/dist/{traffic-MHCGXV2V.js → traffic-NJ476WXB.js} +6 -6
- package/dist/{trends-5IEV52XW.js → trends-ULBZCMKS.js} +4 -4
- package/dist/{users-KRY5MKJ4.js → users-TFQRXDHF.js} +4 -4
- package/dist/{visibility-stats-JF3SXXKS.js → visibility-stats-Q3F5ORLR.js} +5 -5
- package/dist/{wordpress-TV2NSQPK.js → wordpress-JPDUJ7ZW.js} +4 -4
- package/package.json +1 -1
- package/assets/assets/ToneBadge-BCQPh7t2.js +0 -60
- package/dist/cli-commands-3U3WYSCW.js +0 -18
- package/dist/intelligence-service-KEFHLH3W.js +0 -15
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
normalizeTrafficPathPattern,
|
|
20
20
|
sessionizeJourneyRequests,
|
|
21
21
|
verifyRequestSignature
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HGXAKSRX.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-CCFEMZI5.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-LJ3MSVVW.js";
|
|
194
194
|
import {
|
|
195
195
|
ADS_ACTIVATE_SCOPE,
|
|
196
196
|
ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
|
|
@@ -1064,6 +1064,7 @@ import {
|
|
|
1064
1064
|
notImplemented,
|
|
1065
1065
|
notificationDtoSchema,
|
|
1066
1066
|
notificationEventSchema,
|
|
1067
|
+
notificationUpdateRequestSchema,
|
|
1067
1068
|
onboardingTelemetryEventSchema,
|
|
1068
1069
|
openRouterRouteModel,
|
|
1069
1070
|
operationAccess,
|
|
@@ -1390,7 +1391,7 @@ import {
|
|
|
1390
1391
|
wordpressSchemaDeployResultDtoSchema,
|
|
1391
1392
|
wordpressSchemaStatusResultDtoSchema,
|
|
1392
1393
|
wordpressStatusDtoSchema
|
|
1393
|
-
} from "./chunk-
|
|
1394
|
+
} from "./chunk-UYRC244Y.js";
|
|
1394
1395
|
|
|
1395
1396
|
// ../api-routes/src/user-session.ts
|
|
1396
1397
|
import crypto2 from "crypto";
|
|
@@ -1786,8 +1787,17 @@ async function userSessionRoutes(app, opts = {}) {
|
|
|
1786
1787
|
}
|
|
1787
1788
|
var UNKNOWN_ACCOUNT_DIGEST = `${SCRYPT_DIGEST_PREFIX}AAAAAAAAAAAAAAAAAAAAAA==$` + Buffer.alloc(64, 0).toString("base64");
|
|
1788
1789
|
|
|
1790
|
+
// ../api-routes/src/run-scope.ts
|
|
1791
|
+
import { and, isNull } from "drizzle-orm";
|
|
1792
|
+
function isScopedRun(run) {
|
|
1793
|
+
return run.queries != null || run.measurementScope != null;
|
|
1794
|
+
}
|
|
1795
|
+
function notScopedRun() {
|
|
1796
|
+
return and(isNull(runs.queries), isNull(runs.measurementScope));
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1789
1799
|
// ../api-routes/src/sentiment-mention-identity.ts
|
|
1790
|
-
import { and, asc, eq as eq2, inArray } from "drizzle-orm";
|
|
1800
|
+
import { and as and2, asc, eq as eq2, inArray } from "drizzle-orm";
|
|
1791
1801
|
|
|
1792
1802
|
// ../api-routes/src/sentiment-input.ts
|
|
1793
1803
|
import { createHash } from "crypto";
|
|
@@ -1904,7 +1914,7 @@ function refreshSnapshotMentionIdentity(db, snapshotIds) {
|
|
|
1904
1914
|
edges: sentimentWorkItems.edges,
|
|
1905
1915
|
outcome: sentimentResults.outcome,
|
|
1906
1916
|
completedAt: sentimentResults.completedAt
|
|
1907
|
-
}).from(sentimentWorkItems).innerJoin(sentimentResults, eq2(sentimentResults.workItemId, sentimentWorkItems.id)).where(
|
|
1917
|
+
}).from(sentimentWorkItems).innerJoin(sentimentResults, eq2(sentimentResults.workItemId, sentimentWorkItems.id)).where(and2(
|
|
1908
1918
|
inArray(sentimentWorkItems.runId, [...new Set(snapshots.map((snapshot) => snapshot.runId))]),
|
|
1909
1919
|
inArray(sentimentWorkItems.snapshotId, chunk),
|
|
1910
1920
|
eq2(sentimentWorkItems.status, "completed")
|
|
@@ -1961,11 +1971,11 @@ function snapshotsWithSentimentResults(db) {
|
|
|
1961
1971
|
}
|
|
1962
1972
|
|
|
1963
1973
|
// ../api-routes/src/plan-competitors.ts
|
|
1964
|
-
import { and as
|
|
1974
|
+
import { and as and4, desc, eq as eq4, exists, inArray as inArray2, isNotNull, ne, or } from "drizzle-orm";
|
|
1965
1975
|
|
|
1966
1976
|
// ../api-routes/src/measurement-draft-repo.ts
|
|
1967
1977
|
import crypto3 from "crypto";
|
|
1968
|
-
import { and as
|
|
1978
|
+
import { and as and3, eq as eq3, gt, lte as lte2 } from "drizzle-orm";
|
|
1969
1979
|
var MEASUREMENT_RECEIPT_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
1970
1980
|
function canonicalJsonValue(value) {
|
|
1971
1981
|
if (Array.isArray(value)) return value.map(canonicalJsonValue);
|
|
@@ -2048,7 +2058,7 @@ function draftCounts(authoring) {
|
|
|
2048
2058
|
function activePlanVersionRow(db, projectId) {
|
|
2049
2059
|
const pointer = db.select().from(measurementPlans).where(eq3(measurementPlans.projectId, projectId)).get();
|
|
2050
2060
|
if (!pointer) return null;
|
|
2051
|
-
const version = db.select().from(measurementPlanVersions).where(
|
|
2061
|
+
const version = db.select().from(measurementPlanVersions).where(and3(
|
|
2052
2062
|
eq3(measurementPlanVersions.projectId, projectId),
|
|
2053
2063
|
eq3(measurementPlanVersions.id, pointer.activeVersionId)
|
|
2054
2064
|
)).get();
|
|
@@ -2077,7 +2087,7 @@ function requireIdempotencyKey(request, operation) {
|
|
|
2077
2087
|
return value;
|
|
2078
2088
|
}
|
|
2079
2089
|
function replayReceipt(db, projectId, lookup, reply) {
|
|
2080
|
-
const existing = db.select().from(measurementOperationReceipts).where(
|
|
2090
|
+
const existing = db.select().from(measurementOperationReceipts).where(and3(
|
|
2081
2091
|
eq3(measurementOperationReceipts.projectId, projectId),
|
|
2082
2092
|
eq3(measurementOperationReceipts.operation, lookup.operation),
|
|
2083
2093
|
eq3(measurementOperationReceipts.idempotencyKey, lookup.key),
|
|
@@ -2316,7 +2326,7 @@ function draftPinGroups(db, projectId) {
|
|
|
2316
2326
|
return groups;
|
|
2317
2327
|
}
|
|
2318
2328
|
function supersededRevisionPins(db, projectId, activeVersionId) {
|
|
2319
|
-
const measured = db.select({ id: runs.measurementPlanVersionId }).from(runs).where(
|
|
2329
|
+
const measured = db.select({ id: runs.measurementPlanVersionId }).from(runs).where(and4(
|
|
2320
2330
|
eq4(runs.projectId, projectId),
|
|
2321
2331
|
eq4(runs.kind, RunKinds["answer-visibility"]),
|
|
2322
2332
|
isNotNull(runs.measurementPlanVersionId),
|
|
@@ -2325,7 +2335,7 @@ function supersededRevisionPins(db, projectId, activeVersionId) {
|
|
|
2325
2335
|
exists(db.select({ id: querySnapshots.id }).from(querySnapshots).where(eq4(querySnapshots.runId, runs.id)))
|
|
2326
2336
|
)
|
|
2327
2337
|
));
|
|
2328
|
-
const versions = db.select({ id: measurementPlanVersions.id, revision: measurementPlanVersions.revision }).from(measurementPlanVersions).where(
|
|
2338
|
+
const versions = db.select({ id: measurementPlanVersions.id, revision: measurementPlanVersions.revision }).from(measurementPlanVersions).where(and4(
|
|
2329
2339
|
eq4(measurementPlanVersions.projectId, projectId),
|
|
2330
2340
|
inArray2(measurementPlanVersions.id, measured),
|
|
2331
2341
|
...activeVersionId ? [ne(measurementPlanVersions.id, activeVersionId)] : []
|
|
@@ -2335,7 +2345,7 @@ function supersededRevisionPins(db, projectId, activeVersionId) {
|
|
|
2335
2345
|
|
|
2336
2346
|
// ../api-routes/src/competitor-writes.ts
|
|
2337
2347
|
import crypto4 from "crypto";
|
|
2338
|
-
import { and as
|
|
2348
|
+
import { and as and5, eq as eq5, inArray as inArray3, ne as ne2 } from "drizzle-orm";
|
|
2339
2349
|
function normalizeCompetitorList(domains) {
|
|
2340
2350
|
const seen2 = /* @__PURE__ */ new Set();
|
|
2341
2351
|
const result = [];
|
|
@@ -2382,7 +2392,7 @@ var competitorIdentityColumns = {
|
|
|
2382
2392
|
function summarizeBulkCompetitorAdd(db, projectId, plan, options) {
|
|
2383
2393
|
const wouldAdd = [...plan.added];
|
|
2384
2394
|
if (wouldAdd.length === 0) return null;
|
|
2385
|
-
const measured = db.select({ id: runs.id }).from(runs).where(
|
|
2395
|
+
const measured = db.select({ id: runs.id }).from(runs).where(and5(
|
|
2386
2396
|
eq5(runs.projectId, projectId),
|
|
2387
2397
|
eq5(runs.kind, RunKinds["answer-visibility"]),
|
|
2388
2398
|
inArray3(runs.status, [RunStatuses.completed, RunStatuses.partial]),
|
|
@@ -2555,7 +2565,7 @@ function uniqueByBrandKey(names) {
|
|
|
2555
2565
|
});
|
|
2556
2566
|
}
|
|
2557
2567
|
function storedDomainBlockedAliases(tx, projectId, domain) {
|
|
2558
|
-
const row = tx.select({ blockedAliases: marketCompetitorNames.blockedAliases }).from(marketCompetitorNames).where(
|
|
2568
|
+
const row = tx.select({ blockedAliases: marketCompetitorNames.blockedAliases }).from(marketCompetitorNames).where(and5(eq5(marketCompetitorNames.projectId, projectId), eq5(marketCompetitorNames.domain, domain))).get();
|
|
2559
2569
|
return row?.blockedAliases ?? [];
|
|
2560
2570
|
}
|
|
2561
2571
|
function keepBlockedAliasesOfRemovedCompetitors(tx, projectId, removed, now) {
|
|
@@ -2566,7 +2576,7 @@ function keepBlockedAliasesOfRemovedCompetitors(tx, projectId, removed, now) {
|
|
|
2566
2576
|
byDomain.set(domain, uniqueByBrandKey([...byDomain.get(domain) ?? [], ...row.blockedAliases]));
|
|
2567
2577
|
}
|
|
2568
2578
|
for (const [domain, blockedAliases] of byDomain) {
|
|
2569
|
-
const stored = tx.select({ id: marketCompetitorNames.id, blockedAliases: marketCompetitorNames.blockedAliases }).from(marketCompetitorNames).where(
|
|
2579
|
+
const stored = tx.select({ id: marketCompetitorNames.id, blockedAliases: marketCompetitorNames.blockedAliases }).from(marketCompetitorNames).where(and5(eq5(marketCompetitorNames.projectId, projectId), eq5(marketCompetitorNames.domain, domain))).get();
|
|
2570
2580
|
if (stored) {
|
|
2571
2581
|
if (!sameAliases(stored.blockedAliases, blockedAliases)) {
|
|
2572
2582
|
tx.update(marketCompetitorNames).set({ blockedAliases, updatedAt: now }).where(eq5(marketCompetitorNames.id, stored.id)).run();
|
|
@@ -5543,7 +5553,7 @@ function assessConversionTrackingIntegrity(input) {
|
|
|
5543
5553
|
}
|
|
5544
5554
|
|
|
5545
5555
|
// ../api-routes/src/gsc-totals.ts
|
|
5546
|
-
import { and as
|
|
5556
|
+
import { and as and6, asc as asc2, eq as eq7, sql, max, min } from "drizzle-orm";
|
|
5547
5557
|
var WINDOW_DAYS = { "7d": 7, "30d": 30, "90d": 90 };
|
|
5548
5558
|
function resolveGscWindowRange(window2, latestDataDate, today) {
|
|
5549
5559
|
if (window2 === "all") {
|
|
@@ -5607,8 +5617,8 @@ function readEarliestGscDataDate(db, projectId) {
|
|
|
5607
5617
|
return [property, dimensioned].filter((d) => d !== null).reduce((earliest, d) => earliest === null || d < earliest ? d : earliest, null);
|
|
5608
5618
|
}
|
|
5609
5619
|
function readEarliestGscQueryDataDate(db, projectId) {
|
|
5610
|
-
const accurate = db.select({ earliest: min(gscQueryDailyTotals.date) }).from(gscQueryDailyTotals).where(
|
|
5611
|
-
const dimensioned = db.select({ earliest: min(gscSearchData.date) }).from(gscSearchData).where(
|
|
5620
|
+
const accurate = db.select({ earliest: min(gscQueryDailyTotals.date) }).from(gscQueryDailyTotals).where(and6(eq7(gscQueryDailyTotals.projectId, projectId), sql`${gscQueryDailyTotals.date} <> ''`)).get()?.earliest ?? null;
|
|
5621
|
+
const dimensioned = db.select({ earliest: min(gscSearchData.date) }).from(gscSearchData).where(and6(eq7(gscSearchData.projectId, projectId), sql`${gscSearchData.date} <> ''`)).get()?.earliest ?? null;
|
|
5612
5622
|
return [accurate, dimensioned].filter((d) => d !== null).reduce((earliest, d) => earliest === null || d < earliest ? d : earliest, null);
|
|
5613
5623
|
}
|
|
5614
5624
|
function readGscDailyTotals(db, projectId, startDate, endDate) {
|
|
@@ -5618,7 +5628,7 @@ function readGscDailyTotals(db, projectId, startDate, endDate) {
|
|
|
5618
5628
|
impressions: gscDailyTotals.impressions,
|
|
5619
5629
|
position: gscDailyTotals.position
|
|
5620
5630
|
}).from(gscDailyTotals).where(
|
|
5621
|
-
|
|
5631
|
+
and6(
|
|
5622
5632
|
eq7(gscDailyTotals.projectId, projectId),
|
|
5623
5633
|
sql`${gscDailyTotals.date} >= ${startDate}`,
|
|
5624
5634
|
sql`${gscDailyTotals.date} <= ${endDate}`
|
|
@@ -5648,7 +5658,7 @@ function readGscQueryDailyRows(db, projectId, startDate, endDate) {
|
|
|
5648
5658
|
impressions: gscQueryDailyTotals.impressions,
|
|
5649
5659
|
position: gscQueryDailyTotals.position
|
|
5650
5660
|
}).from(gscQueryDailyTotals).where(
|
|
5651
|
-
|
|
5661
|
+
and6(
|
|
5652
5662
|
eq7(gscQueryDailyTotals.projectId, projectId),
|
|
5653
5663
|
sql`${gscQueryDailyTotals.date} >= ${startDate}`,
|
|
5654
5664
|
sql`${gscQueryDailyTotals.date} <= ${endDate}`
|
|
@@ -5673,7 +5683,7 @@ function readGscQueryDailyFallbackRows(db, projectId, startDate, endDate) {
|
|
|
5673
5683
|
impressions: sql`COALESCE(SUM(${gscSearchData.impressions}), 0)`,
|
|
5674
5684
|
position: sql`COALESCE(SUM(CAST(${gscSearchData.position} AS REAL) * ${gscSearchData.impressions}) * 1.0 / NULLIF(SUM(${gscSearchData.impressions}), 0), 0)`
|
|
5675
5685
|
}).from(gscSearchData).where(
|
|
5676
|
-
|
|
5686
|
+
and6(
|
|
5677
5687
|
eq7(gscSearchData.projectId, projectId),
|
|
5678
5688
|
sql`${gscSearchData.date} >= ${startDate}`,
|
|
5679
5689
|
sql`${gscSearchData.date} <= ${endDate}`,
|
|
@@ -6121,7 +6131,7 @@ function buildGbpSummary(input) {
|
|
|
6121
6131
|
|
|
6122
6132
|
// ../api-routes/src/snapshot-competitor-refresh.ts
|
|
6123
6133
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
6124
|
-
import { and as
|
|
6134
|
+
import { and as and7, asc as asc3, eq as eq9, inArray as inArray4 } from "drizzle-orm";
|
|
6125
6135
|
|
|
6126
6136
|
// ../api-routes/src/answer-identity.ts
|
|
6127
6137
|
import crypto7 from "crypto";
|
|
@@ -6210,7 +6220,7 @@ function* projectAnswerMentionsSteps(db, projectId, opts, driver) {
|
|
|
6210
6220
|
examined = 0;
|
|
6211
6221
|
wouldUpdate = 0;
|
|
6212
6222
|
mentioned = 0;
|
|
6213
|
-
const runRows = db.select({ id: runs.id, planVersionId: runs.measurementPlanVersionId }).from(runs).where(
|
|
6223
|
+
const runRows = db.select({ id: runs.id, planVersionId: runs.measurementPlanVersionId }).from(runs).where(and7(
|
|
6214
6224
|
eq9(runs.kind, RunKinds["answer-visibility"]),
|
|
6215
6225
|
eq9(runs.projectId, projectId),
|
|
6216
6226
|
opts?.runId === void 0 ? void 0 : eq9(runs.id, opts.runId)
|
|
@@ -6752,17 +6762,6 @@ import { and as and8, desc as desc2, eq as eq12, like } from "drizzle-orm";
|
|
|
6752
6762
|
// ../api-routes/src/helpers.ts
|
|
6753
6763
|
import crypto9 from "crypto";
|
|
6754
6764
|
import { eq as eq11, ne as ne3, sql as sql2 } from "drizzle-orm";
|
|
6755
|
-
|
|
6756
|
-
// ../api-routes/src/run-scope.ts
|
|
6757
|
-
import { and as and7, isNull } from "drizzle-orm";
|
|
6758
|
-
function isScopedRun(run) {
|
|
6759
|
-
return run.queries != null || run.measurementScope != null;
|
|
6760
|
-
}
|
|
6761
|
-
function notScopedRun() {
|
|
6762
|
-
return and7(isNull(runs.queries), isNull(runs.measurementScope));
|
|
6763
|
-
}
|
|
6764
|
-
|
|
6765
|
-
// ../api-routes/src/helpers.ts
|
|
6766
6765
|
function notProbeRun() {
|
|
6767
6766
|
return ne3(runs.trigger, RunTriggers.probe);
|
|
6768
6767
|
}
|
|
@@ -40791,6 +40790,7 @@ var SCHEMA_TABLE = {
|
|
|
40791
40790
|
MeasurementSegmentRetirementResponse: measurementSegmentRetirementResponseSchema,
|
|
40792
40791
|
MeasurementSetupResponse: measurementSetupResponseSchema,
|
|
40793
40792
|
NotificationDto: notificationDtoSchema,
|
|
40793
|
+
NotificationUpdateRequest: notificationUpdateRequestSchema,
|
|
40794
40794
|
OnboardingTelemetryEvent: onboardingTelemetryEventSchema,
|
|
40795
40795
|
UiTelemetryEvent: uiTelemetryEventSchema,
|
|
40796
40796
|
OrganicEvidenceDto: organicEvidenceDtoSchema,
|
|
@@ -44794,6 +44794,27 @@ var routeCatalog = [
|
|
|
44794
44794
|
404: errorResponse("Notification not found.")
|
|
44795
44795
|
}
|
|
44796
44796
|
},
|
|
44797
|
+
{
|
|
44798
|
+
method: "patch",
|
|
44799
|
+
path: "/api/v1/projects/{name}/notifications/{id}",
|
|
44800
|
+
summary: "Update a notification",
|
|
44801
|
+
description: "Changes an existing webhook in place: replaces its event list and/or turns it on or off. The URL and signing secret stay as they are; to send somewhere else, add a new webhook. Name at least one field.",
|
|
44802
|
+
tags: ["notifications"],
|
|
44803
|
+
parameters: [nameParameter, notificationIdParameter],
|
|
44804
|
+
requestBody: {
|
|
44805
|
+
required: true,
|
|
44806
|
+
content: {
|
|
44807
|
+
"application/json": {
|
|
44808
|
+
schema: { $ref: "#/components/schemas/NotificationUpdateRequest" }
|
|
44809
|
+
}
|
|
44810
|
+
}
|
|
44811
|
+
},
|
|
44812
|
+
responses: {
|
|
44813
|
+
200: jsonResponse("Notification updated.", "NotificationDto"),
|
|
44814
|
+
400: errorResponse("Invalid notification update."),
|
|
44815
|
+
404: errorResponse("Notification not found.")
|
|
44816
|
+
}
|
|
44817
|
+
},
|
|
44797
44818
|
{
|
|
44798
44819
|
method: "post",
|
|
44799
44820
|
path: "/api/v1/projects/{name}/notifications/{id}/test",
|
|
@@ -51810,6 +51831,61 @@ async function notificationRoutes(app, opts = {}) {
|
|
|
51810
51831
|
});
|
|
51811
51832
|
return reply.status(204).send();
|
|
51812
51833
|
}));
|
|
51834
|
+
app.patch("/projects/:name/notifications/:id", async (request, reply) => {
|
|
51835
|
+
const body = request.body;
|
|
51836
|
+
const fields = body && typeof body === "object" ? body : {};
|
|
51837
|
+
const eventLists = [fields.events, fields.addEvents, fields.removeEvents];
|
|
51838
|
+
const invalid = eventLists.flatMap((list) => Array.isArray(list) ? list.filter((e) => !VALID_EVENTS.includes(e)) : []);
|
|
51839
|
+
if (invalid.length) {
|
|
51840
|
+
throw validationError(`Invalid event(s): ${invalid.join(", ")}. Must be one of: ${VALID_EVENTS.join(", ")}`);
|
|
51841
|
+
}
|
|
51842
|
+
const parsed = notificationUpdateRequestSchema.safeParse(body ?? {});
|
|
51843
|
+
if (!parsed.success) {
|
|
51844
|
+
throw validationError("Invalid notification update", {
|
|
51845
|
+
issues: parsed.error.issues.map((issue) => ({
|
|
51846
|
+
path: issue.path.join(".") || ("keys" in issue && Array.isArray(issue.keys) ? issue.keys.join(".") : ""),
|
|
51847
|
+
message: issue.message
|
|
51848
|
+
}))
|
|
51849
|
+
});
|
|
51850
|
+
}
|
|
51851
|
+
const update = parsed.data;
|
|
51852
|
+
if (update.events !== void 0 && (update.addEvents !== void 0 || update.removeEvents !== void 0)) {
|
|
51853
|
+
throw validationError('"events" replaces the whole list; send it alone, or use "addEvents" / "removeEvents" without it');
|
|
51854
|
+
}
|
|
51855
|
+
if (update.events === void 0 && update.addEvents === void 0 && update.removeEvents === void 0 && update.enabled === void 0) {
|
|
51856
|
+
throw validationError('Name at least one field to change: "events", "addEvents", "removeEvents" or "enabled"');
|
|
51857
|
+
}
|
|
51858
|
+
const project = resolveProject(app.db, request.params.name);
|
|
51859
|
+
const notification = app.db.select().from(notifications).where(eq85(notifications.id, request.params.id)).get();
|
|
51860
|
+
if (!notification || notification.projectId !== project.id) {
|
|
51861
|
+
throw notFound("Notification", request.params.id);
|
|
51862
|
+
}
|
|
51863
|
+
const config = notification.config;
|
|
51864
|
+
const events = nextNotificationEvents(config.events, update);
|
|
51865
|
+
if (events.length === 0) {
|
|
51866
|
+
throw validationError("A webhook needs at least one event; remove the webhook instead of removing all of its events");
|
|
51867
|
+
}
|
|
51868
|
+
const enabled = update.enabled ?? notification.enabled;
|
|
51869
|
+
const eventsChanged = events.length !== config.events.length || events.some((event, i) => event !== config.events[i]);
|
|
51870
|
+
const enabledChanged = enabled !== notification.enabled;
|
|
51871
|
+
if (eventsChanged || enabledChanged) {
|
|
51872
|
+
app.db.transaction((tx) => {
|
|
51873
|
+
tx.update(notifications).set({ config: { ...config, events }, enabled, updatedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(eq85(notifications.id, notification.id)).run();
|
|
51874
|
+
writeAuditLog(tx, {
|
|
51875
|
+
projectId: project.id,
|
|
51876
|
+
actor: "api",
|
|
51877
|
+
action: "notification.updated",
|
|
51878
|
+
entityType: "notification",
|
|
51879
|
+
entityId: notification.id,
|
|
51880
|
+
diff: {
|
|
51881
|
+
...eventsChanged ? { events: { from: config.events, to: events } } : {},
|
|
51882
|
+
...enabledChanged ? { enabled: { from: notification.enabled, to: enabled } } : {}
|
|
51883
|
+
}
|
|
51884
|
+
});
|
|
51885
|
+
});
|
|
51886
|
+
}
|
|
51887
|
+
return reply.send(formatNotification(app.db.select().from(notifications).where(eq85(notifications.id, notification.id)).get()));
|
|
51888
|
+
});
|
|
51813
51889
|
app.post("/projects/:name/notifications/:id/test", connectionRoute(app, (request) => {
|
|
51814
51890
|
const stored = app.db.select({ config: notifications.config }).from(notifications).where(eq85(notifications.id, request.params.id)).get();
|
|
51815
51891
|
const config = stored?.config;
|
|
@@ -51861,6 +51937,11 @@ async function notificationRoutes(app, opts = {}) {
|
|
|
51861
51937
|
return reply.send({ status, ok: status >= 200 && status < 300 });
|
|
51862
51938
|
}));
|
|
51863
51939
|
}
|
|
51940
|
+
function nextNotificationEvents(stored, update) {
|
|
51941
|
+
if (update.events) return [...new Set(update.events)];
|
|
51942
|
+
const removed = new Set(update.removeEvents ?? []);
|
|
51943
|
+
return [.../* @__PURE__ */ new Set([...stored, ...update.addEvents ?? []])].filter((event) => !removed.has(event));
|
|
51944
|
+
}
|
|
51864
51945
|
function formatNotification(row) {
|
|
51865
51946
|
const config = row.config;
|
|
51866
51947
|
const redacted = redactNotificationUrl(config.url);
|
|
@@ -83172,6 +83253,8 @@ export {
|
|
|
83172
83253
|
requireInstanceAdministrator,
|
|
83173
83254
|
hashApiKey,
|
|
83174
83255
|
MCP_DELEGATED_KEY_MAX_AGE_MS,
|
|
83256
|
+
isScopedRun,
|
|
83257
|
+
notScopedRun,
|
|
83175
83258
|
notProbeRun,
|
|
83176
83259
|
syncRunClaimKey,
|
|
83177
83260
|
writeAuditLog,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZA44DK2O.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-UYRC244Y.js";
|
|
26
26
|
|
|
27
27
|
// ../config/src/index.ts
|
|
28
28
|
import { z as z5 } from "zod";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
configExists,
|
|
3
3
|
loadConfigRaw,
|
|
4
4
|
saveConfigPatch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WKYQ7255.js";
|
|
6
6
|
import {
|
|
7
7
|
BUNDLED_SKILL_NAMES,
|
|
8
8
|
installSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RVRQJ2SA.js";
|
|
10
10
|
import {
|
|
11
11
|
PACKAGE_VERSION
|
|
12
12
|
} from "./chunk-AOJU5LKX.js";
|
|
13
13
|
import {
|
|
14
14
|
SKILL_MANIFEST_FILENAME,
|
|
15
15
|
SkillsClients
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UYRC244Y.js";
|
|
17
17
|
|
|
18
18
|
// src/skills-autosync.ts
|
|
19
19
|
import fs from "fs";
|
|
@@ -68,8 +68,8 @@ var CANONRY_MCP_TOOLKITS = [
|
|
|
68
68
|
{
|
|
69
69
|
name: "setup",
|
|
70
70
|
title: "Project setup and measurement",
|
|
71
|
-
description: "Manage project configuration, Advanced Measurement drafts, query assets, competitors, and
|
|
72
|
-
whenToLoad: "Load when onboarding a project, editing its measurement plan, or managing tracked queries, competitors, or
|
|
71
|
+
description: "Manage project configuration, Advanced Measurement drafts, query assets, competitors, schedules, and notification webhooks.",
|
|
72
|
+
whenToLoad: "Load when onboarding a project, editing its measurement plan, or managing tracked queries, competitors, schedules, or which events a webhook receives."
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
name: "gsc",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LNBJ3ZEK.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-IQGRGJFP.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZA44DK2O.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-UYRC244Y.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/measurement-plan.ts
|
|
45
45
|
import crypto from "crypto";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
citationGlyph,
|
|
4
4
|
citedBase,
|
|
5
5
|
mentionGlyph
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XDCXC6DL.js";
|
|
7
7
|
import {
|
|
8
8
|
createApiClient
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LNBJ3ZEK.js";
|
|
10
|
+
import "./chunk-WKYQ7255.js";
|
|
11
11
|
import {
|
|
12
12
|
emitJsonl
|
|
13
13
|
} from "./chunk-Z7IUAJOF.js";
|
|
14
14
|
import "./chunk-AOJU5LKX.js";
|
|
15
15
|
import {
|
|
16
16
|
isMachineFormat
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-ZA44DK2O.js";
|
|
18
|
+
import "./chunk-UYRC244Y.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/citations.ts
|
|
21
21
|
async function showCitationVisibility(project, opts) {
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
buildCliCatalog,
|
|
4
4
|
printCliCatalog,
|
|
5
5
|
renderTopLevelHelp
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NZQWQK4N.js";
|
|
7
|
+
import "./chunk-TAFIB6LC.js";
|
|
8
8
|
import "./chunk-Z7IUAJOF.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZA44DK2O.js";
|
|
10
|
+
import "./chunk-UYRC244Y.js";
|
|
11
11
|
export {
|
|
12
12
|
CLI_ROOT_SUMMARIES,
|
|
13
13
|
buildCliCatalog,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
REGISTERED_CLI_COMMANDS
|
|
3
|
+
} from "./chunk-6TKNNXDP.js";
|
|
4
|
+
import "./chunk-6GO5VVAC.js";
|
|
5
|
+
import "./chunk-VJWDBFSL.js";
|
|
6
|
+
import "./chunk-YETOLZWJ.js";
|
|
7
|
+
import "./chunk-TSENU4GG.js";
|
|
8
|
+
import "./chunk-LNBJ3ZEK.js";
|
|
9
|
+
import "./chunk-WKYQ7255.js";
|
|
10
|
+
import "./chunk-TAFIB6LC.js";
|
|
11
|
+
import "./chunk-Z7IUAJOF.js";
|
|
12
|
+
import "./chunk-IQGRGJFP.js";
|
|
13
|
+
import "./chunk-AOJU5LKX.js";
|
|
14
|
+
import "./chunk-ZA44DK2O.js";
|
|
15
|
+
import "./chunk-UYRC244Y.js";
|
|
16
|
+
export {
|
|
17
|
+
REGISTERED_CLI_COMMANDS
|
|
18
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node --import tsx
|
|
2
2
|
import {
|
|
3
3
|
REGISTERED_CLI_COMMANDS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6TKNNXDP.js";
|
|
5
5
|
import "./chunk-6GO5VVAC.js";
|
|
6
6
|
import {
|
|
7
7
|
buildSetupState,
|
|
8
8
|
runPendingServeHandoff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GDAL3L25.js";
|
|
10
10
|
import "./chunk-VJWDBFSL.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-YETOLZWJ.js";
|
|
12
12
|
import "./chunk-TSENU4GG.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-F5UUN6UB.js";
|
|
14
14
|
import {
|
|
15
15
|
checkLatestVersionForCli,
|
|
16
16
|
cliRuntimeContext,
|
|
@@ -24,24 +24,24 @@ import {
|
|
|
24
24
|
showFirstRunNotice,
|
|
25
25
|
trackCliCommandFinished,
|
|
26
26
|
trackEvent
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LZSY5GNZ.js";
|
|
28
28
|
import {
|
|
29
29
|
autoSyncSkills,
|
|
30
30
|
formatAutoSyncNotice
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-X2WJ563G.js";
|
|
32
|
+
import "./chunk-LNBJ3ZEK.js";
|
|
33
|
+
import "./chunk-WKYQ7255.js";
|
|
34
34
|
import {
|
|
35
35
|
accessFilterFromArgs,
|
|
36
36
|
dispatchRegisteredCommand,
|
|
37
37
|
printCliCatalog
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NZQWQK4N.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveCliAccess
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TAFIB6LC.js";
|
|
42
42
|
import "./chunk-Z7IUAJOF.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-RVRQJ2SA.js";
|
|
44
|
+
import "./chunk-IQGRGJFP.js";
|
|
45
45
|
import "./chunk-AOJU5LKX.js";
|
|
46
46
|
import {
|
|
47
47
|
CliError,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
isMachineFormat,
|
|
50
50
|
printCliError,
|
|
51
51
|
usageError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZA44DK2O.js";
|
|
53
53
|
import {
|
|
54
54
|
OperationAccesses
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-UYRC244Y.js";
|
|
56
56
|
|
|
57
57
|
// src/cli.ts
|
|
58
58
|
import { pathToFileURL } from "url";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LNBJ3ZEK.js";
|
|
4
|
+
import "./chunk-WKYQ7255.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CliError,
|
|
11
11
|
isMachineFormat,
|
|
12
12
|
usageError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZA44DK2O.js";
|
|
14
14
|
import {
|
|
15
15
|
CompetitorChangeKinds,
|
|
16
16
|
CompetitorShareImpactCaveats,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
normalizeCompetitorDomain,
|
|
22
22
|
shareOfVoiceLabel,
|
|
23
23
|
shareOfVoiceReason
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UYRC244Y.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/competitor.ts
|
|
27
27
|
import fs from "fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LNBJ3ZEK.js";
|
|
4
|
+
import "./chunk-WKYQ7255.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
CliError,
|
|
11
11
|
isMachineFormat,
|
|
12
12
|
usageError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZA44DK2O.js";
|
|
14
14
|
import {
|
|
15
15
|
contentTargetDismissRequestSchema,
|
|
16
16
|
formatPercent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UYRC244Y.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/content.ts
|
|
20
20
|
var WINNABILITY_COVERAGE_CHECK_ID = "content.winnability.coverage";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearDashboardPassword,
|
|
3
3
|
loadConfigRaw
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WKYQ7255.js";
|
|
5
5
|
import {
|
|
6
6
|
isMachineFormat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZA44DK2O.js";
|
|
8
8
|
import {
|
|
9
9
|
anyUsersExist
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-VXBYTMSM.js";
|
|
11
|
+
import "./chunk-HGXAKSRX.js";
|
|
12
|
+
import "./chunk-CCFEMZI5.js";
|
|
13
13
|
import {
|
|
14
14
|
createClient
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-LJ3MSVVW.js";
|
|
16
|
+
import "./chunk-UYRC244Y.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/dashboard.ts
|
|
19
19
|
import fs from "fs";
|