@ainyc/canonry 4.143.0 → 4.144.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.
Files changed (29) hide show
  1. package/assets/assets/{AuditHistoryPanel--kNrRAQm.js → AuditHistoryPanel-DxRP9WsD.js} +1 -1
  2. package/assets/assets/{BacklinksPage-CtW1w9lh.js → BacklinksPage-yiEbyV67.js} +1 -1
  3. package/assets/assets/{ChartPrimitives-C-nMEqdu.js → ChartPrimitives-D2hRlMHn.js} +1 -1
  4. package/assets/assets/{HistoryPage-CAPJDSbc.js → HistoryPage-CW6MJ-dR.js} +1 -1
  5. package/assets/assets/ProjectPage-Bnr7I5qu.js +9 -0
  6. package/assets/assets/{RunRow-aDzTzGSK.js → RunRow-Dr607W0P.js} +1 -1
  7. package/assets/assets/{RunsPage-Dy9oWMBK.js → RunsPage-CtF3P7CA.js} +1 -1
  8. package/assets/assets/SettingsPage-3-uzs2lp.js +1 -0
  9. package/assets/assets/{TrafficPage-B4ADqeKG.js → TrafficPage-Bww4KUn8.js} +1 -1
  10. package/assets/assets/{TrafficSourceDetailPage-CFcoL_PR.js → TrafficSourceDetailPage-DiHxUH2H.js} +1 -1
  11. package/assets/assets/{arrow-left-DV9xcX1v.js → arrow-left-D-PcVbQ4.js} +1 -1
  12. package/assets/assets/{extract-error-message-DXtgw8Q8.js → extract-error-message-BRq0yLWg.js} +1 -1
  13. package/assets/assets/index-ANFzZ3nU.css +1 -0
  14. package/assets/assets/index-b5M4QpB0.js +213 -0
  15. package/assets/assets/{trash-2-DMV6uGU1.js → trash-2-B6aJTnJl.js} +1 -1
  16. package/assets/index.html +2 -2
  17. package/dist/{chunk-TJ6SDLXL.js → chunk-3NYTF3YC.js} +346 -97
  18. package/dist/{chunk-VN3CI6K6.js → chunk-7D2GZU6O.js} +7270 -2482
  19. package/dist/{chunk-KUPTGRME.js → chunk-WADGZMWT.js} +4592 -3552
  20. package/dist/{chunk-3G5B3IMZ.js → chunk-Z672VQ7G.js} +54 -2
  21. package/dist/cli.js +409 -149
  22. package/dist/index.js +4 -4
  23. package/dist/{intelligence-service-V6JYDYGF.js → intelligence-service-OLIGR6HE.js} +2 -2
  24. package/dist/mcp.js +2 -2
  25. package/package.json +9 -9
  26. package/assets/assets/ProjectPage-79R3wJW6.js +0 -9
  27. package/assets/assets/SettingsPage-DTAs1BrZ.js +0 -1
  28. package/assets/assets/index-CYA3jd24.css +0 -1
  29. package/assets/assets/index-H2iFFrr1.js +0 -213
@@ -46,7 +46,7 @@ import {
46
46
  trafficConnectWordpressRequestSchema,
47
47
  trafficEventKindSchema,
48
48
  trafficSeriesGranularitySchema
49
- } from "./chunk-KUPTGRME.js";
49
+ } from "./chunk-WADGZMWT.js";
50
50
 
51
51
  // src/config.ts
52
52
  import fs from "fs";
@@ -1895,6 +1895,46 @@ var postApiV1KeysByIdRevoke = (options) => {
1895
1895
  ...options
1896
1896
  });
1897
1897
  };
1898
+ var getApiV1Users = (options) => {
1899
+ return (options?.client ?? client).get({
1900
+ security: [
1901
+ {
1902
+ scheme: "bearer",
1903
+ type: "http"
1904
+ }
1905
+ ],
1906
+ url: "/api/v1/users",
1907
+ ...options
1908
+ });
1909
+ };
1910
+ var postApiV1Users = (options) => {
1911
+ return (options.client ?? client).post({
1912
+ security: [
1913
+ {
1914
+ scheme: "bearer",
1915
+ type: "http"
1916
+ }
1917
+ ],
1918
+ url: "/api/v1/users",
1919
+ ...options,
1920
+ headers: {
1921
+ "Content-Type": "application/json",
1922
+ ...options.headers
1923
+ }
1924
+ });
1925
+ };
1926
+ var deleteApiV1UsersByName = (options) => {
1927
+ return (options.client ?? client).delete({
1928
+ security: [
1929
+ {
1930
+ scheme: "bearer",
1931
+ type: "http"
1932
+ }
1933
+ ],
1934
+ url: "/api/v1/users/{name}",
1935
+ ...options
1936
+ });
1937
+ };
1898
1938
  var postApiV1Snapshot = (options) => {
1899
1939
  return (options.client ?? client).post({
1900
1940
  security: [
@@ -4858,6 +4898,18 @@ var ApiClient = class {
4858
4898
  () => postApiV1KeysByIdRevoke({ client: this.heyClient, path: { id } })
4859
4899
  );
4860
4900
  }
4901
+ // ── Account management ──────────────────────────────────────────────────
4902
+ async listUsers() {
4903
+ return this.invoke(() => getApiV1Users({ client: this.heyClient }));
4904
+ }
4905
+ async createUser(body) {
4906
+ return this.invoke(() => postApiV1Users({ client: this.heyClient, body }));
4907
+ }
4908
+ async deleteUser(name) {
4909
+ return this.invoke(
4910
+ () => deleteApiV1UsersByName({ client: this.heyClient, path: { name } })
4911
+ );
4912
+ }
4861
4913
  async updateProvider(name, body) {
4862
4914
  return this.invoke(
4863
4915
  () => putApiV1SettingsProvidersByName({ client: this.heyClient, path: { name }, body })
@@ -7983,7 +8035,7 @@ var canonryMcpTools = [
7983
8035
  defineTool({
7984
8036
  name: "canonry_run_trigger",
7985
8037
  title: "Trigger run",
7986
- description: "Trigger an answer-visibility run for a Canonry project. Pass request.queries[] to scope the sweep to a subset of the project's tracked queries; omit for a full sweep. For verification scenarios (testing whether a provider migration worked, reproducing a regression, sanity-checking after a code change), set request.trigger='probe' \u2014 probe runs write a snapshot you can inspect via canonry_runs_get but are EXCLUDED from dashboard, analytics, intelligence, report, and notifications. Use 'probe' whenever you are testing on your own initiative rather than producing data the user/dashboard will consume.",
8038
+ description: "Trigger an answer-visibility run for a Canonry project. Omit both scoping fields for a full sweep. Pass request.queries[] to measure only some of the project's tracked questions. On a project with a published measurement plan, pass request.measurementScope with at least one group or target to measure one slice of that plan \u2014 a group stands for its member Targets, and only the questions those Targets selected are measured. A scope naming nothing is rejected rather than treated as a full sweep, so omit the field entirely when you want everything. Either kind of slice is recorded as a spot check: it never replaces a full sweep in the dashboard, analytics or report. For verification scenarios (testing whether a provider migration worked, reproducing a regression, sanity-checking after a code change), set request.trigger='probe' \u2014 probe runs write a snapshot you can inspect via canonry_runs_get but are EXCLUDED from dashboard, analytics, intelligence, report, and notifications. Use 'probe' whenever you are testing on your own initiative rather than producing data the user/dashboard will consume.",
7987
8039
  access: "write",
7988
8040
  tier: "core",
7989
8041
  inputSchema: runTriggerInputSchema,