@ainyc/canonry 4.69.3 → 4.70.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.
@@ -1 +1 @@
1
- import{c as d,j as a,bX as S,bR as l,bY as v,ay as y,l as t,bZ as m,bS as i,b_ as T,b$ as h,c0 as p,c1 as C}from"./index-mVWwxF_h.js";import{u as s,r as b,n as c,o as u}from"./vendor-tanstack-Dq7p98wZ.js";const g=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],M=d("refresh-cw",g);function P(e){switch(e){case i.connected:return"positive";case i.paused:return"caution";case i.error:return"negative";case i.archived:return"neutral"}}function w(e){const r={};return e.kind&&e.kind!=="all"&&(r.kind=e.kind),e.sourceId&&(r.sourceId=e.sourceId),e.sinceMinutes!==void 0&&(r.since=new Date(Date.now()-e.sinceMinutes*6e4).toISOString()),e.limit!==void 0&&(r.limit=String(e.limit)),r}function o(e){e.invalidateQueries({predicate:r=>{const n=r.queryKey[0];return typeof n?._id=="string"&&n._id.startsWith("getApiV1ProjectsByNameTraffic")}})}function k(e){return s({...S({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function F(e){return s({...C({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function V(e,r){return s({...l({client:t,path:{name:e??"",id:r??""}}),enabled:!!(e&&r),staleTime:a})}function A(e,r){const n=b.useMemo(()=>w(r),[r.kind,r.sourceId,r.sinceMinutes,r.limit]);return s({...v({client:t,path:{name:e??""},query:n}),enabled:!!e,staleTime:a})}function E(e){const r=c();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a Cloud Run source");return p(e,n)},onSuccess:()=>{e&&o(r)}})}function R(e){const r=c();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a WordPress source");return T(e,n)},onSuccess:()=>{e&&o(r)}})}function I(e){const r=c();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a Vercel source");return h(e,n)},onSuccess:()=>{e&&o(r)}})}function Q(e,r){const n=c();return u({mutationFn:f=>{if(!e||!r)throw new Error("Project and sourceId are required to sync");return m(e,r,f??void 0)},onSuccess:()=>{e&&(o(n),n.invalidateQueries({queryKey:y({client:t})}))}})}export{M as R,R as a,I as b,E as c,k as d,V as e,A as f,Q as g,P as t,F as u};
1
+ import{c as d,j as a,bY as S,bS as l,bZ as v,ay as y,l as t,b_ as m,bT as i,b$ as T,c0 as h,c1 as p,c2 as C}from"./index-oFcxoNUp.js";import{u as c,r as g,n as s,o as u}from"./vendor-tanstack-Dq7p98wZ.js";const w=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],M=d("refresh-cw",w);function P(e){switch(e){case i.connected:return"positive";case i.paused:return"caution";case i.error:return"negative";case i.archived:return"neutral"}}function b(e){const r={};return e.kind&&e.kind!=="all"&&(r.kind=e.kind),e.sourceId&&(r.sourceId=e.sourceId),e.sinceMinutes!==void 0&&(r.since=new Date(Date.now()-e.sinceMinutes*6e4).toISOString()),e.limit!==void 0&&(r.limit=String(e.limit)),r}function o(e){e.invalidateQueries({predicate:r=>{const n=r.queryKey[0];return typeof n?._id=="string"&&n._id.startsWith("getApiV1ProjectsByNameTraffic")}})}function k(e){return c({...S({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function F(e){return c({...C({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function V(e,r){return c({...l({client:t,path:{name:e??"",id:r??""}}),enabled:!!(e&&r),staleTime:a})}function A(e,r){const n=g.useMemo(()=>b(r),[r.kind,r.sourceId,r.sinceMinutes,r.limit]);return c({...v({client:t,path:{name:e??""},query:n}),enabled:!!e,staleTime:a})}function E(e){const r=s();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a Cloud Run source");return p(e,n)},onSuccess:()=>{e&&o(r)}})}function I(e){const r=s();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a WordPress source");return T(e,n)},onSuccess:()=>{e&&o(r)}})}function Q(e){const r=s();return u({mutationFn:n=>{if(!e)throw new Error("Project is required to connect a Vercel source");return h(e,n)},onSuccess:()=>{e&&o(r)}})}function R(e,r){const n=s();return u({mutationFn:f=>{if(!e||!r)throw new Error("Project and sourceId are required to sync");return m(e,r,f??void 0)},onSuccess:()=>{e&&(o(n),n.invalidateQueries({queryKey:y({client:t})}))}})}export{M as R,I as a,Q as b,E as c,k as d,V as e,A as f,R as g,P as t,F as u};
@@ -1 +1 @@
1
- import{c}from"./index-mVWwxF_h.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],h=c("circle-check",a);const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],n=c("circle-question-mark",e);const o=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],s=c("download",o);const t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],r=c("trash-2",t);export{h as C,s as D,r as T,n as a};
1
+ import{c}from"./index-oFcxoNUp.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],h=c("circle-check",a);const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],n=c("circle-question-mark",e);const o=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],s=c("download",o);const t=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],r=c("trash-2",t);export{h as C,s as D,r as T,n as a};
package/assets/index.html CHANGED
@@ -12,12 +12,12 @@
12
12
  <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
13
13
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
14
14
  <title>Canonry</title>
15
- <script type="module" crossorigin src="./assets/index-mVWwxF_h.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-oFcxoNUp.js"></script>
16
16
  <link rel="modulepreload" crossorigin href="./assets/vendor-tanstack-Dq7p98wZ.js">
17
17
  <link rel="modulepreload" crossorigin href="./assets/vendor-radix-B57xfQbP.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/vendor-recharts-ClRVR6aX.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/vendor-markdown-DK7fbRNb.js">
20
- <link rel="stylesheet" crossorigin href="./assets/index-BUNCrWTe.css">
20
+ <link rel="stylesheet" crossorigin href="./assets/index-3N6iFHyR.css">
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
@@ -95,7 +95,7 @@ import {
95
95
  runs,
96
96
  schedules,
97
97
  usageCounters
98
- } from "./chunk-F74QJKIP.js";
98
+ } from "./chunk-XYBBC5CH.js";
99
99
  import {
100
100
  AGENT_MEMORY_VALUE_MAX_BYTES,
101
101
  AGENT_PROVIDER_IDS,
@@ -5618,7 +5618,7 @@ function readStoredGroundingSources(rawResponse) {
5618
5618
  return result;
5619
5619
  }
5620
5620
  async function backfillInsightsCommand(project, opts) {
5621
- const { IntelligenceService: IntelligenceService2 } = await import("./intelligence-service-SCTWXI5M.js");
5621
+ const { IntelligenceService: IntelligenceService2 } = await import("./intelligence-service-GV57RTPO.js");
5622
5622
  const config = loadConfig();
5623
5623
  const db = createClient(config.database);
5624
5624
  migrate(db);
@@ -29854,6 +29854,18 @@ var propertyAccessCheck = {
29854
29854
  }
29855
29855
  };
29856
29856
  }
29857
+ if (match.permissionLevel === "siteUnverifiedUser") {
29858
+ return {
29859
+ status: CheckStatuses.fail,
29860
+ code: "google.auth.property-unverified",
29861
+ summary: `Selected property "${conn.propertyId}" is present but unverified (permission: siteUnverifiedUser); Search Console reads will 403.`,
29862
+ remediation: `Re-verify the property in Search Console for the authorizing account (for a sc-domain property this is a google-site-verification DNS TXT record), then re-run \`canonry google sync ${ctx.project.name}\`.`,
29863
+ details: {
29864
+ selectedProperty: conn.propertyId,
29865
+ permissionLevel: match.permissionLevel
29866
+ }
29867
+ };
29868
+ }
29857
29869
  return {
29858
29870
  status: CheckStatuses.ok,
29859
29871
  code: "google.auth.property-accessible",
package/dist/cli.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  setTelemetrySource,
28
28
  showFirstRunNotice,
29
29
  trackEvent
30
- } from "./chunk-H7TJ5FQ6.js";
30
+ } from "./chunk-B32J3DSZ.js";
31
31
  import {
32
32
  CliError,
33
33
  EXIT_SYSTEM_ERROR,
@@ -52,7 +52,7 @@ import {
52
52
  projects,
53
53
  queries,
54
54
  renderReportHtml
55
- } from "./chunk-F74QJKIP.js";
55
+ } from "./chunk-XYBBC5CH.js";
56
56
  import {
57
57
  CcReleaseSyncStatuses,
58
58
  CheckScopes,
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-H7TJ5FQ6.js";
3
+ } from "./chunk-B32J3DSZ.js";
4
4
  import {
5
5
  loadConfig
6
6
  } from "./chunk-ZNWMVYYU.js";
7
- import "./chunk-F74QJKIP.js";
7
+ import "./chunk-XYBBC5CH.js";
8
8
  import "./chunk-5FM7QRYD.js";
9
9
  export {
10
10
  createServer,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-F74QJKIP.js";
3
+ } from "./chunk-XYBBC5CH.js";
4
4
  import "./chunk-5FM7QRYD.js";
5
5
  export {
6
6
  IntelligenceService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainyc/canonry",
3
- "version": "4.69.3",
3
+ "version": "4.70.1",
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,24 +62,24 @@
62
62
  "@types/node-cron": "^3.0.11",
63
63
  "tsup": "^8.5.1",
64
64
  "tsx": "^4.19.0",
65
- "@ainyc/canonry-api-routes": "0.0.0",
66
65
  "@ainyc/canonry-api-client": "0.0.0",
67
- "@ainyc/canonry-contracts": "0.0.0",
68
- "@ainyc/canonry-db": "0.0.0",
66
+ "@ainyc/canonry-api-routes": "0.0.0",
69
67
  "@ainyc/canonry-config": "0.0.0",
68
+ "@ainyc/canonry-db": "0.0.0",
70
69
  "@ainyc/canonry-integration-bing": "0.0.0",
71
- "@ainyc/canonry-integration-commoncrawl": "0.0.0",
72
70
  "@ainyc/canonry-integration-cloud-run": "0.0.0",
73
71
  "@ainyc/canonry-integration-google": "0.0.0",
72
+ "@ainyc/canonry-contracts": "0.0.0",
73
+ "@ainyc/canonry-integration-commoncrawl": "0.0.0",
74
74
  "@ainyc/canonry-integration-google-business-profile": "0.0.0",
75
75
  "@ainyc/canonry-integration-traffic": "0.0.0",
76
- "@ainyc/canonry-integration-google-places": "0.0.0",
77
76
  "@ainyc/canonry-integration-wordpress": "0.0.0",
78
- "@ainyc/canonry-provider-claude": "0.0.0",
77
+ "@ainyc/canonry-integration-google-places": "0.0.0",
79
78
  "@ainyc/canonry-intelligence": "0.0.0",
79
+ "@ainyc/canonry-provider-claude": "0.0.0",
80
+ "@ainyc/canonry-provider-gemini": "0.0.0",
80
81
  "@ainyc/canonry-provider-cdp": "0.0.0",
81
82
  "@ainyc/canonry-provider-local": "0.0.0",
82
- "@ainyc/canonry-provider-gemini": "0.0.0",
83
83
  "@ainyc/canonry-provider-openai": "0.0.0",
84
84
  "@ainyc/canonry-provider-perplexity": "0.0.0"
85
85
  },