agenttwin 0.3.44 → 0.3.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +33 -4
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/{page-d3c4451763af3bb2.js → page-90e7c4625d67caa3.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/about/{page-e8f70f456b3e001f.js → page-7b6ab8f6081f5e77.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/account/password/{page-13d4d6cf28183f27.js → page-037fec5f56012be1.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-47a0e404f3655e69.js → layout-1f35c9c8280d8e88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-0a7a4610c777d4ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-d2f69d996bda5b65.js → page-7ee71756cadd81da.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/demo/{page-0ebf741047bacc39.js → page-fa467521a350a22e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/{page-f9e33ed2f89fd53d.js → page-2f02d1a4e3c44daa.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/{pricing/page-0d9e6abaa82f633b.js → enterprise/page-5d3aa113786c4257.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/{layout-8e8607ccec674a88.js → layout-f1fad0b3adfa8650.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-0fcaa825ae57072e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/not-found-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-0ef60a890802e3ea.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/page-02d88045d016e184.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-b20818439dc8daa3.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/security/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-0fcaa825ae57072e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/status/{page-1dce1a7886e3e6f0.js → page-477b90a47b806b39.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{layout-eac4c37292388b51.js → layout-f3b848d905696aa6.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-5114d5bc25cc925a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-c5a3a914ad02b396.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-391350c8e39d35fe.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-cb95f6e08d868cb9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-ba5549311d95d01d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-391350c8e39d35fe.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{main-app-8016af41043dfe3d.js → main-app-09f87cf7a6813e7b.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-5e3b77bcb344d4ed.js → webpack-956fc59a9b8e1c9d.js} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/discover-worker.js +1 -1
- package/dist/engine.js +33 -4
- package/dist/gateway.js +33 -4
- package/package.json +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-00f2a0cb3dd9dfcc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-526ed9ed987ec1ab.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-0fdb6c325a08152f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/not-found-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-aa8315fd545cfcab.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-563661520c08bc87.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/security/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-0fdb6c325a08152f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-e6ac9852938ee195.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-d82d70f6caa12d7c.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-ece40a44e9fbe945.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-52b97f3b9b06f7f7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-b5f3b1ecfef066bb.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-e63b0b6f3f0512e0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-52b97f3b9b06f7f7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-e6ac9852938ee195.js +0 -1
- /package/dist/dashboard/assets/next/static/{485syozzbgr0SePb1vNxp → iCEc5bCzyYUPa74FKyLIp}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{485syozzbgr0SePb1vNxp → iCEc5bCzyYUPa74FKyLIp}/_ssgManifest.js +0 -0
package/dist/api.js
CHANGED
|
@@ -41876,7 +41876,7 @@ var init_package = __esm({
|
|
|
41876
41876
|
"package.json"() {
|
|
41877
41877
|
package_default = {
|
|
41878
41878
|
name: "agenttwin",
|
|
41879
|
-
version: "0.3.
|
|
41879
|
+
version: "0.3.45",
|
|
41880
41880
|
description: "AgentTwin builds digital twins for testing AI agents. The current CLI prepares supported Node.js workflows with synthetic services, failures, and outcome checks.",
|
|
41881
41881
|
mcpName: "io.github.AgentTwin/agenttwin",
|
|
41882
41882
|
keywords: [
|
|
@@ -51884,12 +51884,36 @@ function resolveTwin(service) {
|
|
|
51884
51884
|
}
|
|
51885
51885
|
return gapPlan(service);
|
|
51886
51886
|
}
|
|
51887
|
+
function contractEndpointMatches(endpoint, path2, optionalJson = false) {
|
|
51888
|
+
const clean = path2.split("?")[0] ?? "/";
|
|
51889
|
+
const pattern = endpoint.split("?")[0].split(",").map((part) => {
|
|
51890
|
+
let src = part.trim().replace(/[.*+?^$()|[\]\\]/g, (m) => m === "{" || m === "}" || m === "|" ? m : "\\" + m);
|
|
51891
|
+
src = src.replace(/\{([^{}|]+\|[^{}]+)\}/g, (_, alts) => `(?:${alts})`).replace(/<repo>/g, "[^/]+/[^/]+").replace(/<destination-url>/g, ".+").replace(/<[^>]+>|\{[^}]+\}/g, "[^/]+");
|
|
51892
|
+
if (optionalJson && src.endsWith("\\.json")) src = src.slice(0, -6) + "(?:\\.json)?";
|
|
51893
|
+
return `^${src}$`;
|
|
51894
|
+
}).join("|");
|
|
51895
|
+
return new RegExp(pattern).test(clean);
|
|
51896
|
+
}
|
|
51897
|
+
function builtinCoversCalls(key3, calls) {
|
|
51898
|
+
const contract = CONTRACTS[key3];
|
|
51899
|
+
if (!contract || !calls.length) return true;
|
|
51900
|
+
if (key3 === "linear") {
|
|
51901
|
+
return calls.every((c) => !c.operation || /^(?:graphql|request|fetch)$/i.test(c.operation) || LINEAR_OPERATIONS.has(c.operation));
|
|
51902
|
+
}
|
|
51903
|
+
const optionalJson = key3 === "twilio";
|
|
51904
|
+
return calls.every((c) => {
|
|
51905
|
+
if (!c.path) return true;
|
|
51906
|
+
const method = c.method?.toUpperCase();
|
|
51907
|
+
return contract.operations.some((op2) => (!method || op2.method.split(/[|/]/).includes(method)) && contractEndpointMatches(op2.endpoint, c.path, optionalJson));
|
|
51908
|
+
});
|
|
51909
|
+
}
|
|
51887
51910
|
function packMethodCollection(pack, operation) {
|
|
51888
51911
|
return METHOD_COLLECTIONS[pack]?.find(([re]) => re.test(operation))?.[1];
|
|
51889
51912
|
}
|
|
51890
51913
|
function packFor(service) {
|
|
51891
51914
|
if (!packCatalog()) return void 0;
|
|
51892
|
-
const
|
|
51915
|
+
const rawKey = service.key.startsWith("pack:") ? service.key.slice(5) : service.key;
|
|
51916
|
+
const byName = packRecord(rawKey) ?? packRecord(rawKey.replace(/-/g, ""));
|
|
51893
51917
|
if (byName) return byName;
|
|
51894
51918
|
if (service.key.startsWith("sdk:")) {
|
|
51895
51919
|
const bySdk = packForSdk(service.key.slice(4));
|
|
@@ -51925,7 +51949,7 @@ function gapPlan(service) {
|
|
|
51925
51949
|
env: /mysql/i.test(service.key) ? { MYSQL_URL: "mysql://agenttwin-gap.invalid/db" } : /mongo/i.test(service.key) ? { MONGODB_URI: "mongodb://agenttwin-gap.invalid/db", MONGO_URL: "mongodb://agenttwin-gap.invalid/db" } : {}
|
|
51926
51950
|
};
|
|
51927
51951
|
}
|
|
51928
|
-
var ENGINE_PORTS, ENGINE_TITLES, PROTOCOL_ENGINES, TIER_RANK, registry3, serviceName3, DEEP, SLACK_SUBSET, deep, postgresEngine, internalCollections, CLICKHOUSE_NOTE, engines, genericRest, METHOD_COLLECTIONS, azureOpenAIHost, packs, packTwinPlan;
|
|
51952
|
+
var ENGINE_PORTS, ENGINE_TITLES, PROTOCOL_ENGINES, TIER_RANK, registry3, serviceName3, DEEP, SLACK_SUBSET, LINEAR_OPERATIONS, deep, postgresEngine, internalCollections, CLICKHOUSE_NOTE, engines, genericRest, METHOD_COLLECTIONS, azureOpenAIHost, packs, packTwinPlan;
|
|
51929
51953
|
var init_providers = __esm({
|
|
51930
51954
|
"src/flow/providers.ts"() {
|
|
51931
51955
|
"use strict";
|
|
@@ -51942,6 +51966,7 @@ var init_providers = __esm({
|
|
|
51942
51966
|
serviceName3 = (key3) => (key3.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^[^a-z]+/, "") || "service").slice(0, 40);
|
|
51943
51967
|
DEEP = new Set(Object.keys(PROVIDER_HOSTS).filter((adapter) => Object.hasOwn(ADAPTER_COLLECTIONS, adapter)));
|
|
51944
51968
|
SLACK_SUBSET = (c) => c.operation === "chat.postMessage" && c.argKeys.every((k) => k === "channel" || k === "text") || /^conversations\.(history|list)$/.test(c.operation);
|
|
51969
|
+
LINEAR_OPERATIONS = new Set(CONTRACTS.linear.operations.map((o) => o.endpoint.replace(/^\/graphql\s+(?:query|mutation)\s+/, "").replace(/\(.*/, "").trim()));
|
|
51945
51970
|
deep = { name: "hand-written twin", tier: "deep", resolve(service) {
|
|
51946
51971
|
if (!DEEP.has(service.key)) return void 0;
|
|
51947
51972
|
if (service.key === "slack" && packRecord("slack") && !service.calls.every(SLACK_SUBSET)) return void 0;
|
|
@@ -51950,6 +51975,10 @@ var init_providers = __esm({
|
|
|
51950
51975
|
const builtinMissing = operations.filter((o) => !STRIPE_OPERATIONS.includes(o)), packMissing = operations.filter((o) => !PACK_STRIPE_OPERATIONS.has(o));
|
|
51951
51976
|
if (builtinMissing.length && packMissing.length < builtinMissing.length) return void 0;
|
|
51952
51977
|
}
|
|
51978
|
+
if (service.key !== "openai" && service.key !== "anthropic" && service.key !== "slack" && service.key !== "stripe") {
|
|
51979
|
+
const pack = packRecord(service.key) ?? packRecord(service.key.replace(/-/g, ""));
|
|
51980
|
+
if (pack && !builtinCoversCalls(service.key, service.calls)) return void 0;
|
|
51981
|
+
}
|
|
51953
51982
|
return {
|
|
51954
51983
|
tier: "deep",
|
|
51955
51984
|
provider: this.name,
|
|
@@ -65935,7 +65964,7 @@ var init_one_command = __esm({
|
|
|
65935
65964
|
WORKFLOW_BUDGET_MS = Number(process.env.AGENTTWIN_WORKFLOW_BUDGET_MS ?? 9 * 6e4);
|
|
65936
65965
|
FLAT_LIST_LIMIT = 6;
|
|
65937
65966
|
PROVIDER_TITLES = { openai: "OpenAI", anthropic: "Anthropic", stripe: "Stripe", slack: "Slack", gmail: "Gmail", github: "GitHub", linear: "Linear", notion: "Notion", hubspot: "HubSpot", twilio: "Twilio", "google-oauth": "Google sign-in", "google-calendar": "Google Calendar" };
|
|
65938
|
-
TOOLCHAIN_HOST2 = /^(registry\.npmjs\.org|registry\.yarnpkg\.com|telemetry\.nextjs\.org|telemetry\.vercel\.com|api\.turbo\.build|turbo\.build|nextjs\.org|update\.electronjs\.org|checkpoint\.prisma\.io|binaries\.prisma\.sh|[\w.-]*\.sentry-cdn\.com|fonts\.googleapis\.com|fonts\.gstatic\.com)$/i;
|
|
65967
|
+
TOOLCHAIN_HOST2 = /^(registry\.npmjs\.org|registry\.yarnpkg\.com|registry\.npmmirror\.com|pypi\.org|files\.pythonhosted\.org|telemetry\.nextjs\.org|telemetry\.vercel\.com|vitals\.vercel-insights\.com|va\.vercel-scripts\.com|telemetry\.scarf\.sh|api\.turbo\.build|turbo\.build|nextjs\.org|update\.electronjs\.org|checkpoint\.prisma\.io|binaries\.prisma\.sh|[\w.-]*\.sentry-cdn\.com|fonts\.googleapis\.com|fonts\.gstatic\.com|openaipublic\.blob\.core\.windows\.net|playwright\.azureedge\.net|cdn\.playwright\.dev)$/i;
|
|
65939
65968
|
NON_HTTP_PORTS = /* @__PURE__ */ new Set([22, 25, 465, 587, 2525, 3306, 5432, 5672, 6379, 9092, 11211, 1433, 1521, 27017, 9042, 4222, 1883]);
|
|
65940
65969
|
statusMark = (status) => status === "passed" ? green("PASS") : status === "failed" ? red("FAIL") : yellow(status.toUpperCase());
|
|
65941
65970
|
diffLines = (diff) => diff.trimEnd().split("\n").map((l) => " " + (l.startsWith("+") && !l.startsWith("+++") ? green(l) : l.startsWith("-") && !l.startsWith("---") ? red(l) : dim(l)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{3652:o=>{o.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{3652:o=>{o.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},9605:(o,_,e)=>{Promise.resolve().then(e.t.bind(e,3652,23))}},o=>{o.O(0,[4123,8441,1255,7358],()=>o(o.s=9605)),_N_E=o.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},3845:()=>{},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},3845:()=>{},5572:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765)),Promise.resolve().then(n.t.bind(n,3845,23)),Promise.resolve().then(n.t.bind(n,5875,23))},5875:()=>{},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,7502,9832,5105,8441,1255,7358],()=>e(e.s=5572)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9842],{3529:(e,a,s)=>{"use strict";s.d(a,{default:()=>o});var n=s(5155),t=s(2115),r=s(6787);function o(){let[e,a]=(0,t.useState)(null),[s,o]=(0,t.useState)(!0),[i,l]=(0,t.useState)(""),[d,c]=(0,t.useState)(""),[h,u]=(0,t.useState)(!1),[p,w]=(0,t.useState)(""),[g,m]=(0,t.useState)(!1),[f,y]=(0,t.useState)("/login/");async function j(e){if(e.preventDefault(),!h){if(w(""),i!==d)return void w("The passwords do not match.");u(!0);try{let e=await fetch(r.n+"/v1/auth/password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:i}),signal:AbortSignal.timeout(2e4)}),s=await e.json();if(!e.ok)throw Error(s.error||"Could not create your password.");a(s.user),l(""),c(""),m(!0)}catch(e){w(e instanceof TypeError?"Could not connect to AgentTwin. Please try again.":e instanceof Error?e.message:"Could not create your password.")}finally{u(!1)}}}return(0,t.useEffect)(()=>{let e=new AbortController,s=["localhost","127.0.0.1"].includes(location.hostname)&&"https://api.agenttwin.si"===r.n;return s&&y("https://agenttwin.si/login/"),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:e.signal,cache:"no-store"}).then(async e=>{var s;if(!e.ok)throw Error("Sign in with Google, then open Settings → Email and password.");let n=await e.json();if(!(null==(s=n.user)?void 0:s.email))throw Error("Could not load your account. Please sign in again.");a(n.user)}).catch(a=>{e.signal.aborted||w(a instanceof TypeError?s?"This local preview cannot connect to production sign-in. Open agenttwin.si to manage your password.":"Could not connect to AgentTwin. Please try again.":a instanceof Error?a.message:"Could not load your account.")}).finally(()=>{e.signal.aborted||o(!1)}),()=>e.abort()},[]),(0,n.jsxs)("main",{className:"auth-page auth-entry vercel-auth vercel-entry",children:[(0,n.jsxs)("header",{className:"auth-header",children:[(0,n.jsx)("a",{className:"auth-brand",href:"/","aria-label":"AgentTwin home",children:(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""})}),(0,n.jsx)("a",{className:"auth-header-link",href:"/dashboard/#settings",children:"Back to settings"})]}),(0,n.jsxs)("section",{className:"auth-card auth-entry-card","aria-labelledby":"password-title",children:[(0,n.jsx)("h1",{id:"password-title",children:"Email and password"}),s&&(0,n.jsx)("p",{role:"status",children:"Loading your sign-in methods…"}),p&&(0,n.jsx)("p",{role:"alert",children:p}),g?(0,n.jsxs)("p",{role:"status",children:["Password created. You can now sign in with ",null==e?void 0:e.email," and your password, or continue with Google. Your workspace is the same."]}):(null==e?void 0:e.passwordEnabled)?(0,n.jsxs)("p",{children:["Email and password sign-in is already enabled for ",e.email,"."]}):(null==e?void 0:e.passwordSetupAllowed)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:["Create an AgentTwin password for ",e.email,". Google sign-in will keep working."]}),(0,n.jsx)("p",{children:"For security, sign in with Google within the last 10 minutes before saving."}),(0,n.jsxs)("form",{onSubmit:j,"aria-busy":h,children:[(0,n.jsx)("input",{type:"text",name:"username",autoComplete:"username",value:e.email,readOnly:!0,hidden:!0}),(0,n.jsxs)("label",{htmlFor:"new-password",children:["New password",(0,n.jsx)("input",{id:"new-password",type:"password",autoComplete:"new-password",minLength:12,maxLength:128,required:!0,value:i,onChange:e=>l(e.target.value),"aria-describedby":"password-guidance"})]}),(0,n.jsx)("small",{id:"password-guidance",children:"Use 12–128 characters. This is a new AgentTwin password, separate from your Google password."}),(0,n.jsxs)("label",{htmlFor:"confirm-password",children:["Confirm password",(0,n.jsx)("input",{id:"confirm-password",type:"password",autoComplete:"new-password",minLength:12,maxLength:128,required:!0,value:d,onChange:e=>c(e.target.value)})]}),(0,n.jsx)("button",{className:"auth-primary",type:"submit",disabled:h,children:h?"Saving…":"Create password"})]})]}):e&&(0,n.jsx)("p",{children:"Password setup is available for accounts created with Google."}),!s&&!g&&!(null==e?void 0:e.passwordEnabled)&&(0,n.jsx)("p",{children:(0,n.jsx)("a",{href:f,children:"Sign in with Google again →"})})]}),(0,n.jsx)("footer",{className:"auth-footer",children:(0,n.jsx)("a",{href:"/dashboard/#settings",children:"Back to settings"})})]})}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9842],{3529:(e,a,s)=>{"use strict";s.d(a,{default:()=>o});var n=s(5155),t=s(2115),r=s(6787);function o(){let[e,a]=(0,t.useState)(null),[s,o]=(0,t.useState)(!0),[i,l]=(0,t.useState)(""),[d,c]=(0,t.useState)(""),[h,u]=(0,t.useState)(!1),[p,w]=(0,t.useState)(""),[g,m]=(0,t.useState)(!1),[f,y]=(0,t.useState)("/login/");async function j(e){if(e.preventDefault(),!h){if(w(""),i!==d)return void w("The passwords do not match.");u(!0);try{let e=await fetch(r.n+"/v1/auth/password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:i}),signal:AbortSignal.timeout(2e4)}),s=await e.json();if(!e.ok)throw Error(s.error||"Could not create your password.");a(s.user),l(""),c(""),m(!0)}catch(e){w(e instanceof TypeError?"Could not connect to AgentTwin. Please try again.":e instanceof Error?e.message:"Could not create your password.")}finally{u(!1)}}}return(0,t.useEffect)(()=>{let e=new AbortController,s=["localhost","127.0.0.1"].includes(location.hostname)&&"https://api.agenttwin.si"===r.n;return s&&y("https://agenttwin.si/login/"),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:e.signal,cache:"no-store"}).then(async e=>{var s;if(!e.ok)throw Error("Sign in with Google, then open Settings → Email and password.");let n=await e.json();if(!(null==(s=n.user)?void 0:s.email))throw Error("Could not load your account. Please sign in again.");a(n.user)}).catch(a=>{e.signal.aborted||w(a instanceof TypeError?s?"This local preview cannot connect to production sign-in. Open agenttwin.si to manage your password.":"Could not connect to AgentTwin. Please try again.":a instanceof Error?a.message:"Could not load your account.")}).finally(()=>{e.signal.aborted||o(!1)}),()=>e.abort()},[]),(0,n.jsxs)("main",{className:"auth-page auth-entry vercel-auth vercel-entry",children:[(0,n.jsxs)("header",{className:"auth-header",children:[(0,n.jsx)("a",{className:"auth-brand",href:"/","aria-label":"AgentTwin home",children:(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""})}),(0,n.jsx)("a",{className:"auth-header-link",href:"/dashboard/#settings",children:"Back to settings"})]}),(0,n.jsxs)("section",{className:"auth-card auth-entry-card","aria-labelledby":"password-title",children:[(0,n.jsx)("h1",{id:"password-title",children:"Email and password"}),s&&(0,n.jsx)("p",{role:"status",children:"Loading your sign-in methods…"}),p&&(0,n.jsx)("p",{role:"alert",children:p}),g?(0,n.jsxs)("p",{role:"status",children:["Password created. You can now sign in with ",null==e?void 0:e.email," and your password, or continue with Google. Your workspace is the same."]}):(null==e?void 0:e.passwordEnabled)?(0,n.jsxs)("p",{children:["Email and password sign-in is already enabled for ",e.email,"."]}):(null==e?void 0:e.passwordSetupAllowed)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{children:["Create an AgentTwin password for ",e.email,". Google sign-in will keep working."]}),(0,n.jsx)("p",{children:"For security, sign in with Google within the last 10 minutes before saving."}),(0,n.jsxs)("form",{onSubmit:j,"aria-busy":h,children:[(0,n.jsx)("input",{type:"text",name:"username",autoComplete:"username",value:e.email,readOnly:!0,hidden:!0}),(0,n.jsxs)("label",{htmlFor:"new-password",children:["New password",(0,n.jsx)("input",{id:"new-password",type:"password",autoComplete:"new-password",minLength:12,maxLength:128,required:!0,value:i,onChange:e=>l(e.target.value),"aria-describedby":"password-guidance"})]}),(0,n.jsx)("small",{id:"password-guidance",children:"Use 12–128 characters. This is a new AgentTwin password, separate from your Google password."}),(0,n.jsxs)("label",{htmlFor:"confirm-password",children:["Confirm password",(0,n.jsx)("input",{id:"confirm-password",type:"password",autoComplete:"new-password",minLength:12,maxLength:128,required:!0,value:d,onChange:e=>c(e.target.value)})]}),(0,n.jsx)("button",{className:"auth-primary",type:"submit",disabled:h,children:h?"Saving…":"Create password"})]})]}):e&&(0,n.jsx)("p",{children:"Password setup is available for accounts created with Google."}),!s&&!g&&!(null==e?void 0:e.passwordEnabled)&&(0,n.jsx)("p",{children:(0,n.jsx)("a",{href:f,children:"Sign in with Google again →"})})]}),(0,n.jsx)("footer",{className:"auth-footer",children:(0,n.jsx)("a",{href:"/dashboard/#settings",children:"Back to settings"})})]})}},4226:(e,a,s)=>{Promise.resolve().then(s.bind(s,3529))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=4226)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5662:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5662)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5662:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5662)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9584],{2418:()=>{},3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9584],{2418:()=>{},3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5012:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.t.bind(n,2418,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5097,5105,8441,1255,7358],()=>e(e.s=5012)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5662:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5662)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5662:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5662)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1954],{657:()=>{},672:()=>{},744:()=>{},975:()=>{},1962:()=>{},2724:()=>{},3076:()=>{},3677:()=>{},4619:()=>{},4710:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,4619,23)),Promise.resolve().then(n.t.bind(n,657,23)),Promise.resolve().then(n.t.bind(n,5798,23)),Promise.resolve().then(n.t.bind(n,4938,23)),Promise.resolve().then(n.t.bind(n,3677,23)),Promise.resolve().then(n.t.bind(n,672,23)),Promise.resolve().then(n.t.bind(n,8664,23)),Promise.resolve().then(n.t.bind(n,975,23)),Promise.resolve().then(n.t.bind(n,2724,23)),Promise.resolve().then(n.t.bind(n,7645,23)),Promise.resolve().then(n.t.bind(n,1962,23)),Promise.resolve().then(n.t.bind(n,744,23)),Promise.resolve().then(n.t.bind(n,9214,23)),Promise.resolve().then(n.t.bind(n,9095,23)),Promise.resolve().then(n.t.bind(n,3076,23)),Promise.resolve().then(n.t.bind(n,9639,23))},4938:()=>{},5798:()=>{},7645:()=>{},8664:()=>{},9095:()=>{},9214:()=>{},9639:()=>{}},e=>{e.O(0,[1133,54,8427,2865,8441,1255,7358],()=>e(e.s=4710)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7486],{3046:(e,n,a)=>{"use strict";a.d(n,{default:()=>O});var t=a(5155),s=a(2115),o=a(4558),i=a(2931),r=a(8570),l=a(3955),c=a(3808),d=a(4416),u=a(395),h=a(9532),m=a(4626),p=a(1516),g=a(8661),w=a(9941),v=a(3998),j=a(1118),x=a(8712),b=a(7334),f=a(6199),y=a(6346),k=a(9671),N=a(1518),A=a(4550);function T(){let{isMobile:e,setOpenMobile:n}=(0,w.cL)();return(0,s.useEffect)(()=>{window.dispatchEvent(new Event("agenttwin:sidebar-open"))},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Gh,{children:(0,t.jsxs)(v.$,{id:"sidebar-discover",variant:"outline",children:[(0,t.jsx)(r.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Connect project"})]})}),(0,t.jsx)(w.Yv,{onClick:a=>{e&&a.target.closest("[data-sidebar-workflow],[data-sidebar-run],[data-sidebar-service]")&&n(!1)},children:(0,t.jsx)(w.Cn,{className:"repository-group",children:(0,t.jsx)("div",{id:"sidebar-projects","aria-label":"Your repositories"})})}),(0,t.jsx)(w.CG,{children:(0,t.jsx)(w.wZ,{children:(0,t.jsx)(w.FX,{children:(0,t.jsx)(w.Uj,{asChild:!0,tooltip:"Documentation",children:(0,t.jsxs)("a",{href:"/docs/",children:[(0,t.jsx)(l.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Documentation"})]})})})})})]})}function S(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:"skip",href:"#main",children:"Skip to content"}),(0,t.jsxs)(w.GB,{className:"app-frame dashboard-workspace dark",children:[(0,t.jsxs)("header",{className:"topbar",children:[(0,t.jsxs)("a",{className:"brand dashboard-brand","data-dashboard-home":!0,href:"#home","aria-label":"AgentTwin home",children:[(0,t.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"25",height:"25",alt:"","aria-hidden":"true"}),"AgentTwin"]}),(0,t.jsx)(w.x2,{id:"sidebar-toggle","data-shadcn-sidebar":"true","aria-label":"Toggle sidebar"}),(0,t.jsx)("nav",{className:"home-switcher workspace-navigation","aria-label":"Main navigation",children:[{view:"home",label:"Home",Icon:c.A},{view:"environment",label:"Environment",Icon:d.A},{view:"configure",label:"Workflows",Icon:u.A},{view:"history",label:"Runs",Icon:h.A},{view:"checks",label:"Checks",Icon:m.A},{view:"team",label:"Team",Icon:p.A},{view:"settings",label:"Settings",Icon:g.A}].map(e=>{let{view:n,label:a,Icon:s}=e;return(0,t.jsxs)("button",{type:"button","data-view":n,children:[(0,t.jsx)(s,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:a}),"home"===n&&(0,t.jsx)("span",{id:"home-badge",className:"pill-count",hidden:!0,children:"0"})]},n)})}),(0,t.jsxs)("div",{className:"home-top-actions",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,className:"home-search",children:"Sign in"}),(0,t.jsxs)("button",{type:"button",id:"home-search",className:"home-search","aria-label":"Search",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"m16 16 4.5 4.5"})]}),(0,t.jsx)("span",{className:"hs-label",children:"Search"}),(0,t.jsx)("kbd",{children:"⌘K"})]}),(0,t.jsxs)("div",{className:"home-bell-wrap",children:[(0,t.jsxs)("button",{type:"button",id:"home-bell",className:"home-icon-btn","aria-label":"Notifications","aria-haspopup":"true","aria-expanded":"false","aria-controls":"home-bell-menu",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M18 9a6 6 0 1 0-12 0c0 6-2 7-2 7h16s-2-1-2-7"}),(0,t.jsx)("path",{d:"M10 20a2.2 2.2 0 0 0 4 0"})]}),(0,t.jsx)("span",{className:"bell-badge",id:"bell-badge",hidden:!0,children:"0"})]}),(0,t.jsxs)("div",{id:"home-bell-menu",className:"home-menu bell-menu",hidden:!0,children:[(0,t.jsx)("p",{className:"menu-label",children:"Notifications"}),(0,t.jsx)("div",{id:"bell-items"})]})]}),(0,t.jsx)("button",{type:"button",id:"home-expand",className:"home-icon-btn","aria-label":"Toggle full screen",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6"})})})]}),(0,t.jsxs)("div",{className:"workspace-name",hidden:!0,children:[(0,t.jsx)("span",{id:"workspace-label",children:"Workspace"}),(0,t.jsx)("span",{className:"workspace-divider",children:"/"}),(0,t.jsx)("span",{id:"current-view",children:"Environment"})]}),(0,t.jsxs)("div",{className:"account-control",children:[(0,t.jsx)("button",{type:"button",id:"account-toggle",className:"workspace-avatar","aria-label":"Open account menu","aria-expanded":"false","aria-controls":"account-menu",children:"AT"}),(0,t.jsxs)("div",{id:"account-menu",className:"account-menu",hidden:!0,children:[(0,t.jsxs)("div",{className:"account-menu-head",children:[(0,t.jsx)("span",{className:"account-menu-avatar","aria-hidden":"true",children:"AT"}),(0,t.jsxs)("span",{className:"account-menu-identity",children:[(0,t.jsx)("strong",{id:"account-user-name",children:"Your name not set"}),(0,t.jsx)("small",{id:"account-workspace",children:"My workspace"})]})]}),(0,t.jsx)("p",{id:"account-menu-status",className:"account-menu-status muted",children:"Not connected"}),(0,t.jsxs)("div",{className:"account-menu-links",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,children:"Sign in"}),(0,t.jsx)("a",{href:"/signup/","data-auth-link":!0,children:"Create an account"}),(0,t.jsx)("a",{href:"/onboarding/",children:"Connect a repository"})]}),(0,t.jsxs)("div",{className:"account-menu-actions",children:[(0,t.jsx)("button",{type:"button","data-action":"settings",children:"Account & settings"}),(0,t.jsx)("button",{type:"button","data-action":"history",children:"View runs"})]}),(0,t.jsx)("div",{className:"account-menu-footer",children:(0,t.jsx)("button",{type:"button",id:"account-disconnect",disabled:!0,children:"Sign out"})})]})]})]}),(0,t.jsxs)("div",{className:"workspace-body",children:[(0,t.jsx)(w.Bx,{className:"workspace-sidebar",variant:"floating",collapsible:"offcanvas",children:(0,t.jsx)(T,{})}),(0,t.jsx)(w.sF,{className:"workspace-inset",children:(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsxs)("main",{id:"main",children:[(0,t.jsx)("p",{id:"api-message",className:"coverage",role:"status","aria-live":"polite"}),(0,t.jsx)(x.A,{}),(0,t.jsx)(b.A,{}),(0,t.jsx)(f.A,{}),(0,t.jsx)(y.A,{}),(0,t.jsx)(k.A,{}),(0,t.jsx)(N.A,{}),(0,t.jsx)(A.A,{})]}),(0,t.jsx)(j.A,{})]})})]})]})]})}var C=a(7367),E=a(1898),R=a(7844),P=a(2360),M=a(4651),_=a(444),I=a(5868),D=a(1734),W=a(5090);function O(){return(0,s.useEffect)(()=>{let e=(0,C.c)(),n=!1;return queueMicrotask(async()=>{var t,s,r,l,c,d,u,h;if(n)return;let m=location.hash.slice(1);Object.assign(window,{marked:o.xI,DOMPurify:i.A});let p="1"===new URLSearchParams(location.search).get("demo");if(p){let{DEMO_WORLDS:t,DEMO_WORLDS_BY_SLUG:o}=await a.e(9675).then(a.bind(a,9675));if(n)return;let i=new URLSearchParams(location.search).get("world"),d=i&&o[i]||t[0];if(!document.querySelector('#agenttwin-discovery[data-agenttwin-world="'.concat(d.slug,'"]'))){null==(r=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||r.remove();let e=document.createElement("script");e.type="application/json",e.id="agenttwin-discovery",e.dataset.agenttwinDemo="1",e.dataset.agenttwinWorld=d.slug,e.textContent=JSON.stringify(d.inventory),document.head.append(e)}let u={pylon:"assets/icons/co-pylon.png",intercom:"assets/icons/co-intercom.svg",ramp:"assets/icons/co-ramp.png",clay:"assets/icons/co-clay.png",cognition:"assets/icons/co-cognition.png",sentry:"assets/icons/co-sentry.svg",abridge:"assets/icons/co-abridge.png",paloalto:"assets/icons/co-paloalto.png"};window.agentTwinProjects=t.map(e=>({name:e.inventory.name,slug:e.slug,logo:u[e.slug]})),(0,E.R)(e);let h=window.agentTwinDashboard;try{for(let e of d.runs)null==h||null==(l=h.importReceipt)||l.call(h,e,{navigate:!1})}catch(e){window.__demoError=String(e)}window.__demoWorlds=t;let p=new URLSearchParams(location.search).get("run");if(p)null==h||null==(s=h.openReceipt)||s.call(h,p);else if(!m){let{failureOverview:e}=await Promise.resolve().then(a.bind(a,5156)),n=e(d.runs).weeks.flatMap(e=>e.failures).sort((e,n)=>n.usd-e.usd||Date.parse(n.run.createdAt)-Date.parse(e.run.createdAt))[0];n&&(null==h||null==(c=h.openReceipt)||c.call(h,n.run.runId))}}else(0,E.R)(e);p&&Object.defineProperty(window,"agentTwinHosted",{configurable:!0,get:()=>({connected:!0,accountId:"demo",jobs:[]}),set:()=>{}}),(0,R.M)(e),(0,P.q)(e);let g=window.__demoWorlds;if(p){let e=window.agentTwinAccount;if(e){e.selectProject=async e=>{let n=null==g?void 0:g.find(n=>n.inventory.name===e);n&&(location.href="/dashboard/?demo=1&world=".concat(n.slug,"#environment"))};let n=[];e.chat=async()=>{var e;return{available:!0,model:"demo-local",project:null==g||null==(e=g.find(e=>!0))?void 0:e.inventory.name,thread:{messages:n},transcription:{available:!0,model:"browser-speech"}}},e.sendChat=async e=>{let{content:a}=e;return{thread:{messages:n=[...n,{role:"user",content:a},{role:"assistant",content:(e=>{var n,a,t,s,o,i,r,l,c,d,u,h,m,p,g,w;let v=window.agentTwinDashboard,j=null==v||null==(n=v.getDiscovery)?void 0:n.call(v),x=null!=(s=null==v||null==(a=v.getReceipts)?void 0:a.call(v))?s:[],b=null==v||null==(t=v.getPreparation)?void 0:t.call(v),f=e.toLowerCase(),y=x.filter(e=>"failed"===e.status||"error"===e.status).slice(0,3),k=x.filter(e=>"passed"===e.status).length;return/fail|broke|wrong|attention/.test(f)&&y.length?"This world has ".concat(y.length,"+ failing runs to look at — for example ").concat(y.map(e=>'"'.concat(e.name.replaceAll("_"," "),'" (').concat(e.status,")")).join(", "),". Open the Runs page and I can walk any of them: each shows the failed checks, the recorded steps and a fix prompt for your coding agent."):/workflow|test/.test(f)?"".concat(null!=(o=null==j?void 0:j.name)?o:"This world"," discovers ").concat(null!=(i=null==j?void 0:j.workflows.length)?i:0," workflows across ").concat(null!=(r=null==j?void 0:j.tools.length)?r:0," tools. ").concat(x.length," runs are recorded (").concat(k," passed). Pick a workflow on the Workflows page to prepare a safe test — the twin workflows (replica, fault injection, replay) show where the product is heading."):/ready|setup|prepare|depend/.test(f)?"Readiness: ".concat(null!=(l=null==b?void 0:b.prepare)?l:0," workflows ready to test, ").concat(null!=(c=null==b?void 0:b.setup)?c:0," blocked on tool setup, ").concat(null!=(d=null==b?void 0:b.review)?d:0," needing review. Blocked ones need an adapter or runtime for one of their dependencies — the Environment page shows which."):/tool|service|integrat|connect/.test(f)?"".concat(null!=(u=null==j?void 0:j.tools.length)?u:0," tools are mapped for ").concat(null!=(h=null==j?void 0:j.name)?h:"this project",": ").concat(null==j?void 0:j.tools.slice(0,6).map(e=>e.title).join(", ")).concat((null!=(m=null==j?void 0:j.tools.length)?m:0)>6?", and more":"",". Coverage differs per tool — supported adapters, configuration-only, or missing adapters, all visible on the Environment page."):"Here is the picture for ".concat(null!=(p=null==j?void 0:j.name)?p:"this world",": ").concat(null!=(g=null==j?void 0:j.workflows.length)?g:0," workflows, ").concat(null!=(w=null==j?void 0:j.tools.length)?w:0," tools, ").concat(x.length," recorded runs (").concat(k," passed). Ask me about failures, a specific workflow, readiness, or the tools in this environment.")})(a)}]}}},e.transcribe=async()=>{var e;let n=window,a=null!=(e=n.SpeechRecognition)?e:n.webkitSpeechRecognition;if(!a)throw Error("Voice transcription needs Chrome or Edge. Type your message instead.");return new Promise((e,n)=>{let t=new a;t.lang=navigator.language||"en-US",t.interimResults=!0,t.continuous=!1;let s="",o=setTimeout(()=>{t.stop()},12e3);t.onresult=e=>{s=Array.from(e.results).map(e=>e[0].transcript).join(" ").trim()},t.onerror=e=>{clearTimeout(o),n(Error("not-allowed"===e.error?"Microphone access was denied. You can type your message instead.":"no-speech"===e.error?"No speech detected. Try again.":"Voice transcription failed. Try again or type instead."))},t.onend=()=>{clearTimeout(o),s?e({text:s}):n(Error("No speech detected. Try again."))},t.start()})},window.dispatchEvent(new Event("agenttwin:discovery"))}}if((0,M.f)(e),(0,_.c)(e),(0,I.sP)(e),(0,D.a3)(e),(0,W.a)(e),p){let e=null==(d=document.querySelector("#environment-project strong"))?void 0:d.textContent,n=null==(h=window.agentTwinProjects)||null==(u=h.find(n=>n.name===e))?void 0:u.logo,a=document.querySelector("#environment-project .project-icon img");n&&a&&!a.src.endsWith(n)&&(a.src=n)}["overview","home","environment","workflows","configure","runs","history","checks","team","settings"].includes(m)&&(null==(t=window.agentTwinDashboard)||t.go(m))}),()=>{var a;n=!0,e.dispose(),null==(a=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||a.remove(),document.body.classList.remove("view-home","view-settings","sidebar-collapsed","compact-density","reduce-motion")}},[]),(0,t.jsx)(S,{})}},9375:(e,n,a)=>{Promise.resolve().then(a.bind(a,3046))}},e=>{e.O(0,[3559,2743,3481,1937,8176,8441,1255,7358],()=>e(e.s=9375)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7486],{3046:(e,n,a)=>{"use strict";a.d(n,{default:()=>O});var t=a(5155),s=a(2115),o=a(4558),i=a(2931),r=a(8570),l=a(3955),c=a(3808),d=a(4416),u=a(395),h=a(9532),m=a(4626),p=a(1516),g=a(8661),w=a(9941),v=a(3998),j=a(1118),x=a(8712),b=a(7334),f=a(6199),y=a(6346),k=a(9671),N=a(1518),A=a(4550);function T(){let{isMobile:e,setOpenMobile:n}=(0,w.cL)();return(0,s.useEffect)(()=>{window.dispatchEvent(new Event("agenttwin:sidebar-open"))},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Gh,{children:(0,t.jsxs)(v.$,{id:"sidebar-discover",variant:"outline",children:[(0,t.jsx)(r.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Connect project"})]})}),(0,t.jsx)(w.Yv,{onClick:a=>{e&&a.target.closest("[data-sidebar-workflow],[data-sidebar-run],[data-sidebar-service]")&&n(!1)},children:(0,t.jsx)(w.Cn,{className:"repository-group",children:(0,t.jsx)("div",{id:"sidebar-projects","aria-label":"Your repositories"})})}),(0,t.jsx)(w.CG,{children:(0,t.jsx)(w.wZ,{children:(0,t.jsx)(w.FX,{children:(0,t.jsx)(w.Uj,{asChild:!0,tooltip:"Documentation",children:(0,t.jsxs)("a",{href:"/docs/",children:[(0,t.jsx)(l.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Documentation"})]})})})})})]})}function S(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:"skip",href:"#main",children:"Skip to content"}),(0,t.jsxs)(w.GB,{className:"app-frame dashboard-workspace dark",children:[(0,t.jsxs)("header",{className:"topbar",children:[(0,t.jsxs)("a",{className:"brand dashboard-brand","data-dashboard-home":!0,href:"#home","aria-label":"AgentTwin home",children:[(0,t.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"25",height:"25",alt:"","aria-hidden":"true"}),"AgentTwin"]}),(0,t.jsx)(w.x2,{id:"sidebar-toggle","data-shadcn-sidebar":"true","aria-label":"Toggle sidebar"}),(0,t.jsx)("nav",{className:"home-switcher workspace-navigation","aria-label":"Main navigation",children:[{view:"home",label:"Home",Icon:c.A},{view:"environment",label:"Environment",Icon:d.A},{view:"configure",label:"Workflows",Icon:u.A},{view:"history",label:"Runs",Icon:h.A},{view:"checks",label:"Checks",Icon:m.A},{view:"team",label:"Team",Icon:p.A},{view:"settings",label:"Settings",Icon:g.A}].map(e=>{let{view:n,label:a,Icon:s}=e;return(0,t.jsxs)("button",{type:"button","data-view":n,children:[(0,t.jsx)(s,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:a}),"home"===n&&(0,t.jsx)("span",{id:"home-badge",className:"pill-count",hidden:!0,children:"0"})]},n)})}),(0,t.jsxs)("div",{className:"home-top-actions",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,className:"home-search",children:"Sign in"}),(0,t.jsxs)("button",{type:"button",id:"home-search",className:"home-search","aria-label":"Search",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"m16 16 4.5 4.5"})]}),(0,t.jsx)("span",{className:"hs-label",children:"Search"}),(0,t.jsx)("kbd",{children:"⌘K"})]}),(0,t.jsxs)("div",{className:"home-bell-wrap",children:[(0,t.jsxs)("button",{type:"button",id:"home-bell",className:"home-icon-btn","aria-label":"Notifications","aria-haspopup":"true","aria-expanded":"false","aria-controls":"home-bell-menu",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M18 9a6 6 0 1 0-12 0c0 6-2 7-2 7h16s-2-1-2-7"}),(0,t.jsx)("path",{d:"M10 20a2.2 2.2 0 0 0 4 0"})]}),(0,t.jsx)("span",{className:"bell-badge",id:"bell-badge",hidden:!0,children:"0"})]}),(0,t.jsxs)("div",{id:"home-bell-menu",className:"home-menu bell-menu",hidden:!0,children:[(0,t.jsx)("p",{className:"menu-label",children:"Notifications"}),(0,t.jsx)("div",{id:"bell-items"})]})]}),(0,t.jsx)("button",{type:"button",id:"home-expand",className:"home-icon-btn","aria-label":"Toggle full screen",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6"})})})]}),(0,t.jsxs)("div",{className:"workspace-name",hidden:!0,children:[(0,t.jsx)("span",{id:"workspace-label",children:"Workspace"}),(0,t.jsx)("span",{className:"workspace-divider",children:"/"}),(0,t.jsx)("span",{id:"current-view",children:"Environment"})]}),(0,t.jsxs)("div",{className:"account-control",children:[(0,t.jsx)("button",{type:"button",id:"account-toggle",className:"workspace-avatar","aria-label":"Open account menu","aria-expanded":"false","aria-controls":"account-menu",children:"AT"}),(0,t.jsxs)("div",{id:"account-menu",className:"account-menu",hidden:!0,children:[(0,t.jsxs)("div",{className:"account-menu-head",children:[(0,t.jsx)("span",{className:"account-menu-avatar","aria-hidden":"true",children:"AT"}),(0,t.jsxs)("span",{className:"account-menu-identity",children:[(0,t.jsx)("strong",{id:"account-user-name",children:"Your name not set"}),(0,t.jsx)("small",{id:"account-workspace",children:"My workspace"})]})]}),(0,t.jsx)("p",{id:"account-menu-status",className:"account-menu-status muted",children:"Not connected"}),(0,t.jsxs)("div",{className:"account-menu-links",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,children:"Sign in"}),(0,t.jsx)("a",{href:"/signup/","data-auth-link":!0,children:"Create an account"}),(0,t.jsx)("a",{href:"/onboarding/",children:"Connect a repository"})]}),(0,t.jsxs)("div",{className:"account-menu-actions",children:[(0,t.jsx)("button",{type:"button","data-action":"settings",children:"Account & settings"}),(0,t.jsx)("button",{type:"button","data-action":"history",children:"View runs"})]}),(0,t.jsx)("div",{className:"account-menu-footer",children:(0,t.jsx)("button",{type:"button",id:"account-disconnect",disabled:!0,children:"Sign out"})})]})]})]}),(0,t.jsxs)("div",{className:"workspace-body",children:[(0,t.jsx)(w.Bx,{className:"workspace-sidebar",variant:"floating",collapsible:"offcanvas",children:(0,t.jsx)(T,{})}),(0,t.jsx)(w.sF,{className:"workspace-inset",children:(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsxs)("main",{id:"main",children:[(0,t.jsx)("p",{id:"api-message",className:"coverage",role:"status","aria-live":"polite"}),(0,t.jsx)(x.A,{}),(0,t.jsx)(b.A,{}),(0,t.jsx)(f.A,{}),(0,t.jsx)(y.A,{}),(0,t.jsx)(k.A,{}),(0,t.jsx)(N.A,{}),(0,t.jsx)(A.A,{})]}),(0,t.jsx)(j.A,{})]})})]})]})]})}var C=a(7367),E=a(1898),R=a(7844),P=a(2360),M=a(4651),_=a(444),I=a(5868),D=a(1734),W=a(5090);function O(){return(0,s.useEffect)(()=>{let e=(0,C.c)(),n=!1;return queueMicrotask(async()=>{var t,s,r,l,c,d,u,h;if(n)return;let m=location.hash.slice(1);Object.assign(window,{marked:o.xI,DOMPurify:i.A});let p="1"===new URLSearchParams(location.search).get("demo");if(p){let{DEMO_WORLDS:t,DEMO_WORLDS_BY_SLUG:o}=await a.e(9675).then(a.bind(a,9675));if(n)return;let i=new URLSearchParams(location.search).get("world"),d=i&&o[i]||t[0];if(!document.querySelector('#agenttwin-discovery[data-agenttwin-world="'.concat(d.slug,'"]'))){null==(r=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||r.remove();let e=document.createElement("script");e.type="application/json",e.id="agenttwin-discovery",e.dataset.agenttwinDemo="1",e.dataset.agenttwinWorld=d.slug,e.textContent=JSON.stringify(d.inventory),document.head.append(e)}let u={pylon:"assets/icons/co-pylon.png",intercom:"assets/icons/co-intercom.svg",ramp:"assets/icons/co-ramp.png",clay:"assets/icons/co-clay.png",cognition:"assets/icons/co-cognition.png",sentry:"assets/icons/co-sentry.svg",abridge:"assets/icons/co-abridge.png",paloalto:"assets/icons/co-paloalto.png"};window.agentTwinProjects=t.map(e=>({name:e.inventory.name,slug:e.slug,logo:u[e.slug]})),(0,E.R)(e);let h=window.agentTwinDashboard;try{for(let e of d.runs)null==h||null==(l=h.importReceipt)||l.call(h,e,{navigate:!1})}catch(e){window.__demoError=String(e)}window.__demoWorlds=t;let p=new URLSearchParams(location.search).get("run");if(p)null==h||null==(s=h.openReceipt)||s.call(h,p);else if(!m){let{failureOverview:e}=await Promise.resolve().then(a.bind(a,5156)),n=e(d.runs).weeks.flatMap(e=>e.failures).sort((e,n)=>n.usd-e.usd||Date.parse(n.run.createdAt)-Date.parse(e.run.createdAt))[0];n&&(null==h||null==(c=h.openReceipt)||c.call(h,n.run.runId))}}else(0,E.R)(e);p&&Object.defineProperty(window,"agentTwinHosted",{configurable:!0,get:()=>({connected:!0,accountId:"demo",jobs:[]}),set:()=>{}}),(0,R.M)(e),(0,P.q)(e);let g=window.__demoWorlds;if(p){let e=window.agentTwinAccount;if(e){e.selectProject=async e=>{let n=null==g?void 0:g.find(n=>n.inventory.name===e);n&&(location.href="/dashboard/?demo=1&world=".concat(n.slug,"#environment"))};let n=[];e.chat=async()=>{var e;return{available:!0,model:"demo-local",project:null==g||null==(e=g.find(e=>!0))?void 0:e.inventory.name,thread:{messages:n},transcription:{available:!0,model:"browser-speech"}}},e.sendChat=async e=>{let{content:a}=e;return{thread:{messages:n=[...n,{role:"user",content:a},{role:"assistant",content:(e=>{var n,a,t,s,o,i,r,l,c,d,u,h,m,p,g,w;let v=window.agentTwinDashboard,j=null==v||null==(n=v.getDiscovery)?void 0:n.call(v),x=null!=(s=null==v||null==(a=v.getReceipts)?void 0:a.call(v))?s:[],b=null==v||null==(t=v.getPreparation)?void 0:t.call(v),f=e.toLowerCase(),y=x.filter(e=>"failed"===e.status||"error"===e.status).slice(0,3),k=x.filter(e=>"passed"===e.status).length;return/fail|broke|wrong|attention/.test(f)&&y.length?"This world has ".concat(y.length,"+ failing runs to look at — for example ").concat(y.map(e=>'"'.concat(e.name.replaceAll("_"," "),'" (').concat(e.status,")")).join(", "),". Open the Runs page and I can walk any of them: each shows the failed checks, the recorded steps and a fix prompt for your coding agent."):/workflow|test/.test(f)?"".concat(null!=(o=null==j?void 0:j.name)?o:"This world"," discovers ").concat(null!=(i=null==j?void 0:j.workflows.length)?i:0," workflows across ").concat(null!=(r=null==j?void 0:j.tools.length)?r:0," tools. ").concat(x.length," runs are recorded (").concat(k," passed). Pick a workflow on the Workflows page to prepare a safe test — the twin workflows (replica, fault injection, replay) show where the product is heading."):/ready|setup|prepare|depend/.test(f)?"Readiness: ".concat(null!=(l=null==b?void 0:b.prepare)?l:0," workflows ready to test, ").concat(null!=(c=null==b?void 0:b.setup)?c:0," blocked on tool setup, ").concat(null!=(d=null==b?void 0:b.review)?d:0," needing review. Blocked ones need an adapter or runtime for one of their dependencies — the Environment page shows which."):/tool|service|integrat|connect/.test(f)?"".concat(null!=(u=null==j?void 0:j.tools.length)?u:0," tools are mapped for ").concat(null!=(h=null==j?void 0:j.name)?h:"this project",": ").concat(null==j?void 0:j.tools.slice(0,6).map(e=>e.title).join(", ")).concat((null!=(m=null==j?void 0:j.tools.length)?m:0)>6?", and more":"",". Coverage differs per tool — supported adapters, configuration-only, or missing adapters, all visible on the Environment page."):"Here is the picture for ".concat(null!=(p=null==j?void 0:j.name)?p:"this world",": ").concat(null!=(g=null==j?void 0:j.workflows.length)?g:0," workflows, ").concat(null!=(w=null==j?void 0:j.tools.length)?w:0," tools, ").concat(x.length," recorded runs (").concat(k," passed). Ask me about failures, a specific workflow, readiness, or the tools in this environment.")})(a)}]}}},e.transcribe=async()=>{var e;let n=window,a=null!=(e=n.SpeechRecognition)?e:n.webkitSpeechRecognition;if(!a)throw Error("Voice transcription needs Chrome or Edge. Type your message instead.");return new Promise((e,n)=>{let t=new a;t.lang=navigator.language||"en-US",t.interimResults=!0,t.continuous=!1;let s="",o=setTimeout(()=>{t.stop()},12e3);t.onresult=e=>{s=Array.from(e.results).map(e=>e[0].transcript).join(" ").trim()},t.onerror=e=>{clearTimeout(o),n(Error("not-allowed"===e.error?"Microphone access was denied. You can type your message instead.":"no-speech"===e.error?"No speech detected. Try again.":"Voice transcription failed. Try again or type instead."))},t.onend=()=>{clearTimeout(o),s?e({text:s}):n(Error("No speech detected. Try again."))},t.start()})},window.dispatchEvent(new Event("agenttwin:discovery"))}}if((0,M.f)(e),(0,_.c)(e),(0,I.sP)(e),(0,D.a3)(e),(0,W.a)(e),p){let e=null==(d=document.querySelector("#environment-project strong"))?void 0:d.textContent,n=null==(h=window.agentTwinProjects)||null==(u=h.find(n=>n.name===e))?void 0:u.logo,a=document.querySelector("#environment-project .project-icon img");n&&a&&!a.src.endsWith(n)&&(a.src=n)}["overview","home","environment","workflows","configure","runs","history","checks","team","settings"].includes(m)&&(null==(t=window.agentTwinDashboard)||t.go(m))}),()=>{var a;n=!0,e.dispose(),null==(a=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||a.remove(),document.body.classList.remove("view-home","view-settings","sidebar-collapsed","compact-density","reduce-motion")}},[]),(0,t.jsx)(S,{})}},8294:(e,n,a)=>{Promise.resolve().then(a.bind(a,3046))}},e=>{e.O(0,[3559,2743,3481,1937,8176,8441,1255,7358],()=>e(e.s=8294)),_N_E=e.O()}]);
|