@ainyc/canonry 4.21.4 → 4.23.1

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/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
13
13
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
14
14
  <title>Canonry</title>
15
- <script type="module" crossorigin src="./assets/index-CYfF3BeK.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-BFfB9cRq.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="./assets/index-rPok6yk8.css">
17
17
  </head>
18
18
  <body>
@@ -14,8 +14,9 @@ import {
14
14
  schedulableRunKindSchema,
15
15
  scheduleUpsertRequestSchema,
16
16
  trafficConnectCloudRunRequestSchema,
17
+ trafficConnectWordpressRequestSchema,
17
18
  trafficEventKindSchema
18
- } from "./chunk-EY63PENL.js";
19
+ } from "./chunk-EUGCQSFC.js";
19
20
 
20
21
  // src/config.ts
21
22
  import fs from "fs";
@@ -766,6 +767,13 @@ var ApiClient = class {
766
767
  body
767
768
  );
768
769
  }
770
+ async trafficConnectWordpress(project, body) {
771
+ return this.request(
772
+ "POST",
773
+ `/projects/${encodeURIComponent(project)}/traffic/connect/wordpress`,
774
+ body
775
+ );
776
+ }
769
777
  async trafficSync(project, sourceId, body) {
770
778
  return this.request(
771
779
  "POST",
@@ -1192,6 +1200,10 @@ var trafficConnectCloudRunInputSchema = z2.object({
1192
1200
  project: projectNameSchema,
1193
1201
  request: trafficConnectCloudRunRequestSchema
1194
1202
  });
1203
+ var trafficConnectWordpressInputSchema = z2.object({
1204
+ project: projectNameSchema,
1205
+ request: trafficConnectWordpressRequestSchema
1206
+ });
1195
1207
  var trafficSyncInputSchema = z2.object({
1196
1208
  project: projectNameSchema,
1197
1209
  sourceId: z2.string().min(1).describe("Traffic source ID returned by canonry_traffic_connect_cloud_run or canonry_traffic_sources_list."),
@@ -1740,7 +1752,7 @@ var canonryMcpTools = [
1740
1752
  defineTool({
1741
1753
  name: "canonry_traffic_source_get",
1742
1754
  title: "Get traffic source detail",
1743
- description: "Get one traffic source plus 24h totals (crawler hits, AI-referral hits, raw event sample count) and the latest traffic-sync run summary. Use to confirm a source is healthy and observing traffic before drilling into events.",
1755
+ description: "Get one traffic source plus 24h totals (crawler hits, AI-referral sessions, raw event sample count) and the latest traffic-sync run summary. Use to confirm a source is healthy and observing traffic before drilling into events.",
1744
1756
  access: "read",
1745
1757
  tier: "traffic",
1746
1758
  inputSchema: trafficSourceIdInputSchema,
@@ -1751,7 +1763,7 @@ var canonryMcpTools = [
1751
1763
  defineTool({
1752
1764
  name: "canonry_traffic_status",
1753
1765
  title: "Traffic status (all sources)",
1754
- description: "Single-call composite returning every non-archived traffic source plus its last-24h totals (crawler hits, AI-referral hits, sample count) and latest source-scoped traffic-sync run. Same per-entry shape as canonry_traffic_source_get, but one call covers all sources \u2014 prefer this over a list+per-source fan-out.",
1766
+ description: "Single-call composite returning every non-archived traffic source plus its last-24h totals (crawler hits, AI-referral sessions, sample count) and latest source-scoped traffic-sync run. Same per-entry shape as canonry_traffic_source_get, but one call covers all sources \u2014 prefer this over a list+per-source fan-out.",
1755
1767
  access: "read",
1756
1768
  tier: "traffic",
1757
1769
  inputSchema: projectInputSchema,
@@ -1789,6 +1801,17 @@ var canonryMcpTools = [
1789
1801
  openApiOperations: ["POST /api/v1/projects/{name}/traffic/connect/cloud-run"],
1790
1802
  handler: (client, input) => client.trafficConnectCloudRun(input.project, input.request)
1791
1803
  }),
1804
+ defineTool({
1805
+ name: "canonry_traffic_connect_wordpress",
1806
+ title: "Connect WordPress traffic-logger source",
1807
+ description: "Connect a WordPress site (running the canonry traffic-logger plugin) as a server-side traffic source. Probes the plugin endpoint with the supplied Application Password before persisting \u2014 a bad credential or unreachable host surfaces as a 502 error. Reconnecting updates the existing active WordPress source in place. The Application Password is stored in ~/.canonry/config.yaml (not the DB) and never echoed back.",
1808
+ access: "write",
1809
+ tier: "traffic",
1810
+ inputSchema: trafficConnectWordpressInputSchema,
1811
+ annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
1812
+ openApiOperations: ["POST /api/v1/projects/{name}/traffic/connect/wordpress"],
1813
+ handler: (client, input) => client.trafficConnectWordpress(input.project, input.request)
1814
+ }),
1792
1815
  defineTool({
1793
1816
  name: "canonry_traffic_sync",
1794
1817
  title: "Sync Cloud Run traffic source",