klaudius 0.37.2 → 0.37.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{appendFileSync as
|
|
1
|
+
import{appendFileSync as K}from"fs";import{tmpdir as pe}from"os";import{join as me}from"path";var x=me(pe(),"klaudius-wizard-debug.log"),ye=process.env.KLAUDIUS_WIZARD_DEBUG==="1",L=!1;function fe(e,a){if(ye)try{L||(L=!0,K(x,`
|
|
2
2
|
=== klaudius wizard debug session \u2014 ${new Date().toISOString()} ===
|
|
3
3
|
node ${process.version}, platform ${process.platform}, tty=${process.stdin.isTTY}
|
|
4
|
-
`));let
|
|
5
|
-
`)}catch{}}var ra=x,
|
|
6
|
-
`).slice(0,8).join(" | ")}),e(a)})}import{execFileSync as be}from"child_process";import{readFileSync as we}from"fs";import{homedir as Ce}from"os";import{join as ke}from"path";function
|
|
4
|
+
`));let t=`${Date.now()} `,n=a===void 0?"":" "+JSON.stringify(a,null,0).slice(0,400);K(x,t+e+n+`
|
|
5
|
+
`)}catch{}}var ra=x,F=!1;function la(){if(F)return;F=!0;let e=process.exit.bind(process);process.exit=(a=>{let t=new Error("process.exit called").stack??"(no stack)";return fe("process.exit called",{code:a,stack:t.split(`
|
|
6
|
+
`).slice(0,8).join(" | ")}),e(a)})}import{execFileSync as be}from"child_process";import{readFileSync as we}from"fs";import{homedir as Ce}from"os";import{join as ke}from"path";function R(){let e=Se();if(e){if(e.includes("max_20x"))return"claude-max-20x";if(e.includes("max_5x"))return"claude-max-5x";if(e.includes("pro"))return"claude-pro"}}function Se(){let e=process.env.KLAUDIUS_PLAN_TIER;if(e!==void 0)return e||void 0;let a=t=>{try{let n=JSON.parse(t).claudeAiOauth;return typeof n?.rateLimitTier=="string"?n.rateLimitTier:void 0}catch{return}};try{let t=a(we(ke(Ce(),".claude",".credentials.json"),"utf-8"));if(t)return t}catch{}if(process.platform==="darwin")try{return a(be("security",["find-generic-password","-s","Claude Code-credentials","-w"],{encoding:"utf-8",timeout:3e3}))}catch{return}}function ma(e){if(!e)return;let a=e.toLowerCase();for(let[t,n]of Object.entries(S))if(n.smtpHost===a||n.altHostSets?.some(s=>s.smtpHost===a))return t}function ya(e,a,t){if(e==="custom")return[];if(!Object.hasOwn(S,e))return[];let n=S[e];return[{label:`standard ${n.label}`,smtpHost:n.smtpHost,imapHost:n.imapHost},...n.altHostSets??[]].filter(o=>!(o.smtpHost===a&&o.imapHost===t))}var S={gmail:{label:"Gmail",smtpHost:"smtp.gmail.com",smtpPort:587,imapHost:"imap.gmail.com",imapPort:993,sentFolder:"[Gmail]/Sent Mail",inboxFolder:"INBOX",draftsFolder:"[Gmail]/Drafts",appPasswordHelp:`Generate at https://myaccount.google.com/apppasswords
|
|
7
7
|
(2-step verification must be enabled on your Google account first;
|
|
8
8
|
Google won't accept your normal account password from third-party apps).`},outlook:{label:"Outlook / Microsoft 365",smtpHost:"smtp-mail.outlook.com",smtpPort:587,imapHost:"outlook.office365.com",imapPort:993,sentFolder:"Sent Items",inboxFolder:"INBOX",draftsFolder:"Drafts",oauthOnly:!0,appPasswordHelp:`Outlook / Microsoft 365 mailboxes don't use passwords with Klaudius \u2014
|
|
9
9
|
Microsoft retired app-password access. Connect with the one-time
|
|
@@ -58,15 +58,15 @@ login, so the server isn't the problem. In Titan webmail, check:
|
|
|
58
58
|
many providers require a generated app-specific password, while some
|
|
59
59
|
(e.g. IONOS, Titan) just use your normal mailbox password. If your
|
|
60
60
|
provider offers app passwords, prefer one \u2014 it's revocable on its own
|
|
61
|
-
and doesn't expose your account login.`;var ve=new Set(["claude-pro","claude-team-standard","codex-plus","codex-business"]),ba=new Set(["codex-plus","codex-business"]);function G(e){return e&&ve.has(e)?"off":"on"}var wa={"claude-pro":"Claude Pro","claude-max-5x":"Claude Max 5x","claude-max-20x":"Claude Max 20x","claude-team-standard":"Claude Team (Standard seat)","claude-team-premium":"Claude Team (Premium seat)","claude-other":"Claude (other plan)","codex-plus":"ChatGPT Plus","codex-pro":"ChatGPT Pro","codex-business":"ChatGPT Business (Standard seat)","codex-business-premium":"ChatGPT Business (Premium seat)","codex-other":"ChatGPT (other plan)"},U={"claude-code":[{value:"claude-pro",label:"Claude Pro (QA pass off)"},{value:"claude-max-5x",label:"Claude Max 5x (full pipeline)"},{value:"claude-max-20x",label:"Claude Max 20x (full pipeline)"},{value:"claude-team-standard",label:"Claude Team Standard (QA pass off)"},{value:"claude-team-premium",label:"Claude Team Premium (full pipeline)"}],codex:[{value:"codex-plus",label:"ChatGPT Plus (QA pass off, Terra model)"},{value:"codex-pro",label:"ChatGPT Pro (full pipeline)"},{value:"codex-business",label:"ChatGPT Business Standard (QA off, Terra model)"},{value:"codex-business-premium",label:"ChatGPT Business Premium (full pipeline)"}]};function P(e){if(!(e instanceof Error))return String(e);let a=e.cause;if(!a||!(a instanceof Error))return e.message;let n=a.code,t=a.message;return n&&t&&t!==n?`${e.message} (${n}: ${t})`:n?`${e.message} (${n})`:t?`${e.message} (${t})`:e.message}async function B(e){let a;try{let o=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/getUpdates`);if(a=await o.json(),!a.ok){let i=a.description??`HTTP ${o.status}`;if(/webhook/i.test(i))return{ok:!1,reason:"webhook_set",message:"This bot has a webhook set: another app already receives its messages, so Telegram won't show them to Klaudius."};if(/terminated by other getUpdates/i.test(i))return{ok:!1,reason:"conflict",message:`Telegram says another app is already polling this bot: ${i}.`};let r=a.error_code??o.status;return r===429||r>=500?{ok:!1,reason:"busy",message:`Telegram couldn't answer just now: ${i}.`}:{ok:!1,reason:"bad_token",message:`Telegram rejected the bot token: ${i}. Double-check the token from @BotFather.`}}}catch(o){return{ok:!1,reason:"network",message:`Could not reach Telegram: ${P(o)}`}}let n=a.result??[];if(n.length===0)return{ok:!1,reason:"no_messages",message:"No messages yet. Send your bot a regular text message in Telegram, then retry."};let t=n[n.length-1],s=t?.message?.chat?.id??t?.edited_message?.chat?.id??t?.channel_post?.chat?.id;return s===void 0?{ok:!1,reason:"no_messages",message:"Got an update from Telegram but couldn't find a chat ID in it. Send another text message and retry."}:{ok:!0,chatId:String(s)}}async function Pe(e){try{let a=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/getMe`),n=await a.json();return n.ok?{ok:!0,botHandle:n.result?.username?`@${n.result.username}`:n.result?.first_name}:{ok:!1,failedAt:"token",message:`Telegram rejected the bot token: ${n.description??`HTTP ${a.status}`}. Generate a new token by messaging @BotFather \u2192 /mytoken or /newbot.`}}catch(a){return{ok:!1,failedAt:"token",message:`Could not reach Telegram: ${P(a)}`}}}async function va(e){let a=await Pe({botToken:e.botToken});if(!a.ok)return a;let n=a.botHandle;try{let t=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/sendMessage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chat_id:e.chatId,text:"\u2713 Klaudius connected. You'll get a notification here whenever outreach lands or a candidate replies. (You can ignore this setup message.)",disable_notification:!0})}),s=await t.json();if(!s.ok){let o=s.description??`HTTP ${t.status}`,i="";return/chat not found/i.test(o)?i=" The chat_id is wrong, or the bot hasn't been added to that chat yet. If it's a group, you must add the bot to the group first; then send /start to it.":(/bot was blocked/i.test(o)||/forbidden/i.test(o))&&(i=" The bot has been blocked by the chat, or never received a /start. Open Telegram, find your bot, and send /start to wake it up."),{ok:!1,failedAt:"chat",botHandle:n,message:`Telegram delivered the bot token check but couldn't send to chat_id ${e.chatId}: ${o}.${i}`}}}catch(t){return{ok:!1,failedAt:"chat",botHandle:n,message:`Could not reach Telegram for chat_id check: ${P(t)}`}}return{ok:!0,botHandle:n}}function D(e){let a=e.trim();if(a.length===0)return"Required \u2014 without this Klaudius can't deploy generated sites";if(a.startsWith("http://")||a.startsWith("https://"))return"This is the SSH destination, not a URL \u2014 e.g. deploy@yourvps:/var/www/klaudius-sites";if(/^[A-Za-z]:[\\/]/.test(a))return"That's a local Windows path \u2014 the target must be a remote SSH destination like user@host:/path";if(!/^[^\s:]+:\/?.+/.test(a))return"Should look like user@host:/path (an SSH destination)"}function $(e){let a=e.trim();if(a.length===0)return"Required \u2014 outreach links every pitch to the live site URL";if(!/^https?:\/\//.test(a))return"Must start with https:// (or http://)";if(!a.includes("{slug}"))return"Must contain {slug} \u2014 it's replaced with each client's slug";if(!(a.replace(/^https?:\/\//,"").split("/")[0]??"").includes("{slug}"))return"{slug} must be in the hostname (e.g. https://{slug}.sites.example.com) \u2014 a path like /sites/{slug} breaks static-export asset links"}var Ae=[{country:"the United Kingdom",code:"GB",language:"English",langCode:"en",aliases:["uk","united kingdom","great britain","britain","england","scotland","wales","northern ireland"]},{country:"Ireland",code:"IE",language:"English",langCode:"en"},{country:"France",code:"FR",language:"French",langCode:"fr"},{country:"Germany",code:"DE",language:"German",langCode:"de",aliases:["deutschland"]},{country:"Austria",code:"AT",language:"German",langCode:"de",aliases:["\xF6sterreich","osterreich"]},{country:"Switzerland",code:"CH",language:"German",langCode:"de",aliases:["schweiz","suisse","svizzera"]},{country:"Liechtenstein",code:"LI",language:"German",langCode:"de"},{country:"Luxembourg",code:"LU",language:"French",langCode:"fr",aliases:["l\xEBtzebuerg"]},{country:"the Netherlands",code:"NL",language:"Dutch",langCode:"nl",aliases:["netherlands","holland","nederland"]},{country:"Belgium",code:"BE",language:"Dutch",langCode:"nl",aliases:["belgi\xEB","belgique"]},{country:"Monaco",code:"MC",language:"French",langCode:"fr"},{country:"Andorra",code:"AD",language:"Catalan",langCode:"ca"},{country:"Italy",code:"IT",language:"Italian",langCode:"it",aliases:["italia"]},{country:"Spain",code:"ES",language:"Spanish",langCode:"es",aliases:["espa\xF1a","espana"]},{country:"Portugal",code:"PT",language:"Portuguese",langCode:"pt"},{country:"Malta",code:"MT",language:"English",langCode:"en"},{country:"San Marino",code:"SM",language:"Italian",langCode:"it"},{country:"Vatican City",code:"VA",language:"Italian",langCode:"it",aliases:["the vatican","holy see"]},{country:"Sweden",code:"SE",language:"Swedish",langCode:"sv",aliases:["sverige"]},{country:"Norway",code:"NO",language:"Norwegian",langCode:"no",aliases:["norge"]},{country:"Denmark",code:"DK",language:"Danish",langCode:"da",aliases:["danmark"]},{country:"Finland",code:"FI",language:"Finnish",langCode:"fi",aliases:["suomi"]},{country:"Iceland",code:"IS",language:"Icelandic",langCode:"is",aliases:["\xEDsland"]},{country:"Poland",code:"PL",language:"Polish",langCode:"pl",aliases:["polska"]},{country:"Czech Republic",code:"CZ",language:"Czech",langCode:"cs",aliases:["czechia","\u010Desko"]},{country:"Slovakia",code:"SK",language:"Slovak",langCode:"sk",aliases:["slovensko"]},{country:"Hungary",code:"HU",language:"Hungarian",langCode:"hu",aliases:["magyarorsz\xE1g"]},{country:"Slovenia",code:"SI",language:"Slovenian",langCode:"sl",aliases:["slovenija"]},{country:"Croatia",code:"HR",language:"Croatian",langCode:"hr",aliases:["hrvatska"]},{country:"Bosnia and Herzegovina",code:"BA",language:"Bosnian",langCode:"bs",aliases:["bosnia"]},{country:"Serbia",code:"RS",language:"Serbian",langCode:"sr",aliases:["srbija"]},{country:"Montenegro",code:"ME",language:"Montenegrin",langCode:"sr",aliases:["crna gora"]},{country:"Kosovo",code:"XK",language:"Albanian",langCode:"sq"},{country:"North Macedonia",code:"MK",language:"Macedonian",langCode:"mk",aliases:["macedonia"]},{country:"Albania",code:"AL",language:"Albanian",langCode:"sq",aliases:["shqip\xEBria"]},{country:"Bulgaria",code:"BG",language:"Bulgarian",langCode:"bg"},{country:"Romania",code:"RO",language:"Romanian",langCode:"ro",aliases:["rom\xE2nia"]},{country:"Moldova",code:"MD",language:"Romanian",langCode:"ro"},{country:"Greece",code:"GR",language:"Greek",langCode:"el",aliases:["\u03B5\u03BB\u03BB\u03AC\u03B4\u03B1"]},{country:"Cyprus",code:"CY",language:"Greek",langCode:"el"},{country:"Russia",code:"RU",language:"Russian",langCode:"ru",aliases:["\u0440\u043E\u0441\u0441\u0438\u044F"]},{country:"Ukraine",code:"UA",language:"Ukrainian",langCode:"uk",aliases:["\u0443\u043A\u0440\u0430\u0457\u043D\u0430"]},{country:"Belarus",code:"BY",language:"Belarusian",langCode:"be"},{country:"Estonia",code:"EE",language:"Estonian",langCode:"et",aliases:["eesti"]},{country:"Latvia",code:"LV",language:"Latvian",langCode:"lv",aliases:["latvija"]},{country:"Lithuania",code:"LT",language:"Lithuanian",langCode:"lt",aliases:["lietuva"]},{country:"Turkey",code:"TR",language:"Turkish",langCode:"tr",aliases:["t\xFCrkiye","turkiye"]},{country:"Armenia",code:"AM",language:"Armenian",langCode:"hy"},{country:"Azerbaijan",code:"AZ",language:"Azerbaijani",langCode:"az",aliases:["az\u0259rbaycan"]},{country:"Georgia",code:"GE",language:"Georgian",langCode:"ka",aliases:["\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD"]},{country:"Israel",code:"IL",language:"Hebrew",langCode:"he"},{country:"Palestine",code:"PS",language:"Arabic",langCode:"ar"},{country:"Lebanon",code:"LB",language:"Arabic",langCode:"ar"},{country:"Syria",code:"SY",language:"Arabic",langCode:"ar"},{country:"Jordan",code:"JO",language:"Arabic",langCode:"ar"},{country:"Iraq",code:"IQ",language:"Arabic",langCode:"ar"},{country:"Iran",code:"IR",language:"Persian",langCode:"fa",aliases:["islamic republic of iran"]},{country:"Saudi Arabia",code:"SA",language:"Arabic",langCode:"ar"},{country:"Yemen",code:"YE",language:"Arabic",langCode:"ar"},{country:"Oman",code:"OM",language:"Arabic",langCode:"ar"},{country:"the United Arab Emirates",code:"AE",language:"English",langCode:"en",aliases:["uae","united arab emirates","dubai","abu dhabi"]},{country:"Qatar",code:"QA",language:"Arabic",langCode:"ar"},{country:"Bahrain",code:"BH",language:"Arabic",langCode:"ar"},{country:"Kuwait",code:"KW",language:"Arabic",langCode:"ar"},{country:"Kazakhstan",code:"KZ",language:"Kazakh",langCode:"kk"},{country:"Uzbekistan",code:"UZ",language:"Uzbek",langCode:"uz"},{country:"Kyrgyzstan",code:"KG",language:"Kyrgyz",langCode:"ky"},{country:"Turkmenistan",code:"TM",language:"Turkmen",langCode:"tk"},{country:"Tajikistan",code:"TJ",language:"Tajik",langCode:"tg"},{country:"Afghanistan",code:"AF",language:"Persian",langCode:"fa"},{country:"India",code:"IN",language:"English",langCode:"en"},{country:"Pakistan",code:"PK",language:"English",langCode:"en"},{country:"Bangladesh",code:"BD",language:"Bengali",langCode:"bn"},{country:"Sri Lanka",code:"LK",language:"English",langCode:"en"},{country:"Nepal",code:"NP",language:"Nepali",langCode:"ne"},{country:"Bhutan",code:"BT",language:"English",langCode:"en"},{country:"the Maldives",code:"MV",language:"English",langCode:"en",aliases:["maldives"]},{country:"China",code:"CN",language:"Chinese",langCode:"zh",aliases:["\u4E2D\u56FD","people's republic of china","prc"]},{country:"Hong Kong",code:"HK",language:"English",langCode:"en",aliases:["hk"]},{country:"Macao",code:"MO",language:"Chinese",langCode:"zh",aliases:["macau"]},{country:"Taiwan",code:"TW",language:"Chinese",langCode:"zh",aliases:["\u53F0\u7063","republic of china"]},{country:"Japan",code:"JP",language:"Japanese",langCode:"ja",aliases:["\u65E5\u672C"]},{country:"South Korea",code:"KR",language:"Korean",langCode:"ko",aliases:["korea","republic of korea"]},{country:"North Korea",code:"KP",language:"Korean",langCode:"ko",aliases:["dprk"]},{country:"Mongolia",code:"MN",language:"Mongolian",langCode:"mn"},{country:"Thailand",code:"TH",language:"Thai",langCode:"th"},{country:"Vietnam",code:"VN",language:"Vietnamese",langCode:"vi",aliases:["viet nam"]},{country:"Cambodia",code:"KH",language:"Khmer",langCode:"km"},{country:"Laos",code:"LA",language:"Lao",langCode:"lo"},{country:"Myanmar",code:"MM",language:"Burmese",langCode:"my",aliases:["burma"]},{country:"Malaysia",code:"MY",language:"Malay",langCode:"ms"},{country:"Singapore",code:"SG",language:"English",langCode:"en"},{country:"Brunei",code:"BN",language:"Malay",langCode:"ms",aliases:["brunei darussalam"]},{country:"Indonesia",code:"ID",language:"Indonesian",langCode:"id"},{country:"the Philippines",code:"PH",language:"English",langCode:"en",aliases:["philippines"]},{country:"Timor-Leste",code:"TL",language:"Portuguese",langCode:"pt",aliases:["east timor"]},{country:"the United States",code:"US",language:"English",langCode:"en",aliases:["us","usa","united states","united states of america","america","states"]},{country:"Canada",code:"CA",language:"English",langCode:"en"},{country:"Mexico",code:"MX",language:"Spanish",langCode:"es",aliases:["m\xE9xico"]},{country:"Guatemala",code:"GT",language:"Spanish",langCode:"es"},{country:"Belize",code:"BZ",language:"English",langCode:"en"},{country:"El Salvador",code:"SV",language:"Spanish",langCode:"es"},{country:"Honduras",code:"HN",language:"Spanish",langCode:"es"},{country:"Nicaragua",code:"NI",language:"Spanish",langCode:"es"},{country:"Costa Rica",code:"CR",language:"Spanish",langCode:"es"},{country:"Panama",code:"PA",language:"Spanish",langCode:"es",aliases:["panam\xE1"]},{country:"Cuba",code:"CU",language:"Spanish",langCode:"es"},{country:"the Dominican Republic",code:"DO",language:"Spanish",langCode:"es",aliases:["dominican republic"]},{country:"Haiti",code:"HT",language:"French",langCode:"fr"},{country:"Jamaica",code:"JM",language:"English",langCode:"en"},{country:"the Bahamas",code:"BS",language:"English",langCode:"en",aliases:["bahamas"]},{country:"Trinidad and Tobago",code:"TT",language:"English",langCode:"en"},{country:"Barbados",code:"BB",language:"English",langCode:"en"},{country:"Saint Lucia",code:"LC",language:"English",langCode:"en"},{country:"Saint Vincent and the Grenadines",code:"VC",language:"English",langCode:"en"},{country:"Grenada",code:"GD",language:"English",langCode:"en"},{country:"Dominica",code:"DM",language:"English",langCode:"en"},{country:"Saint Kitts and Nevis",code:"KN",language:"English",langCode:"en"},{country:"Antigua and Barbuda",code:"AG",language:"English",langCode:"en"},{country:"Puerto Rico",code:"PR",language:"Spanish",langCode:"es"},{country:"Brazil",code:"BR",language:"Portuguese",langCode:"pt",aliases:["brasil"]},{country:"Argentina",code:"AR",language:"Spanish",langCode:"es"},{country:"Colombia",code:"CO",language:"Spanish",langCode:"es"},{country:"Chile",code:"CL",language:"Spanish",langCode:"es"},{country:"Peru",code:"PE",language:"Spanish",langCode:"es",aliases:["per\xFA"]},{country:"Venezuela",code:"VE",language:"Spanish",langCode:"es"},{country:"Ecuador",code:"EC",language:"Spanish",langCode:"es"},{country:"Bolivia",code:"BO",language:"Spanish",langCode:"es"},{country:"Paraguay",code:"PY",language:"Spanish",langCode:"es"},{country:"Uruguay",code:"UY",language:"Spanish",langCode:"es"},{country:"Guyana",code:"GY",language:"English",langCode:"en"},{country:"Suriname",code:"SR",language:"Dutch",langCode:"nl"},{country:"Australia",code:"AU",language:"English",langCode:"en",aliases:["aus","oz"]},{country:"New Zealand",code:"NZ",language:"English",langCode:"en",aliases:["nz","aotearoa"]},{country:"Fiji",code:"FJ",language:"English",langCode:"en"},{country:"Papua New Guinea",code:"PG",language:"English",langCode:"en",aliases:["png"]},{country:"Samoa",code:"WS",language:"English",langCode:"en"},{country:"Tonga",code:"TO",language:"English",langCode:"en"},{country:"Vanuatu",code:"VU",language:"English",langCode:"en"},{country:"Solomon Islands",code:"SB",language:"English",langCode:"en"},{country:"Kiribati",code:"KI",language:"English",langCode:"en"},{country:"Tuvalu",code:"TV",language:"English",langCode:"en"},{country:"Nauru",code:"NR",language:"English",langCode:"en"},{country:"Palau",code:"PW",language:"English",langCode:"en"},{country:"the Marshall Islands",code:"MH",language:"English",langCode:"en",aliases:["marshall islands"]},{country:"Micronesia",code:"FM",language:"English",langCode:"en",aliases:["federated states of micronesia"]},{country:"Egypt",code:"EG",language:"Arabic",langCode:"ar"},{country:"Libya",code:"LY",language:"Arabic",langCode:"ar"},{country:"Tunisia",code:"TN",language:"Arabic",langCode:"ar"},{country:"Algeria",code:"DZ",language:"Arabic",langCode:"ar"},{country:"Morocco",code:"MA",language:"Arabic",langCode:"ar",aliases:["maroc"]},{country:"Sudan",code:"SD",language:"Arabic",langCode:"ar"},{country:"South Sudan",code:"SS",language:"English",langCode:"en"},{country:"Mauritania",code:"MR",language:"Arabic",langCode:"ar"},{country:"Nigeria",code:"NG",language:"English",langCode:"en"},{country:"Ghana",code:"GH",language:"English",langCode:"en"},{country:"Senegal",code:"SN",language:"French",langCode:"fr",aliases:["s\xE9n\xE9gal"]},{country:"C\xF4te d'Ivoire",code:"CI",language:"French",langCode:"fr",aliases:["ivory coast"]},{country:"Mali",code:"ML",language:"French",langCode:"fr"},{country:"Burkina Faso",code:"BF",language:"French",langCode:"fr"},{country:"Niger",code:"NE",language:"French",langCode:"fr"},{country:"Guinea",code:"GN",language:"French",langCode:"fr",aliases:["guin\xE9e"]},{country:"Guinea-Bissau",code:"GW",language:"Portuguese",langCode:"pt"},{country:"Sierra Leone",code:"SL",language:"English",langCode:"en"},{country:"Liberia",code:"LR",language:"English",langCode:"en"},{country:"the Gambia",code:"GM",language:"English",langCode:"en",aliases:["gambia"]},{country:"Cabo Verde",code:"CV",language:"Portuguese",langCode:"pt",aliases:["cape verde"]},{country:"Togo",code:"TG",language:"French",langCode:"fr"},{country:"Benin",code:"BJ",language:"French",langCode:"fr",aliases:["b\xE9nin"]},{country:"Cameroon",code:"CM",language:"French",langCode:"fr",aliases:["cameroun"]},{country:"the Central African Republic",code:"CF",language:"French",langCode:"fr",aliases:["central african republic","car"]},{country:"Chad",code:"TD",language:"French",langCode:"fr",aliases:["tchad"]},{country:"Equatorial Guinea",code:"GQ",language:"Spanish",langCode:"es"},{country:"Gabon",code:"GA",language:"French",langCode:"fr"},{country:"the Republic of the Congo",code:"CG",language:"French",langCode:"fr",aliases:["congo","republic of the congo","congo-brazzaville"]},{country:"the Democratic Republic of the Congo",code:"CD",language:"French",langCode:"fr",aliases:["dr congo","drc","democratic republic of the congo","congo-kinshasa","zaire"]},{country:"S\xE3o Tom\xE9 and Pr\xEDncipe",code:"ST",language:"Portuguese",langCode:"pt",aliases:["sao tome and principe","sao tome"]},{country:"Ethiopia",code:"ET",language:"Amharic",langCode:"am"},{country:"Eritrea",code:"ER",language:"Tigrinya",langCode:"ti"},{country:"Djibouti",code:"DJ",language:"French",langCode:"fr"},{country:"Somalia",code:"SO",language:"Somali",langCode:"so"},{country:"Kenya",code:"KE",language:"English",langCode:"en"},{country:"Uganda",code:"UG",language:"English",langCode:"en"},{country:"Tanzania",code:"TZ",language:"English",langCode:"en",aliases:["united republic of tanzania"]},{country:"Rwanda",code:"RW",language:"English",langCode:"en"},{country:"Burundi",code:"BI",language:"French",langCode:"fr"},{country:"Madagascar",code:"MG",language:"French",langCode:"fr"},{country:"Mauritius",code:"MU",language:"English",langCode:"en"},{country:"the Seychelles",code:"SC",language:"English",langCode:"en",aliases:["seychelles"]},{country:"Comoros",code:"KM",language:"French",langCode:"fr"},{country:"South Africa",code:"ZA",language:"English",langCode:"en",aliases:["sa"]},{country:"Namibia",code:"NA",language:"English",langCode:"en"},{country:"Botswana",code:"BW",language:"English",langCode:"en"},{country:"Zimbabwe",code:"ZW",language:"English",langCode:"en"},{country:"Zambia",code:"ZM",language:"English",langCode:"en"},{country:"Malawi",code:"MW",language:"English",langCode:"en"},{country:"Mozambique",code:"MZ",language:"Portuguese",langCode:"pt",aliases:["mo\xE7ambique"]},{country:"Angola",code:"AO",language:"Portuguese",langCode:"pt"},{country:"Lesotho",code:"LS",language:"English",langCode:"en"},{country:"Eswatini",code:"SZ",language:"English",langCode:"en",aliases:["swaziland"]}],Te=[{language:"English",code:"en"},{language:"Italian",code:"it",aliases:["italiano"]},{language:"Spanish",code:"es",aliases:["espa\xF1ol","espanol","castellano"]},{language:"French",code:"fr",aliases:["fran\xE7ais","francais"]},{language:"German",code:"de",aliases:["deutsch"]},{language:"Portuguese",code:"pt",aliases:["portugu\xEAs","portugues"]},{language:"Dutch",code:"nl",aliases:["nederlands","flemish"]},{language:"Swedish",code:"sv",aliases:["svenska"]},{language:"Norwegian",code:"no",aliases:["norsk"]},{language:"Danish",code:"da",aliases:["dansk"]},{language:"Icelandic",code:"is",aliases:["\xEDslenska"]},{language:"Catalan",code:"ca",aliases:["catal\xE0"]},{language:"Romanian",code:"ro",aliases:["rom\xE2n\u0103","romana"]},{language:"Polish",code:"pl",aliases:["polski"]},{language:"Czech",code:"cs",aliases:["\u010De\u0161tina","cestina"]},{language:"Slovak",code:"sk",aliases:["sloven\u010Dina"]},{language:"Slovenian",code:"sl",aliases:["sloven\u0161\u010Dina"]},{language:"Croatian",code:"hr",aliases:["hrvatski"]},{language:"Bosnian",code:"bs",aliases:["bosanski"]},{language:"Serbian",code:"sr",aliases:["\u0441\u0440\u043F\u0441\u043A\u0438"]},{language:"Montenegrin",code:"sr",aliases:["crnogorski"]},{language:"Macedonian",code:"mk",aliases:["\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"]},{language:"Bulgarian",code:"bg",aliases:["\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"]},{language:"Russian",code:"ru",aliases:["\u0440\u0443\u0441\u0441\u043A\u0438\u0439"]},{language:"Ukrainian",code:"uk",aliases:["\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"]},{language:"Belarusian",code:"be",aliases:["\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"]},{language:"Latvian",code:"lv",aliases:["latvie\u0161u"]},{language:"Lithuanian",code:"lt",aliases:["lietuvi\u0173"]},{language:"Greek",code:"el",aliases:["\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","ellinik\xE1"]},{language:"Albanian",code:"sq",aliases:["shqip"]},{language:"Armenian",code:"hy",aliases:["\u0570\u0561\u0575\u0565\u0580\u0565\u0576"]},{language:"Persian",code:"fa",aliases:["farsi","dari","\u0641\u0627\u0631\u0633\u06CC"]},{language:"Hindi",code:"hi",aliases:["\u0939\u093F\u0928\u094D\u0926\u0940"]},{language:"Urdu",code:"ur",aliases:["\u0627\u0631\u062F\u0648"]},{language:"Bengali",code:"bn",aliases:["bangla","\u09AC\u09BE\u0982\u09B2\u09BE"]},{language:"Nepali",code:"ne",aliases:["\u0928\u0947\u092A\u093E\u0932\u0940"]},{language:"Sinhala",code:"si",aliases:["\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","sinhalese"]},{language:"Finnish",code:"fi",aliases:["suomi"]},{language:"Estonian",code:"et",aliases:["eesti"]},{language:"Hungarian",code:"hu",aliases:["magyar"]},{language:"Turkish",code:"tr",aliases:["t\xFCrk\xE7e","turkce"]},{language:"Azerbaijani",code:"az",aliases:["az\u0259rbaycan dili","azeri"]},{language:"Kazakh",code:"kk",aliases:["\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"]},{language:"Uzbek",code:"uz",aliases:["o'zbek"]},{language:"Kyrgyz",code:"ky",aliases:["\u043A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"]},{language:"Turkmen",code:"tk",aliases:["t\xFCrkmen\xE7e"]},{language:"Arabic",code:"ar",aliases:["\u0627\u0644\u0639\u0631\u0628\u064A\u0629"]},{language:"Hebrew",code:"he",aliases:["\u05E2\u05D1\u05E8\u05D9\u05EA","ivrit"]},{language:"Amharic",code:"am",aliases:["\u12A0\u121B\u122D\u129B"]},{language:"Tigrinya",code:"ti",aliases:["\u1275\u130D\u122D\u129B"]},{language:"Chinese",code:"zh",aliases:["mandarin","\u4E2D\u6587","\u6C49\u8BED","putonghua"]},{language:"Japanese",code:"ja",aliases:["\u65E5\u672C\u8A9E","nihongo"]},{language:"Korean",code:"ko",aliases:["\uD55C\uAD6D\uC5B4"]},{language:"Thai",code:"th",aliases:["\u0E44\u0E17\u0E22"]},{language:"Vietnamese",code:"vi",aliases:["ti\u1EBFng vi\u1EC7t"]},{language:"Khmer",code:"km",aliases:["\u1781\u17D2\u1798\u17C2\u179A","cambodian"]},{language:"Lao",code:"lo",aliases:["\u0EA5\u0EB2\u0EA7"]},{language:"Burmese",code:"my",aliases:["\u1019\u103C\u1014\u103A\u1019\u102C","myanmar"]},{language:"Dzongkha",code:"dz",aliases:["\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41"]},{language:"Mongolian",code:"mn",aliases:["\u043C\u043E\u043D\u0433\u043E\u043B"]},{language:"Georgian",code:"ka",aliases:["\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"]},{language:"Tajik",code:"tg",aliases:["\u0442\u043E\u04B7\u0438\u043A\u04E3"]},{language:"Malay",code:"ms",aliases:["bahasa malaysia","bahasa melayu"]},{language:"Indonesian",code:"id",aliases:["bahasa indonesia"]},{language:"Filipino",code:"fil",aliases:["tagalog","pilipino"]},{language:"Swahili",code:"sw",aliases:["kiswahili"]},{language:"Somali",code:"so",aliases:["af soomaali"]},{language:"Yoruba",code:"yo",aliases:["yor\xF9b\xE1"]},{language:"Hausa",code:"ha",aliases:["harshen hausa"]},{language:"Zulu",code:"zu",aliases:["isizulu"]},{language:"Afrikaans",code:"af"}];function C(e){return e.trim().toLowerCase()}function z(e){if(!e)return;let a=C(e);for(let n of Ae)if(C(n.country)===a||n.aliases?.some(t=>C(t)===a))return n}function V(e){if(!e)return;let a=C(e);for(let n of Te)if(C(n.language)===a||n.aliases?.some(t=>C(t)===a))return n}var W=[{value:"the United Kingdom",label:"United Kingdom"},{value:"the United States",label:"United States"},{value:"Italy",label:"Italy"},{value:"Spain",label:"Spain"},{value:"France",label:"France"},{value:"Germany",label:"Germany"},{value:"Ireland",label:"Ireland"},{value:"the Netherlands",label:"Netherlands"},{value:"Belgium",label:"Belgium"},{value:"Portugal",label:"Portugal"},{value:"Switzerland",label:"Switzerland"},{value:"Austria",label:"Austria"},{value:"Canada",label:"Canada"},{value:"Australia",label:"Australia"},{value:"New Zealand",label:"New Zealand"},{value:"Mexico",label:"Mexico"},{value:"Brazil",label:"Brazil"},{value:"Sweden",label:"Sweden"},{value:"Poland",label:"Poland"}],Ta={US:{pre:"$"},CA:{pre:"$"},AU:{pre:"$"},NZ:{pre:"$"},GB:{pre:"\xA3"},IE:{pre:"\u20AC"},DE:{pre:"\u20AC"},FR:{pre:"\u20AC"},ES:{pre:"\u20AC"},IT:{pre:"\u20AC"},NL:{pre:"\u20AC"},BE:{pre:"\u20AC"},AT:{pre:"\u20AC"},PT:{pre:"\u20AC"},FI:{pre:"\u20AC"},CH:{pre:"CHF "},SE:{post:" kr"},NO:{post:" kr"},DK:{post:" kr"},PL:{post:" z\u0142"},ZA:{pre:"R"}};var Ie=/[\u2022\u2023\u2024\u2027\u00B7\u2219\u22C5\u25CF\u25CB\u25AA\u25AB\u204E\u2217\uFE61\u25E6\u2218]/,Ee="That looks like the masked \u2022\u2022\u2022\u2022\u2022 value your screen shows, not the token itself. Click the reveal/copy icon next to it and paste the real value (letters and numbers).";function A(e){return Ie.test(e)?Ee:void 0}var O="\0unreadable";function j(e){if(/^eyJ/.test(e))try{let a=e.split(".")[1];if(!a)return O;let n=a.replace(/-/g,"+").replace(/_/g,"/"),t=JSON.parse(atob(n+"=".repeat((4-n.length%4)%4)));return typeof t.role=="string"?t.role:void 0}catch{return O}}function Z(e){let a=e.replace(/\s+/g,"");return a.length===0?"Personal access token is required":A(a)??(/^sbp_[A-Za-z0-9._~+\/=-]{20,}$/.test(a)?void 0:"Doesn't look like a valid token \u2014 it should be 'sbp_' followed by letters and numbers.")}function Y(e){let a=e.trim(),n=A(a);if(n)return n;if(a.length<20)return"Looks too short";if(a.startsWith("sb_publishable_"))return"That's the publishable key. Klaudius needs the 'sb_secret_\u2026' key on the same page (different row, below the publishable one).";if(!a.startsWith("sb_secret_")&&!a.startsWith("eyJ"))return"Doesn't look like a Supabase secret key. Expected 'sb_secret_\u2026' (or a legacy JWT starting with 'eyJ\u2026' on older projects)."}function q(e){let a=e.replace(/\s+/g,"");if(a.length<20)return"Looks too short";if(/^sb_secret_/i.test(a))return"That's the SECRET key \u2014 the claim page needs the 'sb_publishable_\u2026' (or legacy 'anon') key from the same page.";let n=j(a);if(n===O)return"Klaudius couldn't read this key \u2014 it starts like a legacy key but the rest of it doesn't decode. Copy it again from the dashboard page (the 'anon' / 'sb_publishable_\u2026' row).";if(n&&n!=="anon")return`That JWT has role '${n}' \u2014 the claim page needs the key whose role is 'anon' (same dashboard page, different row).`}var J=/^\+\d{8,15}$/,Q=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;var X="one-off, no monthly fees",T="per month";function v(e){if(!e)return!0;let a=e.trim();if(a==="")return!0;let n=a.replace(/[^\d.]/g,"");if(n==="")return/^\s*free\s*$/i.test(a);let t=parseFloat(n);return!isNaN(t)&&t===0}function ee(e,a){let n=v(e),t=v(a);return n&&!t?{pricing:a.trim(),pricingTerms:T,pricingMonthly:a.trim()}:!n&&t?{pricing:e.trim(),pricingTerms:X,pricingMonthly:void 0}:{pricing:e.trim(),pricingTerms:`upfront, then ${a.trim()}/month`,pricingMonthly:a.trim()}}var xe={\u0410:"A",\u0430:"a",\u0412:"B",\u0432:"b",\u0415:"E",\u0435:"e",\u041A:"K",\u043A:"k",\u041C:"M",\u043C:"m",\u041D:"H",\u043D:"h",\u041E:"O",\u043E:"o",\u0420:"P",\u0440:"p",\u0421:"C",\u0441:"c",\u0422:"T",\u0442:"t",\u0423:"Y",\u0443:"y",\u0425:"X",\u0445:"x",\u0406:"I",\u0456:"i",\u0405:"S",\u0455:"s",\u0408:"J",\u0458:"j",\u0417:"3",\u0437:"3",\u0427:"4",\u0431:"6",\u0391:"A",\u03B1:"a",\u0392:"B",\u03B2:"b",\u0395:"E",\u03B5:"e",\u0396:"Z",\u0397:"H",\u0399:"I",\u03B9:"i",\u039A:"K",\u03BA:"k",\u039C:"M",\u039D:"N",\u039F:"O",\u03BF:"o",\u03A1:"P",\u03C1:"p",\u03A4:"T",\u03C4:"t",\u03A5:"Y",\u03A7:"X",\u03C7:"x",\u03BD:"v","\u2010":"-","\u2011":"-","\u2012":"-","\u2013":"-","\u2014":"-","\u2015":"-","\u2212":"-","\uFF3F":"_"},Oe=/[\u200B-\u200F\u202A-\u202E\u2060\uFEFF\u00AD]/g,Me=/[\u0000-\u001F\u007F]/g;function M(e){let a=e.replace(Oe,"").replace(Me,"").trim();return{value:a,changed:a!==e,repairs:[],unrepairable:[]}}function k(e){let n=M(e).value.normalize("NFKC").replace(/\s+/g,"");n.length>=2&&(n[0]==='"'&&n.at(-1)==='"'||n[0]==="'"&&n.at(-1)==="'")&&(n=n.slice(1,-1).trim());let t=[],s=[],o="";for(let i of n){let r=i.codePointAt(0);if(r<128){o+=i;continue}let h=xe[i],c=o.length+1;h?(t.push(`position ${c}: '${i}' (${Re(r)}, U+${N(r)}) \u2192 '${h}'`),o+=h):(s.push({position:c,char:i,code:r}),o+=i)}return{value:o,changed:o!==e,repairs:t,unrepairable:s}}var Ne=/^AIza[0-9A-Za-z_-]{35}$/;function He(e){return Ne.test(e)}function ae(e){let a=k(e);if(a.value.length===0)return"Required \u2014 without this Klaudius can't find candidates.";if(a.unrepairable.length>0){let n=a.unrepairable[0];return`Character ${n.position} of this key is '${n.char}' (U+${N(n.code)}), which isn't a character a Google key can contain. Copy the key with the copy button next to it in the Cloud Console \u2014 reading it off a screenshot or retyping it introduces look-alike characters.`}}function Oa(e){let a=k(e).value;if(!He(a))return a.startsWith("AIza")?a.length!==39?`A Google API key is normally 39 characters \u2014 this one is ${a.length}. `+(a.length>39?"It looks like two keys ran together, so paste just the one key.":"It looks truncated, so copy it again with the copy button next to it in the Cloud Console."):"This key contains characters a Google key normally doesn't. Re-copy it with the copy button in the Cloud Console.":`A Google API key normally starts with "AIza" \u2014 this one starts with "${a.slice(0,4)}". Check you copied the API key itself (Cloud Console \u2192 Credentials), not a project ID or client ID.`}var Le=/^\d+:[A-Za-z0-9_-]{35}$/;function ne(e){let a=k(e);if(a.value.length===0)return"Required \u2014 paste the token @BotFather sent you.";if(a.unrepairable.length>0){let n=a.unrepairable[0];return`Character ${n.position} of this token is '${n.char}' (U+${N(n.code)}), which a bot token can't contain. Copy the token from @BotFather's message rather than retyping it.`}}function te(e){if(!Le.test(k(e).value))return"That doesn't look like a bot token, which is a number, a colon, then 35 letters and digits (like 1234567890:AAEhBP\u2026). Copy just the token from @BotFather's message, not the words around it."}function N(e){return e.toString(16).toUpperCase().padStart(4,"0")}function Re(e){return e>=1024&&e<=1279?"Cyrillic":e>=880&&e<=1023?"Greek":"non-Latin"}var oe=class extends Error{constructor(){super("user pressed back"),this.name="BackSignal"}},se=class extends Error{constructor(){super("user cancelled"),this.name="CancelSignal"}},Ke="Include the country code with a + (e.g. +12025550123 for US, +447123456789 for UK)",ie=e=>J.test(e)?void 0:Ke,re=e=>Q.test(e)?void 0:"Enter a valid email",b=e=>a=>a.trim().length===0?`${e} is required`:void 0,H=e=>a=>A(a)??(a.trim().length===0?`${e} is required`:void 0),Fe={id:"ai-agent",title:"AI coding agent",isApplicable:()=>!0,execute:async(e,{prompt:a,info:n})=>(n({title:"Which AI coding agent do you use?",body:`Klaudius works with two AI coding agents in your terminal \u2014 Claude Code
|
|
61
|
+
and doesn't expose your account login.`;var ve=new Set(["claude-pro","claude-team-standard","codex-plus","codex-business"]);function G(e){return e&&ve.has(e)?"off":"on"}var ba={"claude-pro":"Claude Pro","claude-max-5x":"Claude Max 5x","claude-max-20x":"Claude Max 20x","claude-team-standard":"Claude Team (Standard seat)","claude-team-premium":"Claude Team (Premium seat)","claude-other":"Claude (other plan)","codex-plus":"ChatGPT Plus","codex-pro":"ChatGPT Pro","codex-business":"ChatGPT Business (Standard seat)","codex-business-premium":"ChatGPT Business (Premium seat)","codex-other":"ChatGPT (other plan)"},U={"claude-code":[{value:"claude-pro",label:"Claude Pro (QA pass off)"},{value:"claude-max-5x",label:"Claude Max 5x (full pipeline)"},{value:"claude-max-20x",label:"Claude Max 20x (full pipeline)"},{value:"claude-team-standard",label:"Claude Team Standard (QA pass off)"},{value:"claude-team-premium",label:"Claude Team Premium (full pipeline)"}],codex:[{value:"codex-plus",label:"ChatGPT Plus (QA pass off)"},{value:"codex-pro",label:"ChatGPT Pro (full pipeline)"},{value:"codex-business",label:"ChatGPT Business Standard (QA pass off)"},{value:"codex-business-premium",label:"ChatGPT Business Premium (full pipeline)"}]};function P(e){if(!(e instanceof Error))return String(e);let a=e.cause;if(!a||!(a instanceof Error))return e.message;let t=a.code,n=a.message;return t&&n&&n!==t?`${e.message} (${t}: ${n})`:t?`${e.message} (${t})`:n?`${e.message} (${n})`:e.message}async function B(e){let a;try{let o=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/getUpdates`);if(a=await o.json(),!a.ok){let i=a.description??`HTTP ${o.status}`;if(/webhook/i.test(i))return{ok:!1,reason:"webhook_set",message:"This bot has a webhook set: another app already receives its messages, so Telegram won't show them to Klaudius."};if(/terminated by other getUpdates/i.test(i))return{ok:!1,reason:"conflict",message:`Telegram says another app is already polling this bot: ${i}.`};let r=a.error_code??o.status;return r===429||r>=500?{ok:!1,reason:"busy",message:`Telegram couldn't answer just now: ${i}.`}:{ok:!1,reason:"bad_token",message:`Telegram rejected the bot token: ${i}. Double-check the token from @BotFather.`}}}catch(o){return{ok:!1,reason:"network",message:`Could not reach Telegram: ${P(o)}`}}let t=a.result??[];if(t.length===0)return{ok:!1,reason:"no_messages",message:"No messages yet. Send your bot a regular text message in Telegram, then retry."};let n=t[t.length-1],s=n?.message?.chat?.id??n?.edited_message?.chat?.id??n?.channel_post?.chat?.id;return s===void 0?{ok:!1,reason:"no_messages",message:"Got an update from Telegram but couldn't find a chat ID in it. Send another text message and retry."}:{ok:!0,chatId:String(s)}}async function Pe(e){try{let a=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/getMe`),t=await a.json();return t.ok?{ok:!0,botHandle:t.result?.username?`@${t.result.username}`:t.result?.first_name}:{ok:!1,failedAt:"token",message:`Telegram rejected the bot token: ${t.description??`HTTP ${a.status}`}. Generate a new token by messaging @BotFather \u2192 /mytoken or /newbot.`}}catch(a){return{ok:!1,failedAt:"token",message:`Could not reach Telegram: ${P(a)}`}}}async function Sa(e){let a=await Pe({botToken:e.botToken});if(!a.ok)return a;let t=a.botHandle;try{let n=await fetch(`https://api.telegram.org/bot${encodeURIComponent(e.botToken)}/sendMessage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chat_id:e.chatId,text:"\u2713 Klaudius connected. You'll get a notification here whenever outreach lands or a candidate replies. (You can ignore this setup message.)",disable_notification:!0})}),s=await n.json();if(!s.ok){let o=s.description??`HTTP ${n.status}`,i="";return/chat not found/i.test(o)?i=" The chat_id is wrong, or the bot hasn't been added to that chat yet. If it's a group, you must add the bot to the group first; then send /start to it.":(/bot was blocked/i.test(o)||/forbidden/i.test(o))&&(i=" The bot has been blocked by the chat, or never received a /start. Open Telegram, find your bot, and send /start to wake it up."),{ok:!1,failedAt:"chat",botHandle:t,message:`Telegram delivered the bot token check but couldn't send to chat_id ${e.chatId}: ${o}.${i}`}}}catch(n){return{ok:!1,failedAt:"chat",botHandle:t,message:`Could not reach Telegram for chat_id check: ${P(n)}`}}return{ok:!0,botHandle:t}}function D(e){let a=e.trim();if(a.length===0)return"Required \u2014 without this Klaudius can't deploy generated sites";if(a.startsWith("http://")||a.startsWith("https://"))return"This is the SSH destination, not a URL \u2014 e.g. deploy@yourvps:/var/www/klaudius-sites";if(/^[A-Za-z]:[\\/]/.test(a))return"That's a local Windows path \u2014 the target must be a remote SSH destination like user@host:/path";if(!/^[^\s:]+:\/?.+/.test(a))return"Should look like user@host:/path (an SSH destination)"}function $(e){let a=e.trim();if(a.length===0)return"Required \u2014 outreach links every pitch to the live site URL";if(!/^https?:\/\//.test(a))return"Must start with https:// (or http://)";if(!a.includes("{slug}"))return"Must contain {slug} \u2014 it's replaced with each client's slug";if(!(a.replace(/^https?:\/\//,"").split("/")[0]??"").includes("{slug}"))return"{slug} must be in the hostname (e.g. https://{slug}.sites.example.com) \u2014 a path like /sites/{slug} breaks static-export asset links"}var Ae=[{country:"the United Kingdom",code:"GB",language:"English",langCode:"en",aliases:["uk","united kingdom","great britain","britain","england","scotland","wales","northern ireland"]},{country:"Ireland",code:"IE",language:"English",langCode:"en"},{country:"France",code:"FR",language:"French",langCode:"fr"},{country:"Germany",code:"DE",language:"German",langCode:"de",aliases:["deutschland"]},{country:"Austria",code:"AT",language:"German",langCode:"de",aliases:["\xF6sterreich","osterreich"]},{country:"Switzerland",code:"CH",language:"German",langCode:"de",aliases:["schweiz","suisse","svizzera"]},{country:"Liechtenstein",code:"LI",language:"German",langCode:"de"},{country:"Luxembourg",code:"LU",language:"French",langCode:"fr",aliases:["l\xEBtzebuerg"]},{country:"the Netherlands",code:"NL",language:"Dutch",langCode:"nl",aliases:["netherlands","holland","nederland"]},{country:"Belgium",code:"BE",language:"Dutch",langCode:"nl",aliases:["belgi\xEB","belgique"]},{country:"Monaco",code:"MC",language:"French",langCode:"fr"},{country:"Andorra",code:"AD",language:"Catalan",langCode:"ca"},{country:"Italy",code:"IT",language:"Italian",langCode:"it",aliases:["italia"]},{country:"Spain",code:"ES",language:"Spanish",langCode:"es",aliases:["espa\xF1a","espana"]},{country:"Portugal",code:"PT",language:"Portuguese",langCode:"pt"},{country:"Malta",code:"MT",language:"English",langCode:"en"},{country:"San Marino",code:"SM",language:"Italian",langCode:"it"},{country:"Vatican City",code:"VA",language:"Italian",langCode:"it",aliases:["the vatican","holy see"]},{country:"Sweden",code:"SE",language:"Swedish",langCode:"sv",aliases:["sverige"]},{country:"Norway",code:"NO",language:"Norwegian",langCode:"no",aliases:["norge"]},{country:"Denmark",code:"DK",language:"Danish",langCode:"da",aliases:["danmark"]},{country:"Finland",code:"FI",language:"Finnish",langCode:"fi",aliases:["suomi"]},{country:"Iceland",code:"IS",language:"Icelandic",langCode:"is",aliases:["\xEDsland"]},{country:"Poland",code:"PL",language:"Polish",langCode:"pl",aliases:["polska"]},{country:"Czech Republic",code:"CZ",language:"Czech",langCode:"cs",aliases:["czechia","\u010Desko"]},{country:"Slovakia",code:"SK",language:"Slovak",langCode:"sk",aliases:["slovensko"]},{country:"Hungary",code:"HU",language:"Hungarian",langCode:"hu",aliases:["magyarorsz\xE1g"]},{country:"Slovenia",code:"SI",language:"Slovenian",langCode:"sl",aliases:["slovenija"]},{country:"Croatia",code:"HR",language:"Croatian",langCode:"hr",aliases:["hrvatska"]},{country:"Bosnia and Herzegovina",code:"BA",language:"Bosnian",langCode:"bs",aliases:["bosnia"]},{country:"Serbia",code:"RS",language:"Serbian",langCode:"sr",aliases:["srbija"]},{country:"Montenegro",code:"ME",language:"Montenegrin",langCode:"sr",aliases:["crna gora"]},{country:"Kosovo",code:"XK",language:"Albanian",langCode:"sq"},{country:"North Macedonia",code:"MK",language:"Macedonian",langCode:"mk",aliases:["macedonia"]},{country:"Albania",code:"AL",language:"Albanian",langCode:"sq",aliases:["shqip\xEBria"]},{country:"Bulgaria",code:"BG",language:"Bulgarian",langCode:"bg"},{country:"Romania",code:"RO",language:"Romanian",langCode:"ro",aliases:["rom\xE2nia"]},{country:"Moldova",code:"MD",language:"Romanian",langCode:"ro"},{country:"Greece",code:"GR",language:"Greek",langCode:"el",aliases:["\u03B5\u03BB\u03BB\u03AC\u03B4\u03B1"]},{country:"Cyprus",code:"CY",language:"Greek",langCode:"el"},{country:"Russia",code:"RU",language:"Russian",langCode:"ru",aliases:["\u0440\u043E\u0441\u0441\u0438\u044F"]},{country:"Ukraine",code:"UA",language:"Ukrainian",langCode:"uk",aliases:["\u0443\u043A\u0440\u0430\u0457\u043D\u0430"]},{country:"Belarus",code:"BY",language:"Belarusian",langCode:"be"},{country:"Estonia",code:"EE",language:"Estonian",langCode:"et",aliases:["eesti"]},{country:"Latvia",code:"LV",language:"Latvian",langCode:"lv",aliases:["latvija"]},{country:"Lithuania",code:"LT",language:"Lithuanian",langCode:"lt",aliases:["lietuva"]},{country:"Turkey",code:"TR",language:"Turkish",langCode:"tr",aliases:["t\xFCrkiye","turkiye"]},{country:"Armenia",code:"AM",language:"Armenian",langCode:"hy"},{country:"Azerbaijan",code:"AZ",language:"Azerbaijani",langCode:"az",aliases:["az\u0259rbaycan"]},{country:"Georgia",code:"GE",language:"Georgian",langCode:"ka",aliases:["\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD"]},{country:"Israel",code:"IL",language:"Hebrew",langCode:"he"},{country:"Palestine",code:"PS",language:"Arabic",langCode:"ar"},{country:"Lebanon",code:"LB",language:"Arabic",langCode:"ar"},{country:"Syria",code:"SY",language:"Arabic",langCode:"ar"},{country:"Jordan",code:"JO",language:"Arabic",langCode:"ar"},{country:"Iraq",code:"IQ",language:"Arabic",langCode:"ar"},{country:"Iran",code:"IR",language:"Persian",langCode:"fa",aliases:["islamic republic of iran"]},{country:"Saudi Arabia",code:"SA",language:"Arabic",langCode:"ar"},{country:"Yemen",code:"YE",language:"Arabic",langCode:"ar"},{country:"Oman",code:"OM",language:"Arabic",langCode:"ar"},{country:"the United Arab Emirates",code:"AE",language:"English",langCode:"en",aliases:["uae","united arab emirates","dubai","abu dhabi"]},{country:"Qatar",code:"QA",language:"Arabic",langCode:"ar"},{country:"Bahrain",code:"BH",language:"Arabic",langCode:"ar"},{country:"Kuwait",code:"KW",language:"Arabic",langCode:"ar"},{country:"Kazakhstan",code:"KZ",language:"Kazakh",langCode:"kk"},{country:"Uzbekistan",code:"UZ",language:"Uzbek",langCode:"uz"},{country:"Kyrgyzstan",code:"KG",language:"Kyrgyz",langCode:"ky"},{country:"Turkmenistan",code:"TM",language:"Turkmen",langCode:"tk"},{country:"Tajikistan",code:"TJ",language:"Tajik",langCode:"tg"},{country:"Afghanistan",code:"AF",language:"Persian",langCode:"fa"},{country:"India",code:"IN",language:"English",langCode:"en"},{country:"Pakistan",code:"PK",language:"English",langCode:"en"},{country:"Bangladesh",code:"BD",language:"Bengali",langCode:"bn"},{country:"Sri Lanka",code:"LK",language:"English",langCode:"en"},{country:"Nepal",code:"NP",language:"Nepali",langCode:"ne"},{country:"Bhutan",code:"BT",language:"English",langCode:"en"},{country:"the Maldives",code:"MV",language:"English",langCode:"en",aliases:["maldives"]},{country:"China",code:"CN",language:"Chinese",langCode:"zh",aliases:["\u4E2D\u56FD","people's republic of china","prc"]},{country:"Hong Kong",code:"HK",language:"English",langCode:"en",aliases:["hk"]},{country:"Macao",code:"MO",language:"Chinese",langCode:"zh",aliases:["macau"]},{country:"Taiwan",code:"TW",language:"Chinese",langCode:"zh",aliases:["\u53F0\u7063","republic of china"]},{country:"Japan",code:"JP",language:"Japanese",langCode:"ja",aliases:["\u65E5\u672C"]},{country:"South Korea",code:"KR",language:"Korean",langCode:"ko",aliases:["korea","republic of korea"]},{country:"North Korea",code:"KP",language:"Korean",langCode:"ko",aliases:["dprk"]},{country:"Mongolia",code:"MN",language:"Mongolian",langCode:"mn"},{country:"Thailand",code:"TH",language:"Thai",langCode:"th"},{country:"Vietnam",code:"VN",language:"Vietnamese",langCode:"vi",aliases:["viet nam"]},{country:"Cambodia",code:"KH",language:"Khmer",langCode:"km"},{country:"Laos",code:"LA",language:"Lao",langCode:"lo"},{country:"Myanmar",code:"MM",language:"Burmese",langCode:"my",aliases:["burma"]},{country:"Malaysia",code:"MY",language:"Malay",langCode:"ms"},{country:"Singapore",code:"SG",language:"English",langCode:"en"},{country:"Brunei",code:"BN",language:"Malay",langCode:"ms",aliases:["brunei darussalam"]},{country:"Indonesia",code:"ID",language:"Indonesian",langCode:"id"},{country:"the Philippines",code:"PH",language:"English",langCode:"en",aliases:["philippines"]},{country:"Timor-Leste",code:"TL",language:"Portuguese",langCode:"pt",aliases:["east timor"]},{country:"the United States",code:"US",language:"English",langCode:"en",aliases:["us","usa","united states","united states of america","america","states"]},{country:"Canada",code:"CA",language:"English",langCode:"en"},{country:"Mexico",code:"MX",language:"Spanish",langCode:"es",aliases:["m\xE9xico"]},{country:"Guatemala",code:"GT",language:"Spanish",langCode:"es"},{country:"Belize",code:"BZ",language:"English",langCode:"en"},{country:"El Salvador",code:"SV",language:"Spanish",langCode:"es"},{country:"Honduras",code:"HN",language:"Spanish",langCode:"es"},{country:"Nicaragua",code:"NI",language:"Spanish",langCode:"es"},{country:"Costa Rica",code:"CR",language:"Spanish",langCode:"es"},{country:"Panama",code:"PA",language:"Spanish",langCode:"es",aliases:["panam\xE1"]},{country:"Cuba",code:"CU",language:"Spanish",langCode:"es"},{country:"the Dominican Republic",code:"DO",language:"Spanish",langCode:"es",aliases:["dominican republic"]},{country:"Haiti",code:"HT",language:"French",langCode:"fr"},{country:"Jamaica",code:"JM",language:"English",langCode:"en"},{country:"the Bahamas",code:"BS",language:"English",langCode:"en",aliases:["bahamas"]},{country:"Trinidad and Tobago",code:"TT",language:"English",langCode:"en"},{country:"Barbados",code:"BB",language:"English",langCode:"en"},{country:"Saint Lucia",code:"LC",language:"English",langCode:"en"},{country:"Saint Vincent and the Grenadines",code:"VC",language:"English",langCode:"en"},{country:"Grenada",code:"GD",language:"English",langCode:"en"},{country:"Dominica",code:"DM",language:"English",langCode:"en"},{country:"Saint Kitts and Nevis",code:"KN",language:"English",langCode:"en"},{country:"Antigua and Barbuda",code:"AG",language:"English",langCode:"en"},{country:"Puerto Rico",code:"PR",language:"Spanish",langCode:"es"},{country:"Brazil",code:"BR",language:"Portuguese",langCode:"pt",aliases:["brasil"]},{country:"Argentina",code:"AR",language:"Spanish",langCode:"es"},{country:"Colombia",code:"CO",language:"Spanish",langCode:"es"},{country:"Chile",code:"CL",language:"Spanish",langCode:"es"},{country:"Peru",code:"PE",language:"Spanish",langCode:"es",aliases:["per\xFA"]},{country:"Venezuela",code:"VE",language:"Spanish",langCode:"es"},{country:"Ecuador",code:"EC",language:"Spanish",langCode:"es"},{country:"Bolivia",code:"BO",language:"Spanish",langCode:"es"},{country:"Paraguay",code:"PY",language:"Spanish",langCode:"es"},{country:"Uruguay",code:"UY",language:"Spanish",langCode:"es"},{country:"Guyana",code:"GY",language:"English",langCode:"en"},{country:"Suriname",code:"SR",language:"Dutch",langCode:"nl"},{country:"Australia",code:"AU",language:"English",langCode:"en",aliases:["aus","oz"]},{country:"New Zealand",code:"NZ",language:"English",langCode:"en",aliases:["nz","aotearoa"]},{country:"Fiji",code:"FJ",language:"English",langCode:"en"},{country:"Papua New Guinea",code:"PG",language:"English",langCode:"en",aliases:["png"]},{country:"Samoa",code:"WS",language:"English",langCode:"en"},{country:"Tonga",code:"TO",language:"English",langCode:"en"},{country:"Vanuatu",code:"VU",language:"English",langCode:"en"},{country:"Solomon Islands",code:"SB",language:"English",langCode:"en"},{country:"Kiribati",code:"KI",language:"English",langCode:"en"},{country:"Tuvalu",code:"TV",language:"English",langCode:"en"},{country:"Nauru",code:"NR",language:"English",langCode:"en"},{country:"Palau",code:"PW",language:"English",langCode:"en"},{country:"the Marshall Islands",code:"MH",language:"English",langCode:"en",aliases:["marshall islands"]},{country:"Micronesia",code:"FM",language:"English",langCode:"en",aliases:["federated states of micronesia"]},{country:"Egypt",code:"EG",language:"Arabic",langCode:"ar"},{country:"Libya",code:"LY",language:"Arabic",langCode:"ar"},{country:"Tunisia",code:"TN",language:"Arabic",langCode:"ar"},{country:"Algeria",code:"DZ",language:"Arabic",langCode:"ar"},{country:"Morocco",code:"MA",language:"Arabic",langCode:"ar",aliases:["maroc"]},{country:"Sudan",code:"SD",language:"Arabic",langCode:"ar"},{country:"South Sudan",code:"SS",language:"English",langCode:"en"},{country:"Mauritania",code:"MR",language:"Arabic",langCode:"ar"},{country:"Nigeria",code:"NG",language:"English",langCode:"en"},{country:"Ghana",code:"GH",language:"English",langCode:"en"},{country:"Senegal",code:"SN",language:"French",langCode:"fr",aliases:["s\xE9n\xE9gal"]},{country:"C\xF4te d'Ivoire",code:"CI",language:"French",langCode:"fr",aliases:["ivory coast"]},{country:"Mali",code:"ML",language:"French",langCode:"fr"},{country:"Burkina Faso",code:"BF",language:"French",langCode:"fr"},{country:"Niger",code:"NE",language:"French",langCode:"fr"},{country:"Guinea",code:"GN",language:"French",langCode:"fr",aliases:["guin\xE9e"]},{country:"Guinea-Bissau",code:"GW",language:"Portuguese",langCode:"pt"},{country:"Sierra Leone",code:"SL",language:"English",langCode:"en"},{country:"Liberia",code:"LR",language:"English",langCode:"en"},{country:"the Gambia",code:"GM",language:"English",langCode:"en",aliases:["gambia"]},{country:"Cabo Verde",code:"CV",language:"Portuguese",langCode:"pt",aliases:["cape verde"]},{country:"Togo",code:"TG",language:"French",langCode:"fr"},{country:"Benin",code:"BJ",language:"French",langCode:"fr",aliases:["b\xE9nin"]},{country:"Cameroon",code:"CM",language:"French",langCode:"fr",aliases:["cameroun"]},{country:"the Central African Republic",code:"CF",language:"French",langCode:"fr",aliases:["central african republic","car"]},{country:"Chad",code:"TD",language:"French",langCode:"fr",aliases:["tchad"]},{country:"Equatorial Guinea",code:"GQ",language:"Spanish",langCode:"es"},{country:"Gabon",code:"GA",language:"French",langCode:"fr"},{country:"the Republic of the Congo",code:"CG",language:"French",langCode:"fr",aliases:["congo","republic of the congo","congo-brazzaville"]},{country:"the Democratic Republic of the Congo",code:"CD",language:"French",langCode:"fr",aliases:["dr congo","drc","democratic republic of the congo","congo-kinshasa","zaire"]},{country:"S\xE3o Tom\xE9 and Pr\xEDncipe",code:"ST",language:"Portuguese",langCode:"pt",aliases:["sao tome and principe","sao tome"]},{country:"Ethiopia",code:"ET",language:"Amharic",langCode:"am"},{country:"Eritrea",code:"ER",language:"Tigrinya",langCode:"ti"},{country:"Djibouti",code:"DJ",language:"French",langCode:"fr"},{country:"Somalia",code:"SO",language:"Somali",langCode:"so"},{country:"Kenya",code:"KE",language:"English",langCode:"en"},{country:"Uganda",code:"UG",language:"English",langCode:"en"},{country:"Tanzania",code:"TZ",language:"English",langCode:"en",aliases:["united republic of tanzania"]},{country:"Rwanda",code:"RW",language:"English",langCode:"en"},{country:"Burundi",code:"BI",language:"French",langCode:"fr"},{country:"Madagascar",code:"MG",language:"French",langCode:"fr"},{country:"Mauritius",code:"MU",language:"English",langCode:"en"},{country:"the Seychelles",code:"SC",language:"English",langCode:"en",aliases:["seychelles"]},{country:"Comoros",code:"KM",language:"French",langCode:"fr"},{country:"South Africa",code:"ZA",language:"English",langCode:"en",aliases:["sa"]},{country:"Namibia",code:"NA",language:"English",langCode:"en"},{country:"Botswana",code:"BW",language:"English",langCode:"en"},{country:"Zimbabwe",code:"ZW",language:"English",langCode:"en"},{country:"Zambia",code:"ZM",language:"English",langCode:"en"},{country:"Malawi",code:"MW",language:"English",langCode:"en"},{country:"Mozambique",code:"MZ",language:"Portuguese",langCode:"pt",aliases:["mo\xE7ambique"]},{country:"Angola",code:"AO",language:"Portuguese",langCode:"pt"},{country:"Lesotho",code:"LS",language:"English",langCode:"en"},{country:"Eswatini",code:"SZ",language:"English",langCode:"en",aliases:["swaziland"]}],Te=[{language:"English",code:"en"},{language:"Italian",code:"it",aliases:["italiano"]},{language:"Spanish",code:"es",aliases:["espa\xF1ol","espanol","castellano"]},{language:"French",code:"fr",aliases:["fran\xE7ais","francais"]},{language:"German",code:"de",aliases:["deutsch"]},{language:"Portuguese",code:"pt",aliases:["portugu\xEAs","portugues"]},{language:"Dutch",code:"nl",aliases:["nederlands","flemish"]},{language:"Swedish",code:"sv",aliases:["svenska"]},{language:"Norwegian",code:"no",aliases:["norsk"]},{language:"Danish",code:"da",aliases:["dansk"]},{language:"Icelandic",code:"is",aliases:["\xEDslenska"]},{language:"Catalan",code:"ca",aliases:["catal\xE0"]},{language:"Romanian",code:"ro",aliases:["rom\xE2n\u0103","romana"]},{language:"Polish",code:"pl",aliases:["polski"]},{language:"Czech",code:"cs",aliases:["\u010De\u0161tina","cestina"]},{language:"Slovak",code:"sk",aliases:["sloven\u010Dina"]},{language:"Slovenian",code:"sl",aliases:["sloven\u0161\u010Dina"]},{language:"Croatian",code:"hr",aliases:["hrvatski"]},{language:"Bosnian",code:"bs",aliases:["bosanski"]},{language:"Serbian",code:"sr",aliases:["\u0441\u0440\u043F\u0441\u043A\u0438"]},{language:"Montenegrin",code:"sr",aliases:["crnogorski"]},{language:"Macedonian",code:"mk",aliases:["\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"]},{language:"Bulgarian",code:"bg",aliases:["\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"]},{language:"Russian",code:"ru",aliases:["\u0440\u0443\u0441\u0441\u043A\u0438\u0439"]},{language:"Ukrainian",code:"uk",aliases:["\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"]},{language:"Belarusian",code:"be",aliases:["\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"]},{language:"Latvian",code:"lv",aliases:["latvie\u0161u"]},{language:"Lithuanian",code:"lt",aliases:["lietuvi\u0173"]},{language:"Greek",code:"el",aliases:["\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","ellinik\xE1"]},{language:"Albanian",code:"sq",aliases:["shqip"]},{language:"Armenian",code:"hy",aliases:["\u0570\u0561\u0575\u0565\u0580\u0565\u0576"]},{language:"Persian",code:"fa",aliases:["farsi","dari","\u0641\u0627\u0631\u0633\u06CC"]},{language:"Hindi",code:"hi",aliases:["\u0939\u093F\u0928\u094D\u0926\u0940"]},{language:"Urdu",code:"ur",aliases:["\u0627\u0631\u062F\u0648"]},{language:"Bengali",code:"bn",aliases:["bangla","\u09AC\u09BE\u0982\u09B2\u09BE"]},{language:"Nepali",code:"ne",aliases:["\u0928\u0947\u092A\u093E\u0932\u0940"]},{language:"Sinhala",code:"si",aliases:["\u0DC3\u0DD2\u0D82\u0DC4\u0DBD","sinhalese"]},{language:"Finnish",code:"fi",aliases:["suomi"]},{language:"Estonian",code:"et",aliases:["eesti"]},{language:"Hungarian",code:"hu",aliases:["magyar"]},{language:"Turkish",code:"tr",aliases:["t\xFCrk\xE7e","turkce"]},{language:"Azerbaijani",code:"az",aliases:["az\u0259rbaycan dili","azeri"]},{language:"Kazakh",code:"kk",aliases:["\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"]},{language:"Uzbek",code:"uz",aliases:["o'zbek"]},{language:"Kyrgyz",code:"ky",aliases:["\u043A\u044B\u0440\u0433\u044B\u0437\u0447\u0430"]},{language:"Turkmen",code:"tk",aliases:["t\xFCrkmen\xE7e"]},{language:"Arabic",code:"ar",aliases:["\u0627\u0644\u0639\u0631\u0628\u064A\u0629"]},{language:"Hebrew",code:"he",aliases:["\u05E2\u05D1\u05E8\u05D9\u05EA","ivrit"]},{language:"Amharic",code:"am",aliases:["\u12A0\u121B\u122D\u129B"]},{language:"Tigrinya",code:"ti",aliases:["\u1275\u130D\u122D\u129B"]},{language:"Chinese",code:"zh",aliases:["mandarin","\u4E2D\u6587","\u6C49\u8BED","putonghua"]},{language:"Japanese",code:"ja",aliases:["\u65E5\u672C\u8A9E","nihongo"]},{language:"Korean",code:"ko",aliases:["\uD55C\uAD6D\uC5B4"]},{language:"Thai",code:"th",aliases:["\u0E44\u0E17\u0E22"]},{language:"Vietnamese",code:"vi",aliases:["ti\u1EBFng vi\u1EC7t"]},{language:"Khmer",code:"km",aliases:["\u1781\u17D2\u1798\u17C2\u179A","cambodian"]},{language:"Lao",code:"lo",aliases:["\u0EA5\u0EB2\u0EA7"]},{language:"Burmese",code:"my",aliases:["\u1019\u103C\u1014\u103A\u1019\u102C","myanmar"]},{language:"Dzongkha",code:"dz",aliases:["\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41"]},{language:"Mongolian",code:"mn",aliases:["\u043C\u043E\u043D\u0433\u043E\u043B"]},{language:"Georgian",code:"ka",aliases:["\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"]},{language:"Tajik",code:"tg",aliases:["\u0442\u043E\u04B7\u0438\u043A\u04E3"]},{language:"Malay",code:"ms",aliases:["bahasa malaysia","bahasa melayu"]},{language:"Indonesian",code:"id",aliases:["bahasa indonesia"]},{language:"Filipino",code:"fil",aliases:["tagalog","pilipino"]},{language:"Swahili",code:"sw",aliases:["kiswahili"]},{language:"Somali",code:"so",aliases:["af soomaali"]},{language:"Yoruba",code:"yo",aliases:["yor\xF9b\xE1"]},{language:"Hausa",code:"ha",aliases:["harshen hausa"]},{language:"Zulu",code:"zu",aliases:["isizulu"]},{language:"Afrikaans",code:"af"}];function C(e){return e.trim().toLowerCase()}function z(e){if(!e)return;let a=C(e);for(let t of Ae)if(C(t.country)===a||t.aliases?.some(n=>C(n)===a))return t}function V(e){if(!e)return;let a=C(e);for(let t of Te)if(C(t.language)===a||t.aliases?.some(n=>C(n)===a))return t}var W=[{value:"the United Kingdom",label:"United Kingdom"},{value:"the United States",label:"United States"},{value:"Italy",label:"Italy"},{value:"Spain",label:"Spain"},{value:"France",label:"France"},{value:"Germany",label:"Germany"},{value:"Ireland",label:"Ireland"},{value:"the Netherlands",label:"Netherlands"},{value:"Belgium",label:"Belgium"},{value:"Portugal",label:"Portugal"},{value:"Switzerland",label:"Switzerland"},{value:"Austria",label:"Austria"},{value:"Canada",label:"Canada"},{value:"Australia",label:"Australia"},{value:"New Zealand",label:"New Zealand"},{value:"Mexico",label:"Mexico"},{value:"Brazil",label:"Brazil"},{value:"Sweden",label:"Sweden"},{value:"Poland",label:"Poland"}],Aa={US:{pre:"$"},CA:{pre:"$"},AU:{pre:"$"},NZ:{pre:"$"},GB:{pre:"\xA3"},IE:{pre:"\u20AC"},DE:{pre:"\u20AC"},FR:{pre:"\u20AC"},ES:{pre:"\u20AC"},IT:{pre:"\u20AC"},NL:{pre:"\u20AC"},BE:{pre:"\u20AC"},AT:{pre:"\u20AC"},PT:{pre:"\u20AC"},FI:{pre:"\u20AC"},CH:{pre:"CHF "},SE:{post:" kr"},NO:{post:" kr"},DK:{post:" kr"},PL:{post:" z\u0142"},ZA:{pre:"R"}};var Ie=/[\u2022\u2023\u2024\u2027\u00B7\u2219\u22C5\u25CF\u25CB\u25AA\u25AB\u204E\u2217\uFE61\u25E6\u2218]/,Ee="That looks like the masked \u2022\u2022\u2022\u2022\u2022 value your screen shows, not the token itself. Click the reveal/copy icon next to it and paste the real value (letters and numbers).";function A(e){return Ie.test(e)?Ee:void 0}var O="\0unreadable";function j(e){if(/^eyJ/.test(e))try{let a=e.split(".")[1];if(!a)return O;let t=a.replace(/-/g,"+").replace(/_/g,"/"),n=JSON.parse(atob(t+"=".repeat((4-t.length%4)%4)));return typeof n.role=="string"?n.role:void 0}catch{return O}}function Z(e){let a=e.replace(/\s+/g,"");return a.length===0?"Personal access token is required":A(a)??(/^sbp_[A-Za-z0-9._~+\/=-]{20,}$/.test(a)?void 0:"Doesn't look like a valid token \u2014 it should be 'sbp_' followed by letters and numbers.")}function Y(e){let a=e.trim(),t=A(a);if(t)return t;if(a.length<20)return"Looks too short";if(a.startsWith("sb_publishable_"))return"That's the publishable key. Klaudius needs the 'sb_secret_\u2026' key on the same page (different row, below the publishable one).";if(!a.startsWith("sb_secret_")&&!a.startsWith("eyJ"))return"Doesn't look like a Supabase secret key. Expected 'sb_secret_\u2026' (or a legacy JWT starting with 'eyJ\u2026' on older projects)."}function q(e){let a=e.replace(/\s+/g,"");if(a.length<20)return"Looks too short";if(/^sb_secret_/i.test(a))return"That's the SECRET key \u2014 the claim page needs the 'sb_publishable_\u2026' (or legacy 'anon') key from the same page.";let t=j(a);if(t===O)return"Klaudius couldn't read this key \u2014 it starts like a legacy key but the rest of it doesn't decode. Copy it again from the dashboard page (the 'anon' / 'sb_publishable_\u2026' row).";if(t&&t!=="anon")return`That JWT has role '${t}' \u2014 the claim page needs the key whose role is 'anon' (same dashboard page, different row).`}var J=/^\+\d{8,15}$/,Q=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;var X="one-off, no monthly fees",T="per month";function v(e){if(!e)return!0;let a=e.trim();if(a==="")return!0;let t=a.replace(/[^\d.]/g,"");if(t==="")return/^\s*free\s*$/i.test(a);let n=parseFloat(t);return!isNaN(n)&&n===0}function ee(e,a){let t=v(e),n=v(a);return t&&!n?{pricing:a.trim(),pricingTerms:T,pricingMonthly:a.trim()}:!t&&n?{pricing:e.trim(),pricingTerms:X,pricingMonthly:void 0}:{pricing:e.trim(),pricingTerms:`upfront, then ${a.trim()}/month`,pricingMonthly:a.trim()}}var xe={\u0410:"A",\u0430:"a",\u0412:"B",\u0432:"b",\u0415:"E",\u0435:"e",\u041A:"K",\u043A:"k",\u041C:"M",\u043C:"m",\u041D:"H",\u043D:"h",\u041E:"O",\u043E:"o",\u0420:"P",\u0440:"p",\u0421:"C",\u0441:"c",\u0422:"T",\u0442:"t",\u0423:"Y",\u0443:"y",\u0425:"X",\u0445:"x",\u0406:"I",\u0456:"i",\u0405:"S",\u0455:"s",\u0408:"J",\u0458:"j",\u0417:"3",\u0437:"3",\u0427:"4",\u0431:"6",\u0391:"A",\u03B1:"a",\u0392:"B",\u03B2:"b",\u0395:"E",\u03B5:"e",\u0396:"Z",\u0397:"H",\u0399:"I",\u03B9:"i",\u039A:"K",\u03BA:"k",\u039C:"M",\u039D:"N",\u039F:"O",\u03BF:"o",\u03A1:"P",\u03C1:"p",\u03A4:"T",\u03C4:"t",\u03A5:"Y",\u03A7:"X",\u03C7:"x",\u03BD:"v","\u2010":"-","\u2011":"-","\u2012":"-","\u2013":"-","\u2014":"-","\u2015":"-","\u2212":"-","\uFF3F":"_"},Oe=/[\u200B-\u200F\u202A-\u202E\u2060\uFEFF\u00AD]/g,Me=/[\u0000-\u001F\u007F]/g;function M(e){let a=e.replace(Oe,"").replace(Me,"").trim();return{value:a,changed:a!==e,repairs:[],unrepairable:[]}}function k(e){let t=M(e).value.normalize("NFKC").replace(/\s+/g,"");t.length>=2&&(t[0]==='"'&&t.at(-1)==='"'||t[0]==="'"&&t.at(-1)==="'")&&(t=t.slice(1,-1).trim());let n=[],s=[],o="";for(let i of t){let r=i.codePointAt(0);if(r<128){o+=i;continue}let h=xe[i],c=o.length+1;h?(n.push(`position ${c}: '${i}' (${Le(r)}, U+${N(r)}) \u2192 '${h}'`),o+=h):(s.push({position:c,char:i,code:r}),o+=i)}return{value:o,changed:o!==e,repairs:n,unrepairable:s}}var Ne=/^AIza[0-9A-Za-z_-]{35}$/;function He(e){return Ne.test(e)}function ae(e){let a=k(e);if(a.value.length===0)return"Required \u2014 without this Klaudius can't find candidates.";if(a.unrepairable.length>0){let t=a.unrepairable[0];return`Character ${t.position} of this key is '${t.char}' (U+${N(t.code)}), which isn't a character a Google key can contain. Copy the key with the copy button next to it in the Cloud Console \u2014 reading it off a screenshot or retyping it introduces look-alike characters.`}}function xa(e){let a=k(e).value;if(!He(a))return a.startsWith("AIza")?a.length!==39?`A Google API key is normally 39 characters \u2014 this one is ${a.length}. `+(a.length>39?"It looks like two keys ran together, so paste just the one key.":"It looks truncated, so copy it again with the copy button next to it in the Cloud Console."):"This key contains characters a Google key normally doesn't. Re-copy it with the copy button in the Cloud Console.":`A Google API key normally starts with "AIza" \u2014 this one starts with "${a.slice(0,4)}". Check you copied the API key itself (Cloud Console \u2192 Credentials), not a project ID or client ID.`}var Ke=/^\d+:[A-Za-z0-9_-]{35}$/;function te(e){let a=k(e);if(a.value.length===0)return"Required \u2014 paste the token @BotFather sent you.";if(a.unrepairable.length>0){let t=a.unrepairable[0];return`Character ${t.position} of this token is '${t.char}' (U+${N(t.code)}), which a bot token can't contain. Copy the token from @BotFather's message rather than retyping it.`}}function ne(e){if(!Ke.test(k(e).value))return"That doesn't look like a bot token, which is a number, a colon, then 35 letters and digits (like 1234567890:AAEhBP\u2026). Copy just the token from @BotFather's message, not the words around it."}function N(e){return e.toString(16).toUpperCase().padStart(4,"0")}function Le(e){return e>=1024&&e<=1279?"Cyrillic":e>=880&&e<=1023?"Greek":"non-Latin"}var oe=class extends Error{constructor(){super("user pressed back"),this.name="BackSignal"}},se=class extends Error{constructor(){super("user cancelled"),this.name="CancelSignal"}},Fe="Include the country code with a + (e.g. +12025550123 for US, +447123456789 for UK)",ie=e=>J.test(e)?void 0:Fe,re=e=>Q.test(e)?void 0:"Enter a valid email",b=e=>a=>a.trim().length===0?`${e} is required`:void 0,H=e=>a=>A(a)??(a.trim().length===0?`${e} is required`:void 0),Re={id:"ai-agent",title:"AI coding agent",isApplicable:()=>!0,execute:async(e,{prompt:a,info:t})=>(t({title:"Which AI coding agent do you use?",body:`Klaudius works with two AI coding agents in your terminal \u2014 Claude Code
|
|
62
62
|
(Anthropic) or Codex (OpenAI). Pick whichever you already pay for.
|
|
63
63
|
|
|
64
64
|
This choice only changes which agent runs the pipeline. Everything else \u2014
|
|
65
65
|
the businesses found, the websites built, the outreach sent \u2014 is identical
|
|
66
|
-
either way. You can switch later by re-running init in a fresh folder.`}),{aiAgent:await a({type:"select",message:"Which AI coding agent will drive Klaudius?",initialValue:e.aiAgent??"claude-code",options:[{value:"claude-code",label:"Claude Code (Anthropic)"},{value:"codex",label:"Codex (OpenAI)"}]})})},_e={id:"ai-plan",title:"Subscription plan",isApplicable:()=>!0,execute:async(e,{prompt:a,info:
|
|
66
|
+
either way. You can switch later by re-running init in a fresh folder.`}),{aiAgent:await a({type:"select",message:"Which AI coding agent will drive Klaudius?",initialValue:e.aiAgent??"claude-code",options:[{value:"claude-code",label:"Claude Code (Anthropic)"},{value:"codex",label:"Codex (OpenAI)"}]})})},_e={id:"ai-plan",title:"Subscription plan",isApplicable:()=>!0,execute:async(e,{prompt:a,info:t})=>{let n=e.aiAgent==="codex",s=n?"Codex":"Claude Code",o=n?"ChatGPT":"Claude";t({title:`Which ${o} plan are you on?`,body:`Klaudius tunes the pipeline to your plan's
|
|
67
67
|
usage limits.
|
|
68
68
|
|
|
69
|
-
`+(
|
|
69
|
+
`+(n?`Plus / Business Standard: QA pass off.
|
|
70
70
|
Pro / Business Premium: full pipeline.
|
|
71
71
|
|
|
72
72
|
`:`Pro / Team Standard: QA pass off.
|
|
@@ -74,7 +74,7 @@ Max / Team Premium: full pipeline.
|
|
|
74
74
|
|
|
75
75
|
`)+`Not locked in: ask ${s} to turn the
|
|
76
76
|
QA pass on or off any time, or re-run
|
|
77
|
-
configure.`});let i=U[
|
|
77
|
+
configure.`});let i=U[n?"codex":"claude-code"].map(g=>({...g})),r={"claude-other":"claude-team-premium","codex-other":"codex-business-premium"},h=e.aiPlan&&r[e.aiPlan]?r[e.aiPlan]:e.aiPlan,c=i.some(g=>g.value===h)?h:void 0,u=!n&&!c?R():void 0,d=await a({type:"select",message:`Which ${o} plan will ${s} run on?`,initialValue:c??u??i[0].value,options:i}),p=(d===e.aiPlan||h!==e.aiPlan&&d===h)&&e.qaPhase!==void 0?e.qaPhase:G(d);return{aiPlan:d,qaPhase:p}}},Ge={id:"location",title:"Location & language",isApplicable:()=>!0,execute:async(e,{prompt:a,info:t})=>{t({title:"Which country are you finding businesses in?",body:`Klaudius searches for businesses in this country, writes outreach in
|
|
78
78
|
this country's language, and builds sites in this country's language.
|
|
79
79
|
This is the country your customers are in \u2014 not necessarily where
|
|
80
80
|
you live.
|
|
@@ -85,7 +85,7 @@ businesses, pick United Kingdom here.
|
|
|
85
85
|
This becomes your home market. You can add more countries any time
|
|
86
86
|
later \u2014 just tell Klaudius ("add Singapore as a market") and runs
|
|
87
87
|
will spread across all of them, with each client's site and outreach
|
|
88
|
-
in its own market's language.`});let
|
|
88
|
+
in its own market's language.`});let n="__other__",s=[...W.map(l=>({...l})),{value:n,label:"Other (type it in)"}],o=e.country??"",i=s.some(l=>l.value===o),h=await a({type:"select",message:"Which country's businesses will Klaudius search for?",initialValue:i?o:o?n:"the United Kingdom",options:s}),c;h===n?c=await a({type:"text",message:"Type the country name (any common form is fine)",placeholder:"e.g. South Africa, Greece, Brazil",initialValue:i?"":o,validate:l=>l.trim().length===0?"Country is required":void 0,note:{title:"Free-form country",body:`We'll match what you type against our country lookup (covers all
|
|
89
89
|
ISO 3166 sovereign states + common territories like Hong Kong and
|
|
90
90
|
Puerto Rico). If we don't recognise the name, we'll ask you to type
|
|
91
91
|
the 2-letter ISO country code directly on the next prompt \u2014 the
|
|
@@ -114,7 +114,7 @@ site.
|
|
|
114
114
|
Most languages have a 2-letter ISO 639-1 code. A few (Filipino \u2192
|
|
115
115
|
"fil") use the 3-letter ISO 639-3 / BCP 47 code instead.
|
|
116
116
|
|
|
117
|
-
Full list: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes`}})).trim().toLowerCase(),{country:u?u.country:c.trim(),countryCode:d,language:g?g.language:p.trim(),languageCode:f}}},Ue={id:"pipeline-modes",title:"Lead streams",isApplicable:()=>!0,execute:async(e,{prompt:a})=>{let
|
|
117
|
+
Full list: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes`}})).trim().toLowerCase(),{country:u?u.country:c.trim(),countryCode:d,language:g?g.language:p.trim(),languageCode:f}}},Ue={id:"pipeline-modes",title:"Lead streams",isApplicable:()=>!0,execute:async(e,{prompt:a})=>{let t=new Set(["classic","rescue","booking"]),n=(e.pipelineModes??[]).filter(r=>!t.has(r)),s=await a({type:"multiselect",message:"Which lead streams should the pipeline target?",options:[{value:"classic",label:"No website - businesses with no website at all"},{value:"rescue",label:"Rescue - businesses whose existing website is dead or broken"},{value:"booking",label:"Booking - businesses whose only web presence is a booking-platform page (Fresha, Booksy, Square...)"}],initialValue:e.pipelineModes?.length?e.pipelineModes.join(","):"classic",validate:r=>n.length===0&&r.split(",").map(h=>h.trim()).filter(Boolean).length===0?"Tick at least one lead stream":void 0,note:{title:"Lead streams",body:`No website: businesses with no website at all - the original
|
|
118
118
|
stream, on by default. Rescue: businesses whose existing site is
|
|
119
119
|
verifiably broken: dead domain, hosting placeholder, security
|
|
120
120
|
errors, doesn't work on phones. Booking: salons, clinics, spas
|
|
@@ -123,7 +123,7 @@ instead of a real website - they already pay for booking
|
|
|
123
123
|
software, and the site built for them gets a complete booking
|
|
124
124
|
system of its own. Tick any combination (at least one). Rescue
|
|
125
125
|
and booking are gated by bundled checkers, not judgment. Change
|
|
126
|
-
any time by asking your agent or re-running npx klaudius configure.`}}),o=String(s).split(",").map(r=>r.trim()).filter(r=>
|
|
126
|
+
any time by asking your agent or re-running npx klaudius configure.`}}),o=String(s).split(",").map(r=>r.trim()).filter(r=>t.has(r)),i=[...new Set([...o,...n])];return{pipelineModes:i.length>0?i:["classic"]}}},Be={id:"pricing",title:"Pricing",isApplicable:()=>!0,execute:async(e,{prompt:a})=>{let t=e.pricingTerms===T,n=t?"":e.pricing??"$999",s=e.pricingMonthly??(t?e.pricing??"":""),o=await a({type:"text",message:"What's the upfront fee you'll charge clients per site?",placeholder:"e.g. $999, \xA3799, \u20AC899 \u2014 or 0 for monthly-only billing",initialValue:n,note:{title:"Upfront fee",body:`The one-time amount charged when a client signs up. Type 0 (or
|
|
127
127
|
leave blank) if you only want to charge a monthly fee. You can
|
|
128
128
|
also add a recurring monthly fee on the next prompt \u2014 combining
|
|
129
129
|
the two is fine (e.g. $499 upfront + $49/month).
|
|
@@ -142,7 +142,7 @@ whatever you want clients to see as the sender.
|
|
|
142
142
|
Klaudius composes the actual sign-off line at message time, picking
|
|
143
143
|
natural phrasing for your language. If you'd rather pin an exact
|
|
144
144
|
sign-off string instead, ask Klaudius to set it up for you once the
|
|
145
|
-
wizard's done.`}}),signature:e.signature})},ze={id:"channels",title:"Outreach channels & priority",isApplicable:e=>e.outreachEnabled===!0,execute:async(e,{prompt:a,info:
|
|
145
|
+
wizard's done.`}}),signature:e.signature})},ze={id:"channels",title:"Outreach channels & priority",isApplicable:e=>e.outreachEnabled===!0,execute:async(e,{prompt:a,info:t})=>{t({title:"Outreach channels & priority",body:`Different businesses have different contact methods publicly available \u2014 some
|
|
146
146
|
list only an email, others only a phone number, others use WhatsApp as their
|
|
147
147
|
primary channel. Klaudius lets you opt into multiple channels so it can reach
|
|
148
148
|
more candidates, and you set a priority order for when a candidate has
|
|
@@ -164,9 +164,9 @@ your own account) carrying a QR code to the candidate's freshly built
|
|
|
164
164
|
site, where they can claim it. One letter per candidate, no letter
|
|
165
165
|
follow-ups. It's the standard lawful cold channel in countries where
|
|
166
166
|
email/WhatsApp/SMS to businesses need prior consent (Germany and
|
|
167
|
-
Austria in particular), and a premium opener anywhere else.`});let
|
|
167
|
+
Austria in particular), and a premium opener anywhere else.`});let n={email:"Email",sms:"SMS (iMessage or Twilio, configured next)",whatsapp:"WhatsApp (Baileys / phone-linked device)",letter:"Letter (real printed post via Pingen or PostGrid, ~\u20AC1/$1 per letter)"},s=["email","sms","whatsapp","letter"],o=e.outreachPriority??[],i=[],r=await a({type:"select",message:"Which channel should Klaudius try FIRST for each candidate?",initialValue:o[0]??"email",options:s.map(h=>({value:h,label:n[h]}))});for(i.push(r);i.length<s.length;){let h=s.filter(p=>!i.includes(p)),c=i.length===1?"second":i.length===2?"third":"fourth",u=i[i.length-1],d=n[u].replace(/\s*\(.*\)$/,"").toLowerCase(),y=await a({type:"select",message:`Should Klaudius use another channel as ${c} priority (for candidates where ${d} isn't viable or fails)?`,initialValue:o[i.length]??"no",options:[...h.map(p=>({value:p,label:`Yes \u2014 also use ${n[p]}`})),{value:"no",label:"No, that's all"}]});if(y==="no")break;i.push(y)}return{outreachChannels:i,outreachPriority:i}}},Ve={id:"email",title:"Email setup",isApplicable:e=>e.outreachChannels?.includes("email")===!0,execute:async(e,{prompt:a,info:t})=>{t({title:"Email setup",body:`Klaudius needs an email account to send outreach FROM. This is the
|
|
168
168
|
address candidates will see as the sender. Use a domain you control
|
|
169
|
-
(your own, your business's) \u2014 not your personal address.`});let
|
|
169
|
+
(your own, your business's) \u2014 not your personal address.`});let n=await a({type:"select",message:"Who hosts the email account you'll send outreach from?",initialValue:e.emailProvider??"gmail",options:[{value:"gmail",label:"Gmail"},{value:"fastmail",label:"Fastmail"},{value:"outlook",label:"Outlook / Office 365"},{value:"zoho",label:"Zoho Mail"},{value:"ionos",label:"IONOS"},{value:"titan",label:"Titan (123 Reg, Hostinger, Name.com\u2026)"},{value:"custom",label:"Custom / other (enter SMTP/IMAP details manually)"}]}),s=n!=="custom"?S[n]:void 0;if(s?.oauthOnly){t({title:"How Outlook / Microsoft 365 connects",body:`Microsoft no longer allows password-based access to its mailboxes
|
|
170
170
|
(app passwords included \u2014 Microsoft retired them), so there's no
|
|
171
171
|
password to paste here.
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@ Instead, at the end of setup you'll sign in to Microsoft ONCE in
|
|
|
174
174
|
your browser and approve Klaudius reading and sending your mail.
|
|
175
175
|
Your password never passes through Klaudius, and you can revoke
|
|
176
176
|
the access any time at https://account.microsoft.com (or, for
|
|
177
|
-
work accounts, https://myapps.microsoft.com).`});let l=await a({type:"text",message:"Outlook / Microsoft 365 address to send outreach from",placeholder:"you@yourbusiness.com",initialValue:e.emailAddress??"",validate:re}),m=s;return le(e,
|
|
177
|
+
work accounts, https://myapps.microsoft.com).`});let l=await a({type:"text",message:"Outlook / Microsoft 365 address to send outreach from",placeholder:"you@yourbusiness.com",initialValue:e.emailAddress??"",validate:re}),m=s;return le(e,t),{emailProvider:n,emailAuth:"oauth-microsoft",emailAddress:l,emailPassword:e.emailPassword??"",emailFromName:e.name,emailSmtpHost:m.smtpHost,emailSmtpPort:m.smtpPort,emailImapHost:m.imapHost,emailImapPort:m.imapPort,emailSentFolder:m.sentFolder,emailInboxFolder:m.inboxFolder,emailDraftsFolder:m.draftsFolder}}let o=await a({type:"text",message:"Email address to send outreach from",placeholder:"you@yourbusiness.com",initialValue:e.emailAddress??"",validate:re}),i=s?.appPasswordHelp??_,r=s?.usesAccountPassword??!1,h=await a({type:"password",message:r?"Paste your mailbox password":"Paste the app password",initialValue:e.emailPassword??"",validate:b(r?"Mailbox password":"App password"),note:{title:r?"Mailbox password":"App password",body:(s&&!r?`An app password is a separate, single-purpose password that your
|
|
178
178
|
email provider issues for third-party apps like Klaudius. It is NOT
|
|
179
179
|
your normal account login password.
|
|
180
180
|
|
|
@@ -182,10 +182,10 @@ your normal account login password.
|
|
|
182
182
|
|
|
183
183
|
The password is stored locally in this project's .env file.
|
|
184
184
|
It is never sent to Klaudius's servers \u2014 only to your email
|
|
185
|
-
provider when sending outreach.`}}),c,u,d,y,p,g,f;if(
|
|
186
|
-
rotated across several mailboxes, ask ${
|
|
185
|
+
provider when sending outreach.`}}),c,u,d,y,p,g,f;if(n==="custom"){c=await a({type:"text",message:"SMTP host (the server Klaudius connects to for sending)",placeholder:"e.g. smtp.yourprovider.com",initialValue:e.emailSmtpHost??"",validate:b("SMTP host")});let l=await a({type:"text",message:"SMTP port (usually 587 for STARTTLS or 465 for SSL)",initialValue:String(e.emailSmtpPort??587),validate:w=>/^\d+$/.test(w)?void 0:"Must be a number"});u=parseInt(l,10),d=await a({type:"text",message:"IMAP host (the server Klaudius connects to for reading replies)",placeholder:"e.g. imap.yourprovider.com",initialValue:e.emailImapHost??"",validate:b("IMAP host")});let m=await a({type:"text",message:"IMAP port (usually 993 for SSL)",initialValue:String(e.emailImapPort??993),validate:w=>/^\d+$/.test(w)?void 0:"Must be a number"});y=parseInt(m,10),p=await a({type:"text",message:"Sent folder name (so SMTP-sent messages also appear in your email client's Sent folder)",placeholder:'e.g. "Sent", "Sent Items"',initialValue:e.emailSentFolder??"Sent"}),g=await a({type:"text",message:"Inbox folder name (almost always INBOX)",initialValue:e.emailInboxFolder??"INBOX"}),f=await a({type:"text",message:"Drafts folder name (where Klaudius saves draft emails for you to review and send)",placeholder:'e.g. "Drafts"',initialValue:e.emailDraftsFolder??"Drafts"})}else{let l=s,m=n===e.emailProvider,w=m?e.emailSmtpHost:void 0,ue=m?e.emailSmtpPort:void 0,I=m?e.emailImapHost:void 0,de=m?e.emailImapPort:void 0,ce=!!w&&w!==l.smtpHost||!!I&&I!==l.imapHost;if(await a({type:"select",message:`Server settings for ${l.label}`,initialValue:ce?"manual":"standard",options:[{value:"standard",label:`Use the standard ${l.label} servers \u2014 ${l.smtpHost} (Recommended)`},{value:"manual",label:"Enter servers manually (regional accounts, custom setups)"}],note:l.serverHelp?{title:"Server settings",body:l.serverHelp}:void 0})==="manual"){c=await a({type:"text",message:"SMTP host (the server Klaudius connects to for sending)",initialValue:w??l.smtpHost,validate:b("SMTP host")});let ge=await a({type:"text",message:"SMTP port (usually 587 for STARTTLS or 465 for SSL)",initialValue:String(ue??l.smtpPort),validate:E=>/^\d+$/.test(E)?void 0:"Must be a number"});u=parseInt(ge,10),d=await a({type:"text",message:"IMAP host (the server Klaudius connects to for reading replies)",initialValue:I??l.imapHost,validate:b("IMAP host")});let he=await a({type:"text",message:"IMAP port (usually 993 for SSL)",initialValue:String(de??l.imapPort),validate:E=>/^\d+$/.test(E)?void 0:"Must be a number"});y=parseInt(he,10),p=(m?e.emailSentFolder:void 0)??l.sentFolder,g=(m?e.emailInboxFolder:void 0)??l.inboxFolder,f=(m?e.emailDraftsFolder:void 0)??l.draftsFolder}else c=l.smtpHost,u=l.smtpPort,d=l.imapHost,y=l.imapPort,p=l.sentFolder,g=l.inboxFolder,f=l.draftsFolder}return le(e,t),{emailProvider:n,emailAuth:"password",emailAddress:o,emailPassword:h,emailFromName:e.name,emailSmtpHost:c,emailSmtpPort:u,emailImapHost:d,emailImapPort:y,emailSentFolder:p,emailInboxFolder:g,emailDraftsFolder:f}}};function le(e,a){let t=e.aiAgent==="codex"?"Codex":"Claude";a({title:"Sending from more than one mailbox?",body:`Most operators start with just this one. If you later want outreach
|
|
186
|
+
rotated across several mailboxes, ask ${t} to add another sending
|
|
187
187
|
mailbox \u2014 it updates your config and verifies the new mailbox with a
|
|
188
|
-
test send.`})}var We={id:"sms",title:"SMS setup",isApplicable:e=>e.outreachChannels?.includes("sms")===!0,execute:async(e,{prompt:a,info:
|
|
188
|
+
test send.`})}var We={id:"sms",title:"SMS setup",isApplicable:e=>e.outreachChannels?.includes("sms")===!0,execute:async(e,{prompt:a,info:t})=>{t({title:"SMS setup",body:`Klaudius can send SMS one of two ways:
|
|
189
189
|
|
|
190
190
|
\u2022 macOS iMessage \u2014 free, uses Messages.app on your Mac.
|
|
191
191
|
Reaches other Apple users as iMessage for free. To reach
|
|
@@ -201,7 +201,7 @@ test send.`})}var We={id:"sms",title:"SMS setup",isApplicable:e=>e.outreachChann
|
|
|
201
201
|
|
|
202
202
|
\u2022 Twilio \u2014 cross-platform, ~$0.01 per SMS. Sender is a phone
|
|
203
203
|
number you buy from Twilio. Works on any OS, reaches any
|
|
204
|
-
phone, no iPhone required. Recommended for consistent delivery.`});let
|
|
204
|
+
phone, no iPhone required. Recommended for consistent delivery.`});let n=await a({type:"select",message:"Which SMS provider?",initialValue:e.smsProvider??(process.platform==="darwin"?"imessage":"twilio"),options:[{value:"imessage",label:"macOS iMessage (free, Mac only)"},{value:"twilio",label:"Twilio (cross-platform, paid per-message \u2014 recommended)"}]}),s=await a({type:"text",message:"Your mobile number (used as a safe target for test sends so Klaudius doesn't accidentally message real candidates while you're testing)",placeholder:"+12025550123",initialValue:e.testPhone??"",validate:ie}),o={smsProvider:n,testPhone:s};return n==="twilio"&&(o.twilioAccountSid=await a({type:"text",message:"Twilio Account SID (starts with AC...)",initialValue:e.twilioAccountSid??"",validate:i=>/^AC[a-zA-Z0-9]+$/.test(i)?void 0:"Should start with 'AC'"}),o.twilioAuthToken=await a({type:"password",message:"Twilio Auth Token",initialValue:e.twilioAuthToken??"",validate:H("Twilio Auth Token")}),o.twilioPhoneNumber=await a({type:"text",message:"Twilio phone number (the number outreach will be sent FROM)",placeholder:"+15551234567",initialValue:e.twilioPhoneNumber??"",validate:ie})),o}},je={id:"whatsapp",title:"WhatsApp setup",isApplicable:e=>e.outreachPriority?.includes("whatsapp")===!0,execute:async(e,{prompt:a,info:t})=>{t({title:"WhatsApp setup",body:`Klaudius connects to WhatsApp as a linked device on your phone \u2014 same way
|
|
205
205
|
WhatsApp Web works. Setup is a one-time QR scan from the WhatsApp app on
|
|
206
206
|
the phone whose number you want to use. Klaudius will guide you through
|
|
207
207
|
that AFTER this wizard, once npm dependencies are installed.
|
|
@@ -214,7 +214,7 @@ a separate phone number per account (they're tied to real SIMs).
|
|
|
214
214
|
|
|
215
215
|
You'll be asked how many accounts to link and a short label for each
|
|
216
216
|
(used only locally \u2014 appears in logs, in the .env file, and in this
|
|
217
|
-
project's per-account directory under ~/.klaudius/whatsapp/).`});let
|
|
217
|
+
project's per-account directory under ~/.klaudius/whatsapp/).`});let n=await a({type:"select",message:"How many WhatsApp numbers do you want to link?",initialValue:String(e.whatsappAccounts?.length??1),options:[{value:"1",label:"1 number (recommended starting point)"},{value:"2",label:"2 numbers (spread load across two)"},{value:"3",label:"3 numbers"},{value:"4",label:"4 numbers"},{value:"5",label:"5 numbers (maximum)"}]}),s=parseInt(n,10),o=["primary","secondary","tertiary","quaternary","quinary"],i=[];for(let r=0;r<s;r++){let h=await a({type:"text",message:s===1?"Label for this WhatsApp account (used only locally \u2014 'primary' is fine)":`Label for WhatsApp account ${r+1} of ${s} (e.g. 'primary', 'uk-1', 'us-east')`,initialValue:e.whatsappAccounts?.[r]??o[r],validate:c=>{let u=c.trim();if(!u)return"Required";if(u.length>30)return"Too long (max 30 characters)";if(u.startsWith("-")||u.endsWith("-"))return"Can't start or end with a hyphen";if(!/^[A-Za-z0-9_-]+$/.test(u))return"Letters, digits, underscore, hyphen only (no spaces)";if(i.includes(u))return"Duplicate label"}});i.push(h.trim())}return{whatsappAccounts:i}}},Ze={id:"letter",title:"Letter setup",isApplicable:e=>e.outreachChannels?.includes("letter")===!0,execute:async(e,{prompt:a,info:t})=>{t({title:"Letter setup",body:`Klaudius sends letters through a print-and-post API \u2014 you bring your
|
|
218
218
|
own provider account, the provider prints each letter locally and
|
|
219
219
|
hands it to the postal carrier. Two providers are supported:
|
|
220
220
|
|
|
@@ -236,7 +236,7 @@ hands it to the postal carrier. Two providers are supported:
|
|
|
236
236
|
|
|
237
237
|
Klaudius refuses letters with incomplete street addresses and
|
|
238
238
|
verifies each letter's claim-page link is live before submitting,
|
|
239
|
-
so a letter is never wasted on a bad address or a dead link.`});let
|
|
239
|
+
so a letter is never wasted on a bad address or a dead link.`});let n=e.countryCode&&["US","CA","AU","GB","UK"].includes(e.countryCode)?"postgrid":"pingen",s=await a({type:"select",message:"Which letter provider?",initialValue:e.letterProvider??n,options:[{value:"pingen",label:"Pingen (Europe: DE, AT, CH, NL, FR, BE, LU, ES, UK)"},{value:"postgrid",label:"PostGrid (US, CA, UK, AU)"}]}),o={letterProvider:s};return s==="pingen"?(o.pingenClientId=await a({type:"text",message:"Pingen API Client ID",initialValue:e.pingenClientId??"",validate:b("Pingen Client ID")}),o.pingenClientSecret=await a({type:"password",message:"Pingen API Client Secret",initialValue:e.pingenClientSecret??"",validate:H("Pingen Client Secret")}),o.pingenOrgId=await a({type:"text",message:"Pingen organisation id (from the dashboard URL: app.pingen.com/organisations/<id>/...)",initialValue:e.pingenOrgId??"",validate:b("Pingen organisation id")})):o.postgridApiKey=await a({type:"password",message:"PostGrid API key (live_sk_... \u2014 a test_ key works but prints nothing)",initialValue:e.postgridApiKey??"",validate:H("PostGrid API key")}),o}},Ye={id:"deploy-provider",title:"Deployment host",isApplicable:()=>!0,execute:async(e,{prompt:a,info:t})=>(t({title:"Where should Klaudius deploy the websites it builds?",body:`Every client site Klaudius builds is a static website, so it deploys
|
|
240
240
|
cleanly to any of the hosts below \u2014 pick whichever you'd rather have
|
|
241
241
|
an account with. All have a free tier that's plenty to get started.
|
|
242
242
|
|
|
@@ -250,7 +250,7 @@ an account with. All have a free tier that's plenty to get started.
|
|
|
250
250
|
This only changes where sites are hosted and which credential you set
|
|
251
251
|
up next. Everything else \u2014 how sites are found, built, and pitched \u2014
|
|
252
252
|
is identical. (The optional dynamic add-ons \u2014 CMS, live Google
|
|
253
|
-
rating, booking \u2014 are Vercel-only today.)`}),{deployProvider:await a({type:"select",message:"Which host should Klaudius deploy client sites to?",initialValue:e.deployProvider??"vercel",options:[{value:"vercel",label:"Vercel (default)"},{value:"cloudflare",label:"Cloudflare Pages"},{value:"netlify",label:"Netlify"},{value:"selfhost",label:"Self-hosted (your own server over SSH)"}]})})},qe={id:"vercel",title:"Vercel deployment",isApplicable:e=>(e.deployProvider??"vercel")==="vercel",execute:async(e,{prompt:a})=>({vercelToken:(await a({type:"password",message:"Paste your Vercel API token",initialValue:e.vercelToken??"",validate:
|
|
253
|
+
rating, booking \u2014 are Vercel-only today.)`}),{deployProvider:await a({type:"select",message:"Which host should Klaudius deploy client sites to?",initialValue:e.deployProvider??"vercel",options:[{value:"vercel",label:"Vercel (default)"},{value:"cloudflare",label:"Cloudflare Pages"},{value:"netlify",label:"Netlify"},{value:"selfhost",label:"Self-hosted (your own server over SSH)"}]})})},qe={id:"vercel",title:"Vercel deployment",isApplicable:e=>(e.deployProvider??"vercel")==="vercel",execute:async(e,{prompt:a})=>({vercelToken:(await a({type:"password",message:"Paste your Vercel API token",initialValue:e.vercelToken??"",validate:n=>n.trim().length===0?"Required \u2014 without this Klaudius can't deploy generated sites":void 0,note:{title:"Vercel deployment",body:`Klaudius deploys every generated client site to Vercel. We use a
|
|
254
254
|
Vercel API token to do this without an interactive login.
|
|
255
255
|
|
|
256
256
|
How to get one (one-time, ~30 seconds):
|
|
@@ -272,7 +272,7 @@ STUCK? Open Claude (or any LLM) in another tab/app and paste:
|
|
|
272
272
|
"I need to create a Vercel access token for the Klaudius
|
|
273
273
|
CLI tool, with Scope set to Full Account and Expiration set
|
|
274
274
|
to No Expiration. Walk me through creating one at
|
|
275
|
-
vercel.com/account/settings/tokens."`}})).trim()})},Je={id:"cloudflare",title:"Cloudflare deployment",isApplicable:e=>e.deployProvider==="cloudflare",execute:async(e,{prompt:a})=>{let
|
|
275
|
+
vercel.com/account/settings/tokens."`}})).trim()})},Je={id:"cloudflare",title:"Cloudflare deployment",isApplicable:e=>e.deployProvider==="cloudflare",execute:async(e,{prompt:a})=>{let t=await a({type:"password",message:"Paste your Cloudflare API token",initialValue:e.cloudflareApiToken??"",validate:s=>s.trim().length===0?"Required \u2014 without this Klaudius can't deploy generated sites":void 0,note:{title:"Cloudflare API token",body:`Klaudius deploys every generated client site to Cloudflare Pages
|
|
276
276
|
using \`wrangler\`. It authenticates with an API token (no interactive
|
|
277
277
|
login), so no browser step at deploy time.
|
|
278
278
|
|
|
@@ -299,7 +299,7 @@ STUCK? Open Claude (or any LLM) in another tab/app and paste:
|
|
|
299
299
|
through creating a Custom Token at
|
|
300
300
|
dash.cloudflare.com/profile/api-tokens with the
|
|
301
301
|
'Account \u2192 Cloudflare Pages \u2192 Edit' permission, and tell me
|
|
302
|
-
where to find my Account ID."`}}),
|
|
302
|
+
where to find my Account ID."`}}),n=await a({type:"text",message:"Paste your Cloudflare Account ID",placeholder:"e.g. 0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d",initialValue:e.cloudflareAccountId??"",validate:s=>{let o=s.trim();if(o.length===0)return"Required \u2014 wrangler needs it to pick the right account";if(!/^[0-9a-f]{32}$/i.test(o))return"Should be a 32-character hex string (copy it from the dashboard, not the token)"},note:{title:"Cloudflare Account ID",body:`This tells \`wrangler\` which account to deploy into. It's separate
|
|
303
303
|
from the API token above.
|
|
304
304
|
|
|
305
305
|
Where to find it:
|
|
@@ -309,7 +309,7 @@ Where to find it:
|
|
|
309
309
|
the account's Workers & Pages overview page under 'Account ID'
|
|
310
310
|
|
|
311
311
|
Without it, wrangler shows an interactive account picker that would
|
|
312
|
-
stall an unattended pipeline run, so Klaudius requires it up front.`}});return{cloudflareApiToken:
|
|
312
|
+
stall an unattended pipeline run, so Klaudius requires it up front.`}});return{cloudflareApiToken:t.trim(),cloudflareAccountId:n.trim()}}},Qe={id:"netlify",title:"Netlify deployment",isApplicable:e=>e.deployProvider==="netlify",execute:async(e,{prompt:a})=>({netlifyAuthToken:(await a({type:"password",message:"Paste your Netlify access token",initialValue:e.netlifyAuthToken??"",validate:n=>n.trim().length===0?"Required \u2014 without this Klaudius can't deploy generated sites":void 0,note:{title:"Netlify access token",body:`Klaudius deploys every generated client site to Netlify using the
|
|
313
313
|
Netlify CLI. It authenticates with a personal access token (no
|
|
314
314
|
interactive login), so there's no browser step at deploy time.
|
|
315
315
|
|
|
@@ -332,7 +332,7 @@ STUCK? Open Claude (or any LLM) in another tab/app and paste:
|
|
|
332
332
|
"I need to create a personal access token for the Klaudius CLI
|
|
333
333
|
tool in Netlify. Walk me through generating one at
|
|
334
334
|
app.netlify.com/user/applications, including which expiry to
|
|
335
|
-
choose."`}})).trim()})},Xe={id:"selfhost",title:"Self-host deployment",isApplicable:e=>e.deployProvider==="selfhost",execute:async(e,{prompt:a})=>{let
|
|
335
|
+
choose."`}})).trim()})},Xe={id:"selfhost",title:"Self-host deployment",isApplicable:e=>e.deployProvider==="selfhost",execute:async(e,{prompt:a})=>{let t=await a({type:"text",message:"Where should sites be uploaded? (SSH destination)",placeholder:"e.g. deploy@203.0.113.7:/var/www/klaudius-sites",initialValue:e.selfhostDeployTarget??"",validate:D,note:{title:"Self-host deployment",body:`Klaudius builds each client site locally as plain static files and
|
|
336
336
|
uploads them to your server over SSH. Each client gets
|
|
337
337
|
its own subdirectory under the destination you enter here, e.g.
|
|
338
338
|
deploy@yourvps:/var/www/klaudius-sites \u2192 .../klaudius-sites/<slug>/
|
|
@@ -347,7 +347,7 @@ STUCK? Open Claude (or any LLM) and paste:
|
|
|
347
347
|
"I'm setting up passwordless SSH key auth from my machine to
|
|
348
348
|
my VPS so an automated deploy can upload files over SSH. Walk me
|
|
349
349
|
through ssh-keygen and ssh-copy-id, and where to put a custom
|
|
350
|
-
port in ~/.ssh/config."`}}),
|
|
350
|
+
port in ~/.ssh/config."`}}),n=await a({type:"text",message:"What URL will each site be served at? (use {slug} in the hostname)",placeholder:"e.g. https://{slug}.sites.your-domain.com",initialValue:e.selfhostUrlTemplate??"",validate:$,note:{title:"Public URL pattern",body:`The deploy substitutes each client's slug into this template to get
|
|
351
351
|
the live URL it records and pitches. {slug} must be in the HOSTNAME
|
|
352
352
|
(each site is served from the root of its own subdomain) because
|
|
353
353
|
static exports use root-absolute asset links.
|
|
@@ -363,7 +363,7 @@ deploy end-to-end. STUCK on the server config? Paste into any LLM:
|
|
|
363
363
|
"Help me configure nginx (or Caddy) with a wildcard vhost that
|
|
364
364
|
serves https://<name>.sites.example.com from
|
|
365
365
|
/var/www/klaudius-sites/<name>/, plus a wildcard Let's Encrypt
|
|
366
|
-
certificate via DNS-01."`}});return{selfhostDeployTarget:
|
|
366
|
+
certificate via DNS-01."`}});return{selfhostDeployTarget:t.trim().replace(/\/+$/,""),selfhostUrlTemplate:n.trim()}}},ea={id:"supabase",title:"Supabase",isApplicable:()=>!0,execute:async(e,{prompt:a,info:t})=>{t({title:"Supabase setup",body:`Supabase is your CRM. It's where Klaudius records every business it
|
|
367
367
|
finds, where each one sits in your funnel (gathered \u2192 built \u2192 deployed
|
|
368
368
|
\u2192 outreach sent \u2192 responded), and the follow-up state for every lead.
|
|
369
369
|
You can browse it at any time from the Supabase dashboard, or ask
|
|
@@ -413,23 +413,29 @@ are client-side keys with no write permissions).
|
|
|
413
413
|
Don't confuse this page with 'Edge Functions \u2192 Secrets' in the
|
|
414
414
|
left sidebar \u2014 that's an unrelated feature (env vars for Edge
|
|
415
415
|
Functions). The page you want is Settings (gear icon, bottom
|
|
416
|
-
of the left sidebar) \u2192 API Keys.`}})).replace(/\s+/g,""),c=(await a({type:"password",message:"Paste the Supabase personal access token",initialValue:e.supabasePat??"",validate:Z,note:{title:"Personal access token",body:`This is a separate credential from the secret key above \u2014
|
|
417
|
-
|
|
418
|
-
by
|
|
416
|
+
of the left sidebar) \u2192 API Keys.`}})).replace(/\s+/g,""),c=(await a({type:"password",message:"Paste the Supabase personal access token",initialValue:e.supabasePat??"",validate:Z,note:{title:"Personal access token",body:`This is a separate credential from the secret key above \u2014 a token
|
|
417
|
+
made under your Supabase ACCOUNT, used by Klaudius's schema
|
|
418
|
+
migration and afterwards by the Supabase MCP.
|
|
419
419
|
|
|
420
420
|
Open this exact page:
|
|
421
421
|
https://supabase.com/dashboard/account/tokens
|
|
422
422
|
|
|
423
423
|
Click 'Generate new token', name it 'Klaudius', and set the
|
|
424
424
|
expiration to 'Never' (recommended \u2014 saves you having to rotate
|
|
425
|
-
it later).
|
|
426
|
-
|
|
425
|
+
it later).
|
|
426
|
+
|
|
427
|
+
PERMISSIONS: give it full access. If Supabase lets you choose
|
|
428
|
+
what the token can do and you'd rather limit it, it needs at
|
|
429
|
+
least Database and Migrations read-write, and API Keys read, on
|
|
430
|
+
this project: setup and your agent use all three.
|
|
431
|
+
|
|
432
|
+
Copy the value (starts with 'sbp_') and paste it below.`}})).replace(/\s+/g,""),u=e.supabaseAnonKey;return e.outreachChannels?.includes("letter")&&(u=(await a({type:"password",message:"Paste the Supabase publishable (anon) key \u2014 needed for the letter channel's claim pages",initialValue:e.supabaseAnonKey??"",validate:q,note:{title:"Publishable (anon) key",body:`Same page as the secret key:
|
|
427
433
|
https://supabase.com/dashboard/project/${o}/settings/api-keys
|
|
428
434
|
|
|
429
435
|
Copy the 'sb_publishable_\u2026' value (labelled 'anon' / 'public' on
|
|
430
436
|
older projects). This key is safe to embed in public pages: on a
|
|
431
437
|
Klaudius database it can only insert claim-form submissions,
|
|
432
|
-
nothing else.`}})).replace(/\s+/g,"")),{supabaseUrl:s,supabaseServiceKey:r,supabasePat:c,supabaseAnonKey:u,supabaseProjectRef:o}}},aa={id:"google-places",title:"Google Places API",isApplicable:()=>!0,execute:async(e,{prompt:a})=>{let
|
|
438
|
+
nothing else.`}})).replace(/\s+/g,"")),{supabaseUrl:s,supabaseServiceKey:r,supabasePat:c,supabaseAnonKey:u,supabaseProjectRef:o}}},aa={id:"google-places",title:"Google Places API",isApplicable:()=>!0,execute:async(e,{prompt:a})=>{let t=await a({type:"password",message:"Paste your Google Places API key",placeholder:"AIzaSy\u2026",initialValue:e.googlePlacesApiKey??"",validate:s=>ae(s),note:{title:"Google Places API key",body:`Klaudius's /find skill queries Google's Places API to discover businesses
|
|
433
439
|
without websites in your target region. Without a key, the pipeline has
|
|
434
440
|
no source of leads \u2014 so this is required.
|
|
435
441
|
|
|
@@ -465,13 +471,13 @@ STUCK? Open Claude (or any LLM) in another tab/app and paste this prompt:
|
|
|
465
471
|
"I need a Google Places API (New) key for a CLI tool called
|
|
466
472
|
Klaudius. Walk me through claiming the $300 Google Cloud free trial
|
|
467
473
|
and getting the API key Google auto-generates after enabling
|
|
468
|
-
Places API (New), including any signup gotchas."`}});return{googlePlacesApiKey:M(
|
|
474
|
+
Places API (New), including any signup gotchas."`}});return{googlePlacesApiKey:M(t).value}}},ta={id:"notifications",title:"Notifications (optional)",isApplicable:()=>!0,clearOnSkip:["notifyChannel","notifyTo","telegramBotToken","telegramChatId"],execute:async(e,{prompt:a})=>{let t=!!e.emailAddress,n=!!e.smsProvider||!!e.testPhone,s=e.notifyChannel==="telegram"?!!e.telegramBotToken:e.notifyChannel==="email"?t:e.notifyChannel==="sms"?n:!1,o=await a({type:"select",message:"How should Klaudius send you pipeline alerts?",initialValue:s?e.notifyChannel:e.telegramBotToken?"telegram":"none",options:[{value:"telegram",label:"Telegram (recommended \u2014 instant phone pings, free)"},...t?[{value:"email",label:"Email (to your own inbox, reuses your outreach account)"}]:[],...n?[{value:"sms",label:"SMS (to your own phone, via your configured SMS setup)"}]:[],{value:"none",label:"None"}],note:{title:"Pipeline notifications (optional)",body:`Klaudius alerts you when outreach lands and when anything needs a
|
|
469
475
|
human eye (a failed deploy, an API error, odd-looking data).
|
|
470
476
|
|
|
471
477
|
\u2022 Telegram \u2014 needs a bot token (via @BotFather, ~30 seconds);
|
|
472
478
|
the next prompts walk you through it.
|
|
473
479
|
\u2022 Email / SMS \u2014 zero extra setup; alerts go to your own
|
|
474
|
-
inbox/phone through the account you already configured.`}});if(o==="none")return{notifyChannel:void 0,notifyTo:void 0,telegramBotToken:void 0,telegramChatId:void 0};if(o==="email"||o==="sms"){let y=o==="email"?e.emailAddress:e.testPhone,p=await a({type:"text",message:o==="email"?"Where should alert emails go?":"Which number should alert texts go to?",initialValue:e.notifyTo??y??"",validate:g=>g.trim().length===0?"Required":void 0});return{notifyChannel:o,notifyTo:p.trim()}}let i=async y=>{let p=await a({type:"password",message:"Paste your Telegram bot token",initialValue:y?"":e.telegramBotToken??"",validate:
|
|
480
|
+
inbox/phone through the account you already configured.`}});if(o==="none")return{notifyChannel:void 0,notifyTo:void 0,telegramBotToken:void 0,telegramChatId:void 0};if(o==="email"||o==="sms"){let y=o==="email"?e.emailAddress:e.testPhone,p=await a({type:"text",message:o==="email"?"Where should alert emails go?":"Which number should alert texts go to?",initialValue:e.notifyTo??y??"",validate:g=>g.trim().length===0?"Required":void 0});return{notifyChannel:o,notifyTo:p.trim()}}let i=async y=>{let p=await a({type:"password",message:"Paste your Telegram bot token",initialValue:y?"":e.telegramBotToken??"",validate:te,note:y??{title:"Bot token",body:`Telegram lets you create personal bots in ~30 seconds. Klaudius
|
|
475
481
|
uses a bot to send you private notifications.
|
|
476
482
|
|
|
477
483
|
How to create one:
|
|
@@ -514,7 +520,7 @@ any messages your bot has received. To make that work:
|
|
|
514
520
|
you.`}});let g=await B({botToken:r});g.ok&&g.chatId?h=g.chatId:g.reason==="no_messages"?(u="No messages from you to your bot have been picked up yet.",d="no_messages"):g.reason==="network"?(u=g.message??"Could not reach Telegram.",d="network"):g.reason==="busy"?(u=g.message??"Telegram is busy.",d="busy"):g.reason==="conflict"?(u=g.message??"Another app is polling this bot.",d="conflict"):(r=await i(g.reason==="webhook_set"?{title:"That bot is already connected to another app",body:`${g.message??"This bot has a webhook set."}
|
|
515
521
|
|
|
516
522
|
Make a separate bot just for Klaudius: send /newbot to
|
|
517
|
-
@BotFather, follow its steps, then paste the new token below.`}:{title:"Telegram didn't accept that token",body:[g.message??"Telegram rejected the bot token.",
|
|
523
|
+
@BotFather, follow its steps, then paste the new token below.`}:{title:"Telegram didn't accept that token",body:[g.message??"Telegram rejected the bot token.",ne(r),`Paste the token again below. To see it in Telegram: send
|
|
518
524
|
/mybots to @BotFather, pick your bot, then tap API Token.`].filter(Boolean).join(`
|
|
519
525
|
|
|
520
|
-
`)}),c=0,u=null,d=null)}return{notifyChannel:"telegram",notifyTo:void 0,telegramBotToken:r,telegramChatId:h}}},
|
|
526
|
+
`)}),c=0,u=null,d=null)}return{notifyChannel:"telegram",notifyTo:void 0,telegramBotToken:r,telegramChatId:h}}},Ba=[Re,_e,Ge,Ue,Be,De,$e,ze,Ve,We,je,Ze,Ye,qe,Je,Qe,Xe,ea,aa,ta];export{fe as a,ra as b,la as c,G as d,ba as e,ma as f,ya as g,S as h,P as i,Pe as j,Sa as k,D as l,$ as m,Aa as n,j as o,ee as p,k as q,ae as r,xa as s,oe as t,se as u,Ba as v};
|