@ainyc/canonry 4.187.0 → 4.188.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.
Files changed (29) hide show
  1. package/README.md +5 -1
  2. package/assets/assets/{AuditHistoryPanel-G2iVWlbn.js → AuditHistoryPanel-BCpFULQp.js} +1 -1
  3. package/assets/assets/{BacklinksPage-B13UlDT7.js → BacklinksPage-CFHiZFhZ.js} +1 -1
  4. package/assets/assets/{HistoryPage-DZoRKfzJ.js → HistoryPage-THnDCEnv.js} +1 -1
  5. package/assets/assets/{MeasurementPropertyPage-DNxsAgEA.js → MeasurementPropertyPage-DWWwA2kL.js} +1 -1
  6. package/assets/assets/ProjectPage-CP57_Lqf.js +9 -0
  7. package/assets/assets/{RunRow-C9u35nrm.js → RunRow-CDWArf9X.js} +1 -1
  8. package/assets/assets/{RunsPage-DST-BpAu.js → RunsPage-Ctsw14Vg.js} +1 -1
  9. package/assets/assets/{SettingsPage-BC05JomS.js → SettingsPage-IHYGgD0e.js} +1 -1
  10. package/assets/assets/{SiteHealthSection-DIeYA2HJ.js → SiteHealthSection-DjFHZqBF.js} +3 -3
  11. package/assets/assets/{TrafficPage-DezdhoxL.js → TrafficPage-Cb1Zwgc5.js} +1 -1
  12. package/assets/assets/{TrafficSourceDetailPage-C0FIPjXi.js → TrafficSourceDetailPage-CRdjdiAa.js} +1 -1
  13. package/assets/assets/{extract-error-message-B5OYNTJO.js → extract-error-message-CNs6e1oz.js} +1 -1
  14. package/assets/assets/{index-DJWMbOc5.js → index-B64f9mVI.js} +29 -29
  15. package/assets/assets/index-DTblya6d.css +1 -0
  16. package/assets/assets/{react-sigma_core.esm.min-B06R8tYw.js → react-sigma_core.esm.min-CzJ-HG1j.js} +1 -1
  17. package/assets/index.html +2 -2
  18. package/dist/{chunk-B7WQ5Z4L.js → chunk-6YJQGOR6.js} +6 -5
  19. package/dist/{chunk-IPALTNIE.js → chunk-A47HAZDJ.js} +2 -2
  20. package/dist/{chunk-EMSDPSQM.js → chunk-GPTEXYYL.js} +116 -62
  21. package/dist/{chunk-LNBX7RTN.js → chunk-HIIOVQSH.js} +30 -1
  22. package/dist/{chunk-5BUAG4CN.js → chunk-QPYMAXLJ.js} +37 -1
  23. package/dist/cli.js +32 -5
  24. package/dist/index.js +4 -4
  25. package/dist/{intelligence-service-UZGA24EF.js → intelligence-service-4KMWHEYP.js} +2 -2
  26. package/dist/mcp.js +3 -3
  27. package/package.json +13 -13
  28. package/assets/assets/ProjectPage-BdfsfLkU.js +0 -9
  29. package/assets/assets/index-DJ8_LvRn.css +0 -1
package/dist/cli.js CHANGED
@@ -28,11 +28,11 @@ import {
28
28
  trackCliCommandFinished,
29
29
  trackEvent,
30
30
  waitForServerRuntimeStartup
31
- } from "./chunk-B7WQ5Z4L.js";
31
+ } from "./chunk-6YJQGOR6.js";
32
32
  import {
33
33
  autoSyncSkills,
34
34
  formatAutoSyncNotice
35
- } from "./chunk-IPALTNIE.js";
35
+ } from "./chunk-A47HAZDJ.js";
36
36
  import {
37
37
  CliError,
38
38
  EXIT_SYSTEM_ERROR,
@@ -58,7 +58,7 @@ import {
58
58
  saveConfigPatch,
59
59
  systemError,
60
60
  usageError
61
- } from "./chunk-5BUAG4CN.js";
61
+ } from "./chunk-QPYMAXLJ.js";
62
62
  import {
63
63
  CLOUDFLARE_WORKER_BINDINGS,
64
64
  CLOUDFLARE_WORKER_GENERATED_MARKER,
@@ -72,7 +72,7 @@ import {
72
72
  projects,
73
73
  queries,
74
74
  renderReportHtml
75
- } from "./chunk-EMSDPSQM.js";
75
+ } from "./chunk-GPTEXYYL.js";
76
76
  import {
77
77
  AdsDeliverySnapshotStatuses,
78
78
  AdsHistoricalCampaignRollupStatuses,
@@ -141,11 +141,12 @@ import {
141
141
  queryTrackingCommitRequestSchema,
142
142
  queryTrackingPreviewRequestSchema,
143
143
  resolveProviderInput,
144
+ resultsClearRequestSchema,
144
145
  shareOfVoiceLabel,
145
146
  shareOfVoiceReason,
146
147
  visibilityReportRequestSchema,
147
148
  winnabilityClassSchema
148
- } from "./chunk-LNBX7RTN.js";
149
+ } from "./chunk-HIIOVQSH.js";
149
150
 
150
151
  // src/cli.ts
151
152
  import { pathToFileURL } from "url";
@@ -11428,6 +11429,18 @@ async function showHistory(project, format, opts = {}) {
11428
11429
  });
11429
11430
  }
11430
11431
  }
11432
+ async function clearResults(project, opts) {
11433
+ const request = resultsClearRequestSchema.safeParse({ runIds: opts.runIds, researchRunIds: opts.researchRunIds, confirm: opts.confirm });
11434
+ if (!request.success) throw new CliError({ code: "INVALID_ARGUMENT", message: request.error.issues.map((issue) => issue.message).join(" "), exitCode: 1 });
11435
+ const result = await getClient20().clearResults(project, request.data);
11436
+ if (opts.format === "jsonl") emitJsonl([result]);
11437
+ else if (opts.format === "json") console.log(JSON.stringify(result, null, 2));
11438
+ else {
11439
+ console.log(`${result.dryRun ? "Would clear" : "Cleared"} ${result.runIds.length} visibility runs and ${result.researchRunIds.length} research batches.`);
11440
+ console.log(`${result.querySnapshots} saved visibility answers; ${result.researchQueries} research queries.`);
11441
+ if (result.dryRun) console.log("Back up the evidence, then repeat with --confirm to delete these exact runs.");
11442
+ }
11443
+ }
11431
11444
 
11432
11445
  // src/commands/status.ts
11433
11446
  function getClient21() {
@@ -11499,7 +11512,21 @@ function parseResultsExportFormat(value) {
11499
11512
 
11500
11513
  Usage: ${RESULTS_EXPORT_USAGE}`);
11501
11514
  }
11515
+ var RESULTS_CLEAR_USAGE = "canonry results clear <project> [--run <id> ...] [--research-run <id> ...] [--confirm] [--format json|jsonl]";
11502
11516
  var OPERATOR_CLI_COMMANDS = [
11517
+ {
11518
+ path: ["results", "clear"],
11519
+ usage: RESULTS_CLEAR_USAGE,
11520
+ options: { run: multiStringOption(), "research-run": multiStringOption(), confirm: { type: "boolean", default: false } },
11521
+ run: async (input) => {
11522
+ await clearResults(requireProject(input, "results.clear", RESULTS_CLEAR_USAGE), {
11523
+ runIds: getStringArray(input.values, "run") ?? [],
11524
+ researchRunIds: getStringArray(input.values, "research-run") ?? [],
11525
+ confirm: getBoolean(input.values, "confirm"),
11526
+ format: input.format
11527
+ });
11528
+ }
11529
+ },
11503
11530
  {
11504
11531
  path: ["results", "export"],
11505
11532
  usage: RESULTS_EXPORT_USAGE,
package/dist/index.js CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-B7WQ5Z4L.js";
6
+ } from "./chunk-6YJQGOR6.js";
7
7
  import {
8
8
  loadConfig
9
- } from "./chunk-5BUAG4CN.js";
10
- import "./chunk-EMSDPSQM.js";
11
- import "./chunk-LNBX7RTN.js";
9
+ } from "./chunk-QPYMAXLJ.js";
10
+ import "./chunk-GPTEXYYL.js";
11
+ import "./chunk-HIIOVQSH.js";
12
12
  export {
13
13
  GoogleMarketingRuntimeError,
14
14
  createGoogleMarketingCredentialStore,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-EMSDPSQM.js";
4
- import "./chunk-LNBX7RTN.js";
3
+ } from "./chunk-GPTEXYYL.js";
4
+ import "./chunk-HIIOVQSH.js";
5
5
  export {
6
6
  IntelligenceService
7
7
  };
package/dist/mcp.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoSyncSkills
3
- } from "./chunk-IPALTNIE.js";
3
+ } from "./chunk-A47HAZDJ.js";
4
4
  import {
5
5
  createApiClient,
6
6
  createCanonryMcpServer
7
- } from "./chunk-5BUAG4CN.js";
7
+ } from "./chunk-QPYMAXLJ.js";
8
8
  import {
9
9
  isReadOnlyKey
10
- } from "./chunk-LNBX7RTN.js";
10
+ } from "./chunk-HIIOVQSH.js";
11
11
 
12
12
  // src/mcp/cli.ts
13
13
  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.187.0",
3
+ "version": "4.188.1",
4
4
  "type": "module",
5
5
  "description": "Self-hosted AI visibility (AEO) platform: track how ChatGPT, Claude, Gemini, and Perplexity cite your domain, join it with Search Console, GA4, server-side traffic, and paid media, and fix what you find through agent tools (CLI, REST, MCP). Local SQLite.",
6
6
  "license": "FSL-1.1-ALv2",
@@ -71,31 +71,31 @@
71
71
  "tsup": "^8.5.1",
72
72
  "tsx": "^4.19.0",
73
73
  "@ainyc/canonry-web": "0.0.0",
74
- "@ainyc/canonry-api-client": "0.0.0",
75
- "@ainyc/canonry-config": "0.0.0",
76
74
  "@ainyc/canonry-contracts": "0.0.0",
75
+ "@ainyc/canonry-api-client": "0.0.0",
77
76
  "@ainyc/canonry-api-routes": "0.0.0",
77
+ "@ainyc/canonry-config": "0.0.0",
78
78
  "@ainyc/canonry-integration-bing": "0.0.0",
79
79
  "@ainyc/canonry-db": "0.0.0",
80
80
  "@ainyc/canonry-integration-cloud-run": "0.0.0",
81
81
  "@ainyc/canonry-integration-cloudflare-queue": "0.0.0",
82
- "@ainyc/canonry-integration-google-ads": "0.0.0",
83
- "@ainyc/canonry-integration-google-business-profile": "0.0.0",
84
82
  "@ainyc/canonry-integration-cloudflare-worker": "0.0.0",
85
83
  "@ainyc/canonry-integration-google": "0.0.0",
86
- "@ainyc/canonry-integration-google-tag-manager": "0.0.0",
87
- "@ainyc/canonry-integration-google-places": "0.0.0",
88
84
  "@ainyc/canonry-integration-commoncrawl": "0.0.0",
85
+ "@ainyc/canonry-integration-google-ads": "0.0.0",
86
+ "@ainyc/canonry-integration-google-business-profile": "0.0.0",
87
+ "@ainyc/canonry-integration-google-places": "0.0.0",
88
+ "@ainyc/canonry-integration-google-tag-manager": "0.0.0",
89
89
  "@ainyc/canonry-integration-traffic": "0.0.0",
90
- "@ainyc/canonry-intelligence": "0.0.0",
91
- "@ainyc/canonry-provider-cdp": "0.0.0",
92
- "@ainyc/canonry-integration-openai-ads": "0.0.0",
93
90
  "@ainyc/canonry-integration-wordpress": "0.0.0",
91
+ "@ainyc/canonry-intelligence": "0.0.0",
94
92
  "@ainyc/canonry-provider-claude": "0.0.0",
95
- "@ainyc/canonry-provider-openai": "0.0.0",
96
- "@ainyc/canonry-provider-perplexity": "0.0.0",
97
93
  "@ainyc/canonry-provider-local": "0.0.0",
98
- "@ainyc/canonry-provider-gemini": "0.0.0"
94
+ "@ainyc/canonry-integration-openai-ads": "0.0.0",
95
+ "@ainyc/canonry-provider-cdp": "0.0.0",
96
+ "@ainyc/canonry-provider-gemini": "0.0.0",
97
+ "@ainyc/canonry-provider-openai": "0.0.0",
98
+ "@ainyc/canonry-provider-perplexity": "0.0.0"
99
99
  },
100
100
  "scripts": {
101
101
  "build": "pnpm run build:cli && pnpm run build:web",