whoami7 - Manager
:
/
home
/
fresvfqn
/
emergencywaterdamagemanhattan.com
/
wp-content
/
plugins
/
surerank
/
build
/
angie
/
Upload File:
files >> //home/fresvfqn/emergencywaterdamagemanhattan.com/wp-content/plugins/surerank/build/angie/index.js
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[587],{27723:e=>{e.exports=window.wp.i18n},67680:(e,t,a)=>{var o=a(12542),n=a(3365),s=a(27723),i=a(18952);async function r(e,t,a="POST"){let o=window.wpApiSettings.root+e,n={method:a,headers:{"X-WP-Nonce":window.wpApiSettings?.nonce||""}};if("GET"===a&&t){const e=new URLSearchParams;Object.keys(t).forEach(a=>{e.append(a,t[a])}),o+="?"+e.toString()}else t&&(n.headers["Content-Type"]="application/json",n.body=JSON.stringify(t));const s=await fetch(o,n);if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return await s.json()}(async()=>{try{const e=await async function(){const e=await async function(){try{return await r("surerank/v1/angie/get-available-types",null,"GET")}catch(e){return{post_types:[],taxonomies:[]}}}(),t=e.post_type_keys||[],a=e.taxonomy_keys||[],o=new n._({name:"surerank-tools",version:"1.0.1"},{capabilities:{tools:{}}});return o.tool("enable-disable-sitemap",(0,s.__)("Enable/Disable the Sitemap from SureRank Settings","surerank"),{enable:i.zM()},async({enable:e})=>{const t="string"===typeof e?"true"===e||"1"===e:Boolean(e),a=await r("surerank/v1/angie/toggle-sitemap",{enable:t});return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}}),o.tool("page-seo-checks",(0,s.__)("Page SEO Checks \u2014 SureRank helps you quickly evaluate and improve the SEO quality of your WordPress pages. It runs automated checks to ensure your content is optimized for both search engines and readers. Checks include: Image Optimization \u2014 identify images missing alt text and ensure accessibility and SEO best practices; URL Health \u2014 alert when a page URL is longer than 90 characters and confirm when it's short and SEO-friendly; Content Media \u2014 check whether the page includes images or videos to enhance engagement; Links \u2014 detect presence or absence of internal/external links and highlight missing links; Title & Meta Description \u2014 verify that the search engine title and description are present and within recommended length limits (title < 60 chars, description < 160 chars); Open Graph Tags \u2014 ensure Open Graph tags are present for better social sharing; Subheadings \u2014 confirm the page contains at least one subheading for better structure and readability; Canonical URL \u2014 check for a canonical tag to avoid duplicate content issues; Broken Links \u2014 detect broken links that harm UX and SEO. SureRank displays clear 'Good' and 'Needs Improvement' indicators for each check so you can spot issues and fix them quickly.","surerank"),{post_id:i.ai()},async({post_id:e})=>{const t=await r("surerank/v1/checks/page",{post_id:parseInt(e)},"GET");return{content:[{type:"text",text:JSON.stringify(t,null,2)}]}}),o.tool("seo-robots-settings",(0,s.__)('Apply SEO robots meta tags to WordPress content. Handles index/noindex (show/hide from search), follow/nofollow (follow/don\'t follow links), archive/noarchive (allow/prevent cached versions). Can target specific posts by ID or apply to all content of a type. Natural language examples: "make post id 25 noindex", "set post 26 and 28 to nofollow", "hide post id 30 from search", "make all pages noindex", "apply nofollow to all products", "set noarchive on all blog posts", "make all events indexable", "hide all pages from search engines", "allow all products to be indexed", "prevent all posts from being cached". Works with any post type: post, page, product, event, custom post types, etc.',"surerank"),{type:i.k5(["cpt","taxonomy"]).describe('Content type: "cpt" for posts/pages/products/events/custom post types, "taxonomy" for categories/tags/custom taxonomies. Use "cpt" for most content operations.'),action:i.k5(["noindex","index","nofollow","follow","noarchive","archive"]).describe('SEO action: "noindex" (hide from search), "index" (show in search), "nofollow" (don\'t follow links), "follow" (follow links), "noarchive" (no cached version), "archive" (allow cached version). Map user phrases like "hide from search" to "noindex", "show in search" to "index", etc.'),name:i.k5([...t,...a]).describe(`Post type or taxonomy slug. Available post types: ${t.join(", ")}. Available taxonomies: ${a.join(", ")}.`),ids:i.YO(i.ai()).optional().describe('Specific post/term IDs to target. Use when user mentions specific IDs like "post id 25" or "posts 26 and 28". Format as [25] for single ID, [26, 28] for multiple. If omitted, applies to ALL items of the specified type.')},async({type:e,action:t,ids:a,name:o})=>{const n=await r("surerank/v1/angie/bulk-robots-settings",{type:e,action:t,name:o,ids:a});return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}),o.tool("indexable-status",(0,s.__)("Check if the page is indexable by search engines by checking surerank robots and other settings","surerank"),{id:i.ai().describe("Post ID to check the indexable status"),type:i.k5(["post","taxonomy"]).describe("Type of the content to check the indexable status which can be post or taxonomy")},async({id:e,type:t})=>{const a=await r("surerank/v1/angie/indexable-status",{id:e,type:t},"GET");return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}}),o.tool("update-title-and-meta-description",(0,s.__)("Update/Enhance the title and/or meta description for a post or term using enhanced title and meta description in SureRank post meta","surerank"),{id:i.ai().describe("Post ID to update the title and meta description"),type:i.k5(["post","taxonomy"]).describe("Type of the content to update the title and meta description which can be post or taxonomy"),title:i.Yj().describe("Title to update for the post or term, maximum 60 characters long. Also relates to current meta title.").optional(),meta_description:i.Yj().describe("Meta description to update for the post or term, maximum 160 characters long.").optional()},async({id:e,type:t,title:a,meta_description:o})=>{const n=await r("surerank/v1/angie/title-and-meta-description",{id:e,type:t,title:a,meta_description:o},"PUT");return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}),o.tool("toggle-surerank-settings",(0,s.__)('Toggle SureRank Settings \u2014 Control multiple SureRank SEO settings with a single command. Supports author archive (show/hide author post archives), date archive (show/hide date-based archives), no_index (strictly array of existing post types or taxonomies to hide from search), no_follow (strictly array of existing post types or taxonomies with nofollow), no_archive (strictly array of existing post types or taxonomies to prevent caching), enable_xml_sitemap (XML sitemap generation), enable_xml_image_sitemap (include images in sitemap), enable_automatic_indexing (auto-submit to search engines), auto_redirect_enabled (automatic redirects), enable_page_level_seo (per-page SEO controls), enable_google_console (Google Search Console integration), enable_schemas (structured data), enable_migration (import from other SEO plugins), enable_extended_meta_templates (advanced meta templates). Examples: "enable author archive and XML sitemap", "disable date archive and enable image sitemap", "set no_index for posts and pages", "enable all sitemaps and schemas", "turn on Google Console and page level SEO".',"surerank"),{settings:i.Ik({author_archive:i.zM().optional().describe("Enable/disable author archive pages that show all posts by a specific author. True to enable, false to disable."),date_archive:i.zM().optional().describe("Enable/disable date archive pages that group posts by month/year. True to enable, false to disable."),no_index:i.YO(i.k5([...t,...a])).optional().describe(`Array of post and taxonomy types to hide from search engines (noindex). Available post types: ${t.join(", ")}. Available taxonomies: ${a.join(", ")}. Empty array means no restrictions.`),no_follow:i.YO(i.k5([...t,...a])).optional().describe(`Array of post and taxonomy types where search engines should not follow links (nofollow). Available post types: ${t.join(", ")}. Available taxonomies: ${a.join(", ")}. Empty array means no restrictions.`),no_archive:i.YO(i.k5([...t,...a])).optional().describe(`Array of post and taxonomy types to prevent search engines from caching (noarchive). Available post types: ${t.join(", ")}. Available taxonomies: ${a.join(", ")}. Empty array means no restrictions.`),enable_xml_sitemap:i.zM().optional().describe("Enable/disable XML sitemap generation. True to generate sitemaps, false to disable."),enable_xml_image_sitemap:i.zM().optional().describe("Enable/disable including images in XML sitemap. True to include images, false to exclude."),enable_automatic_indexing:i.zM().optional().describe("Enable/disable automatic submission to search engines for faster indexing. True to enable, false to disable."),auto_redirect_enabled:i.zM().optional().describe("Enable/disable automatic redirects for SEO purposes. True to enable, false to disable."),enable_page_level_seo:i.zM().optional().describe("Enable/disable per-page SEO controls for individual posts/pages. True to enable, false to disable."),enable_google_console:i.zM().optional().describe("Enable/disable Google Search Console integration. True to enable, false to disable."),enable_schemas:i.zM().optional().describe("Enable/disable structured data/schema markup. True to enable, false to disable."),enable_migration:i.zM().optional().describe("Enable/disable migration tools for importing from other SEO plugins. True to enable, false to disable."),enable_extended_meta_templates:i.zM().optional().describe("Enable/disable advanced meta templates for dynamic SEO content. True to enable, false to disable.")}).describe("Settings object containing the SureRank settings to toggle. Only include the settings you want to change.")},async({settings:e})=>{const t=await r("surerank/v1/angie/toggle-settings",{settings:e});return{content:[{type:"text",text:JSON.stringify(t,null,2)}]}}),o}(),t=new o.BK;await t.registerServer({name:"surerank-angie-tools",version:"1.0.0",description:(0,s.__)("SureRank Angie AI assistant, handles sitemap control, page or term visibility, robots meta tag management(search engine visibility), Site & Page SEO checks, Update post meta title and meta description, and comprehensive settings management for all SureRank SEO features","surerank"),server:e})}catch(e){}})()}},e=>{e.O(0,[91,795,167,862,988,743,912,865,608,115,85,359,18,691,426,254,584,418,555,770,938,427,526,2,908,789,658,645,973,43,732,599,811,160,683,408,40,703,634,61],()=>e(e.s=67680)),e.O()}]);
Copyright ©2021 || Defacer Indonesia