@ainyc/canonry 4.31.0 → 4.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +2 -1
- package/assets/assets/{index-C4UBTDDS.js → index-47V0U52s.js} +105 -105
- package/assets/index.html +1 -1
- package/dist/{chunk-5STLZRGB.js → chunk-5EBN7736.js} +24 -1
- package/dist/{chunk-U3YKRV47.js → chunk-BJXHETQW.js} +1 -1
- package/dist/{chunk-PUTJHEVR.js → chunk-JJHBPITI.js} +528 -17
- package/dist/{chunk-HTNC6AWN.js → chunk-XW3F5EEW.js} +113 -81
- package/dist/cli.js +131 -10
- package/dist/index.d.ts +20 -0
- package/dist/index.js +4 -4
- package/dist/{intelligence-service-CJONZ7ST.js → intelligence-service-XKOUBRCE.js} +2 -2
- package/dist/mcp.js +2 -2
- package/package.json +8 -8
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-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-47V0U52s.js"></script>
|
|
16
16
|
<link rel="stylesheet" crossorigin href="./assets/index-CNKAwZMB.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
@@ -19,9 +19,10 @@ import {
|
|
|
19
19
|
schedulableRunKindSchema,
|
|
20
20
|
scheduleUpsertRequestSchema,
|
|
21
21
|
trafficConnectCloudRunRequestSchema,
|
|
22
|
+
trafficConnectVercelRequestSchema,
|
|
22
23
|
trafficConnectWordpressRequestSchema,
|
|
23
24
|
trafficEventKindSchema
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XW3F5EEW.js";
|
|
25
26
|
|
|
26
27
|
// src/config.ts
|
|
27
28
|
import fs from "fs";
|
|
@@ -779,6 +780,13 @@ var ApiClient = class {
|
|
|
779
780
|
body
|
|
780
781
|
);
|
|
781
782
|
}
|
|
783
|
+
async trafficConnectVercel(project, body) {
|
|
784
|
+
return this.request(
|
|
785
|
+
"POST",
|
|
786
|
+
`/projects/${encodeURIComponent(project)}/traffic/connect/vercel`,
|
|
787
|
+
body
|
|
788
|
+
);
|
|
789
|
+
}
|
|
782
790
|
async trafficSync(project, sourceId, body) {
|
|
783
791
|
return this.request(
|
|
784
792
|
"POST",
|
|
@@ -1242,6 +1250,10 @@ var trafficConnectWordpressInputSchema = z2.object({
|
|
|
1242
1250
|
project: projectNameSchema,
|
|
1243
1251
|
request: trafficConnectWordpressRequestSchema
|
|
1244
1252
|
});
|
|
1253
|
+
var trafficConnectVercelInputSchema = z2.object({
|
|
1254
|
+
project: projectNameSchema,
|
|
1255
|
+
request: trafficConnectVercelRequestSchema
|
|
1256
|
+
});
|
|
1245
1257
|
var trafficSyncInputSchema = z2.object({
|
|
1246
1258
|
project: projectNameSchema,
|
|
1247
1259
|
sourceId: z2.string().min(1).describe("Traffic source ID returned by canonry_traffic_connect_cloud_run or canonry_traffic_sources_list."),
|
|
@@ -1878,6 +1890,17 @@ var canonryMcpTools = [
|
|
|
1878
1890
|
openApiOperations: ["POST /api/v1/projects/{name}/traffic/connect/wordpress"],
|
|
1879
1891
|
handler: (client, input) => client.trafficConnectWordpress(input.project, input.request)
|
|
1880
1892
|
}),
|
|
1893
|
+
defineTool({
|
|
1894
|
+
name: "canonry_traffic_connect_vercel",
|
|
1895
|
+
title: "Connect Vercel traffic source",
|
|
1896
|
+
description: "Connect a Vercel project as a server-side traffic source. Pulls request logs from Vercel's internal request-logs endpoint \u2014 no in-app instrumentation needed. Probes the endpoint with the supplied API token before persisting \u2014 a bad token or wrong project / team id surfaces as a 502 error. Reconnecting updates the existing active Vercel source in place. The API token is stored in ~/.canonry/config.yaml (not the DB) and never echoed back.",
|
|
1897
|
+
access: "write",
|
|
1898
|
+
tier: "traffic",
|
|
1899
|
+
inputSchema: trafficConnectVercelInputSchema,
|
|
1900
|
+
annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
|
|
1901
|
+
openApiOperations: ["POST /api/v1/projects/{name}/traffic/connect/vercel"],
|
|
1902
|
+
handler: (client, input) => client.trafficConnectVercel(input.project, input.request)
|
|
1903
|
+
}),
|
|
1881
1904
|
defineTool({
|
|
1882
1905
|
name: "canonry_traffic_sync",
|
|
1883
1906
|
title: "Sync Cloud Run traffic source",
|