@ainyc/canonry 4.95.0 → 4.97.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 +1 -0
- package/assets/assets/{BacklinksPage-CT3DfxMw.js → BacklinksPage-BI9BtHjp.js} +1 -1
- package/assets/assets/{ChartPrimitives-B6Dleq3z.js → ChartPrimitives-BcjGunGr.js} +1 -1
- package/assets/assets/ProjectPage-BdoberYt.js +6 -0
- package/assets/assets/{RunRow-C7rEdPSI.js → RunRow-BT2kpdQR.js} +1 -1
- package/assets/assets/{RunsPage-ByohAHOY.js → RunsPage-BAgZuX7j.js} +1 -1
- package/assets/assets/{SettingsPage-D4dwPwZy.js → SettingsPage-BvKcpivM.js} +1 -1
- package/assets/assets/{TrafficPage-Kh1CSxMr.js → TrafficPage-BdGOZv1e.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CIlOFRYB.js → TrafficSourceDetailPage-C_N2D9xy.js} +1 -1
- package/assets/assets/{arrow-left-BoX1Vp7B.js → arrow-left-C8Fbup8X.js} +1 -1
- package/assets/assets/{extract-error-message-ZqsMkFg8.js → extract-error-message-C29K35Gm.js} +1 -1
- package/assets/assets/index-BGfyt3LX.js +210 -0
- package/assets/assets/{index-DiykVUPr.css → index-BsZNCwg8.css} +1 -1
- package/assets/assets/{trash-2-A1PQNK3E.js → trash-2-DWLIELE_.js} +1 -1
- package/assets/assets/{vendor-markdown-DK7fbRNb.js → vendor-markdown-6dwjPOKK.js} +1 -1
- package/assets/assets/{vendor-radix-B57xfQbP.js → vendor-radix-CQ77EO2y.js} +1 -1
- package/assets/assets/{vendor-recharts-ClRVR6aX.js → vendor-recharts-C9EZkgbP.js} +1 -1
- package/assets/assets/vendor-tanstack-Be8JdV5M.js +1 -0
- package/assets/index.html +6 -6
- package/dist/{chunk-BUGJOQNW.js → chunk-E2FDXNMW.js} +82 -7
- package/dist/{chunk-4E4JPS37.js → chunk-NUGGUQH3.js} +13 -7
- package/dist/{chunk-FFSJRZJR.js → chunk-SRJ5IGNK.js} +14 -6
- package/dist/{chunk-7YU6ILWL.js → chunk-TXNKKTFD.js} +99 -65
- package/dist/cli.js +19 -6
- package/dist/index.js +4 -4
- package/dist/{intelligence-service-PGEGDNY6.js → intelligence-service-DC2TD7RR.js} +2 -2
- package/dist/mcp.js +2 -2
- package/package.json +9 -9
- package/assets/assets/ProjectPage-DeEE66hg.js +0 -6
- package/assets/assets/index-k1XIw8WK.js +0 -210
- package/assets/assets/vendor-tanstack-Dq7p98wZ.js +0 -1
package/dist/cli.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
setTelemetrySource,
|
|
28
28
|
showFirstRunNotice,
|
|
29
29
|
trackEvent
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NUGGUQH3.js";
|
|
31
31
|
import {
|
|
32
32
|
CliError,
|
|
33
33
|
EXIT_SYSTEM_ERROR,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
saveConfig,
|
|
45
45
|
saveConfigPatch,
|
|
46
46
|
usageError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SRJ5IGNK.js";
|
|
48
48
|
import {
|
|
49
49
|
apiKeys,
|
|
50
50
|
createClient,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
projects,
|
|
53
53
|
queries,
|
|
54
54
|
renderReportHtml
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-TXNKKTFD.js";
|
|
56
56
|
import {
|
|
57
57
|
BacklinkSources,
|
|
58
58
|
CcReleaseSyncStatuses,
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
CheckStatuses,
|
|
61
61
|
CitationStates,
|
|
62
62
|
READ_ONLY_SCOPE,
|
|
63
|
+
REPORT_PERIOD_OPTIONS,
|
|
63
64
|
RunStatuses,
|
|
64
65
|
TrafficEventKinds,
|
|
65
66
|
backlinkSourceSchema,
|
|
@@ -77,7 +78,7 @@ import {
|
|
|
77
78
|
providerQuotaPolicySchema,
|
|
78
79
|
resolveProviderInput,
|
|
79
80
|
winnabilityClassSchema
|
|
80
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-E2FDXNMW.js";
|
|
81
82
|
|
|
82
83
|
// src/cli.ts
|
|
83
84
|
import { pathToFileURL } from "url";
|
|
@@ -7868,7 +7869,7 @@ function defaultOutputPath(project, audience) {
|
|
|
7868
7869
|
}
|
|
7869
7870
|
async function runReportCommand(project, opts = {}) {
|
|
7870
7871
|
const client = createApiClient();
|
|
7871
|
-
const report = await client.getReport(project);
|
|
7872
|
+
const report = await client.getReport(project, opts.period !== void 0 ? { period: opts.period } : void 0);
|
|
7872
7873
|
const audience = opts.audience ?? "agency";
|
|
7873
7874
|
if (isMachineFormat(opts.format)) {
|
|
7874
7875
|
console.log(JSON.stringify(report, null, 2));
|
|
@@ -7885,12 +7886,22 @@ async function runReportCommand(project, opts = {}) {
|
|
|
7885
7886
|
}
|
|
7886
7887
|
|
|
7887
7888
|
// src/cli-commands/report.ts
|
|
7888
|
-
var USAGE3 = "canonry report <project> [--audience agency|client] [--output <path>] [--format json]";
|
|
7889
|
+
var USAGE3 = "canonry report <project> [--audience agency|client] [--period 7|14|30|90] [--output <path>] [--format json]";
|
|
7889
7890
|
function parseAudience(value) {
|
|
7890
7891
|
if (value === void 0) return void 0;
|
|
7891
7892
|
if (value === "agency" || value === "client") return value;
|
|
7892
7893
|
throw usageError(`Error: --audience must be "agency" or "client"
|
|
7893
7894
|
|
|
7895
|
+
Usage: ${USAGE3}`);
|
|
7896
|
+
}
|
|
7897
|
+
function parsePeriod(value) {
|
|
7898
|
+
if (value === void 0) return void 0;
|
|
7899
|
+
const n = Number(value);
|
|
7900
|
+
if (Number.isInteger(n) && REPORT_PERIOD_OPTIONS.includes(n)) {
|
|
7901
|
+
return n;
|
|
7902
|
+
}
|
|
7903
|
+
throw usageError(`Error: --period must be one of ${REPORT_PERIOD_OPTIONS.join(", ")}
|
|
7904
|
+
|
|
7894
7905
|
Usage: ${USAGE3}`);
|
|
7895
7906
|
}
|
|
7896
7907
|
var REPORT_CLI_COMMANDS = [
|
|
@@ -7899,6 +7910,7 @@ var REPORT_CLI_COMMANDS = [
|
|
|
7899
7910
|
usage: USAGE3,
|
|
7900
7911
|
options: {
|
|
7901
7912
|
audience: { type: "string" },
|
|
7913
|
+
period: { type: "string" },
|
|
7902
7914
|
output: { type: "string", short: "o" }
|
|
7903
7915
|
},
|
|
7904
7916
|
run: async (input) => {
|
|
@@ -7906,6 +7918,7 @@ var REPORT_CLI_COMMANDS = [
|
|
|
7906
7918
|
await runReportCommand(project, {
|
|
7907
7919
|
format: input.format,
|
|
7908
7920
|
audience: parseAudience(getString(input.values, "audience")),
|
|
7921
|
+
period: parsePeriod(getString(input.values, "period")),
|
|
7909
7922
|
output: getString(input.values, "output")
|
|
7910
7923
|
});
|
|
7911
7924
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUGGUQH3.js";
|
|
4
4
|
import {
|
|
5
5
|
loadConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SRJ5IGNK.js";
|
|
7
|
+
import "./chunk-TXNKKTFD.js";
|
|
8
|
+
import "./chunk-E2FDXNMW.js";
|
|
9
9
|
export {
|
|
10
10
|
createServer,
|
|
11
11
|
loadConfig
|
package/dist/mcp.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
PACKAGE_VERSION,
|
|
4
4
|
canonryMcpTools,
|
|
5
5
|
createApiClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SRJ5IGNK.js";
|
|
7
7
|
import {
|
|
8
8
|
isReadOnlyKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E2FDXNMW.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp/cli.ts
|
|
12
12
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainyc/canonry",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.97.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent-first open-source AEO operating platform - track how answer engines cite your domain",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
@@ -62,27 +62,27 @@
|
|
|
62
62
|
"@types/node-cron": "^3.0.11",
|
|
63
63
|
"tsup": "^8.5.1",
|
|
64
64
|
"tsx": "^4.19.0",
|
|
65
|
+
"@ainyc/canonry-api-client": "0.0.0",
|
|
65
66
|
"@ainyc/canonry-api-routes": "0.0.0",
|
|
66
67
|
"@ainyc/canonry-contracts": "0.0.0",
|
|
67
|
-
"@ainyc/canonry-
|
|
68
|
+
"@ainyc/canonry-config": "0.0.0",
|
|
68
69
|
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
69
|
-
"@ainyc/canonry-
|
|
70
|
+
"@ainyc/canonry-integration-openai-ads": "0.0.0",
|
|
70
71
|
"@ainyc/canonry-db": "0.0.0",
|
|
71
72
|
"@ainyc/canonry-integration-cloud-run": "0.0.0",
|
|
72
73
|
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
73
|
-
"@ainyc/canonry-config": "0.0.0",
|
|
74
74
|
"@ainyc/canonry-integration-google": "0.0.0",
|
|
75
|
-
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
76
|
-
"@ainyc/canonry-integration-google-places": "0.0.0",
|
|
77
|
-
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
78
75
|
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
79
76
|
"@ainyc/canonry-intelligence": "0.0.0",
|
|
77
|
+
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
78
|
+
"@ainyc/canonry-integration-google-places": "0.0.0",
|
|
80
79
|
"@ainyc/canonry-provider-cdp": "0.0.0",
|
|
80
|
+
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
81
81
|
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
82
82
|
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
83
83
|
"@ainyc/canonry-provider-local": "0.0.0",
|
|
84
|
-
"@ainyc/canonry-provider-
|
|
85
|
-
"@ainyc/canonry-provider-
|
|
84
|
+
"@ainyc/canonry-provider-perplexity": "0.0.0",
|
|
85
|
+
"@ainyc/canonry-provider-openai": "0.0.0"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",
|