@canonry/canonry 7.117.0 → 7.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agent-workspace/skills/aero/references/agent-operations.md +4 -1
- package/assets/agent-workspace/skills/aero/references/getting-started.md +8 -6
- package/assets/agent-workspace/skills/canonry/SKILL.md +4 -1
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +12 -1
- package/assets/agent-workspace/skills/canonry/references/getting-started.md +8 -6
- package/assets/agent-workspace/skills/canonry/references/indexing.md +6 -1
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +13 -0
- package/assets/assets/{AccessControls-4y1oQn1V.js → AccessControls-CCvvzEec.js} +2 -2
- package/assets/assets/{AgentSetupPage-Bulql2xU.js → AgentSetupPage-B-vXoIII.js} +4 -4
- package/assets/assets/{AuditHistoryPanel-LAJvBwz7.js → AuditHistoryPanel-ClexSdME.js} +1 -1
- package/assets/assets/{BacklinksPage-HoInwKA9.js → BacklinksPage-QMPUVhzl.js} +1 -1
- package/assets/assets/{ChartPrimitives-9e4Uk_ou.js → ChartPrimitives-Dd9VFWrj.js} +1 -1
- package/assets/assets/{HistoryPage-CjbhISjr.js → HistoryPage-CzQLFEZG.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-BirXf9xb.js → MeasurementPropertyPage-BTgy_3-R.js} +3 -3
- package/assets/assets/ProjectPage-DLgYLplH.js +15 -0
- package/assets/assets/{RunsPage-CTdVk0MW.js → RunsPage-CnWXQk8q.js} +1 -1
- package/assets/assets/ServerTrafficSection-DqVZznpe.js +41 -0
- package/assets/assets/{SettingsPage-CcUN3Xwn.js → SettingsPage-D2j93m5Q.js} +1 -1
- package/assets/assets/ToneBadge-Dym1_0XC.js +60 -0
- package/assets/assets/{TrafficPage-C_N7VjbI.js → TrafficPage-CzieybRn.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CbMzqWRU.js → TrafficSourceDetailPage-CtmGPXZc.js} +1 -1
- package/assets/assets/{account-context-Cp3gUKpA.js → account-context-ClThq0Zv.js} +1 -1
- package/assets/assets/agent-trust-copy-C0WnWM9W.js +1 -0
- package/assets/assets/{card-BdycYoUe.js → card-C-9Q2kJl.js} +1 -1
- package/assets/assets/{index-BWK1ufZ4.css → index-C9Op8ix9.css} +1 -1
- package/assets/assets/index-CzPXJ0Qs.js +43 -0
- package/assets/assets/{preload-helper-DhMqMP1i.js → preload-helper-DV4nEYWy.js} +1 -1
- package/assets/assets/{query-client-CKdvw14M.js → query-client-plQHRUyr.js} +1 -1
- package/assets/assets/react-query-Dz0xmEkM.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BifxdtsK.js → react-sigma_core.esm.min-B-tTeVwc.js} +1 -1
- package/assets/assets/{server-traffic-CzeAohmZ.js → server-traffic-BNdX8qZ4.js} +1 -1
- package/assets/assets/service-CN4HIDuw.js +1 -0
- package/assets/index.html +10 -10
- package/dist/{ads-WGHRYBI4.js → ads-GVOTYDS3.js} +4 -4
- package/dist/{agent-WCTEOSHB.js → agent-RFYMQYMN.js} +8 -8
- package/dist/{agent-ask-GQ2R654T.js → agent-ask-MZRUCCJO.js} +4 -4
- package/dist/{agent-conversations-5QQDBC77.js → agent-conversations-WBP5TI3X.js} +4 -4
- package/dist/{agent-journeys-TEBI4S2U.js → agent-journeys-6CR77XCZ.js} +4 -4
- package/dist/{agent-memory-5E37W5RB.js → agent-memory-PH3Y7OKJ.js} +4 -4
- package/dist/{agent-providers-TPEFZYEI.js → agent-providers-3CBKNXSW.js} +4 -4
- package/dist/{agent-transcript-BTWB7B44.js → agent-transcript-BN3DCK33.js} +4 -4
- package/dist/{analytics-T6KHZBRJ.js → analytics-43UR5IMY.js} +4 -4
- package/dist/{apply-FV2EIDYF.js → apply-POV25FNG.js} +4 -4
- package/dist/{backfill-RUGFDQ4K.js → backfill-CWC3W72X.js} +11 -11
- package/dist/{backlinks-HFP4VW6Y.js → backlinks-W3SLOIHP.js} +4 -4
- package/dist/{bing-MRP7HHFP.js → bing-HGKOR5GV.js} +11 -9
- package/dist/{bootstrap-HYLV7ZDL.js → bootstrap-XAKQKZCC.js} +11 -11
- package/dist/{cdp-724G6FYJ.js → cdp-WAB5BPGB.js} +8 -8
- package/dist/{chunk-JWZ5AG27.js → chunk-35DM6ZZ2.js} +2 -2
- package/dist/{chunk-364F7UHP.js → chunk-377K7XSP.js} +126 -8
- package/dist/{chunk-DAH257DW.js → chunk-3C6A63IG.js} +15 -5
- package/dist/{chunk-FSWYJRKJ.js → chunk-4A2JURHR.js} +2 -2
- package/dist/{chunk-QHVRNO5T.js → chunk-6AJ4Y3QL.js} +2 -2
- package/dist/{chunk-LMN6GFYR.js → chunk-6ORW2OUQ.js} +1 -1
- package/dist/{chunk-5SYONZTG.js → chunk-6UNZDUB6.js} +1 -1
- package/dist/{chunk-HQATGNXD.js → chunk-7ACE6HGU.js} +3 -3
- package/dist/{chunk-NCTXENRW.js → chunk-7JFPGEXQ.js} +34 -7
- package/dist/{chunk-QFRX3G36.js → chunk-CDPZTIK2.js} +4 -4
- package/dist/{chunk-C6SNVKJE.js → chunk-G2JP3KNY.js} +4 -4
- package/dist/{chunk-O5LPKFE3.js → chunk-G3HBHMML.js} +1 -1
- package/dist/{chunk-2DDMEFQV.js → chunk-GSQQ6VVV.js} +1 -1
- package/dist/{chunk-CLL42E6C.js → chunk-GY7YLVMD.js} +4 -4
- package/dist/{chunk-EXUNFJZM.js → chunk-HIPSMSH3.js} +386 -379
- package/dist/{chunk-MT24J6HQ.js → chunk-HQ6GLLVU.js} +2 -2
- package/dist/{chunk-HJGEUXEE.js → chunk-HZTKUGQ4.js} +3 -3
- package/dist/{chunk-UVBBDQY7.js → chunk-ILDAN5TW.js} +1 -1
- package/dist/{chunk-WMGA5B6O.js → chunk-IOOJ7DQ6.js} +1 -1
- package/dist/{chunk-7SPPW7RL.js → chunk-LBNJVTGN.js} +10 -7
- package/dist/{chunk-7YI5TKLS.js → chunk-LSNAMUIJ.js} +2 -2
- package/dist/{chunk-KCNLELKC.js → chunk-NJWBSLRW.js} +8 -8
- package/dist/{chunk-V24FJMBV.js → chunk-NZZSWCNM.js} +1 -1
- package/dist/{chunk-GWV5FDSB.js → chunk-O67HAPZL.js} +7 -7
- package/dist/{chunk-KHHI2RES.js → chunk-OKPD7X4P.js} +85 -98
- package/dist/{chunk-4EZXHPWO.js → chunk-Q7LU7GTH.js} +1 -1
- package/dist/{chunk-PDEA6DFG.js → chunk-QOFWKOKD.js} +4 -4
- package/dist/{chunk-NNHI6SOT.js → chunk-QT475Y6O.js} +4 -4
- package/dist/{chunk-CFFQ7N7H.js → chunk-RLDRNIB4.js} +5 -5
- package/dist/{chunk-3ZEMWSBQ.js → chunk-SBLC7FYP.js} +2 -2
- package/dist/{chunk-IYUYV4DV.js → chunk-SG7E3WTC.js} +5 -5
- package/dist/{chunk-R6H6C6XL.js → chunk-SZSZSOXP.js} +2 -2
- package/dist/{chunk-7TZGXK32.js → chunk-U3TO2MFS.js} +4 -4
- package/dist/{chunk-Z27VH6RO.js → chunk-UKFXP4R5.js} +1301 -1140
- package/dist/{chunk-RIWCGXFR.js → chunk-V2VWIGVT.js} +1 -1
- package/dist/{chunk-7VACCYGL.js → chunk-VU3TF5CD.js} +1 -1
- package/dist/{chunk-AY2CWNOQ.js → chunk-WKYQRF5A.js} +3 -3
- package/dist/{chunk-XKVZ7MMK.js → chunk-XDOP2ANX.js} +7876 -7816
- package/dist/{citations-KC7Y7N5P.js → citations-IMPVSN25.js} +5 -5
- package/dist/{cli-catalog-O4M5O6QC.js → cli-catalog-OFMWOBCF.js} +4 -4
- package/dist/cli-commands-HZNVXGGC.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-3QTT47SE.js → competitor-2NFTABZM.js} +4 -4
- package/dist/{content-NBJUBXAK.js → content-HYV3JOIS.js} +4 -4
- package/dist/{dashboard-4354AUW2.js → dashboard-DCYRYQ6M.js} +7 -7
- package/dist/{demo-BCYZJNE7.js → demo-X44XG3CF.js} +3 -3
- package/dist/{demo-server-4R3LP7S4.js → demo-server-SPMBNVZA.js} +13 -13
- package/dist/{discover-DPHOON57.js → discover-VIQMARSR.js} +5 -5
- package/dist/{discover-eval-PXPAIASG.js → discover-eval-M5RRXWMX.js} +4 -4
- package/dist/{doctor-UDBBA6AL.js → doctor-HATXMESK.js} +4 -4
- package/dist/{evidence-I3XISHLS.js → evidence-C3IBS7TO.js} +4 -4
- package/dist/{export-cmd-3L67R5HU.js → export-cmd-F674KINC.js} +4 -4
- package/dist/{ga-KQ4ECR2W.js → ga-AWBTXHSN.js} +4 -4
- package/dist/{gbp-F6MDUS5L.js → gbp-NAZYXN4S.js} +4 -4
- package/dist/{google-RH4SIEJU.js → google-IYDAWLIV.js} +5 -5
- package/dist/{google-marketing-UPSMKGNA.js → google-marketing-NHV7BCQM.js} +2 -2
- package/dist/{health-cmd-25O4GVVB.js → health-cmd-ASZUPWDG.js} +5 -5
- package/dist/{history-XLKSQRKU.js → history-TFLEYUHW.js} +4 -4
- package/dist/index.d.ts +107 -104
- package/dist/index.js +27 -27
- package/dist/{init-TKSOQQLY.js → init-ZMIYUSPN.js} +13 -13
- package/dist/{insights-CHKPXVYD.js → insights-VMU43BJM.js} +4 -4
- package/dist/intelligence-service-TGXLLDIW.js +15 -0
- package/dist/{journeys-TXW3D4BK.js → journeys-DSPUDWGM.js} +4 -4
- package/dist/{keys-KOZJQ6RL.js → keys-K56VXNJX.js} +4 -4
- package/dist/{keyword-JFXAWLJ3.js → keyword-FCMS45PF.js} +4 -4
- package/dist/{logs-LVLJZK4Y.js → logs-75HP7UD3.js} +4 -4
- package/dist/{mcp-6DEVFKO5.js → mcp-D7P73XVO.js} +5 -5
- package/dist/mcp.js +11 -11
- package/dist/{measurement-plan-YKHZK3Y5.js → measurement-plan-AX6G3RWU.js} +6 -6
- package/dist/{notify-45ZU2G36.js → notify-QUOFVHKS.js} +4 -4
- package/dist/{organic-evidence-VUBMMPWH.js → organic-evidence-PPHL7QGS.js} +4 -4
- package/dist/{overview-GBS5NHCJ.js → overview-C6SSTCC6.js} +6 -6
- package/dist/{project-J2YNWGEX.js → project-MMQ2H6TH.js} +4 -4
- package/dist/{project-setup-EC5HNSZF.js → project-setup-6DGYQAG2.js} +4 -4
- package/dist/{query-ACWZGWJW.js → query-EJGNRC2F.js} +4 -4
- package/dist/{research-RNQ3RKYQ.js → research-X43RAY3W.js} +4 -4
- package/dist/{results-export-LLYRKV4I.js → results-export-FOQXK6NA.js} +4 -4
- package/dist/{run-YQMLKJ5Q.js → run-D4CFXIFR.js} +6 -6
- package/dist/{schedule-JNFVQ64W.js → schedule-UFOJOPKA.js} +4 -4
- package/dist/{search-3YMN7RGP.js → search-6C3ZPK24.js} +4 -4
- package/dist/{serve-H3FSLDBB.js → serve-5WZQBOXG.js} +28 -28
- package/dist/{session-BUG4PC4Q.js → session-3YQ2HXJW.js} +15 -15
- package/dist/{settings-2MF34VZU.js → settings-6AGLHMPI.js} +4 -4
- package/dist/{sitemaps-W62QTGEY.js → sitemaps-FIN5CVTH.js} +4 -4
- package/dist/{skills-LG2OK3RV.js → skills-3ZD3N6S7.js} +3 -3
- package/dist/{snapshot-26HVOJOZ.js → snapshot-EFW3B6TM.js} +4 -4
- package/dist/{src-HJXB6FE7.js → src-QSFAXHBF.js} +2 -2
- package/dist/{status-6DARHG6B.js → status-CLWEOZP4.js} +6 -6
- package/dist/{support-CUPMHQCX.js → support-P5H555LC.js} +2 -2
- package/dist/{technical-aeo-F577YYRG.js → technical-aeo-IVNC26PJ.js} +4 -4
- package/dist/{telemetry-LQC6MZQY.js → telemetry-ZUFUNFST.js} +5 -5
- package/dist/{tools-X3QOUX35.js → tools-QYZRDVAH.js} +12 -12
- package/dist/{traffic-AUNXJSDG.js → traffic-CN667DLE.js} +20 -26
- package/dist/{trends-3ERZYH3R.js → trends-2XLTO3EN.js} +4 -4
- package/dist/{users-GXDHZJOY.js → users-NXZSJ7CM.js} +4 -4
- package/dist/{visibility-stats-YQQJOAF3.js → visibility-stats-DTJD4TEN.js} +5 -5
- package/dist/{wordpress-IHRTXC6Z.js → wordpress-LE6UNQCX.js} +4 -4
- package/package.json +1 -1
- package/assets/assets/ProjectPage-YYOXIYdF.js +0 -15
- package/assets/assets/ServerTrafficSection-XNmPLx9Y.js +0 -41
- package/assets/assets/ToneBadge-z_iW7szG.js +0 -60
- package/assets/assets/agent-trust-copy-sJKxj75E.js +0 -1
- package/assets/assets/index-C1-XnmeI.js +0 -43
- package/assets/assets/react-query-BlKsyRU6.js +0 -1
- package/assets/assets/service-B_C7q30t.js +0 -1
- package/dist/cli-commands-DLA3O4E6.js +0 -18
- package/dist/intelligence-service-HPGRQXUW.js +0 -15
|
@@ -28,7 +28,7 @@ prerequisite or a permission mechanism.
|
|
|
28
28
|
## Connect and choose a route
|
|
29
29
|
|
|
30
30
|
Read the initialization guidance, then call `canonry_help` with an `intent`:
|
|
31
|
-
`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`,
|
|
31
|
+
`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`, `connections`,
|
|
32
32
|
`seo`, `reports`, `start`, or a short task
|
|
33
33
|
description. Use `start` when the user is new or unsure what to ask. Select an accessible project with `canonry_projects_list` before
|
|
34
34
|
using its exact name in project tools. Inspect each listed tool's input schema;
|
|
@@ -166,6 +166,9 @@ Use the saved session read for stored-only work. Promoting candidates needs its
|
|
|
166
166
|
own approval.
|
|
167
167
|
|
|
168
168
|
**Integrations:** inspect stored connection state and snapshot freshness first.
|
|
169
|
+
For project setup, call `canonry_help({intent:"connect"})`. Its actions and
|
|
170
|
+
toolkit suggestions reflect the current MCP connection. The getting-started
|
|
171
|
+
playbook covers browser consent, saved credentials and resource selection.
|
|
169
172
|
Provider configuration evidence does not prove a browser event fired or a
|
|
170
173
|
conversion was recorded. Connection, resource selection, refresh/sync, and live
|
|
171
174
|
reads are separate actions. Credentials belong in the operator's secure setup
|
|
@@ -92,16 +92,18 @@ change.
|
|
|
92
92
|
|
|
93
93
|
## 2. Connect evidence sources
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
Search Console
|
|
95
|
+
Start with an AI engine key and Search Console. External MCP clients use the
|
|
96
|
+
tools below. For Search Console, GA4 and Bing, built-in Aero directs the operator
|
|
97
|
+
to the project dashboard.
|
|
97
98
|
|
|
98
99
|
| Source | What it adds | Who connects it |
|
|
99
100
|
|---|---|---|
|
|
100
101
|
| AI engine keys | The AI visibility check itself (`openai` measures ChatGPT) | Operator: dashboard Settings, or `cnry settings provider <name>` in their terminal |
|
|
101
|
-
| Google Search Console |
|
|
102
|
-
| GA4 | Visits from search and AI assistants |
|
|
103
|
-
| Bing Webmaster Tools | Bing's index and searches |
|
|
104
|
-
|
|
|
102
|
+
| Google Search Console | Searches, clicks and indexing | Give the operator the consent link from `canonry_gsc_connect`. List sites with `canonry_gsc_properties` and select the approved site with `canonry_gsc_set_property`. |
|
|
103
|
+
| GA4 | Visits from search and AI assistants | Use `canonry_ga_oauth_start` when Google consent is needed. After sign-in, use `canonry_ga_properties` and `canonry_ga_connect` to select the approved property. |
|
|
104
|
+
| Bing Webmaster Tools | Bing's index and searches | Use `canonry_bing_connect` with the key saved in Canonry Settings. Choose the approved site from the result with `canonry_bing_set_site`. The operator enters a missing key in the dashboard. |
|
|
105
|
+
| Cloud Run logs | AI crawlers and AI referral visits | Use `canonry_traffic_connect_cloud_run` with the saved credential for the project's GCP project, service and region. For first-time credential entry, the operator uses **Traffic → Connect a source** in the dashboard. |
|
|
106
|
+
| Other server-side traffic | AI crawlers and AI referral visits from logs | Use the setup instructions for the site's log source in the server-side traffic reference. |
|
|
105
107
|
| Google Business Profile | Local profile, reviews, calls | Operator: Google sign-in, then location choice |
|
|
106
108
|
| WordPress | Publishing pages | Operator: `cnry wordpress connect` |
|
|
107
109
|
|
|
@@ -14,7 +14,7 @@ prerequisite or a permission mechanism.
|
|
|
14
14
|
## Connect and choose a route
|
|
15
15
|
|
|
16
16
|
Read the initialization guidance, then call `canonry_help` with an `intent`:
|
|
17
|
-
`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`,
|
|
17
|
+
`status`, `diagnose`, `operations`, `prospecting`, `measurement`, `integrations`, `connections`,
|
|
18
18
|
`seo`, `reports`, `start`, or a short task
|
|
19
19
|
description. Use `start` when the user is new or unsure what to ask. Select an accessible project with `canonry_projects_list` before
|
|
20
20
|
using its exact name in project tools. Inspect each listed tool's input schema;
|
|
@@ -152,6 +152,9 @@ Use the saved session read for stored-only work. Promoting candidates needs its
|
|
|
152
152
|
own approval.
|
|
153
153
|
|
|
154
154
|
**Integrations:** inspect stored connection state and snapshot freshness first.
|
|
155
|
+
For project setup, call `canonry_help({intent:"connect"})`. Its actions and
|
|
156
|
+
toolkit suggestions reflect the current MCP connection. The getting-started
|
|
157
|
+
playbook covers browser consent, saved credentials and resource selection.
|
|
155
158
|
Provider configuration evidence does not prove a browser event fired or a
|
|
156
159
|
conversion was recorded. Connection, resource selection, refresh/sync, and live
|
|
157
160
|
reads are separate actions. Credentials belong in the operator's secure setup
|
|
@@ -1092,7 +1092,8 @@ After probing, the configured classifier labels recurring cited domains. Gemini
|
|
|
1092
1092
|
## Bing Webmaster Tools
|
|
1093
1093
|
|
|
1094
1094
|
```bash
|
|
1095
|
-
cnry bing connect <project> --
|
|
1095
|
+
cnry bing connect <project> --use-saved-key # administrator, using the Bing key in Canonry Settings
|
|
1096
|
+
cnry bing connect <project> --api-key <key> # supply a Bing Webmaster Tools key for this project
|
|
1096
1097
|
cnry bing disconnect <project> # disconnect
|
|
1097
1098
|
cnry bing status <project> # connection status
|
|
1098
1099
|
cnry bing sites <project> # list verified sites
|
|
@@ -1165,6 +1166,16 @@ cnry wordpress onboard <project> --url <url> --user <user> # full onboarding wo
|
|
|
1165
1166
|
|
|
1166
1167
|
## Server-Side Traffic
|
|
1167
1168
|
|
|
1169
|
+
To collect new Cloud Run logs as they arrive, connect with:
|
|
1170
|
+
|
|
1171
|
+
```bash
|
|
1172
|
+
cnry traffic connect cloud-run <project> --gcp-project <id> --start-from-now
|
|
1173
|
+
```
|
|
1174
|
+
|
|
1175
|
+
Include `--service` and `--location` to narrow the target. The server can
|
|
1176
|
+
reuse a service account saved for that exact target. On first setup, pass
|
|
1177
|
+
`--service-account-key <path>` with the private JSON file.
|
|
1178
|
+
|
|
1168
1179
|
Cloudflare supports direct push and Queue pull. Run Cloudflare connect only from
|
|
1169
1180
|
the local host that owns the Canonry configuration and Wrangler profile. This
|
|
1170
1181
|
operation is not available through MCP because it uses local credentials.
|
|
@@ -94,16 +94,18 @@ change.
|
|
|
94
94
|
|
|
95
95
|
## 2. Connect evidence sources
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
Search Console
|
|
97
|
+
Start with an AI engine key and Search Console. External MCP clients use the
|
|
98
|
+
tools below. For Search Console, GA4 and Bing, built-in Aero directs the operator
|
|
99
|
+
to the project dashboard.
|
|
99
100
|
|
|
100
101
|
| Source | What it adds | Who connects it |
|
|
101
102
|
|---|---|---|
|
|
102
103
|
| AI engine keys | The AI visibility check itself (`openai` measures ChatGPT) | Operator: dashboard Settings, or `cnry settings provider <name>` in their terminal |
|
|
103
|
-
| Google Search Console |
|
|
104
|
-
| GA4 | Visits from search and AI assistants |
|
|
105
|
-
| Bing Webmaster Tools | Bing's index and searches |
|
|
106
|
-
|
|
|
104
|
+
| Google Search Console | Searches, clicks and indexing | Give the operator the consent link from `canonry_gsc_connect`. List sites with `canonry_gsc_properties` and select the approved site with `canonry_gsc_set_property`. |
|
|
105
|
+
| GA4 | Visits from search and AI assistants | Use `canonry_ga_oauth_start` when Google consent is needed. After sign-in, use `canonry_ga_properties` and `canonry_ga_connect` to select the approved property. |
|
|
106
|
+
| Bing Webmaster Tools | Bing's index and searches | Use `canonry_bing_connect` with the key saved in Canonry Settings. Choose the approved site from the result with `canonry_bing_set_site`. The operator enters a missing key in the dashboard. |
|
|
107
|
+
| Cloud Run logs | AI crawlers and AI referral visits | Use `canonry_traffic_connect_cloud_run` with the saved credential for the project's GCP project, service and region. For first-time credential entry, the operator uses **Traffic → Connect a source** in the dashboard. |
|
|
108
|
+
| Other server-side traffic | AI crawlers and AI referral visits from logs | Use the setup instructions for the site's log source in the server-side traffic reference. |
|
|
107
109
|
| Google Business Profile | Local profile, reviews, calls | Operator: Google sign-in, then location choice |
|
|
108
110
|
| WordPress | Publishing pages | Operator: `cnry wordpress connect` |
|
|
109
111
|
|
|
@@ -83,8 +83,13 @@ The bulk `--all-unindexed` flag uses stored inspection results on the project do
|
|
|
83
83
|
## Bing Webmaster Tools
|
|
84
84
|
|
|
85
85
|
### One-time setup
|
|
86
|
+
|
|
87
|
+
An administrator can use `canonry_bing_connect` with the Bing key saved in
|
|
88
|
+
Canonry Settings, then `canonry_bing_set_site` with the approved site URL.
|
|
89
|
+
From the CLI, run these commands.
|
|
90
|
+
|
|
86
91
|
```bash
|
|
87
|
-
cnry bing connect <project> --
|
|
92
|
+
cnry bing connect <project> --use-saved-key
|
|
88
93
|
cnry bing set-site <project> https://example.com/
|
|
89
94
|
```
|
|
90
95
|
|
|
@@ -93,6 +93,18 @@ and does not use `traffic sync`.
|
|
|
93
93
|
|
|
94
94
|
## Connecting a Cloud Run source
|
|
95
95
|
|
|
96
|
+
For an approved MCP connection, call `canonry_traffic_connect_cloud_run`
|
|
97
|
+
with the Canonry project and `request.gcpProjectId`. Include the approved
|
|
98
|
+
`serviceName` and `location`. The server can use a service account saved
|
|
99
|
+
for that exact target. If it returns `cloud-run-credential-required`,
|
|
100
|
+
give the operator the returned `dashboardUrl`. It opens the requested target
|
|
101
|
+
for private key upload. On older instances, open the returned `dashboardPath`
|
|
102
|
+
at the Canonry dashboard address. Keep the key out of chat.
|
|
103
|
+
New keyless MCP connections start collecting at connection time. Set
|
|
104
|
+
`request.startFromNow` to false only for an approved historical import.
|
|
105
|
+
The CLI option `--start-from-now` starts a new source at connection time.
|
|
106
|
+
Read `canonry_traffic_sources_list` to verify the source.
|
|
107
|
+
|
|
96
108
|
```bash
|
|
97
109
|
# 1. Create a service account in the Cloud project that hosts the Cloud Run
|
|
98
110
|
# service. Grant it `roles/logging.viewer`. Download the JSON key.
|
|
@@ -110,6 +122,7 @@ cnry traffic connect cloud-run <project> \
|
|
|
110
122
|
--location us-east1
|
|
111
123
|
```
|
|
112
124
|
|
|
125
|
+
Omit `--service-account-key` to use the saved key for the same target.
|
|
113
126
|
Credentials are stored in `~/.canonry/config.yaml` (not the DB). The
|
|
114
127
|
canonical key lives only on the host that runs `cnry serve`. The
|
|
115
128
|
sync flow does NOT echo the private key back in any response.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{
|
|
2
|
-
`)}function C(e,a){let o=
|
|
1
|
+
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{Fc as t,Ps as n,al as r,cl as i,r as a}from"./ToneBadge-Dym1_0XC.js";import{D as o,E as s,h as c}from"./ChartPrimitives-Dd9VFWrj.js";import{n as l,r as u}from"./account-context-ClThq0Zv.js";import{a as d,i as ee,n as te,r as f,t as ne}from"./card-C-9Q2kJl.js";var p=`__cited__`,m=`__mentioned__`,h=`__mentionShare__`;function g(e){let t=e,{dataStartDate:n,dataEndDate:r}=t;return typeof n!=`string`||typeof r!=`string`?null:{start:c(n),end:c(r),sweepCount:t.sweepCount??1}}function _(e,t=new Date){return o(e,t)}function v(e,t=new Date){let n=g(e);if(!n)return null;let r=_(n.start,t),i=_(n.end,t);return r===i?r:`${r} to ${i}`}function y(e,t=new Date){let n=g(e),r=v(e,t);return!n||!r?`Check date unavailable`:`${r} · ${n.sweepCount} ${n.sweepCount===1?`check`:`checks`}`}function b(e){let t=g(e);return t?s(t.start):``}function x(e){return e.trim().toLowerCase()}function S(e,t={}){return e.map(e=>{let n=e.trim().toLowerCase(),r=(t[e]??[]).map(e=>e.trim().toLowerCase()).filter(Boolean).sort();return n&&r.length>0?`${n}=${r.join(`|`)}`:n}).filter(Boolean).sort().join(`
|
|
2
|
+
`)}function C(e,a){let o=i(e);if(o){let n=a?.find(e=>e.name===`openrouter`)?.knownModels??a?.find(t=>t.name===e)?.knownModels;return`${t(o,n)} via OpenRouter`}let s=a?.find(t=>t.name===e)?.displayName?.trim();return n(e,a)??(s||r(e))}function w(e){return Math.round(e*1e3)/10}function T(e){return e===null?null:w(e)}function E(e){return e.byProvider??{}}function re(e,t,n){let r=e.buckets.length>0,i=e.buckets.length===1;if(n===`overall`){let n=t===`cited`?p:m,a=t===`cited`?`citationRate`:`mentionRate`;return{rows:e.buckets.map(e=>({date:e.startDate,[n]:T(e[a])})),series:[n],hasData:r,singleBucket:i}}let a=t===`mentioned`?`mentionRate`:`citationRate`,o=[...new Set(e.buckets.flatMap(e=>Object.keys(E(e))))].sort();return{rows:e.buckets.map(e=>{let t={date:e.startDate},n=E(e);for(let e of o){let r=n[e];t[e]=r?T(r[a]):null}return t}),series:o,hasData:r,singleBucket:i}}function ie(e){let t=e;return Object.hasOwn(t,`modelEvidenceByProvider`)?t.modelEvidenceByProvider??{}:null}function ae(e){let t=e;return Object.hasOwn(t,`modelAttribution`)?t.modelAttribution??{}:null}function oe(e){return e.servedModelAttribution??{}}function D(e){return e.modelServiceMismatch??{}}function O(e){return e.modelPointerChanges??{}}function k(e){return e.length<=1?e[0]??``:`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`}function A(e){switch(e.status){case`known`:return e.model.includes(`/`)?t(e.model):e.model;case`unknown`:return`Unknown model`;case`mixed`:return e.models.length===0?`Unknown model`:`${e.models.map(e=>e.includes(`/`)?t(e):e).join(`, `)}${e.includesUnknown?` and an unknown model`:``}`}}function j(e){return k([...e.models.map(e=>e.includes(`/`)?t(e):e),...e.includesUnknown?[`an unknown model`]:[]])}function M(e){let t=new Map;for(let[n,r]of Object.entries(e))for(let e of r.events){let r=t.get(e.bucketStartDate)??[];r.push({provider:n,event:e}),t.set(e.bucketStartDate,r)}return[...t.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({bucketStartDate:e,events:[...t].sort((e,t)=>e.provider.localeCompare(t.provider)||e.event.observedAt.localeCompare(t.event.observedAt))}))}function N(e){let t={},n=[];for(let[r,i]of Object.entries(e)){let e=i.events.filter(e=>!e.fromPreWindowAnchor);for(let e of i.events)e.fromPreWindowAnchor&&n.push({provider:r,event:e});e.length>0&&(t[r]={...i,events:e})}return{buckets:M(t),beforeWindow:n.sort((e,t)=>e.event.observedAt.localeCompare(t.event.observedAt)||e.provider.localeCompare(t.provider))}}function P(e){let t=[];for(let[n,r]of Object.entries(e)){let e=r.eventTotal??r.events.length;e>r.events.length&&t.push({provider:n,shown:r.events.length,total:e})}return t.sort((e,t)=>e.provider.localeCompare(t.provider))}function F(e){let t=e.buckets.map(e=>{let t=e.mentionShare;return{date:e.startDate,[h]:t?.rate==null?null:w(t.rate)}}),n=t.map(e=>e[h]).filter(e=>typeof e==`number`&&Number.isFinite(e));return{rows:t,series:[h],hasData:n.length>0,singleBucket:n.length===1}}function I(e,t,n){return t===`mentionShare`?F(e):re(e,t,n)}function L(e,t){if(t===`mentionShare`)return e.buckets.flatMap(e=>{let t=e.mentionShare?.rate;return typeof t==`number`&&Number.isFinite(t)?[t]:[]});let n=t===`cited`?`citationRate`:`mentionRate`;return e.buckets.flatMap(e=>{let t=e[n];return t===null?[]:[t]})}function R(e){return e.buckets.some(e=>e.citationRate!==null)}function z(e,t){let n=e.buckets.flatMap(e=>{let n=E(e)[t];return n?[n]:[]});return n.length>0&&n.every(e=>e.citationRate===null)}function B(e,t){let n=e.windowChange;if(!n)return null;switch(t){case`cited`:return n.citationRate;case`mentioned`:return n.mentionRate;case`mentionShare`:return n.mentionShare}}function V(e,t,n){let r=n===`mentioned`?`mentionRate`:`citationRate`;for(let n=e.buckets.length-1;n>=0;n--){let i=E(e.buckets[n])[t]?.[r];if(i!=null)return i}return null}function H(e){return Date.parse(e)}function U(e,t){let n=g(e);if(!n)return!1;let r=H(t);return r>=H(n.start)&&r<=H(n.end)}function W(e){return e.basketChanges??[]}function G(e,t){return t.filter(t=>U(e,t.at)).sort((e,t)=>H(e.at)-H(t.at))}function K(e,t){return x(e)===`perplexity`&&t.status===`known`&&!t.model.includes(`/`)}function se(e){return Object.entries(e).filter(([e,t])=>!K(e,t.configured)).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({provider:e,mismatch:t}))}function ce(e){return[...W(e)].sort((e,t)=>H(t.at)-H(e.at)).map(e=>({at:c(e.at),added:e.added,removed:e.removed}))}function le(e,t){let n=[...e.events].sort((e,t)=>H(e.observedAt)-H(t.observedAt)),r=n[0]?.from??e.latestObservation.state;for(let e of n)H(e.observedAt)<=H(t)&&(r=e.to);return r}function q(e,t,n,r){return{provider:e,at:c(t.observedAt),onOrBefore:t.fromPreWindowAnchor===!0,anchorAt:t.anchorObservedAt?c(t.anchorObservedAt):null,from:t.from,to:t.to,served:n,reroute:r}}function ue(e,t){let n=[];for(let[r,i]of Object.entries(e)){let e=t[r]?.events??[],a=new Set(i.events.map(e=>e.observedAt));for(let t of i.events){let i=K(r,t.to)?e.find(e=>e.observedAt===t.observedAt):void 0;n.push(q(r,t,i?{from:i.from,to:i.to}:null,!1))}for(let t of e)a.has(t.observedAt)||K(r,le(i,t.observedAt))&&n.push(q(r,t,null,!0))}return n.sort((e,t)=>H(t.at)-H(e.at)||e.provider.localeCompare(t.provider))}function de({latest:e,queryChanges:t,modelRows:n,now:r=new Date}){let i=[...t.map(e=>e.at),...n.map(e=>e.at)];if(i.length===0)return null;let a=t=>e!==void 0&&U(e,t),o=t.filter(e=>a(e.at)),s=o.reduce((e,t)=>e+t.added.length,0),c=o.reduce((e,t)=>e+t.removed.length,0),l=n.filter(e=>a(e.at)).length,u=e?v(e,r):null;if(u===null||s+c+l===0)return`No changes since ${_(i.reduce((e,t)=>H(t)>H(e)?t:e),r)}`;let d=[u];return s>0&&d.push(`${s} ${s===1?`query`:`queries`} added`),c>0&&d.push(`${c} ${c===1?`query`:`queries`} removed`),l>0&&d.push(`${l} new ${l===1?`model`:`models`}`),d.join(` · `)}function fe(e,t,n,r=null){let i=H(e);if(!Number.isFinite(i))return null;let a=t.filter(e=>H(e)<i);if(a.length>0)return c(a.reduce((e,t)=>H(t)>H(e)?t:e));let o=n.map(e=>g(e)).filter(e=>e!==null).sort((e,t)=>H(e.start)-H(t.start)),s=o.findIndex(e=>H(e.start)<=i&&i<=H(e.end));if(s===-1)return null;let l=o[s];return H(l.start)===i?s>0?o[s-1].end:r&&H(r)<i?c(r):null:l.sweepCount===2&&H(l.end)===i?l.start:null}function pe(e){let t=new Map,n=(e,n)=>{let r=t.get(e);r?r.push(n):t.set(e,[n])};for(let t of[...e].sort((e,t)=>e.revision-t.revision)){let e=H(t.at);for(let r of t.removed)n(r,{at:e,member:!1});for(let r of t.added)n(r,{at:e,member:!0})}return new Map([...t].filter(([,e])=>e.at(-1).member))}function J(e,t){let n=!e[0].member;for(let r of e)r.at<=t&&(n=r.member);return n}function me(e,t,n){return e.some(e=>e.at>t&&e.at<=n)}function Y(e,t){let n=H(t.start),r=H(t.end);return t.sweepCount>2?me(e,n,r):J(e,n)!==J(e,r)}function X(e,t,n,r){let i=H(t),a=H(n),o={added:[],removed:[],removedAndAddedBack:[],addedAndRemovedAgain:[]},s=new Set;for(let[t,n]of pe(e)){if(!r(n))continue;s.add(t);let e=J(n,i),c=J(n,a);e===c?(e?o.removedAndAddedBack:o.addedAndRemovedAgain).push(t):(c?o.added:o.removed).push(t)}if(s.size===0)return null;let c=e=>[...e.added,...e.removed].some(e=>s.has(e)),l=e.filter(e=>H(e.at)>i&&H(e.at)<=a&&c(e)).sort((e,t)=>H(e.at)-H(t.at));return{changes:l,keys:[...new Set(l.flatMap(e=>[...e.added,...e.removed]))].filter(e=>s.has(e)),moves:o}}function he(e,t){if(e.length<2)return null;let n=e[0],r=e.at(-1),i=g(n),a=g(r),o=i?.start??n.startDate,s=a?.end??r.endDate,c=X(t,o,s,e=>J(e,H(o))!==J(e,H(s))||i!==null&&Y(e,i)||a!==null&&Y(e,a));return!c&&n.queryCount===r.queryCount?null:{...c??{changes:[],keys:[],moves:{added:[],removed:[],removedAndAddedBack:[],addedAndRemovedAgain:[]}},firstCount:n.queryCount,latestCount:r.queryCount}}function Z(e,t){let n=g(e);if(!n)return null;let r=X(t,n.start,n.end,e=>Y(e,n));return r?{...r,firstCount:e.queryCount,latestCount:e.queryCount}:null}function Q(e){return`${e} ${e===1?`query`:`queries`}`}function ge(e){let t=[],n=e=>t.length===0?Q(e):String(e);return e.added.length>0&&t.push(`${n(e.added.length)} added`),e.removed.length>0&&t.push(`${n(e.removed.length)} removed`),e.removedAndAddedBack.length>0&&t.push(`${Q(e.removedAndAddedBack.length)} removed and added back`),e.addedAndRemovedAgain.length>0&&t.push(`${Q(e.addedAndRemovedAgain.length)} added and removed again`),k(t)}function _e(e,t,n,r){return e?t!==`mentionShare`||n!==`non-brand`||!r?!1:e.keys.length>0&&e.keys.every(e=>r(e)===`branded`):!0}var $=e();function ve({disabled:e,title:t,...n}){let{canWrite:r}=u();return r?(0,$.jsx)(a,{disabled:e,title:t,...n}):(0,$.jsx)(a,{...n,disabled:!0,title:l})}function ye({title:e,children:t}){let{isAdmin:n}=u();return n?(0,$.jsx)($.Fragment,{children:t}):(0,$.jsxs)(ne,{className:`surface-card mx-auto mt-8 max-w-lg`,children:[(0,$.jsxs)(ee,{children:[(0,$.jsxs)(d,{children:[e,` is for administrators`]}),(0,$.jsx)(f,{children:`Your account has view-only access. You can read everything this install has measured; changing how it is set up needs an administrator account.`})]}),(0,$.jsx)(te,{children:(0,$.jsx)(`p`,{className:`supporting-copy`,children:`If you need to make a change here, ask an administrator on this install.`})})]})}export{W as A,P as B,L as C,ce as D,C as E,D as F,oe as I,_e as L,g as M,ae as N,ge as O,O as P,se as R,N as S,z as T,de as V,k as _,h as a,ue as b,R as c,b as d,v as f,K as g,_ as h,m as i,ie as j,he as k,S as l,A as m,ve as n,G as o,j as p,p as r,I as s,ye as t,y as u,V as v,Z as w,x,B as y,fe as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{U as t,V as n,et as r,ut as i}from"./vendor-lucide-7AWeFVeL.js";import{r as a}from"./vendor-markdown-CQdHmjWd.js";import{
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{U as t,V as n,et as r,ut as i}from"./vendor-lucide-7AWeFVeL.js";import{r as a}from"./vendor-markdown-CQdHmjWd.js";import{Ds as o,Es as s,Hn as c,Mt as l,Nt as u,Ts as d,ht as f,jt as p,ln as m,r as h,t as g,un as _}from"./ToneBadge-Dym1_0XC.js";import{r as v}from"./account-context-ClThq0Zv.js";import{t as y}from"./async-handler-Bj3TnIRw.js";import{rt as b,st as x}from"./index-CzPXJ0Qs.js";var S=e(i(),1),C=`Use the official Canonry docs:
|
|
2
2
|
- Agent quickstart: https://github.com/Canonry/canonry#or-use-any-shell-capable-coding-agent
|
|
3
3
|
- CLI reference: https://github.com/Canonry/canonry/blob/main/skills/canonry/references/canonry-cli.md
|
|
4
4
|
- Plugin setup: https://github.com/Canonry/canonry/blob/main/docs/plugins.md
|
|
@@ -15,16 +15,16 @@ ${C}Pick one path and stay on it. Use connected Canonry tools (plugin or MCP) on
|
|
|
15
15
|
5. Propose a bounded Agent Readiness audit scan: \`--max-pages 100\` for a first look, plus whether dead-link checking is on (it is off unless you pass \`--check-dead-links\`). Show the connected operation or the exact \`cnry agent-readiness run <project> --max-pages 100 --wait --format json\` command with the project name filled in, and wait for separate approval before scanning. \`--wait\` polls for up to 15 minutes and returns only the run id and status. If the status it returns is still \`queued\` or \`running\`, the scan has not finished: do not rerun it or report results, poll \`cnry agent-readiness progress <project> --run-id <run-id> --format json\` until it is terminal. If \`--wait\` outruns your own tool timeout first, recover the run id with \`cnry runs <project> --kind site-audit --limit 1 --format json\`, which returns the newest scan whatever its status, and poll the same way.
|
|
16
16
|
6. When the run is \`completed\` or \`partial\`, read \`cnry agent-readiness overview <project> --run-id <run-id> --format json\` first. It is the only one of these commands that carries \`termination\` and \`complete\`; the score and page-scores commands do not. Then read \`cnry agent-readiness score <project> --run-id <run-id> --format json\` and \`cnry agent-readiness page-scores <project> --run-id <run-id> --sort score-asc --limit 10 --format jsonl\`. Tell me the termination reason in plain words and whether the scan covered the whole site or stopped at a page, link, depth, or time limit. A \`partial\` run scored the pages it reached and not my site, so never present it as a full-site result. If it stopped early, the fix depends on the reason, so say which: a page or depth limit needs a larger budget, a time limit needs a smaller scan (a lower \`--max-pages\` or \`--max-depth\`). If the run failed or was cancelled, inspect the run error and stop.
|
|
17
17
|
7. Summarize only completed evidence, then propose AI Visibility setup. Ask before you add queries, connect providers, start a provider-backed or quota-consuming run, edit files, or publish.`;function T(e){return e?w:w.replace(C,``)}var E=a(),D=`https://github.com/Canonry/canonry/blob/main/docs/mcp.md`,O=`https://github.com/Canonry/canonry/blob/main/docs/plugins.md`,k=`https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt`,A=`https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp`,j=`codex plugin marketplace add Canonry/canonry
|
|
18
|
-
codex plugin add canonry-remote@canonry`,M={[
|
|
18
|
+
codex plugin add canonry-remote@canonry`,M={[s[`public-url-required`]]:`Configure this instance’s public URL before connecting a hosted client.`,[s[`https-required`]]:`Configure an HTTPS public URL for this instance.`,[s[`public-host-required`]]:`Use a public HTTPS address that your client can reach. Localhost and private-network addresses do not work for hosted connectors.`,[s[`public-path-mismatch`]]:`Make the publicUrl path match basePath, and preserve that prefix when the proxy forwards requests for hosted OAuth.`,[s[`oauth-unavailable`]]:`The sign-in routes are unavailable. Check this instance’s OAuth configuration.`,[s[`account-required`]]:`Create a named Canonry account on this instance’s server with canonry user create. A shared dashboard password does not provide an OAuth account.`,[s[`transport-unavailable`]]:`Restore the instance’s HTTP MCP service before connecting a hosted client.`},N=[{client:`Claude Code`,command:`claude plugin marketplace add Canonry/canonry
|
|
19
19
|
claude plugin install canonry@canonry`},{client:`Codex`,command:`codex plugin marketplace add Canonry/canonry
|
|
20
|
-
codex plugin add canonry@canonry`}],P=`canonry-mcp`;function F({label:e,value:n,showText:i=!1,secondary:a=!1,action:o=`agent_setup.copy`}){let s=(0,S.useId)(),[
|
|
20
|
+
codex plugin add canonry@canonry`}],P=`canonry-mcp`;function F({label:e,value:n,showText:i=!1,secondary:a=!1,action:o=`agent_setup.copy`}){let s=(0,S.useId)(),[l,u]=(0,S.useState)(!1),[d,f]=(0,S.useState)(!1);async function p(){try{await navigator.clipboard.writeText(n),c(o),u(!0),f(!1)}catch{u(!1),f(!0)}}return(0,E.jsxs)(`div`,{className:`min-w-0 space-y-3`,children:[i?(0,E.jsx)(`pre`,{className:`overflow-x-auto material-base p-3 text-copy-14 text-heading`,children:(0,E.jsx)(`code`,{children:n})}):null,(0,E.jsxs)(h,{type:`button`,className:`pointer-coarse:min-h-11`,variant:a?`outline`:`default`,onClick:y(p),children:[l?(0,E.jsx)(r,{className:`size-4`,"aria-hidden":`true`}):(0,E.jsx)(t,{className:`size-4`,"aria-hidden":`true`}),e]}),l?(0,E.jsx)(`p`,{role:`status`,className:`text-copy-14 text-secondary`,children:`Copied.`}):null,!i||d?(0,E.jsxs)(`details`,{open:d||void 0,className:`text-label-14 text-secondary`,children:[(0,E.jsx)(`summary`,{className:`min-h-11 w-fit cursor-pointer py-3`,children:d?`Copy unavailable. Select the text below.`:`Preview text`}),(0,E.jsxs)(`label`,{htmlFor:s,className:`sr-only`,children:[e,` text`]}),(0,E.jsx)(`textarea`,{id:s,readOnly:!0,rows:d&&i?3:8,value:n,className:`mt-2 w-full rounded-md border border-default bg-bg p-3 text-copy-14 text-heading`})]}):null]})}function I(){return p()||u()?(0,E.jsxs)(`div`,{className:`page-container`,children:[(0,E.jsx)(`h1`,{className:`page-title`,children:`Agent setup`}),(0,E.jsx)(`p`,{className:`mt-3 text-copy-14 text-secondary`,children:`Open Agent setup in your own Canonry instance to connect your agent.`}),_()?(0,E.jsx)(`a`,{className:`mt-4 inline-block text-label-14 underline`,href:D,target:`_blank`,rel:`noopener noreferrer`,children:`Read the connection guide`}):null]}):(0,E.jsx)(L,{})}function L(){let e=x(),{isAdmin:t}=v(),r=m(),i=_(),a=b(!e,e?.health,!0),s=a.data?.apiStatus,c=s?.state===`ok`?s.mcp:void 0,u=c?.status===o.available&&c.hosted?.status===d.ready?c.hosted:void 0,p=c?.hosted?.status===d.unavailable?c.hosted.reason:void 0,h=`${window.location.origin}${f()}`,y=`This server has not confirmed a public URL and OAuth sign-in. Ask your administrator to check the connection configuration or update Canonry.`;a.isPending?y=`Checking the instance’s hosted connection settings.`:p?y=t&&r?M[p]:`Ask your Canonry administrator to finish hosted connection setup for this instance.`:s?.state===`error`?y=`The instance’s connection settings could not be checked. Try again after the service is available.`:c?.status===o[`not-supported`]&&(y=`This deployment does not provide hosted MCP connections. Ask your administrator for a supported connection.`);let S=u?`Help me connect this existing Canonry instance to ChatGPT or Claude Desktop using its remote MCP URL: ${u.url}
|
|
21
21
|
|
|
22
22
|
Use the client's remote MCP connection flow with OAuth sign-in. For Claude, set the OAuth client option to Register automatically; Claude's published identity is not supported here, and on Team or Enterprise plans an Owner adds custom connectors. Have me sign in to Canonry in the browser and review the requested access before approving it. Keep passwords, API keys, browser sessions, and other credentials out of chat. Do not install software, run local commands, create another instance, or broaden access.
|
|
23
23
|
|
|
24
24
|
ChatGPT guide: ${k}
|
|
25
25
|
Claude guide: ${A}
|
|
26
26
|
|
|
27
|
-
After authorization, enable the connection in this conversation. Call canonry_help with intent "status", follow its available tool guidance, and list accessible projects using stored reads only. Confirm the target instance and report whether the read succeeded; an empty list can still mean success. Do not run scans, sweeps, research, live provider checks, or other writes.`:void 0,C=r&&!
|
|
27
|
+
After authorization, enable the connection in this conversation. Call canonry_help with intent "status", follow its available tool guidance, and list accessible projects using stored reads only. Confirm the target instance and report whether the read succeeded; an empty list can still mean success. Do not run scans, sweeps, research, live provider checks, or other writes.`:void 0,C=r&&!u&&l(window.location.hostname),w=(0,E.jsx)(g,{tone:u?`positive`:p||s?.state===`error`?`caution`:`neutral`,children:u?`Hosted setup configured`:a.isPending?`Checking hosted setup`:p?`Hosted setup needs attention`:`Hosted setup not confirmed`});return(0,E.jsxs)(`div`,{className:`page-container`,children:[(0,E.jsx)(`div`,{className:`page-header`,children:(0,E.jsxs)(`div`,{className:`page-header-left`,children:[(0,E.jsx)(`h1`,{className:`page-title`,children:`Agent setup`}),(0,E.jsx)(`p`,{className:`page-subtitle`,children:r?`Connect Claude Code, Codex, ChatGPT, Claude Desktop, or another agent to this instance.`:`Connect ChatGPT or Claude Desktop to this instance.`})]})}),(0,E.jsxs)(`div`,{className:`max-w-3xl`,children:[(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-default pb-5`,children:[(0,E.jsxs)(`div`,{className:`min-w-0`,children:[(0,E.jsx)(`p`,{className:`text-copy-14-strong text-heading`,children:`Your Canonry instance`}),(0,E.jsx)(`p`,{className:`mt-1 break-all text-copy-14 text-secondary`,children:h})]}),C?null:w]}),C?(0,E.jsx)(V,{instanceUrl:h,showResourceLinks:i,open:!0}):null,u&&S?u.plugin?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(R,{plugin:u.plugin}),(0,E.jsxs)(`details`,{className:`border-t border-default py-3 text-label-14`,children:[(0,E.jsx)(`summary`,{className:`min-h-11 w-fit cursor-pointer py-3 text-label-14-strong text-heading`,children:`Connect directly (Claude and other MCP clients)`}),(0,E.jsx)(z,{url:u.url,setupPrompt:S})]})]}):(0,E.jsx)(z,{url:u.url,setupPrompt:S}):(0,E.jsxs)(`section`,{className:C?`border-t border-default py-6`:`py-6`,"aria-labelledby":`agent-requirements-title`,children:[(0,E.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,E.jsx)(`h2`,{id:`agent-requirements-title`,className:`text-heading-20 text-heading`,children:C?`Connect ChatGPT or Claude Desktop`:`Before you connect a hosted client`}),C?w:null]}),(0,E.jsx)(`p`,{className:`mt-2 max-w-prose text-copy-14 text-secondary`,children:y}),i?(0,E.jsxs)(`a`,{href:D,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 inline-flex min-h-11 items-center gap-2 text-label-14 underline`,children:[`Read the connection guide `,(0,E.jsx)(n,{className:`size-3.5`,"aria-hidden":`true`})]}):null]}),r&&!C?(0,E.jsx)(V,{instanceUrl:h,showResourceLinks:i,open:!1}):null]})]})}function R({plugin:e}){return(0,E.jsxs)(`section`,{className:`py-6`,"aria-labelledby":`agent-plugin-title`,children:[(0,E.jsx)(`h2`,{id:`agent-plugin-title`,className:`text-heading-20 text-heading`,children:`Use the Canonry plugin`}),(0,E.jsx)(`p`,{className:`mt-2 max-w-prose text-copy-14 text-secondary`,children:`For the ChatGPT desktop app and Codex. The plugin opens this workspace with your Canonry sign-in and reads stored results only.`}),(0,E.jsxs)(`ol`,{className:`mt-5 space-y-6`,children:[(0,E.jsxs)(`li`,{className:`space-y-3`,children:[(0,E.jsx)(`h3`,{className:`text-label-14-strong text-heading`,children:`1. Install the plugin`}),(0,E.jsx)(`p`,{className:`max-w-prose text-copy-14 text-secondary`,children:`Add the Canonry marketplace, then install Canonry. In Codex, run:`}),(0,E.jsx)(F,{label:`Copy plugin install commands`,value:j,showText:!0,secondary:!0})]}),(0,E.jsxs)(`li`,{className:`space-y-3`,children:[(0,E.jsx)(`h3`,{className:`text-label-14-strong text-heading`,children:`2. Enter this workspace`}),(0,E.jsx)(`p`,{className:`max-w-prose text-copy-14 text-secondary`,children:`When Canonry asks which workspace to open, enter:`}),(0,E.jsx)(F,{label:`Copy workspace`,value:e.workspace,showText:!0,secondary:!0},e.workspace)]}),(0,E.jsxs)(`li`,{className:`space-y-2`,children:[(0,E.jsx)(`h3`,{className:`text-label-14-strong text-heading`,children:`3. Sign in and approve access`}),(0,E.jsx)(`p`,{className:`max-w-prose text-copy-14 text-secondary`,children:`Sign in with your Canonry account for this workspace and approve read access. The plugin cannot start sweeps or change settings.`})]})]})]})}function z({url:e,setupPrompt:t}){return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`section`,{className:`py-6`,"aria-labelledby":`agent-connect-title`,children:[(0,E.jsx)(`h2`,{id:`agent-connect-title`,className:`text-heading-20 text-heading`,children:`1. Add Canonry to your client`}),(0,E.jsx)(`p`,{className:`mt-2 mb-4 max-w-prose text-copy-14 text-secondary`,children:`Add this URL to your client’s remote connector settings. No local installation is needed.`}),(0,E.jsx)(F,{label:`Copy MCP URL`,value:e,showText:!0},e),(0,E.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-x-5 gap-y-2 text-label-14 text-secondary`,children:[(0,E.jsx)(`a`,{href:k,target:`_blank`,rel:`noopener noreferrer`,className:`underline`,children:`ChatGPT setup guide`}),(0,E.jsx)(`a`,{href:A,target:`_blank`,rel:`noopener noreferrer`,className:`underline`,children:`Claude Desktop setup guide`})]}),(0,E.jsx)(`p`,{className:`mt-2 max-w-prose text-copy-14 text-secondary`,children:`Choose OAuth. In Claude, set the OAuth client to “Register automatically”. On Claude Team and Enterprise plans, an Owner adds the connector first.`}),(0,E.jsx)(`div`,{className:`mt-4`,children:(0,E.jsx)(F,{label:`Copy setup prompt`,value:t,secondary:!0},t)})]}),(0,E.jsxs)(`section`,{className:`border-t border-default py-6`,"aria-labelledby":`agent-authorize-title`,children:[(0,E.jsx)(`h2`,{id:`agent-authorize-title`,className:`text-heading-20 text-heading`,children:`2. Sign in and approve access`}),(0,E.jsx)(`p`,{className:`mt-2 max-w-prose text-copy-14 text-secondary`,children:`Sign in with your Canonry account and review the requested access. After approving it, return to your client and enable the connection for your conversation.`})]}),(0,E.jsxs)(`section`,{className:`border-t border-default py-6`,"aria-labelledby":`agent-verify-title`,children:[(0,E.jsx)(`h2`,{id:`agent-verify-title`,className:`text-heading-20 text-heading`,children:`3. Verify the connection`}),(0,E.jsx)(`p`,{className:`mt-2 mb-4 max-w-prose text-copy-14 text-secondary`,children:`Server configuration is ready. Use this prompt to confirm your agent can read your projects without starting work or using provider quota.`}),(0,E.jsx)(B,{target:e})]})]})}function B({target:e,local:t=!1}){let n=`Verify my existing Canonry connection targets ${e}. Call canonry_help with intent "status", follow its available tool guidance, then list accessible projects using stored reads only. Report the instance, connection method, and whether the project read succeeded. An empty project list can still be a successful connection. If the target cannot be confirmed, stop and explain. Do not install anything, change configuration, create projects, run scans, sweeps, research, or live provider checks.`;return(0,E.jsx)(F,{label:t?`Copy local verification prompt`:`Copy verification prompt`,value:n,secondary:!0,action:`agent_setup.verify_copy`},e)}function V({instanceUrl:e,showResourceLinks:t,open:r}){let i=`Connect my local agent to this existing Canonry instance: ${e}
|
|
28
28
|
|
|
29
29
|
Use an installed Canonry runtime whose private configuration already points to this exact instance. A local plugin or canonry-mcp process does not inherit the browser connection, and shell environment changes do not retarget an already-connected tool. Check the saved API URL before using it.
|
|
30
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{ut as t}from"./vendor-lucide-7AWeFVeL.js";import{r as n}from"./vendor-markdown-CQdHmjWd.js";import{x as r}from"./vendor-tanstack-C613NhXZ.js";import{r as i,t as a,xt as o}from"./ToneBadge-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{ut as t}from"./vendor-lucide-7AWeFVeL.js";import{r as n}from"./vendor-markdown-CQdHmjWd.js";import{x as r}from"./vendor-tanstack-C613NhXZ.js";import{r as i,t as a,xt as o}from"./ToneBadge-Dym1_0XC.js";import{bn as s,bt as c,l}from"./react-query-Dz0xmEkM.js";import{t as u}from"./card-C-9Q2kJl.js";var d=e(t(),1),f=n(),p=100;function m(e){if(e===`all`)return;let t=Number.parseInt(e,10);return new Date(Date.now()-t*24*60*60*1e3).toISOString()}function h(e){let t=e.userAgent?.toLowerCase()??``;return t.includes(`canonry-mcp`)?`MCP`:t.includes(`canonry-cli`)?`CLI`:t.includes(`mozilla/`)?`Dashboard`:e.actor===`scheduler`?`Scheduler`:e.actor===`agent`?`Agent`:e.actor===`mcp`?`MCP`:e.actor===`cli`?`CLI`:e.actor}function g(e){return/delete|remove|revoke|disconnect|failed|refused/.test(e)?`negative`:/create|add|connect|completed/.test(e)?`positive`:/update|replace|sync|apply/.test(e)?`caution`:`neutral`}function _(e){return[e.action,e.actor,e.entityType,e.entityId,e.actorSession,e.userAgent,e.diff==null?``:JSON.stringify(e.diff)].filter(Boolean).join(` `).toLowerCase()}function v({projectName:e}){let[t,n]=(0,d.useState)(0),[v,y]=(0,d.useState)(`90d`),[b,x]=(0,d.useState)(``),[S,C]=(0,d.useState)(``),w=(0,d.useMemo)(()=>m(v),[v]),T={limit:p,offset:t*p,since:w,actor:b||void 0},E=r({...c({client:o,path:{name:e??``},query:T}),enabled:!!e}),D=r({...l({client:o,query:T}),enabled:!e}),O=r({...s({client:o}),enabled:!e}),k=e?E:D,A=k.data??[],j=(0,d.useMemo)(()=>new Map((O.data??[]).map(e=>[e.id,e.displayName||e.name])),[O.data]),M=S.trim().toLowerCase(),N=(0,d.useMemo)(()=>M?A.filter(e=>_(e).includes(M)):A,[A,M]),P=e=>{n(0),e()};return k.isLoading?(0,f.jsx)(`p`,{className:`supporting-copy mt-6`,role:`status`,children:`Loading change history…`}):(0,f.jsxs)(`section`,{className:`mt-6`,"aria-labelledby":`change-history-heading`,children:[(0,f.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,f.jsx)(`div`,{children:(0,f.jsx)(`h2`,{id:`change-history-heading`,className:e?void 0:`sr-only`,children:`Change history`})}),(0,f.jsx)(i,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>void k.refetch(),disabled:k.isFetching,children:k.isFetching?`Refreshing…`:`Refresh`})]}),(0,f.jsxs)(`div`,{className:`mt-4 grid gap-2 sm:grid-cols-3`,children:[(0,f.jsx)(`input`,{type:`search`,"aria-label":`Search change history`,value:S,onChange:e=>C(e.target.value),placeholder:`Search actions, entities, or details`,className:`min-h-11 rounded-md border border-base bg-bg px-3 text-label-14 text-strong placeholder-mono-400 focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-600`}),(0,f.jsxs)(`select`,{"aria-label":`Filter change history by actor`,value:b,onChange:e=>P(()=>x(e.target.value)),className:`min-h-11 rounded-md border border-base bg-bg px-3 text-label-14 text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-600`,children:[(0,f.jsx)(`option`,{value:``,children:`All actors`}),(0,f.jsx)(`option`,{value:`api`,children:`API and dashboard`}),(0,f.jsx)(`option`,{value:`cli`,children:`CLI`}),(0,f.jsx)(`option`,{value:`scheduler`,children:`Scheduler`}),(0,f.jsx)(`option`,{value:`agent`,children:`Agent`}),(0,f.jsx)(`option`,{value:`mcp`,children:`MCP`})]}),(0,f.jsxs)(`select`,{"aria-label":`Filter change history by date range`,value:v,onChange:e=>P(()=>y(e.target.value)),className:`min-h-11 rounded-md border border-base bg-bg px-3 text-label-14 text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-600`,children:[(0,f.jsx)(`option`,{value:`30d`,children:`Last 30 days`}),(0,f.jsx)(`option`,{value:`90d`,children:`Last 90 days`}),(0,f.jsx)(`option`,{value:`365d`,children:`Last year`}),(0,f.jsx)(`option`,{value:`all`,children:`All retained history`})]})]}),k.isError?(0,f.jsxs)(u,{className:`surface-card empty-card mt-4`,children:[(0,f.jsx)(`h3`,{children:`Change history unavailable`}),(0,f.jsx)(`p`,{children:k.error instanceof Error?k.error.message:`Could not load the audit trail.`})]}):N.length===0?(0,f.jsxs)(u,{className:`surface-card empty-card mt-4`,children:[(0,f.jsx)(`h3`,{children:`No changes match these filters`}),(0,f.jsx)(`p`,{children:`Widen the date range or clear the actor and search filters.`})]}):(0,f.jsx)(`div`,{className:`evidence-table-wrap mt-4`,children:(0,f.jsxs)(`table`,{className:`evidence-table`,children:[(0,f.jsx)(`thead`,{children:(0,f.jsxs)(`tr`,{children:[(0,f.jsx)(`th`,{children:`When`}),e?null:(0,f.jsx)(`th`,{children:`Scope`}),(0,f.jsx)(`th`,{children:`Action`}),(0,f.jsx)(`th`,{children:`Entity`}),(0,f.jsx)(`th`,{children:`Origin`}),(0,f.jsx)(`th`,{children:`Details`})]})}),(0,f.jsx)(`tbody`,{children:N.map(t=>(0,f.jsxs)(`tr`,{children:[(0,f.jsx)(`td`,{className:`whitespace-nowrap tabular-nums text-muted`,children:new Date(t.createdAt).toLocaleString()}),e?null:(0,f.jsx)(`td`,{className:`text-secondary`,children:t.projectId?j.get(t.projectId)??`Deleted project · ${t.projectId}`:`Instance settings`}),(0,f.jsx)(`td`,{children:(0,f.jsx)(a,{tone:g(t.action),children:t.action})}),(0,f.jsxs)(`td`,{children:[(0,f.jsx)(`span`,{className:`text-strong`,children:t.entityType}),t.entityId?(0,f.jsx)(`span`,{className:`mt-0.5 block max-w-48 truncate text-label-12-mono text-faint`,title:t.entityId,children:t.entityId}):null]}),(0,f.jsxs)(`td`,{children:[(0,f.jsx)(`span`,{className:`text-secondary`,children:h(t)}),t.actorSession?(0,f.jsxs)(`span`,{className:`mt-0.5 block max-w-40 truncate text-label-12-mono text-faint`,title:t.actorSession,children:[`Session `,t.actorSession]}):null]}),(0,f.jsx)(`td`,{children:t.diff==null?(0,f.jsx)(`span`,{className:`text-faint`,children:`No field diff`}):(0,f.jsxs)(`details`,{children:[(0,f.jsx)(`summary`,{className:`min-h-11 cursor-pointer py-3 text-label-14 text-secondary hover:text-strong`,children:`View diff`}),(0,f.jsx)(`pre`,{className:`max-h-72 max-w-xl overflow-auto whitespace-pre-wrap break-words rounded-md bg-bg-elevated p-3 text-copy-13 text-secondary`,children:JSON.stringify(t.diff,null,2)})]})})]},t.id))})]})}),!k.isError&&(t>0||A.length===p)?(0,f.jsxs)(`div`,{className:`mt-4 flex items-center justify-between gap-3`,children:[(0,f.jsx)(i,{type:`button`,variant:`outline`,size:`sm`,disabled:t===0,onClick:()=>n(e=>Math.max(0,e-1)),children:`Previous`}),(0,f.jsxs)(`span`,{className:`text-label-12 tabular-nums text-muted`,children:[`Page `,t+1]}),(0,f.jsx)(i,{type:`button`,variant:`outline`,size:`sm`,disabled:A.length<p,onClick:()=>n(e=>e+1),children:`Next`})]}):null]})}export{v as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{H as t,V as n,c as r,s as i,ut as a,w as o}from"./vendor-lucide-7AWeFVeL.js";import{r as s}from"./vendor-markdown-CQdHmjWd.js";import{Bt as c,Cn as l,J as u,Tt as d,U as f,W as p,Y as m,et as h,jt as g,o as _,r as v,t as y}from"./ToneBadge-z_iW7szG.js";import{t as b}from"./async-handler-Bj3TnIRw.js";import{t as x}from"./card-BdycYoUe.js";import{t as S}from"./Hint-DiyoPGOX.js";var C=e(a(),1),w=s(),T=`https://commoncrawl.org/web-graphs`;function E(e){return e==null?`—`:e>=0xe8d4a51000?`${(e/0xe8d4a51000).toFixed(1)} TB`:e>=1e9?`${(e/1e9).toFixed(1)} GB`:e>=1e6?`${(e/1e6).toFixed(1)} MB`:e>=1e3?`${(e/1e3).toFixed(1)} KB`:`${e} B`}function D(e){if(!e)return`—`;let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return`just now`;if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function O(e){switch(e){case`ready`:return`positive`;case`failed`:return`negative`;case`downloading`:case`querying`:case`queued`:return`caution`}}function k(){let[e,a]=(0,C.useState)(null),[s,k]=(0,C.useState)(null),[A,j]=(0,C.useState)([]),[M,N]=(0,C.useState)([]),[P,F]=(0,C.useState)(null),[I,L]=(0,C.useState)(!0),[R,z]=(0,C.useState)(!1),[B,V]=(0,C.useState)(!1),[H,U]=(0,C.useState)(``),[W,G]=(0,C.useState)(!1),[K,q]=(0,C.useState)(null),[J,Y]=(0,C.useState)(null),X=(0,C.useCallback)(async()=>{L(!0),q(null);try{let[e,t,n,r,i]=await Promise.all([f(),m().catch(()=>null),h().catch(()=>[]),p().catch(()=>[]),u().catch(()=>null)]);a(e),k(t),j(n),N(r),F(i)}catch(e){q(e instanceof Error?e.message:`Failed to load backlinks status`)}finally{L(!1)}},[]);(0,C.useEffect)(()=>{X()},[X]);async function Z(){z(!0),q(null),Y(null);try{let e=await d();Y(e.alreadyPresent?`DuckDB already installed (${e.version}).`:`Installed DuckDB ${e.version}.`),await X()}catch(e){q(e instanceof Error?e.message:`Failed to install DuckDB`)}finally{z(!1)}}async function Q(){let e=H.trim()||void 0;V(!0),q(null),Y(null);try{let t=await l(e);Y(e?`Queued sync for ${t.release}. Download + query runs in the background.`:`Queued sync for auto-discovered release ${t.release}. Download + query runs in the background.`),U(``),G(!1),await X()}catch(e){e instanceof _&&e.code===`MISSING_DEPENDENCY`?q(`DuckDB is not installed. Install it first.`):q(e instanceof Error?e.message:`Failed to trigger sync`)}finally{V(!1)}}async function $(e){q(null),Y(null);try{await c(e),Y(`Pruned cached release ${e}.`),await X()}catch(e){q(e instanceof Error?e.message:`Failed to prune release`)}}let ee=s?.status===`ready`&&M.every(e=>e.release!==s.release);return(0,w.jsxs)(`div`,{className:`page-container`,children:[(0,w.jsx)(`div`,{className:`page-header`,children:(0,w.jsxs)(`div`,{className:`page-header-left`,children:[(0,w.jsx)(`h1`,{className:`page-title`,children:`Backlink data`}),(0,w.jsx)(`p`,{className:`page-subtitle`,children:`Manage the shared backlink source and review its latest data.`})]})}),K&&(0,w.jsx)(x,{className:`surface-card p-4 mb-4 bg-negative-soft`,children:(0,w.jsx)(`p`,{className:`text-copy-14 text-negative`,children:K})}),J&&(0,w.jsx)(x,{className:`surface-card p-4 mb-4 bg-positive-soft`,children:(0,w.jsx)(`p`,{className:`text-copy-14 text-positive`,children:J})}),(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,w.jsx)(`div`,{children:(0,w.jsx)(`h2`,{children:`Backlink source`})}),e?.duckdbInstalled?(0,w.jsx)(y,{tone:`positive`,children:`Installed`}):(0,w.jsx)(y,{tone:`caution`,children:`Not installed`})]}),(0,w.jsx)(x,{className:`surface-card p-4`,children:I?(0,w.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`Checking…`}):e?.duckdbInstalled?(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Ready to sync a Common Crawl release.`}):(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Install the local query engine to enable release syncs.`}),!g()&&(0,w.jsxs)(v,{type:`button`,size:`sm`,disabled:R,onClick:b(Z),children:[(0,w.jsx)(t,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),R?`Installing…`:`Install DuckDB`]})]})})]}),(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,w.jsx)(`div`,{children:(0,w.jsxs)(`h2`,{className:`flex items-center gap-2`,children:[`Release sync`,(0,w.jsx)(S,{label:`What is a release sync?`,children:`A release sync downloads one Common Crawl dump (~16 GB) and extracts backlinks for every project in this workspace in one pass. This is the heavy job — subsequent per-project re-runs skip the download and just re-query the cached files.`})]})}),s&&(0,w.jsx)(y,{tone:O(s.status),children:s.status})]}),(0,w.jsxs)(`div`,{className:`space-y-4`,children:[s?(0,w.jsxs)(`div`,{className:`space-y-2 text-label-14`,children:[(0,w.jsxs)(`p`,{className:`text-strong`,children:[`Release `,(0,w.jsx)(`code`,{className:`text-neutral`,children:s.release})]}),s.phaseDetail&&(0,w.jsx)(`p`,{className:`text-secondary`,children:s.phaseDetail}),(0,w.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-4 text-label-12 text-muted pt-2`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Projects`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:s.projectsProcessed??`—`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`p`,{className:`text-faint normal-case text-label-12 flex items-center gap-1`,children:[`Rows`,(0,w.jsx)(S,{label:`What are rows?`,children:`Total number of (project, referring domain) pairs persisted in SQLite from this sync, across every project in the workspace.`})]}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:s.domainsDiscovered??`—`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Started`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:D(s.downloadStartedAt??s.createdAt)})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Finished`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:D(s.queryFinishedAt)})]})]}),s.error&&(0,w.jsx)(`p`,{className:`text-copy-14 text-negative-400 pt-2`,children:s.error})]}):(0,w.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`No release sync has run in this workspace yet.`}),ee&&(0,w.jsx)(`div`,{className:`mt-4 rounded border border-caution-800/60 bg-caution-950/20 p-3`,children:(0,w.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,w.jsx)(i,{className:`h-4 w-4 text-caution-400 shrink-0 mt-0.5`,"aria-hidden":!0}),(0,w.jsxs)(`div`,{className:`text-label-14 text-neutral`,children:[(0,w.jsx)(`p`,{className:`text-copy-14-strong text-caution-200`,children:`Cached files for this release are missing.`}),(0,w.jsx)(`p`,{className:`mt-1 text-secondary`,children:`Sync this release again, or sync the newest release, before refreshing individual projects.`})]})]})}),(0,w.jsxs)(`div`,{className:`space-y-3`,children:[(0,w.jsxs)(`div`,{className:`flex items-start justify-between gap-3 mb-3`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-label-12 normal-case text-muted`,children:`Auto-detected release`}),P?(0,w.jsxs)(`p`,{className:`text-copy-14 text-strong mt-0.5`,children:[(0,w.jsx)(`code`,{className:`text-heading`,children:P.release}),(0,w.jsxs)(`span`,{className:`ml-2 text-label-12 text-muted`,children:[`Vertex `,E(P.vertexBytes),`, edges `,E(P.edgesBytes)]})]}):(0,w.jsx)(`p`,{className:`text-copy-14 text-muted mt-0.5`,children:I?`Checking Common Crawl…`:`Could not find a release. Choose one below.`}),(0,w.jsxs)(`a`,{href:T,target:`_blank`,rel:`noopener noreferrer`,className:`mt-1 inline-flex items-center gap-1 text-label-12 text-secondary hover:text-strong focus:text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,children:[`Browse all Common Crawl web-graph releases`,(0,w.jsx)(n,{className:`h-3 w-3`,"aria-hidden":!0})]})]}),!g()&&(0,w.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,w.jsxs)(v,{type:`button`,size:`sm`,disabled:B||!e?.duckdbInstalled||!P&&!H.trim(),onClick:b(Q),children:[(0,w.jsx)(o,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),B?`Queuing…`:`Run sync`]}),(0,w.jsxs)(S,{label:`What does Run sync do?`,children:[(0,w.jsxs)(`span`,{className:`block`,children:[`Downloads the auto-detected (or chosen) Common Crawl release (~16 GB) to`,` `,(0,w.jsx)(`code`,{className:`text-neutral`,children:`~/.canonry/cache/commoncrawl/`}),`, then runs a single DuckDB query that extracts referring domains for every project in this workspace.`]}),(0,w.jsxs)(`span`,{className:`mt-2 block text-secondary`,children:[`First time for a release: `,(0,w.jsx)(`span`,{className:`text-strong`,children:`~10–20 min download + ~5 min query`}),`. Re-running the same release later: `,(0,w.jsx)(`span`,{className:`text-strong`,children:`skips download, just re-queries`}),` (~5 min).`]})]})]})]}),g()?null:W?(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,w.jsx)(`input`,{type:`text`,className:`flex-1 min-w-[240px] rounded border border-strong bg-transparent px-2.5 py-1.5 text-label-14 text-strong placeholder-mono-400 focus:border-mono-500 focus:outline-none`,placeholder:`cc-main-2026-jan-feb-mar`,value:H,onChange:e=>U(e.target.value),disabled:B,autoFocus:!0}),(0,w.jsx)(`button`,{type:`button`,className:`text-button-14 text-secondary hover:text-neutral focus:text-neutral focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,onClick:()=>{U(``),G(!1)},disabled:B,children:`Cancel`})]}):(0,w.jsx)(`button`,{type:`button`,className:`text-button-14 text-secondary hover:text-neutral focus:text-neutral focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,onClick:()=>G(!0),disabled:B,children:`Use a different release →`})]}),!e?.duckdbInstalled&&(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary mt-2`,children:`Install DuckDB first to enable sync.`})]})]}),(0,w.jsxs)(`details`,{className:`page-section-divider group`,children:[(0,w.jsx)(`summary`,{className:`cursor-pointer text-label-14-strong text-secondary hover:text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,children:`Technical details and cache`}),(0,w.jsxs)(`div`,{className:`mt-4`,children:[(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary mb-3`,children:`Cached releases support project re-extracts. Pruning a release does not remove saved backlink results.`}),(0,w.jsx)(`div`,{className:`overflow-x-auto`,children:(0,w.jsxs)(`table`,{className:`w-full text-label-14`,children:[(0,w.jsx)(`thead`,{children:(0,w.jsxs)(`tr`,{className:`border-b border-base text-left text-label-12 normal-case text-faint`,children:[(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Release`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Sync status`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Size`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Last used`}),!g()&&(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong sr-only`,children:`Actions`})]})}),(0,w.jsxs)(`tbody`,{children:[M.map(e=>(0,w.jsxs)(`tr`,{className:`border-b border-mono-900 last:border-0`,children:[(0,w.jsx)(`td`,{className:`px-4 py-2 text-strong`,children:(0,w.jsx)(`code`,{children:e.release})}),(0,w.jsx)(`td`,{className:`px-4 py-2`,children:e.syncStatus?(0,w.jsx)(y,{tone:O(e.syncStatus),children:e.syncStatus}):(0,w.jsx)(`span`,{className:`text-faint`,children:`—`})}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:E(e.bytes)}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-secondary`,children:D(e.lastUsedAt)}),!g()&&(0,w.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,w.jsxs)(`div`,{className:`inline-flex items-center gap-1`,children:[(0,w.jsxs)(v,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>{$(e.release)},children:[(0,w.jsx)(r,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),`Prune`]}),(0,w.jsx)(S,{label:`What does Prune do?`,placement:`top`,children:`Deletes the ~16 GB cache for this release from disk. Backlink results already in SQLite remain untouched. To re-run extracts against this release, you’d have to sync it again (another ~16 GB download).`})]})})]},e.release)),M.length===0&&(0,w.jsx)(`tr`,{children:(0,w.jsx)(`td`,{className:`px-4 py-4 text-label-14 text-muted`,colSpan:g()?4:5,children:`No cached releases on this machine. If you ran a sync from a different machine (or deleted the cache), the backlink data is still in the database — but you’ll need to re-sync a release to run new extracts.`})})]})]})}),(0,w.jsx)(`p`,{className:`mt-3 text-copy-13 text-muted`,children:`Common Crawl files are stored locally. DuckDB reads them; Canonry stores results in its normal database.`})]})]}),A.length>1&&(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsx)(`div`,{className:`section-head section-head-inline`,children:(0,w.jsx)(`div`,{children:(0,w.jsx)(`h2`,{children:`Past release syncs`})})}),(0,w.jsx)(x,{className:`surface-card overflow-hidden`,children:(0,w.jsxs)(`table`,{className:`w-full text-label-14`,children:[(0,w.jsx)(`thead`,{children:(0,w.jsxs)(`tr`,{className:`border-b border-base text-left text-label-12 normal-case text-faint`,children:[(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Release`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Status`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Projects`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Rows`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Finished`})]})}),(0,w.jsx)(`tbody`,{children:A.map(e=>(0,w.jsxs)(`tr`,{className:`border-b border-mono-900 last:border-0`,children:[(0,w.jsx)(`td`,{className:`px-4 py-2 text-strong`,children:(0,w.jsx)(`code`,{children:e.release})}),(0,w.jsx)(`td`,{className:`px-4 py-2`,children:(0,w.jsx)(y,{tone:O(e.status),children:e.status})}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:e.projectsProcessed??`—`}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:e.domainsDiscovered??`—`}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-secondary`,children:D(e.queryFinishedAt??e.updatedAt)})]},e.id))})]})})]})]})}export{k as BacklinksPage};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{H as t,V as n,c as r,s as i,ut as a,w as o}from"./vendor-lucide-7AWeFVeL.js";import{r as s}from"./vendor-markdown-CQdHmjWd.js";import{Bt as c,J as l,Tt as u,U as d,W as f,Y as p,et as m,jt as h,o as g,r as _,t as v,wn as y}from"./ToneBadge-Dym1_0XC.js";import{t as b}from"./async-handler-Bj3TnIRw.js";import{t as x}from"./card-C-9Q2kJl.js";import{t as S}from"./Hint-DiyoPGOX.js";var C=e(a(),1),w=s(),T=`https://commoncrawl.org/web-graphs`;function E(e){return e==null?`—`:e>=0xe8d4a51000?`${(e/0xe8d4a51000).toFixed(1)} TB`:e>=1e9?`${(e/1e9).toFixed(1)} GB`:e>=1e6?`${(e/1e6).toFixed(1)} MB`:e>=1e3?`${(e/1e3).toFixed(1)} KB`:`${e} B`}function D(e){if(!e)return`—`;let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return`just now`;if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function O(e){switch(e){case`ready`:return`positive`;case`failed`:return`negative`;case`downloading`:case`querying`:case`queued`:return`caution`}}function k(){let[e,a]=(0,C.useState)(null),[s,k]=(0,C.useState)(null),[A,j]=(0,C.useState)([]),[M,N]=(0,C.useState)([]),[P,F]=(0,C.useState)(null),[I,L]=(0,C.useState)(!0),[R,z]=(0,C.useState)(!1),[B,V]=(0,C.useState)(!1),[H,U]=(0,C.useState)(``),[W,G]=(0,C.useState)(!1),[K,q]=(0,C.useState)(null),[J,Y]=(0,C.useState)(null),X=(0,C.useCallback)(async()=>{L(!0),q(null);try{let[e,t,n,r,i]=await Promise.all([d(),p().catch(()=>null),m().catch(()=>[]),f().catch(()=>[]),l().catch(()=>null)]);a(e),k(t),j(n),N(r),F(i)}catch(e){q(e instanceof Error?e.message:`Failed to load backlinks status`)}finally{L(!1)}},[]);(0,C.useEffect)(()=>{X()},[X]);async function Z(){z(!0),q(null),Y(null);try{let e=await u();Y(e.alreadyPresent?`DuckDB already installed (${e.version}).`:`Installed DuckDB ${e.version}.`),await X()}catch(e){q(e instanceof Error?e.message:`Failed to install DuckDB`)}finally{z(!1)}}async function Q(){let e=H.trim()||void 0;V(!0),q(null),Y(null);try{let t=await y(e);Y(e?`Queued sync for ${t.release}. Download + query runs in the background.`:`Queued sync for auto-discovered release ${t.release}. Download + query runs in the background.`),U(``),G(!1),await X()}catch(e){e instanceof g&&e.code===`MISSING_DEPENDENCY`?q(`DuckDB is not installed. Install it first.`):q(e instanceof Error?e.message:`Failed to trigger sync`)}finally{V(!1)}}async function $(e){q(null),Y(null);try{await c(e),Y(`Pruned cached release ${e}.`),await X()}catch(e){q(e instanceof Error?e.message:`Failed to prune release`)}}let ee=s?.status===`ready`&&M.every(e=>e.release!==s.release);return(0,w.jsxs)(`div`,{className:`page-container`,children:[(0,w.jsx)(`div`,{className:`page-header`,children:(0,w.jsxs)(`div`,{className:`page-header-left`,children:[(0,w.jsx)(`h1`,{className:`page-title`,children:`Backlink data`}),(0,w.jsx)(`p`,{className:`page-subtitle`,children:`Manage the shared backlink source and review its latest data.`})]})}),K&&(0,w.jsx)(x,{className:`surface-card p-4 mb-4 bg-negative-soft`,children:(0,w.jsx)(`p`,{className:`text-copy-14 text-negative`,children:K})}),J&&(0,w.jsx)(x,{className:`surface-card p-4 mb-4 bg-positive-soft`,children:(0,w.jsx)(`p`,{className:`text-copy-14 text-positive`,children:J})}),(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,w.jsx)(`div`,{children:(0,w.jsx)(`h2`,{children:`Backlink source`})}),e?.duckdbInstalled?(0,w.jsx)(v,{tone:`positive`,children:`Installed`}):(0,w.jsx)(v,{tone:`caution`,children:`Not installed`})]}),(0,w.jsx)(x,{className:`surface-card p-4`,children:I?(0,w.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`Checking…`}):e?.duckdbInstalled?(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Ready to sync a Common Crawl release.`}):(0,w.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary`,children:`Install the local query engine to enable release syncs.`}),!h()&&(0,w.jsxs)(_,{type:`button`,size:`sm`,disabled:R,onClick:b(Z),children:[(0,w.jsx)(t,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),R?`Installing…`:`Install DuckDB`]})]})})]}),(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsxs)(`div`,{className:`section-head section-head-inline`,children:[(0,w.jsx)(`div`,{children:(0,w.jsxs)(`h2`,{className:`flex items-center gap-2`,children:[`Release sync`,(0,w.jsx)(S,{label:`What is a release sync?`,children:`A release sync downloads one Common Crawl dump (~16 GB) and extracts backlinks for every project in this workspace in one pass. This is the heavy job — subsequent per-project re-runs skip the download and just re-query the cached files.`})]})}),s&&(0,w.jsx)(v,{tone:O(s.status),children:s.status})]}),(0,w.jsxs)(`div`,{className:`space-y-4`,children:[s?(0,w.jsxs)(`div`,{className:`space-y-2 text-label-14`,children:[(0,w.jsxs)(`p`,{className:`text-strong`,children:[`Release `,(0,w.jsx)(`code`,{className:`text-neutral`,children:s.release})]}),s.phaseDetail&&(0,w.jsx)(`p`,{className:`text-secondary`,children:s.phaseDetail}),(0,w.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-4 gap-4 text-label-12 text-muted pt-2`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Projects`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:s.projectsProcessed??`—`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`p`,{className:`text-faint normal-case text-label-12 flex items-center gap-1`,children:[`Rows`,(0,w.jsx)(S,{label:`What are rows?`,children:`Total number of (project, referring domain) pairs persisted in SQLite from this sync, across every project in the workspace.`})]}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:s.domainsDiscovered??`—`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Started`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:D(s.downloadStartedAt??s.createdAt)})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-faint normal-case text-label-12`,children:`Finished`}),(0,w.jsx)(`p`,{className:`text-neutral mt-0.5`,children:D(s.queryFinishedAt)})]})]}),s.error&&(0,w.jsx)(`p`,{className:`text-copy-14 text-negative-400 pt-2`,children:s.error})]}):(0,w.jsx)(`p`,{className:`text-copy-14 text-muted`,children:`No release sync has run in this workspace yet.`}),ee&&(0,w.jsx)(`div`,{className:`mt-4 rounded border border-caution-800/60 bg-caution-950/20 p-3`,children:(0,w.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,w.jsx)(i,{className:`h-4 w-4 text-caution-400 shrink-0 mt-0.5`,"aria-hidden":!0}),(0,w.jsxs)(`div`,{className:`text-label-14 text-neutral`,children:[(0,w.jsx)(`p`,{className:`text-copy-14-strong text-caution-200`,children:`Cached files for this release are missing.`}),(0,w.jsx)(`p`,{className:`mt-1 text-secondary`,children:`Sync this release again, or sync the newest release, before refreshing individual projects.`})]})]})}),(0,w.jsxs)(`div`,{className:`space-y-3`,children:[(0,w.jsxs)(`div`,{className:`flex items-start justify-between gap-3 mb-3`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`text-label-12 normal-case text-muted`,children:`Auto-detected release`}),P?(0,w.jsxs)(`p`,{className:`text-copy-14 text-strong mt-0.5`,children:[(0,w.jsx)(`code`,{className:`text-heading`,children:P.release}),(0,w.jsxs)(`span`,{className:`ml-2 text-label-12 text-muted`,children:[`Vertex `,E(P.vertexBytes),`, edges `,E(P.edgesBytes)]})]}):(0,w.jsx)(`p`,{className:`text-copy-14 text-muted mt-0.5`,children:I?`Checking Common Crawl…`:`Could not find a release. Choose one below.`}),(0,w.jsxs)(`a`,{href:T,target:`_blank`,rel:`noopener noreferrer`,className:`mt-1 inline-flex items-center gap-1 text-label-12 text-secondary hover:text-strong focus:text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,children:[`Browse all Common Crawl web-graph releases`,(0,w.jsx)(n,{className:`h-3 w-3`,"aria-hidden":!0})]})]}),!h()&&(0,w.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,w.jsxs)(_,{type:`button`,size:`sm`,disabled:B||!e?.duckdbInstalled||!P&&!H.trim(),onClick:b(Q),children:[(0,w.jsx)(o,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),B?`Queuing…`:`Run sync`]}),(0,w.jsxs)(S,{label:`What does Run sync do?`,children:[(0,w.jsxs)(`span`,{className:`block`,children:[`Downloads the auto-detected (or chosen) Common Crawl release (~16 GB) to`,` `,(0,w.jsx)(`code`,{className:`text-neutral`,children:`~/.canonry/cache/commoncrawl/`}),`, then runs a single DuckDB query that extracts referring domains for every project in this workspace.`]}),(0,w.jsxs)(`span`,{className:`mt-2 block text-secondary`,children:[`First time for a release: `,(0,w.jsx)(`span`,{className:`text-strong`,children:`~10–20 min download + ~5 min query`}),`. Re-running the same release later: `,(0,w.jsx)(`span`,{className:`text-strong`,children:`skips download, just re-queries`}),` (~5 min).`]})]})]})]}),h()?null:W?(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,w.jsx)(`input`,{type:`text`,className:`flex-1 min-w-[240px] rounded border border-strong bg-transparent px-2.5 py-1.5 text-label-14 text-strong placeholder-mono-400 focus:border-mono-500 focus:outline-none`,placeholder:`cc-main-2026-jan-feb-mar`,value:H,onChange:e=>U(e.target.value),disabled:B,autoFocus:!0}),(0,w.jsx)(`button`,{type:`button`,className:`text-button-14 text-secondary hover:text-neutral focus:text-neutral focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,onClick:()=>{U(``),G(!1)},disabled:B,children:`Cancel`})]}):(0,w.jsx)(`button`,{type:`button`,className:`text-button-14 text-secondary hover:text-neutral focus:text-neutral focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,onClick:()=>G(!0),disabled:B,children:`Use a different release →`})]}),!e?.duckdbInstalled&&(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary mt-2`,children:`Install DuckDB first to enable sync.`})]})]}),(0,w.jsxs)(`details`,{className:`page-section-divider group`,children:[(0,w.jsx)(`summary`,{className:`cursor-pointer text-label-14-strong text-secondary hover:text-strong focus:outline-none focus-visible:ring-1 focus-visible:ring-mono-500 rounded`,children:`Technical details and cache`}),(0,w.jsxs)(`div`,{className:`mt-4`,children:[(0,w.jsx)(`p`,{className:`text-copy-14 text-secondary mb-3`,children:`Cached releases support project re-extracts. Pruning a release does not remove saved backlink results.`}),(0,w.jsx)(`div`,{className:`overflow-x-auto`,children:(0,w.jsxs)(`table`,{className:`w-full text-label-14`,children:[(0,w.jsx)(`thead`,{children:(0,w.jsxs)(`tr`,{className:`border-b border-base text-left text-label-12 normal-case text-faint`,children:[(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Release`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Sync status`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Size`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Last used`}),!h()&&(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong sr-only`,children:`Actions`})]})}),(0,w.jsxs)(`tbody`,{children:[M.map(e=>(0,w.jsxs)(`tr`,{className:`border-b border-mono-900 last:border-0`,children:[(0,w.jsx)(`td`,{className:`px-4 py-2 text-strong`,children:(0,w.jsx)(`code`,{children:e.release})}),(0,w.jsx)(`td`,{className:`px-4 py-2`,children:e.syncStatus?(0,w.jsx)(v,{tone:O(e.syncStatus),children:e.syncStatus}):(0,w.jsx)(`span`,{className:`text-faint`,children:`—`})}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:E(e.bytes)}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-secondary`,children:D(e.lastUsedAt)}),!h()&&(0,w.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,w.jsxs)(`div`,{className:`inline-flex items-center gap-1`,children:[(0,w.jsxs)(_,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>{$(e.release)},children:[(0,w.jsx)(r,{className:`h-4 w-4 mr-1.5`,"aria-hidden":!0}),`Prune`]}),(0,w.jsx)(S,{label:`What does Prune do?`,placement:`top`,children:`Deletes the ~16 GB cache for this release from disk. Backlink results already in SQLite remain untouched. To re-run extracts against this release, you’d have to sync it again (another ~16 GB download).`})]})})]},e.release)),M.length===0&&(0,w.jsx)(`tr`,{children:(0,w.jsx)(`td`,{className:`px-4 py-4 text-label-14 text-muted`,colSpan:h()?4:5,children:`No cached releases on this machine. If you ran a sync from a different machine (or deleted the cache), the backlink data is still in the database — but you’ll need to re-sync a release to run new extracts.`})})]})]})}),(0,w.jsx)(`p`,{className:`mt-3 text-copy-13 text-muted`,children:`Common Crawl files are stored locally. DuckDB reads them; Canonry stores results in its normal database.`})]})]}),A.length>1&&(0,w.jsxs)(`section`,{className:`page-section`,children:[(0,w.jsx)(`div`,{className:`section-head section-head-inline`,children:(0,w.jsx)(`div`,{children:(0,w.jsx)(`h2`,{children:`Past release syncs`})})}),(0,w.jsx)(x,{className:`surface-card overflow-hidden`,children:(0,w.jsxs)(`table`,{className:`w-full text-label-14`,children:[(0,w.jsx)(`thead`,{children:(0,w.jsxs)(`tr`,{className:`border-b border-base text-left text-label-12 normal-case text-faint`,children:[(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Release`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Status`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Projects`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-right text-label-12-strong`,children:`Rows`}),(0,w.jsx)(`th`,{className:`px-4 py-2 text-label-12-strong`,children:`Finished`})]})}),(0,w.jsx)(`tbody`,{children:A.map(e=>(0,w.jsxs)(`tr`,{className:`border-b border-mono-900 last:border-0`,children:[(0,w.jsx)(`td`,{className:`px-4 py-2 text-strong`,children:(0,w.jsx)(`code`,{children:e.release})}),(0,w.jsx)(`td`,{className:`px-4 py-2`,children:(0,w.jsx)(v,{tone:O(e.status),children:e.status})}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:e.projectsProcessed??`—`}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-right text-secondary tabular-nums`,children:e.domainsDiscovered??`—`}),(0,w.jsx)(`td`,{className:`px-4 py-2 text-secondary`,children:D(e.queryFinishedAt??e.updatedAt)})]},e.id))})]})})]})]})}export{k as BacklinksPage};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{c as t,h as n,i as r,p as i,r as a,s as o,t as s,u as c}from"./vendor-recharts-DCxaNd0O.js";import{
|
|
1
|
+
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{c as t,h as n,i as r,p as i,r as a,s as o,t as s,u as c}from"./vendor-recharts-DCxaNd0O.js";import{Tc as l,Xc as u}from"./ToneBadge-Dym1_0XC.js";var d={ambiguous:`Property identity unverified`},f=`No answer could be tied to one property`;function p(e){return e.denominator===null||e.denominator===void 0||e.unattributed===void 0||e.unattributed<=0?null:`${e.unattributed} of ${e.denominator+e.unattributed} answers could not be tied to one property`}function m(e){if(e.denominator===null||e.denominator===void 0||e.unchecked===void 0||e.unchecked<=0)return null;let t=e.denominator+e.unchecked+(e.citationNotMeasured??0);return`${e.unchecked} of ${t} ${t===1?`answer`:`answers`} had sources that could not be checked`}var h=`The engine returns no sources, so whether it cites you is not measured.`;function g(e){if(e.denominator===null||e.denominator===void 0||e.citationNotMeasured===void 0||e.citationNotMeasured<=0)return null;let t=e.denominator+(e.unchecked??0)+e.citationNotMeasured;return`${e.citationNotMeasured} of ${t} ${t===1?`answer`:`answers`} came from engines that return no sources`}var _={label:`Not measured`,signal:`Citation not measured`,timeline:`citation not measured`,sources:h},v=function(e){return e.Clicks=`clicks`,e.Impressions=`impressions`,e.CTR=`ctr`,e.Position=`position`,e}({}),y={clicks:`Clicks`,impressions:`Impressions`,ctr:`CTR`,position:`Position`},b=l;function x(e){return e.endsWith(`%`)?{figure:e.slice(0,-1),sign:`%`}:{figure:e,sign:``}}function S(e,t){if(t!==`cited`)return p(e);let n=[m(e),g(e)].filter(e=>e!==null);return n.length===0?null:n.join(`; `)}function C(e,t){let n=S(e,t);if(n===null)return null;let r=t===`cited`?[...e.unchecked?[`${e.unchecked} unchecked`]:[],...e.citationNotMeasured?[`${e.citationNotMeasured} not measured`]:[]]:e.unattributed?[`${e.unattributed} unattributed`]:[],i=t===`cited`?(e.unchecked??0)+(e.citationNotMeasured??0):e.unattributed??0;if(r.length===0)return null;let a=r.join(`, `);return{label:a,text:`${a}. ${n}, so this rate leaves ${i===1?`it`:`them`} out.`}}function w(e,t){let n=u(e);switch(t){case`cited`:return`${n} cited (any page)`;case`emerging`:return`${n} newly cited (any page)`;case`lost`:return`${n} citation lost (any page)`;case`not-cited`:return`${n} not cited (any page)`;case`not-measured`:return`${n} citation not measured`;case`pending`:return`Pending`}}var T={cited:`Cited`,"not-cited":`Not cited`,"not-measured":_.label};function E(e){let t=[];if(e.message&&t.push(e.message),e.providers)for(let[n,r]of Object.entries(e.providers)){let e=`[${n}] ${r.message}`;r.raw===void 0?t.push(e):t.push(`${e}\n\n${JSON.stringify(r.raw,null,2)}`)}return t.length>0?t.join(`
|
|
2
2
|
|
|
3
3
|
`):`Run failed.`}function D(e){return e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function O(e,t,n=new Date){let r=new Date(e);if(Number.isNaN(r.getTime()))return e;let i=r.toLocaleTimeString(`en-US`,{hour:`numeric`,minute:`2-digit`});return t&&new Date(t).toDateString()===r.toDateString()?i:`${k(e,n)}, ${i}`}function k(e,t=new Date){let n=new Date(e);return Number.isNaN(n.getTime())?e:n.getFullYear()===t.getFullYear()?A(e):n.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})}function A(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})}function j(e){if(!e)return`—`;try{return new Date(e).toLocaleString()}catch{return e}}function M(e){return e===null?`Unknown`:e?`Pass`:`Fail`}function N(e){return e===0?`12:00 AM`:e<12?`${e}:00 AM`:e===12?`12:00 PM`:`${e-12}:00 PM`}function P(e,t){return e===`twice-daily`?`twice-daily`:e.startsWith(`weekly@`)?`${e}@${t}`:`daily@${t}`}function F(e,t){if(!e)return{freq:`custom`,hour:6,customCron:t};if(e===`twice-daily`)return{freq:`twice-daily`,hour:6,customCron:``};let n=e.match(/^daily(?:@(\d+))?$/);if(n)return{freq:`daily`,hour:n[1]?parseInt(n[1]):6,customCron:``};let r=e.match(/^(weekly@(?:mon|tue|wed|thu|fri|sat|sun))(?:@(\d+))?$/);return r?{freq:r[1],hour:r[2]?parseInt(r[2]):6,customCron:``}:{freq:`custom`,hour:6,customCron:t}}function I(e,t,n){let r=n===`UTC`?`UTC`:n.split(`/`).pop()?.replace(/_/g,` `)??n;if(!e)return`Custom: ${t} · ${r}`;if(e===`twice-daily`)return`Twice a day (6am & 6pm) · ${r}`;let i=e.match(/^daily(?:@(\d+))?$/);if(i)return`Every day at ${N(i[1]?parseInt(i[1]):6)} · ${r}`;let a=e.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(a){let e={mon:`Monday`,tue:`Tuesday`,wed:`Wednesday`,thu:`Thursday`,fri:`Friday`,sat:`Saturday`,sun:`Sunday`},t=a[2]?parseInt(a[2]):6;return`Every ${e[a[1]]} at ${N(t)} · ${r}`}return`${e} · ${r}`}function L(e,t){return t&&t!==e?`${e} · ${t}`:e}function R(){let e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=new Intl.DateTimeFormat(`en-US`,{timeZoneName:`short`}).formatToParts().find(e=>e.type===`timeZoneName`)?.value;return L(e,t)}var z=e(),B={contentStyle:{backgroundColor:`var(--chart-tooltip-bg, #0a0a0a)`,border:`none`,borderRadius:`var(--radius-material-tooltip)`,boxShadow:`var(--shadow-material-tooltip)`,fontSize:13,lineHeight:`18px`,fontWeight:400},labelStyle:{color:`var(--chart-tooltip-label, #ededed)`},itemStyle:{color:`var(--chart-tooltip-item, #a1a1a1)`}},V={fill:`var(--chart-neutral-text-dim, #a1a1a1)`,fontSize:12},H=`var(--chart-grid, #2e2e2e)`,U=`var(--chart-axis, #2e2e2e)`,W=[`var(--chart-series-1, #34d399)`,`var(--chart-series-2, #60a5fa)`,`var(--chart-series-3, #f472b6)`,`var(--chart-series-4, #facc15)`,`var(--chart-series-5, #a78bfa)`,`var(--chart-series-6, #fb923c)`,`var(--chart-series-7, #22d3ee)`,`var(--chart-series-8, #f87171)`],G={gemini:`#60a5fa`,openai:`#34d399`,claude:`#fb923c`,perplexity:`#22d3ee`,muse:`#818cf8`,local:`#a78bfa`};function K(e,t=0){return G[e]??W[t%W.length]}var q={text:`var(--chart-neutral-text, #a1a1a1)`,textDim:`var(--chart-neutral-text-dim, #a1a1a1)`,textFaint:`var(--chart-neutral-text-faint, #7d7d7d)`,surface:`var(--chart-neutral-surface, #2e2e2e)`,trackSubtle:`var(--chart-neutral-track-subtle, rgb(255 255 255 / 0.04))`,gridLine:`var(--chart-neutral-grid-line, rgb(255 255 255 / 0.06))`},J={positive:`var(--chart-tone-positive, #34d399)`,positiveDeep:`var(--chart-tone-positive-deep, #10b981)`,caution:`var(--chart-tone-caution, #fbbf24)`,negative:`var(--chart-tone-negative, #fb7185)`,neutral:`var(--chart-tone-neutral, #a1a1a1)`};function Y(e){return e}function X(e){let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);return t?{year:Number(t[1]),month:Number(t[2]),day:Number(t[3])}:null}function Z(e){let t=String(e),n=X(t);return n?new Date(Date.UTC(n.year,n.month-1,n.day)).toLocaleDateString(void 0,{timeZone:`UTC`,month:`short`,day:`numeric`,year:`numeric`}):t}function Q(e){let t=X(String(e));return t?`${t.month}/${t.day}`:String(e)}function $(e){let t=X(String(e));return t?new Date(Date.UTC(t.year,t.month-1,t.day)).toLocaleDateString(void 0,{timeZone:`UTC`,month:`short`,day:`numeric`}):String(e)}function ee(e){return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`})}function te(e){return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function ne(e){return new Date(e).getFullYear()}function re(e){let t=new Date(e);return`${t.getMonth()+1}/${t.getDate()}`}function ie({data:e,xKey:l,series:u,height:d=260,xTickFormatter:f,labelFormatter:p,onSelectX:m,selectedX:h,accessibilityLayer:g=!0,ariaLabel:_}){let v=[...new Set(u.map(e=>e.axisId))],y=new Map(u.map(e=>[e.label,e.formatValue])),b=e.map((t,n)=>{let r={...t};for(let t of u){if(!t.trend)continue;let i=t.trend.startIndex??0,a=t.trend.endIndex??e.length-1;n<i||n>a?r[`${t.dataKey}__trend`]=null:r[`${t.dataKey}__trend`]=a<=i?t.trend.start:t.trend.start+(t.trend.end-t.trend.start)*(n-i)/(a-i)}return r});return(0,z.jsx)(n,{width:`100%`,height:d,children:(0,z.jsxs)(s,{data:b,accessibilityLayer:g,"aria-label":_,margin:{top:8,right:8,bottom:4,left:0},onClick:m?e=>{e?.activeLabel!==void 0&&m(String(e.activeLabel))}:void 0,style:m?{cursor:`pointer`}:void 0,children:[(0,z.jsx)(t,{stroke:H,strokeDasharray:`3 3`,vertical:!1}),h!=null&&(0,z.jsx)(c,{x:h,yAxisId:v[0],stroke:q.text,strokeDasharray:`2 3`,strokeWidth:1}),(0,z.jsx)(r,{dataKey:l,tick:V,stroke:U,tickFormatter:f,minTickGap:24}),v.map((e,t)=>{let n=u.find(t=>t.axisId===e);return(0,z.jsx)(a,{yAxisId:e,orientation:t===1?`right`:`left`,hide:t>1,reversed:n.inverted??!1,domain:n.inverted?[1,`auto`]:[0,`auto`],tick:V,stroke:U,width:48,tickFormatter:n.formatValue},e)}),(0,z.jsx)(i,{...B,labelFormatter:e=>{let t=typeof e==`string`||typeof e==`number`?String(e):``;return p?p(t):t},formatter:(e,t)=>{let n=String(t??``);return typeof e==`number`?[y.get(n)?.(e)??e.toLocaleString(),n]:[String(e??``),n]}}),u.filter(e=>e.trend).map(e=>(0,z.jsx)(o,{yAxisId:e.axisId,dataKey:`${e.dataKey}__trend`,name:`${e.label} trend`,stroke:e.color,strokeWidth:1.5,strokeDasharray:`5 4`,strokeOpacity:.55,dot:!1,activeDot:!1,isAnimationActive:!1,legendType:`none`,tooltipType:`none`},`${e.dataKey}-trend`)),u.map(e=>(0,z.jsx)(o,{yAxisId:e.axisId,dataKey:e.dataKey,name:e.label,stroke:e.color,strokeWidth:2,dot:!1,activeDot:{r:3},connectNulls:e.connectNulls??!1,isAnimationActive:!1},e.dataKey))]})})}export{R as A,d as B,M as C,k as D,A as E,b as F,D as I,_ as L,I as M,w as N,O,x as P,h as R,C as S,N as T,K as _,W as a,v as b,ie as c,Q as d,ee as f,ne as g,Y as h,q as i,F as j,j as k,Z as l,re as m,V as n,J as o,te as p,H as r,B as s,U as t,$ as u,T as v,E as w,P as x,y,f as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{t}from"./AuditHistoryPanel-
|
|
1
|
+
import{r as e}from"./vendor-markdown-CQdHmjWd.js";import{t}from"./AuditHistoryPanel-ClexSdME.js";var n=e();function r(){return(0,n.jsxs)(`div`,{className:`page-container`,children:[(0,n.jsx)(`div`,{className:`page-header`,children:(0,n.jsxs)(`div`,{className:`page-header-left`,children:[(0,n.jsx)(`h1`,{className:`page-title`,children:`History`}),(0,n.jsx)(`p`,{className:`page-subtitle`,children:`Changes to projects and settings.`})]})}),(0,n.jsx)(t,{})]})}export{r as HistoryPage};
|