@ainyc/canonry 4.25.0 → 4.26.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/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  setTelemetrySource,
21
21
  showFirstRunNotice,
22
22
  trackEvent
23
- } from "./chunk-6J6WQOGH.js";
23
+ } from "./chunk-H4RE4WLW.js";
24
24
  import {
25
25
  CliError,
26
26
  EXIT_SYSTEM_ERROR,
@@ -36,7 +36,7 @@ import {
36
36
  saveConfig,
37
37
  saveConfigPatch,
38
38
  usageError
39
- } from "./chunk-A7HQ6X43.js";
39
+ } from "./chunk-2FAEQ56I.js";
40
40
  import {
41
41
  apiKeys,
42
42
  competitors,
@@ -49,7 +49,7 @@ import {
49
49
  queries,
50
50
  querySnapshots,
51
51
  runs
52
- } from "./chunk-IS65IYNZ.js";
52
+ } from "./chunk-PN24DAGC.js";
53
53
  import {
54
54
  CcReleaseSyncStatuses,
55
55
  CheckScopes,
@@ -69,7 +69,7 @@ import {
69
69
  providerQuotaPolicySchema,
70
70
  resolveProviderInput,
71
71
  skillsClientSchema
72
- } from "./chunk-CRQMGNPH.js";
72
+ } from "./chunk-HVW665A4.js";
73
73
 
74
74
  // src/cli.ts
75
75
  import { pathToFileURL } from "url";
@@ -621,7 +621,7 @@ function readStoredGroundingSources(rawResponse) {
621
621
  return result;
622
622
  }
623
623
  async function backfillInsightsCommand(project, opts) {
624
- const { IntelligenceService } = await import("./intelligence-service-XLUYTE57.js");
624
+ const { IntelligenceService } = await import("./intelligence-service-VUBODIGG.js");
625
625
  const config = loadConfig();
626
626
  const db = createClient(config.database);
627
627
  migrate(db);
@@ -6409,6 +6409,9 @@ async function triggerRun(project, opts) {
6409
6409
  const resolved = providerInputs.flatMap((p) => resolveProviderInput(p));
6410
6410
  body.providers = resolved.length > 0 ? resolved : providerInputs;
6411
6411
  }
6412
+ if (opts?.queries?.length) {
6413
+ body.queries = opts.queries;
6414
+ }
6412
6415
  if (opts?.location) {
6413
6416
  body.location = opts.location;
6414
6417
  }
@@ -6684,9 +6687,10 @@ var RUN_CLI_COMMANDS = [
6684
6687
  },
6685
6688
  {
6686
6689
  path: ["run"],
6687
- usage: "canonry run <project|--all> [--provider <name>] [--location <label>] [--all-locations] [--no-location] [--wait] [--format json]",
6690
+ usage: "canonry run <project|--all> [--provider <name>] [--query <q>...] [--location <label>] [--all-locations] [--no-location] [--wait] [--format json]",
6688
6691
  options: {
6689
6692
  provider: stringOption(),
6693
+ query: multiStringOption(),
6690
6694
  wait: { type: "boolean", default: false },
6691
6695
  all: { type: "boolean", default: false },
6692
6696
  location: stringOption(),
@@ -6704,6 +6708,15 @@ var RUN_CLI_COMMANDS = [
6704
6708
  }
6705
6709
  });
6706
6710
  }
6711
+ if (getStringArray(input.values, "query")?.length) {
6712
+ throw usageError("Error: --query cannot be combined with --all (query scope is project-specific)", {
6713
+ message: "--query cannot be combined with --all (query scope is project-specific)",
6714
+ details: {
6715
+ command: "run",
6716
+ usage: "canonry run <project> --query <q>... [--provider <name>] [--wait] [--format json]"
6717
+ }
6718
+ });
6719
+ }
6707
6720
  await triggerRunAll({
6708
6721
  provider: getString(input.values, "provider"),
6709
6722
  wait: getBoolean(input.values, "wait"),
@@ -6716,11 +6729,12 @@ var RUN_CLI_COMMANDS = [
6716
6729
  const project = requireProject(
6717
6730
  input,
6718
6731
  "run",
6719
- "canonry run <project> [--provider <name>] [--wait] [--format json]",
6732
+ "canonry run <project> [--provider <name>] [--query <q>...] [--wait] [--format json]",
6720
6733
  "project name is required (or use --all)"
6721
6734
  );
6722
6735
  await triggerRun(project, {
6723
6736
  provider: getString(input.values, "provider"),
6737
+ queries: getStringArray(input.values, "query"),
6724
6738
  wait: getBoolean(input.values, "wait"),
6725
6739
  location: getString(input.values, "location"),
6726
6740
  allLocations: getBoolean(input.values, "all-locations"),
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-6J6WQOGH.js";
3
+ } from "./chunk-H4RE4WLW.js";
4
4
  import {
5
5
  loadConfig
6
- } from "./chunk-A7HQ6X43.js";
7
- import "./chunk-IS65IYNZ.js";
8
- import "./chunk-CRQMGNPH.js";
6
+ } from "./chunk-2FAEQ56I.js";
7
+ import "./chunk-PN24DAGC.js";
8
+ import "./chunk-HVW665A4.js";
9
9
  export {
10
10
  createServer,
11
11
  loadConfig
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-IS65IYNZ.js";
4
- import "./chunk-CRQMGNPH.js";
3
+ } from "./chunk-PN24DAGC.js";
4
+ import "./chunk-HVW665A4.js";
5
5
  export {
6
6
  IntelligenceService
7
7
  };
package/dist/mcp.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  CliError,
3
3
  canonryMcpTools,
4
4
  createApiClient
5
- } from "./chunk-A7HQ6X43.js";
6
- import "./chunk-CRQMGNPH.js";
5
+ } from "./chunk-2FAEQ56I.js";
6
+ import "./chunk-HVW665A4.js";
7
7
 
8
8
  // src/mcp/cli.ts
9
9
  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.25.0",
3
+ "version": "4.26.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",
@@ -60,17 +60,17 @@
60
60
  "tsup": "^8.5.1",
61
61
  "tsx": "^4.19.0",
62
62
  "@ainyc/canonry-api-routes": "0.0.0",
63
- "@ainyc/canonry-contracts": "0.0.0",
64
- "@ainyc/canonry-config": "0.0.0",
65
- "@ainyc/canonry-db": "0.0.0",
66
63
  "@ainyc/canonry-intelligence": "0.0.0",
67
- "@ainyc/canonry-integration-cloud-run": "0.0.0",
64
+ "@ainyc/canonry-db": "0.0.0",
68
65
  "@ainyc/canonry-integration-bing": "0.0.0",
66
+ "@ainyc/canonry-integration-commoncrawl": "0.0.0",
67
+ "@ainyc/canonry-contracts": "0.0.0",
69
68
  "@ainyc/canonry-integration-google": "0.0.0",
69
+ "@ainyc/canonry-integration-cloud-run": "0.0.0",
70
+ "@ainyc/canonry-config": "0.0.0",
70
71
  "@ainyc/canonry-integration-traffic": "0.0.0",
71
- "@ainyc/canonry-integration-wordpress": "0.0.0",
72
- "@ainyc/canonry-integration-commoncrawl": "0.0.0",
73
72
  "@ainyc/canonry-provider-cdp": "0.0.0",
73
+ "@ainyc/canonry-integration-wordpress": "0.0.0",
74
74
  "@ainyc/canonry-provider-claude": "0.0.0",
75
75
  "@ainyc/canonry-provider-local": "0.0.0",
76
76
  "@ainyc/canonry-provider-gemini": "0.0.0",