@ainyc/canonry 4.51.2 → 4.51.4
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/README.md +18 -0
- package/assets/assets/{BacklinksPage-BtURdL_I.js → BacklinksPage-9TlM08Wf.js} +1 -1
- package/assets/assets/ProjectPage-CD591qDz.js +6 -0
- package/assets/assets/{RunRow-NfzAq5p2.js → RunRow-D7qdWWRl.js} +1 -1
- package/assets/assets/{RunsPage-CPPFYq6U.js → RunsPage-CvewepfU.js} +1 -1
- package/assets/assets/{SettingsPage-CuB6YrAV.js → SettingsPage-C7BvAhiB.js} +1 -1
- package/assets/assets/{TrafficPage-Dn0XTJoC.js → TrafficPage-DC3NhFOh.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CTG7aAlv.js → TrafficSourceDetailPage-BvtTA6rs.js} +1 -1
- package/assets/assets/{arrow-left-VZ7oOCHS.js → arrow-left-Agb02DMK.js} +1 -1
- package/assets/assets/index-DTCZ93Ne.js +210 -0
- package/assets/assets/{server-traffic-Bym-drXr.js → server-traffic-C-0Ndjpw.js} +1 -1
- package/assets/assets/{trash-2-BNsIoa7t.js → trash-2-lkrXVRRm.js} +1 -1
- package/assets/index.html +1 -1
- package/dist/cli.js +39 -14
- package/package.json +8 -8
- package/assets/assets/ProjectPage-_etyTtZ9.js +0 -6
- package/assets/assets/index-VMFHNbas.js +0 -210
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as a,
|
|
1
|
+
import{c as d,j as a,bC as S,by as l,bD as v,aj as y,l as t,bE as m,bz as i,bF as T,bG as h,bH as p,bI as b}from"./index-DTCZ93Ne.js";import{u as s,r as C,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"}]],F=d("refresh-cw",g);function M(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 P(e){return s({...S({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function k(e){return s({...b({client:t,path:{name:e??""}}),enabled:!!e,staleTime:a})}function E(e,r){return s({...l({client:t,path:{name:e??"",id:r??""}}),enabled:!!(e&&r),staleTime:a})}function V(e,r){const n=C.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 A(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 I(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 Q(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 R(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{F as R,I as a,Q as b,A as c,P as d,E as e,V as f,R as g,M as t,k as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./index-
|
|
1
|
+
import{c}from"./index-DTCZ93Ne.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,7 +12,7 @@
|
|
|
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-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-DTCZ93Ne.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-DWvKDyBF.js">
|
package/dist/cli.js
CHANGED
|
@@ -6683,26 +6683,38 @@ async function triggerRunAll(opts) {
|
|
|
6683
6683
|
}
|
|
6684
6684
|
return;
|
|
6685
6685
|
}
|
|
6686
|
-
const
|
|
6686
|
+
const baseBody = {};
|
|
6687
6687
|
if (opts?.provider) {
|
|
6688
6688
|
const providerInputs = opts.provider.split(",").map((s) => s.trim()).filter(Boolean);
|
|
6689
6689
|
const resolved = providerInputs.flatMap((p) => resolveProviderInput(p));
|
|
6690
|
-
|
|
6690
|
+
baseBody.providers = resolved.length > 0 ? resolved : providerInputs;
|
|
6691
6691
|
}
|
|
6692
6692
|
if (opts?.allLocations) {
|
|
6693
|
-
|
|
6693
|
+
baseBody.allLocations = true;
|
|
6694
6694
|
}
|
|
6695
6695
|
if (opts?.noLocation) {
|
|
6696
|
-
|
|
6696
|
+
baseBody.noLocation = true;
|
|
6697
6697
|
}
|
|
6698
6698
|
const results = [];
|
|
6699
6699
|
for (const p of projects2) {
|
|
6700
|
+
const body = { ...baseBody };
|
|
6701
|
+
if (body.allLocations && p.locations.length === 0) {
|
|
6702
|
+
delete body.allLocations;
|
|
6703
|
+
}
|
|
6700
6704
|
try {
|
|
6701
|
-
const
|
|
6702
|
-
|
|
6705
|
+
const response = await client.triggerRun(p.name, body);
|
|
6706
|
+
const dispatched = Array.isArray(response) ? response : [response];
|
|
6707
|
+
for (const r of dispatched) {
|
|
6708
|
+
results.push({
|
|
6709
|
+
project: p.name,
|
|
6710
|
+
runId: r.id,
|
|
6711
|
+
status: r.status,
|
|
6712
|
+
location: r.location ?? null
|
|
6713
|
+
});
|
|
6714
|
+
}
|
|
6703
6715
|
} catch (err) {
|
|
6704
6716
|
const msg = err instanceof Error ? err.message : String(err);
|
|
6705
|
-
results.push({ project: p.name, runId: "", status: "error", error: msg });
|
|
6717
|
+
results.push({ project: p.name, runId: "", status: "error", location: null, error: msg });
|
|
6706
6718
|
}
|
|
6707
6719
|
}
|
|
6708
6720
|
if (opts?.wait) {
|
|
@@ -6720,14 +6732,27 @@ async function triggerRunAll(opts) {
|
|
|
6720
6732
|
console.log(JSON.stringify(results, null, 2));
|
|
6721
6733
|
return;
|
|
6722
6734
|
}
|
|
6723
|
-
|
|
6735
|
+
const showLocationColumn = results.some((r) => r.location !== null);
|
|
6736
|
+
const projectCount = new Set(results.map((r) => r.project)).size;
|
|
6737
|
+
console.log(`Triggered ${results.length} run(s) across ${projectCount} project(s):
|
|
6724
6738
|
`);
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
const
|
|
6729
|
-
|
|
6730
|
-
|
|
6739
|
+
if (showLocationColumn) {
|
|
6740
|
+
console.log(" PROJECT LOCATION RUN ID STATUS");
|
|
6741
|
+
console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
6742
|
+
for (const r of results) {
|
|
6743
|
+
const proj = r.project.padEnd(31);
|
|
6744
|
+
const loc = (r.location ?? "\u2014").padEnd(15);
|
|
6745
|
+
const id = (r.runId || "(failed)").padEnd(36);
|
|
6746
|
+
console.log(` ${proj} ${loc} ${id} ${r.status}`);
|
|
6747
|
+
}
|
|
6748
|
+
} else {
|
|
6749
|
+
console.log(" PROJECT RUN ID STATUS");
|
|
6750
|
+
console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
6751
|
+
for (const r of results) {
|
|
6752
|
+
const proj = r.project.padEnd(31);
|
|
6753
|
+
const id = (r.runId || "(failed)").padEnd(36);
|
|
6754
|
+
console.log(` ${proj} ${id} ${r.status}`);
|
|
6755
|
+
}
|
|
6731
6756
|
}
|
|
6732
6757
|
}
|
|
6733
6758
|
async function cancelRun(project, runId, format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainyc/canonry",
|
|
3
|
-
"version": "4.51.
|
|
3
|
+
"version": "4.51.4",
|
|
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,22 +62,22 @@
|
|
|
62
62
|
"tsx": "^4.19.0",
|
|
63
63
|
"@ainyc/canonry-api-client": "0.0.0",
|
|
64
64
|
"@ainyc/canonry-config": "0.0.0",
|
|
65
|
-
"@ainyc/canonry-api-routes": "0.0.0",
|
|
66
65
|
"@ainyc/canonry-contracts": "0.0.0",
|
|
67
66
|
"@ainyc/canonry-db": "0.0.0",
|
|
67
|
+
"@ainyc/canonry-api-routes": "0.0.0",
|
|
68
68
|
"@ainyc/canonry-intelligence": "0.0.0",
|
|
69
|
-
"@ainyc/canonry-integration-
|
|
69
|
+
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
70
70
|
"@ainyc/canonry-integration-cloud-run": "0.0.0",
|
|
71
|
-
"@ainyc/canonry-integration-
|
|
71
|
+
"@ainyc/canonry-integration-bing": "0.0.0",
|
|
72
72
|
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
73
|
+
"@ainyc/canonry-integration-google": "0.0.0",
|
|
73
74
|
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
74
|
-
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
75
|
-
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
76
75
|
"@ainyc/canonry-provider-cdp": "0.0.0",
|
|
76
|
+
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
77
77
|
"@ainyc/canonry-provider-local": "0.0.0",
|
|
78
|
+
"@ainyc/canonry-provider-openai": "0.0.0",
|
|
78
79
|
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
79
|
-
"@ainyc/canonry-provider-perplexity": "0.0.0"
|
|
80
|
-
"@ainyc/canonry-provider-openai": "0.0.0"
|
|
80
|
+
"@ainyc/canonry-provider-perplexity": "0.0.0"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",
|