@canonry/canonry 7.51.5 → 7.51.6
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/dist/ads-ABAT3K4K.js +544 -0
- package/dist/agent-5G4DRLYX.js +70 -0
- package/dist/agent-ask-UDVCZRO7.js +139 -0
- package/dist/agent-conversations-5E4JP2QZ.js +52 -0
- package/dist/agent-memory-7IIJ4HGZ.js +92 -0
- package/dist/agent-providers-BOXPUXZ4.js +55 -0
- package/dist/agent-transcript-4O56G6PQ.js +77 -0
- package/dist/analytics-PKMWX5XL.js +240 -0
- package/dist/apply-OK4XEBDA.js +175 -0
- package/dist/backfill-2OT56CX2.js +41 -0
- package/dist/backlinks-547WCHND.js +303 -0
- package/dist/bing-ZVBV4ZD5.js +418 -0
- package/dist/bootstrap-HUB7XQ73.js +326 -0
- package/dist/cdp-KQKQ4PWJ.js +162 -0
- package/dist/chunk-2G6IP3MO.js +517 -0
- package/dist/chunk-42D2LE2B.js +1273 -0
- package/dist/chunk-4MJYGB56.js +124 -0
- package/dist/chunk-63ISSSGX.js +9150 -0
- package/dist/{chunk-PLYJX67A.js → chunk-6G6FTDWC.js} +8080 -13939
- package/dist/chunk-6GO5VVAC.js +15 -0
- package/dist/{chunk-4YCGZGA3.js → chunk-73P65KPW.js} +2 -2
- package/dist/chunk-7B2Q4NJE.js +133 -0
- package/dist/{chunk-JBZZEIM2.js → chunk-7WZ2FPB4.js} +2 -13
- package/dist/chunk-AOJU5LKX.js +8 -0
- package/dist/chunk-B2FR2ZQ4.js +420 -0
- package/dist/{chunk-HAHXPJQ5.js → chunk-B5J675KK.js} +16 -1684
- package/dist/{chunk-SFMWHPMX.js → chunk-D6COIM3U.js} +17128 -17143
- package/dist/{chunk-A3WSAAQS.js → chunk-DGVUTH7W.js} +9086 -34522
- package/dist/chunk-ELCLGWUT.js +83 -0
- package/dist/chunk-GO2J7SYT.js +1034 -0
- package/dist/chunk-HACZUMGM.js +145 -0
- package/dist/chunk-HM4NNKLG.js +94 -0
- package/dist/chunk-I3A56PFP.js +58 -0
- package/dist/chunk-I77PLCWG.js +961 -0
- package/dist/chunk-ISOQPVPY.js +232 -0
- package/dist/chunk-KFT5LOP2.js +610 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-MMEO22MF.js +38 -0
- package/dist/chunk-NHQ2U5I4.js +78 -0
- package/dist/chunk-PCXRFT3N.js +530 -0
- package/dist/chunk-PITHTCAX.js +15376 -0
- package/dist/chunk-QWKPSFGL.js +30 -0
- package/dist/chunk-RKIXES2B.js +609 -0
- package/dist/chunk-TSENU4GG.js +18 -0
- package/dist/{chunk-HLVEB5TB.js → chunk-TUTKNUMV.js} +7 -5
- package/dist/chunk-U3AHE2RT.js +1160 -0
- package/dist/chunk-UQ3MOZGC.js +644 -0
- package/dist/{chunk-AZFPA7JV.js → chunk-VBCE4CLX.js} +6 -4
- package/dist/chunk-VJWDBFSL.js +69 -0
- package/dist/chunk-VYMZ3QXG.js +8264 -0
- package/dist/chunk-WAULJDKO.js +2686 -0
- package/dist/chunk-WDFI5YMD.js +204 -0
- package/dist/chunk-XEBKF4N5.js +8 -0
- package/dist/chunk-Z7IUAJOF.js +13 -0
- package/dist/{chunk-KEATAHXH.js → chunk-ZWJRY5UI.js} +358 -581
- package/dist/chunk-ZXUAWVWM.js +15 -0
- package/dist/citations-UYB2RU5U.js +106 -0
- package/dist/{cli-catalog-MO6Z2CIZ.js → cli-catalog-F6FI7NB2.js} +5 -3
- package/dist/cli-commands-ZG5ILKDA.js +19 -0
- package/dist/cli.js +35 -29
- package/dist/competitor-EKP4R7YY.js +561 -0
- package/dist/content-DREE6JF3.js +257 -0
- package/dist/dashboard-ZALEOLLU.js +71 -0
- package/dist/demo-JG4Y22O4.js +75 -0
- package/dist/{demo-server-GIWDJGJX.js → demo-server-3A4J2C65.js} +22 -9
- package/dist/discover-W6GMD2HS.js +372 -0
- package/dist/discover-eval-CKFZHRBW.js +282 -0
- package/dist/doctor-TNGBSUMA.js +152 -0
- package/dist/evidence-3H2GFQBZ.js +57 -0
- package/dist/export-cmd-WUIKU5GK.js +49 -0
- package/dist/ga-JI6REFO4.js +911 -0
- package/dist/gbp-4ENDM5NS.js +370 -0
- package/dist/google-HKQSCLOC.js +946 -0
- package/dist/google-marketing-KQR5J2S4.js +403 -0
- package/dist/health-cmd-TS7EMMCS.js +64 -0
- package/dist/history-MSD5DK6K.js +90 -0
- package/dist/index.d.ts +47 -47
- package/dist/index.js +29 -6
- package/dist/init-L6WAEOWX.js +432 -0
- package/dist/insights-RTZ3IZTD.js +63 -0
- package/dist/intelligence-service-TH52PCNJ.js +15 -0
- package/dist/keys-625DZBRM.js +116 -0
- package/dist/keyword-CW46RNRR.js +164 -0
- package/dist/logs-V33SHBIW.js +30 -0
- package/dist/mcp-DFEDPSEG.js +14 -0
- package/dist/mcp.js +14 -5
- package/dist/measurement-plan-6W37RUOP.js +42 -0
- package/dist/notify-DSUOT7WO.js +125 -0
- package/dist/organic-evidence-BMN6L4OB.js +53 -0
- package/dist/overview-WRRMBZ6S.js +213 -0
- package/dist/project-2GJIU3FE.js +460 -0
- package/dist/query-3XPMGJUA.js +211 -0
- package/dist/research-V433CKJ4.js +200 -0
- package/dist/results-export-RGBU7QQQ.js +27 -0
- package/dist/run-NIAC6OJN.js +31 -0
- package/dist/schedule-KDWXRIE7.js +177 -0
- package/dist/search-626MPUJN.js +42 -0
- package/dist/serve-73SMMASI.js +557 -0
- package/dist/session-7WWOETZB.js +47 -0
- package/dist/settings-VKFQO6F2.js +107 -0
- package/dist/skills-5HC5H7TE.js +33 -0
- package/dist/snapshot-BSJUHFBC.js +538 -0
- package/dist/src-F6HM73TN.js +316 -0
- package/dist/status-V4OWP7LZ.js +126 -0
- package/dist/support-ARF4HER7.js +24 -0
- package/dist/technical-aeo-TG7CGU3F.js +625 -0
- package/dist/telemetry-O2IUNUBW.js +118 -0
- package/dist/tools-2GJIDKND.js +41 -0
- package/dist/traffic-XV4I3UPH.js +1295 -0
- package/dist/users-VGBLDL5K.js +170 -0
- package/dist/visibility-stats-UKJYJ6PP.js +241 -0
- package/dist/wordpress-JZA7CGC6.js +600 -0
- package/package.json +1 -1
- package/dist/chunk-4QQYYRHV.js +0 -23082
- package/dist/cli-commands-FOJR3HHU.js +0 -15
- package/dist/intelligence-service-XQCNWAPL.js +0 -9
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MIGRATION_VERSIONS,
|
|
3
|
+
OperationalLogStore,
|
|
4
|
+
SentimentIdempotencyConflict,
|
|
5
|
+
SentimentRepository,
|
|
6
|
+
adsActivationGrants,
|
|
7
|
+
adsAdGroups,
|
|
8
|
+
adsAds,
|
|
9
|
+
adsCampaigns,
|
|
10
|
+
adsConnections,
|
|
11
|
+
adsInsightsDaily,
|
|
12
|
+
adsOperationSteps,
|
|
13
|
+
adsOperations,
|
|
14
|
+
agentConversations,
|
|
15
|
+
agentMemory,
|
|
16
|
+
agentSessions,
|
|
17
|
+
agentToolEvents,
|
|
18
|
+
aiReferralEventsHourly,
|
|
19
|
+
aiUserFetchEventsHourly,
|
|
20
|
+
aiUserFetchVerificationManifestsHourly,
|
|
21
|
+
apiKeys,
|
|
22
|
+
auditLog,
|
|
23
|
+
backfillGaAiReferralTrafficClass,
|
|
24
|
+
backfillQuerySnapshotServedModel,
|
|
25
|
+
backfillSiteCrawlPageHealthState,
|
|
26
|
+
backfillSiteCrawlTemplateLinks,
|
|
27
|
+
backlinkDomains,
|
|
28
|
+
backlinkSummaries,
|
|
29
|
+
bingConnections,
|
|
30
|
+
bingCoverageSnapshots,
|
|
31
|
+
bingKeywordStats,
|
|
32
|
+
bingUrlInspections,
|
|
33
|
+
ccReleaseSyncs,
|
|
34
|
+
competitors,
|
|
35
|
+
contentTargetDismissals,
|
|
36
|
+
conversionTrackingContracts,
|
|
37
|
+
crawlerEventsHourly,
|
|
38
|
+
crawlerVerificationManifestsHourly,
|
|
39
|
+
createClient,
|
|
40
|
+
dashboardSessions,
|
|
41
|
+
dataRepairCompletions,
|
|
42
|
+
discoveryProbes,
|
|
43
|
+
discoverySessions,
|
|
44
|
+
doctorHealthState,
|
|
45
|
+
domainClassifications,
|
|
46
|
+
dropLegacyCredentialColumns,
|
|
47
|
+
dropSiteCrawlSelfLinks,
|
|
48
|
+
extractLegacyCredentials,
|
|
49
|
+
filterTrackedSnapshots,
|
|
50
|
+
gaAcquisitionDaily,
|
|
51
|
+
gaAiReferrals,
|
|
52
|
+
gaConnections,
|
|
53
|
+
gaDailyTotals,
|
|
54
|
+
gaLeadEventsDaily,
|
|
55
|
+
gaMeasurementSyncStates,
|
|
56
|
+
gaSearchLandingPages,
|
|
57
|
+
gaSearchLandingWindows,
|
|
58
|
+
gaSocialReferrals,
|
|
59
|
+
gaTrafficSnapshots,
|
|
60
|
+
gaTrafficSummaries,
|
|
61
|
+
gaTrafficWindowSummaries,
|
|
62
|
+
gbpAttributesSnapshots,
|
|
63
|
+
gbpDailyMetrics,
|
|
64
|
+
gbpKeywordImpressions,
|
|
65
|
+
gbpKeywordMonthly,
|
|
66
|
+
gbpLocations,
|
|
67
|
+
gbpLodgingSnapshots,
|
|
68
|
+
gbpPlaceActions,
|
|
69
|
+
gbpPlaceDetails,
|
|
70
|
+
gbpReviewRatings,
|
|
71
|
+
gbpReviewSettings,
|
|
72
|
+
gbpReviews,
|
|
73
|
+
googleAdsConnections,
|
|
74
|
+
googleAdsRawSnapshots,
|
|
75
|
+
googleConnections,
|
|
76
|
+
groupRunsByCreatedAt,
|
|
77
|
+
gscCoverageSnapshots,
|
|
78
|
+
gscDailyTotals,
|
|
79
|
+
gscDataWatermarks,
|
|
80
|
+
gscQueryDailyTotals,
|
|
81
|
+
gscSearchData,
|
|
82
|
+
gscUrlInspections,
|
|
83
|
+
gtmConnections,
|
|
84
|
+
gtmRawSnapshots,
|
|
85
|
+
healthSnapshots,
|
|
86
|
+
insightNotifyState,
|
|
87
|
+
insights,
|
|
88
|
+
llmUsageEvents,
|
|
89
|
+
marketCompetitorNames,
|
|
90
|
+
measurementDiscoveryConfigs,
|
|
91
|
+
measurementOperationReceipts,
|
|
92
|
+
measurementPlanDrafts,
|
|
93
|
+
measurementPlanVersions,
|
|
94
|
+
measurementPlans,
|
|
95
|
+
measurementQuerySetItems,
|
|
96
|
+
measurementQuerySets,
|
|
97
|
+
measurementQueryTemplates,
|
|
98
|
+
measurementSegments,
|
|
99
|
+
migrate,
|
|
100
|
+
migrationsTable,
|
|
101
|
+
notifications,
|
|
102
|
+
oauthAuthorizationCodes,
|
|
103
|
+
oauthClients,
|
|
104
|
+
oauthTokens,
|
|
105
|
+
parseJsonColumn,
|
|
106
|
+
pickGroupRepresentative,
|
|
107
|
+
projects,
|
|
108
|
+
providerBatchRequests,
|
|
109
|
+
providerBatches,
|
|
110
|
+
queries,
|
|
111
|
+
queryBasketVersions,
|
|
112
|
+
querySnapshots,
|
|
113
|
+
rawEventSamples,
|
|
114
|
+
readAllNegativeReviewMaxStars,
|
|
115
|
+
readNegativeReviewMaxStars,
|
|
116
|
+
reclassifyFabricatedDeadLinks,
|
|
117
|
+
recommendationBriefs,
|
|
118
|
+
recommendationExplanations,
|
|
119
|
+
recordSentimentCompletion,
|
|
120
|
+
relinkOrphanedSnapshotQueryIds,
|
|
121
|
+
researchRunQueries,
|
|
122
|
+
researchRuns,
|
|
123
|
+
runFills,
|
|
124
|
+
runs,
|
|
125
|
+
runtimeLogMetadata,
|
|
126
|
+
runtimeLogs,
|
|
127
|
+
schedules,
|
|
128
|
+
sentimentAttempts,
|
|
129
|
+
sentimentCompletionReceipts,
|
|
130
|
+
sentimentDefinitions,
|
|
131
|
+
sentimentDispatchState,
|
|
132
|
+
sentimentJobItems,
|
|
133
|
+
sentimentJobs,
|
|
134
|
+
sentimentResults,
|
|
135
|
+
sentimentSettings,
|
|
136
|
+
sentimentWorkItems,
|
|
137
|
+
simpleMeasurementDefinitions,
|
|
138
|
+
siteAuditPages,
|
|
139
|
+
siteAuditSnapshots,
|
|
140
|
+
siteCrawlAttempts,
|
|
141
|
+
siteCrawlEdges,
|
|
142
|
+
siteCrawlEventReceipts,
|
|
143
|
+
siteCrawlFindings,
|
|
144
|
+
siteCrawlGraphEdges,
|
|
145
|
+
siteCrawlGraphLayouts,
|
|
146
|
+
siteCrawlGraphNodes,
|
|
147
|
+
siteCrawlPages,
|
|
148
|
+
siteCrawlRunRequests,
|
|
149
|
+
siteCrawlSnapshots,
|
|
150
|
+
siteLivenessState,
|
|
151
|
+
trafficEventReceipts,
|
|
152
|
+
trafficSources,
|
|
153
|
+
usageCounters,
|
|
154
|
+
userSessions,
|
|
155
|
+
users,
|
|
156
|
+
writeNegativeReviewMaxStars
|
|
157
|
+
} from "./chunk-63ISSSGX.js";
|
|
158
|
+
import "./chunk-D6COIM3U.js";
|
|
159
|
+
import "./chunk-MLKGABMK.js";
|
|
160
|
+
export {
|
|
161
|
+
MIGRATION_VERSIONS,
|
|
162
|
+
OperationalLogStore,
|
|
163
|
+
SentimentIdempotencyConflict,
|
|
164
|
+
SentimentRepository,
|
|
165
|
+
adsActivationGrants,
|
|
166
|
+
adsAdGroups,
|
|
167
|
+
adsAds,
|
|
168
|
+
adsCampaigns,
|
|
169
|
+
adsConnections,
|
|
170
|
+
adsInsightsDaily,
|
|
171
|
+
adsOperationSteps,
|
|
172
|
+
adsOperations,
|
|
173
|
+
agentConversations,
|
|
174
|
+
agentMemory,
|
|
175
|
+
agentSessions,
|
|
176
|
+
agentToolEvents,
|
|
177
|
+
aiReferralEventsHourly,
|
|
178
|
+
aiUserFetchEventsHourly,
|
|
179
|
+
aiUserFetchVerificationManifestsHourly,
|
|
180
|
+
apiKeys,
|
|
181
|
+
auditLog,
|
|
182
|
+
backfillGaAiReferralTrafficClass,
|
|
183
|
+
backfillQuerySnapshotServedModel,
|
|
184
|
+
backfillSiteCrawlPageHealthState,
|
|
185
|
+
backfillSiteCrawlTemplateLinks,
|
|
186
|
+
backlinkDomains,
|
|
187
|
+
backlinkSummaries,
|
|
188
|
+
bingConnections,
|
|
189
|
+
bingCoverageSnapshots,
|
|
190
|
+
bingKeywordStats,
|
|
191
|
+
bingUrlInspections,
|
|
192
|
+
ccReleaseSyncs,
|
|
193
|
+
competitors,
|
|
194
|
+
contentTargetDismissals,
|
|
195
|
+
conversionTrackingContracts,
|
|
196
|
+
crawlerEventsHourly,
|
|
197
|
+
crawlerVerificationManifestsHourly,
|
|
198
|
+
createClient,
|
|
199
|
+
dashboardSessions,
|
|
200
|
+
dataRepairCompletions,
|
|
201
|
+
discoveryProbes,
|
|
202
|
+
discoverySessions,
|
|
203
|
+
doctorHealthState,
|
|
204
|
+
domainClassifications,
|
|
205
|
+
dropLegacyCredentialColumns,
|
|
206
|
+
dropSiteCrawlSelfLinks,
|
|
207
|
+
extractLegacyCredentials,
|
|
208
|
+
filterTrackedSnapshots,
|
|
209
|
+
gaAcquisitionDaily,
|
|
210
|
+
gaAiReferrals,
|
|
211
|
+
gaConnections,
|
|
212
|
+
gaDailyTotals,
|
|
213
|
+
gaLeadEventsDaily,
|
|
214
|
+
gaMeasurementSyncStates,
|
|
215
|
+
gaSearchLandingPages,
|
|
216
|
+
gaSearchLandingWindows,
|
|
217
|
+
gaSocialReferrals,
|
|
218
|
+
gaTrafficSnapshots,
|
|
219
|
+
gaTrafficSummaries,
|
|
220
|
+
gaTrafficWindowSummaries,
|
|
221
|
+
gbpAttributesSnapshots,
|
|
222
|
+
gbpDailyMetrics,
|
|
223
|
+
gbpKeywordImpressions,
|
|
224
|
+
gbpKeywordMonthly,
|
|
225
|
+
gbpLocations,
|
|
226
|
+
gbpLodgingSnapshots,
|
|
227
|
+
gbpPlaceActions,
|
|
228
|
+
gbpPlaceDetails,
|
|
229
|
+
gbpReviewRatings,
|
|
230
|
+
gbpReviewSettings,
|
|
231
|
+
gbpReviews,
|
|
232
|
+
googleAdsConnections,
|
|
233
|
+
googleAdsRawSnapshots,
|
|
234
|
+
googleConnections,
|
|
235
|
+
groupRunsByCreatedAt,
|
|
236
|
+
gscCoverageSnapshots,
|
|
237
|
+
gscDailyTotals,
|
|
238
|
+
gscDataWatermarks,
|
|
239
|
+
gscQueryDailyTotals,
|
|
240
|
+
gscSearchData,
|
|
241
|
+
gscUrlInspections,
|
|
242
|
+
gtmConnections,
|
|
243
|
+
gtmRawSnapshots,
|
|
244
|
+
healthSnapshots,
|
|
245
|
+
insightNotifyState,
|
|
246
|
+
insights,
|
|
247
|
+
llmUsageEvents,
|
|
248
|
+
marketCompetitorNames,
|
|
249
|
+
measurementDiscoveryConfigs,
|
|
250
|
+
measurementOperationReceipts,
|
|
251
|
+
measurementPlanDrafts,
|
|
252
|
+
measurementPlanVersions,
|
|
253
|
+
measurementPlans,
|
|
254
|
+
measurementQuerySetItems,
|
|
255
|
+
measurementQuerySets,
|
|
256
|
+
measurementQueryTemplates,
|
|
257
|
+
measurementSegments,
|
|
258
|
+
migrate,
|
|
259
|
+
migrationsTable,
|
|
260
|
+
notifications,
|
|
261
|
+
oauthAuthorizationCodes,
|
|
262
|
+
oauthClients,
|
|
263
|
+
oauthTokens,
|
|
264
|
+
parseJsonColumn,
|
|
265
|
+
pickGroupRepresentative,
|
|
266
|
+
projects,
|
|
267
|
+
providerBatchRequests,
|
|
268
|
+
providerBatches,
|
|
269
|
+
queries,
|
|
270
|
+
queryBasketVersions,
|
|
271
|
+
querySnapshots,
|
|
272
|
+
rawEventSamples,
|
|
273
|
+
readAllNegativeReviewMaxStars,
|
|
274
|
+
readNegativeReviewMaxStars,
|
|
275
|
+
reclassifyFabricatedDeadLinks,
|
|
276
|
+
recommendationBriefs,
|
|
277
|
+
recommendationExplanations,
|
|
278
|
+
recordSentimentCompletion,
|
|
279
|
+
relinkOrphanedSnapshotQueryIds,
|
|
280
|
+
researchRunQueries,
|
|
281
|
+
researchRuns,
|
|
282
|
+
runFills,
|
|
283
|
+
runs,
|
|
284
|
+
runtimeLogMetadata,
|
|
285
|
+
runtimeLogs,
|
|
286
|
+
schedules,
|
|
287
|
+
sentimentAttempts,
|
|
288
|
+
sentimentCompletionReceipts,
|
|
289
|
+
sentimentDefinitions,
|
|
290
|
+
sentimentDispatchState,
|
|
291
|
+
sentimentJobItems,
|
|
292
|
+
sentimentJobs,
|
|
293
|
+
sentimentResults,
|
|
294
|
+
sentimentSettings,
|
|
295
|
+
sentimentWorkItems,
|
|
296
|
+
simpleMeasurementDefinitions,
|
|
297
|
+
siteAuditPages,
|
|
298
|
+
siteAuditSnapshots,
|
|
299
|
+
siteCrawlAttempts,
|
|
300
|
+
siteCrawlEdges,
|
|
301
|
+
siteCrawlEventReceipts,
|
|
302
|
+
siteCrawlFindings,
|
|
303
|
+
siteCrawlGraphEdges,
|
|
304
|
+
siteCrawlGraphLayouts,
|
|
305
|
+
siteCrawlGraphNodes,
|
|
306
|
+
siteCrawlPages,
|
|
307
|
+
siteCrawlRunRequests,
|
|
308
|
+
siteCrawlSnapshots,
|
|
309
|
+
siteLivenessState,
|
|
310
|
+
trafficEventReceipts,
|
|
311
|
+
trafficSources,
|
|
312
|
+
usageCounters,
|
|
313
|
+
userSessions,
|
|
314
|
+
users,
|
|
315
|
+
writeNegativeReviewMaxStars
|
|
316
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAdmissionLines
|
|
3
|
+
} from "./chunk-KFT5LOP2.js";
|
|
4
|
+
import {
|
|
5
|
+
createApiClient
|
|
6
|
+
} from "./chunk-B5J675KK.js";
|
|
7
|
+
import "./chunk-UQ3MOZGC.js";
|
|
8
|
+
import {
|
|
9
|
+
emitJsonl
|
|
10
|
+
} from "./chunk-Z7IUAJOF.js";
|
|
11
|
+
import "./chunk-AOJU5LKX.js";
|
|
12
|
+
import {
|
|
13
|
+
isEndpointMissing,
|
|
14
|
+
isMachineFormat
|
|
15
|
+
} from "./chunk-HGMYEDAQ.js";
|
|
16
|
+
import "./chunk-D6COIM3U.js";
|
|
17
|
+
import "./chunk-MLKGABMK.js";
|
|
18
|
+
|
|
19
|
+
// src/commands/status.ts
|
|
20
|
+
function getClient() {
|
|
21
|
+
return createApiClient();
|
|
22
|
+
}
|
|
23
|
+
async function showStatus(project, format, options = {}) {
|
|
24
|
+
const client = getClient();
|
|
25
|
+
if (options.all) {
|
|
26
|
+
const status = await client.getStatus({ problems: options.problems });
|
|
27
|
+
if (format === "jsonl") {
|
|
28
|
+
emitJsonl(status.projects.flatMap((item) => item.integrations.length > 0 ? item.integrations.map((row) => ({ project: item.project, health: item.health, ...row })) : [{ project: item.project, state: item.state, health: item.health }]));
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (isMachineFormat(format)) {
|
|
32
|
+
console.log(JSON.stringify(status, null, 2));
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
for (const item of status.projects) {
|
|
36
|
+
console.log(`Status: ${item.displayName} (${item.project})`);
|
|
37
|
+
console.log(` State: ${item.state}`);
|
|
38
|
+
if (item.health) console.log(` Health: ${item.health.status} ${item.health.summary}`);
|
|
39
|
+
for (const row of item.integrations) {
|
|
40
|
+
console.log(` ${row.label}: ${row.state} (last success: ${row.lastSuccessAt ?? "never"}; streak: ${row.consecutiveFailures}; data through: ${row.dataThrough ?? "unknown"}; data age: ${row.dataAgeDays === null ? "unknown" : `${row.dataAgeDays} days`}; latest error: ${row.latestError ?? "none"})`);
|
|
41
|
+
}
|
|
42
|
+
console.log("");
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (!project) throw new Error("A project is required unless --all is used.");
|
|
47
|
+
const projectData = await client.getProject(project);
|
|
48
|
+
const latest = await getLatestRunSummary(client, project);
|
|
49
|
+
let storedStatus = null;
|
|
50
|
+
try {
|
|
51
|
+
storedStatus = await client.getStatus({ project, problems: options.problems });
|
|
52
|
+
} catch (error) {
|
|
53
|
+
if (!isEndpointMissing(error)) throw error;
|
|
54
|
+
}
|
|
55
|
+
if (isMachineFormat(format)) {
|
|
56
|
+
let runs = [];
|
|
57
|
+
try {
|
|
58
|
+
runs = await client.listRuns(project);
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
const result = {
|
|
62
|
+
project: projectData,
|
|
63
|
+
runs,
|
|
64
|
+
latestRun: latest.run,
|
|
65
|
+
totalRuns: latest.totalRuns,
|
|
66
|
+
// Absent from a server that predates it.
|
|
67
|
+
...latest.admission ? { admission: latest.admission } : {},
|
|
68
|
+
...latest.manualAdmission ? { manualAdmission: latest.manualAdmission } : {},
|
|
69
|
+
...storedStatus?.projects[0] ? { integrations: storedStatus.projects[0].integrations, health: storedStatus.projects[0].health } : {}
|
|
70
|
+
};
|
|
71
|
+
if (format === "jsonl") emitJsonl([result]);
|
|
72
|
+
else console.log(JSON.stringify(result, null, 2));
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
console.log(`Status: ${projectData.displayName ?? projectData.name} (${projectData.name})
|
|
76
|
+
`);
|
|
77
|
+
console.log(` Domain: ${projectData.canonicalDomain}`);
|
|
78
|
+
console.log(` Country: ${projectData.country}`);
|
|
79
|
+
console.log(` Language: ${projectData.language}`);
|
|
80
|
+
if (latest.run) {
|
|
81
|
+
console.log(`
|
|
82
|
+
Latest run:`);
|
|
83
|
+
console.log(` ID: ${latest.run.id}`);
|
|
84
|
+
console.log(` Status: ${latest.run.status}`);
|
|
85
|
+
console.log(` Created: ${latest.run.createdAt}`);
|
|
86
|
+
if (latest.run.finishedAt) {
|
|
87
|
+
console.log(` Finished: ${latest.run.finishedAt}`);
|
|
88
|
+
}
|
|
89
|
+
console.log(`
|
|
90
|
+
Total runs: ${latest.totalRuns}`);
|
|
91
|
+
} else {
|
|
92
|
+
const projectArg = /^[\w.-]+$/.test(project) ? project : `'${project.replaceAll("'", `'\\''`)}'`;
|
|
93
|
+
console.log(`
|
|
94
|
+
No runs yet. Capture Page Health with "canonry technical-aeo run ${projectArg}", or run an AI Visibility sweep after adding a provider.`);
|
|
95
|
+
}
|
|
96
|
+
const admission = runAdmissionLines(project, latest.admission, latest.manualAdmission);
|
|
97
|
+
if (admission.length > 0) console.log(`
|
|
98
|
+
${admission.map((line) => ` ${line}`).join("\n")}`);
|
|
99
|
+
const projectStatus = storedStatus?.projects[0];
|
|
100
|
+
if (projectStatus) {
|
|
101
|
+
console.log(`
|
|
102
|
+
Health: ${projectStatus.health?.status ?? "unknown"}`);
|
|
103
|
+
for (const row of projectStatus.integrations) console.log(` ${row.label}: ${row.state}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async function getLatestRunSummary(client, project) {
|
|
107
|
+
try {
|
|
108
|
+
return await client.getLatestRun(project);
|
|
109
|
+
} catch (err) {
|
|
110
|
+
if (!isEndpointMissing(err)) throw err;
|
|
111
|
+
const runs = await client.listRuns(project);
|
|
112
|
+
if (runs.length === 0) {
|
|
113
|
+
return { totalRuns: 0, run: null };
|
|
114
|
+
}
|
|
115
|
+
const latestRun = runs.reduce(
|
|
116
|
+
(current, candidate) => candidate.createdAt > current.createdAt ? candidate : current
|
|
117
|
+
);
|
|
118
|
+
return {
|
|
119
|
+
totalRuns: runs.length,
|
|
120
|
+
run: latestRun
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
showStatus
|
|
126
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CANONRY_DISCORD_URL,
|
|
3
|
+
CANONRY_ISSUES_URL,
|
|
4
|
+
isMachineFormat
|
|
5
|
+
} from "./chunk-HGMYEDAQ.js";
|
|
6
|
+
import "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// src/commands/support.ts
|
|
9
|
+
var FEEDBACK_COMMAND = 'canonry feedback "<what happened>"';
|
|
10
|
+
function supportCommand(format) {
|
|
11
|
+
if (isMachineFormat(format)) {
|
|
12
|
+
console.log(JSON.stringify({ discord: CANONRY_DISCORD_URL, issues: CANONRY_ISSUES_URL, feedbackCommand: FEEDBACK_COMMAND }, null, 2));
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
console.log([
|
|
16
|
+
"Get help with Canonry:",
|
|
17
|
+
` Discord: ${CANONRY_DISCORD_URL}`,
|
|
18
|
+
` Issues: ${CANONRY_ISSUES_URL}`,
|
|
19
|
+
` From here: ${FEEDBACK_COMMAND}`
|
|
20
|
+
].join("\n"));
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
supportCommand
|
|
24
|
+
};
|