@ainyc/canonry 1.45.0 → 1.45.2

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
@@ -28,7 +28,7 @@ import {
28
28
  setGoogleAuthConfig,
29
29
  showFirstRunNotice,
30
30
  trackEvent
31
- } from "./chunk-B4EP44AR.js";
31
+ } from "./chunk-WNOUK4KA.js";
32
32
  import {
33
33
  apiKeys,
34
34
  competitors,
@@ -38,7 +38,7 @@ import {
38
38
  projects,
39
39
  querySnapshots,
40
40
  runs
41
- } from "./chunk-SVPQUYTG.js";
41
+ } from "./chunk-HO22LHTY.js";
42
42
 
43
43
  // src/cli.ts
44
44
  import { pathToFileURL } from "url";
@@ -355,7 +355,7 @@ async function backfillAnswerVisibilityCommand(opts) {
355
355
  console.log(` Errors: ${providerErrors}`);
356
356
  }
357
357
  async function backfillInsightsCommand(project, opts) {
358
- const { IntelligenceService } = await import("./intelligence-service-TXWOESFH.js");
358
+ const { IntelligenceService } = await import("./intelligence-service-ZISLIU4S.js");
359
359
  const config = loadConfig();
360
360
  const db = createClient(config.database);
361
361
  migrate(db);
@@ -3332,9 +3332,9 @@ var KEYWORD_CLI_COMMANDS = [
3332
3332
  },
3333
3333
  {
3334
3334
  path: ["keyword", "list"],
3335
- usage: "canonry keyword list <project>",
3335
+ usage: "canonry keyword list <project> [--format json]",
3336
3336
  run: async (input) => {
3337
- const project = requireProject(input, "keyword.list", "canonry keyword list <project>");
3337
+ const project = requireProject(input, "keyword.list", "canonry keyword list <project> [--format json]");
3338
3338
  await listKeywords(project, input.format);
3339
3339
  }
3340
3340
  },
@@ -3481,9 +3481,9 @@ function printNotification(n) {
3481
3481
  var NOTIFY_CLI_COMMANDS = [
3482
3482
  {
3483
3483
  path: ["notify", "events"],
3484
- usage: "canonry notify events",
3484
+ usage: "canonry notify events [--format json]",
3485
3485
  run: async (input) => {
3486
- listEvents(input.format);
3486
+ await listEvents(input.format);
3487
3487
  }
3488
3488
  },
3489
3489
  {
@@ -3514,20 +3514,20 @@ var NOTIFY_CLI_COMMANDS = [
3514
3514
  },
3515
3515
  {
3516
3516
  path: ["notify", "list"],
3517
- usage: "canonry notify list <project>",
3517
+ usage: "canonry notify list <project> [--format json]",
3518
3518
  run: async (input) => {
3519
- const project = requireProject(input, "notify.list", "canonry notify list <project>");
3519
+ const project = requireProject(input, "notify.list", "canonry notify list <project> [--format json]");
3520
3520
  await listNotifications(project, input.format);
3521
3521
  }
3522
3522
  },
3523
3523
  {
3524
3524
  path: ["notify", "remove"],
3525
- usage: "canonry notify remove <project> <id>",
3525
+ usage: "canonry notify remove <project> <id> [--format json]",
3526
3526
  run: async (input) => {
3527
- const project = requireProject(input, "notify.remove", "canonry notify remove <project> <id>");
3527
+ const project = requireProject(input, "notify.remove", "canonry notify remove <project> <id> [--format json]");
3528
3528
  const id = requirePositional(input, 1, {
3529
3529
  command: "notify.remove",
3530
- usage: "canonry notify remove <project> <id>",
3530
+ usage: "canonry notify remove <project> <id> [--format json]",
3531
3531
  message: "notification ID is required"
3532
3532
  });
3533
3533
  await removeNotification(project, id, input.format);
@@ -3535,12 +3535,12 @@ var NOTIFY_CLI_COMMANDS = [
3535
3535
  },
3536
3536
  {
3537
3537
  path: ["notify", "test"],
3538
- usage: "canonry notify test <project> <id>",
3538
+ usage: "canonry notify test <project> <id> [--format json]",
3539
3539
  run: async (input) => {
3540
- const project = requireProject(input, "notify.test", "canonry notify test <project> <id>");
3540
+ const project = requireProject(input, "notify.test", "canonry notify test <project> <id> [--format json]");
3541
3541
  const id = requirePositional(input, 1, {
3542
3542
  command: "notify.test",
3543
- usage: "canonry notify test <project> <id>",
3543
+ usage: "canonry notify test <project> <id> [--format json]",
3544
3544
  message: "notification ID is required"
3545
3545
  });
3546
3546
  await testNotification(project, id, input.format);
@@ -4540,11 +4540,11 @@ function printRunDetail(run) {
4540
4540
  var RUN_CLI_COMMANDS = [
4541
4541
  {
4542
4542
  path: ["run", "show"],
4543
- usage: "canonry run show <id>",
4543
+ usage: "canonry run show <id> [--format json]",
4544
4544
  run: async (input) => {
4545
4545
  const id = requirePositional(input, 0, {
4546
4546
  command: "run.show",
4547
- usage: "canonry run show <id>",
4547
+ usage: "canonry run show <id> [--format json]",
4548
4548
  message: "run ID is required"
4549
4549
  });
4550
4550
  await showRun(id, input.format);
@@ -4552,9 +4552,9 @@ var RUN_CLI_COMMANDS = [
4552
4552
  },
4553
4553
  {
4554
4554
  path: ["run", "cancel"],
4555
- usage: "canonry run cancel <project> [run-id]",
4555
+ usage: "canonry run cancel <project> [run-id] [--format json]",
4556
4556
  run: async (input) => {
4557
- const project = requireProject(input, "run.cancel", "canonry run cancel <project> [run-id]");
4557
+ const project = requireProject(input, "run.cancel", "canonry run cancel <project> [run-id] [--format json]");
4558
4558
  await cancelRun(project, input.positionals[1], input.format);
4559
4559
  }
4560
4560
  },
@@ -4745,33 +4745,33 @@ var SCHEDULE_CLI_COMMANDS = [
4745
4745
  },
4746
4746
  {
4747
4747
  path: ["schedule", "show"],
4748
- usage: "canonry schedule show <project>",
4748
+ usage: "canonry schedule show <project> [--format json]",
4749
4749
  run: async (input) => {
4750
- const project = requireProject(input, "schedule.show", "canonry schedule show <project>");
4750
+ const project = requireProject(input, "schedule.show", "canonry schedule show <project> [--format json]");
4751
4751
  await showSchedule(project, input.format);
4752
4752
  }
4753
4753
  },
4754
4754
  {
4755
4755
  path: ["schedule", "enable"],
4756
- usage: "canonry schedule enable <project>",
4756
+ usage: "canonry schedule enable <project> [--format json]",
4757
4757
  run: async (input) => {
4758
- const project = requireProject(input, "schedule.enable", "canonry schedule enable <project>");
4758
+ const project = requireProject(input, "schedule.enable", "canonry schedule enable <project> [--format json]");
4759
4759
  await enableSchedule(project, input.format);
4760
4760
  }
4761
4761
  },
4762
4762
  {
4763
4763
  path: ["schedule", "disable"],
4764
- usage: "canonry schedule disable <project>",
4764
+ usage: "canonry schedule disable <project> [--format json]",
4765
4765
  run: async (input) => {
4766
- const project = requireProject(input, "schedule.disable", "canonry schedule disable <project>");
4766
+ const project = requireProject(input, "schedule.disable", "canonry schedule disable <project> [--format json]");
4767
4767
  await disableSchedule(project, input.format);
4768
4768
  }
4769
4769
  },
4770
4770
  {
4771
4771
  path: ["schedule", "remove"],
4772
- usage: "canonry schedule remove <project>",
4772
+ usage: "canonry schedule remove <project> [--format json]",
4773
4773
  run: async (input) => {
4774
- const project = requireProject(input, "schedule.remove", "canonry schedule remove <project>");
4774
+ const project = requireProject(input, "schedule.remove", "canonry schedule remove <project> [--format json]");
4775
4775
  await removeSchedule(project, input.format);
4776
4776
  }
4777
4777
  },
@@ -6539,7 +6539,7 @@ var SYSTEM_CLI_COMMANDS = [
6539
6539
  usage: "canonry stop [--format json]",
6540
6540
  allowPositionals: false,
6541
6541
  run: async (input) => {
6542
- stopDaemon(input.format);
6542
+ await stopDaemon(input.format);
6543
6543
  }
6544
6544
  },
6545
6545
  {
@@ -6547,7 +6547,7 @@ var SYSTEM_CLI_COMMANDS = [
6547
6547
  usage: "canonry telemetry status [--format json]",
6548
6548
  allowPositionals: false,
6549
6549
  run: async (input) => {
6550
- telemetryCommand("status", input.format);
6550
+ await telemetryCommand("status", input.format);
6551
6551
  }
6552
6552
  },
6553
6553
  {
@@ -6555,7 +6555,7 @@ var SYSTEM_CLI_COMMANDS = [
6555
6555
  usage: "canonry telemetry enable [--format json]",
6556
6556
  allowPositionals: false,
6557
6557
  run: async (input) => {
6558
- telemetryCommand("enable", input.format);
6558
+ await telemetryCommand("enable", input.format);
6559
6559
  }
6560
6560
  },
6561
6561
  {
@@ -6563,14 +6563,14 @@ var SYSTEM_CLI_COMMANDS = [
6563
6563
  usage: "canonry telemetry disable [--format json]",
6564
6564
  allowPositionals: false,
6565
6565
  run: async (input) => {
6566
- telemetryCommand("disable", input.format);
6566
+ await telemetryCommand("disable", input.format);
6567
6567
  }
6568
6568
  },
6569
6569
  {
6570
6570
  path: ["telemetry"],
6571
6571
  usage: "canonry telemetry <status|enable|disable> [--format json]",
6572
6572
  run: async (input) => {
6573
- unknownSubcommand(input.positionals[0], {
6573
+ await unknownSubcommand(input.positionals[0], {
6574
6574
  command: "telemetry",
6575
6575
  usage: "canonry telemetry <status|enable|disable> [--format json]",
6576
6576
  available: ["status", "enable", "disable"]
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createServer,
3
3
  loadConfig
4
- } from "./chunk-B4EP44AR.js";
5
- import "./chunk-SVPQUYTG.js";
4
+ } from "./chunk-WNOUK4KA.js";
5
+ import "./chunk-HO22LHTY.js";
6
6
  export {
7
7
  createServer,
8
8
  loadConfig
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-SVPQUYTG.js";
3
+ } from "./chunk-HO22LHTY.js";
4
4
  export {
5
5
  IntelligenceService
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainyc/canonry",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "type": "module",
5
5
  "description": "The ultimate open-source AEO monitoring tool - track how answer engines cite your domain",
6
6
  "license": "FSL-1.1-ALv2",
@@ -57,16 +57,16 @@
57
57
  "@ainyc/canonry-api-routes": "0.0.0",
58
58
  "@ainyc/canonry-config": "0.0.0",
59
59
  "@ainyc/canonry-contracts": "0.0.0",
60
- "@ainyc/canonry-db": "0.0.0",
61
60
  "@ainyc/canonry-integration-bing": "0.0.0",
62
61
  "@ainyc/canonry-intelligence": "0.0.0",
63
- "@ainyc/canonry-integration-wordpress": "0.0.0",
62
+ "@ainyc/canonry-db": "0.0.0",
64
63
  "@ainyc/canonry-integration-google": "0.0.0",
64
+ "@ainyc/canonry-integration-wordpress": "0.0.0",
65
65
  "@ainyc/canonry-provider-cdp": "0.0.0",
66
- "@ainyc/canonry-provider-gemini": "0.0.0",
66
+ "@ainyc/canonry-provider-claude": "0.0.0",
67
67
  "@ainyc/canonry-provider-local": "0.0.0",
68
+ "@ainyc/canonry-provider-gemini": "0.0.0",
68
69
  "@ainyc/canonry-provider-openai": "0.0.0",
69
- "@ainyc/canonry-provider-claude": "0.0.0",
70
70
  "@ainyc/canonry-provider-perplexity": "0.0.0"
71
71
  },
72
72
  "scripts": {