diff --git a/workers/playground/src/index.js b/workers/playground/src/index.js index 7e5aa5f8..7bdad533 100644 --- a/workers/playground/src/index.js +++ b/workers/playground/src/index.js @@ -1,3 +1,4 @@ +import RETRY_DEMO_PAGE from "./retry-demo-page.js"; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); @@ -1938,16 +1939,15 @@ footer{

- BREAK THE NETWORK. + ACTIVATE A HOSTED
- NOT THE - TRANSACTION. + SANDBOX.

- Run the failure mode that makes consequential AI-agent actions - dangerous. Let the provider execute, lose the response, retry the - same operation \u2014 then inspect what actually happened. + Optional hosted activation uses Stripe test checkout. This is separate + from learning the retry decisions. + Run the ungated simulation first. Do not enter real card data.

@@ -6407,7 +6407,11 @@ var index_default = { "npm_clicked", "mcp_npm_clicked", "github_clicked", - "agent_guide_clicked" + "agent_guide_clicked", + "homepage_view", "hero_demo_click", "demo_started", "demo_completed", + "unknown_state_viewed", "protect_first_action_click", "mode_selected", + "quickstart_started", "install_copied", "first_action_step_reached", + "github_click", "docs_click", "hosted_sandbox_click" ]); const allowedSources = /* @__PURE__ */ new Set([ "website", @@ -7255,9 +7259,12 @@ var index_default = { SUCCESS_PAGE ); } - if (request.method === "GET" && url.pathname === "/") { + if (request.method === "GET" && url.pathname === "/hosted") { return html(PAGE); } + if (request.method === "GET" && url.pathname === "/") { + return html(RETRY_DEMO_PAGE); + } return json3( { error: "not_found" diff --git a/workers/playground/src/retry-demo-page.js b/workers/playground/src/retry-demo-page.js new file mode 100644 index 00000000..9f57a8bc --- /dev/null +++ b/workers/playground/src/retry-demo-page.js @@ -0,0 +1,2 @@ +// Generated by scripts/generate-site-surface.mjs; do not hand-edit. +export default "\n\n\t\n\t\t\n\t\t\n\t\t\n\t\tOnce retry demo — interactive simulation\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\tSkip to content\n\t\t
\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t

Ungated demonstration

\n\t\t\t

See what a retry should decide.

\n\t\t\t

Interactive simulation of Once’s documented state decisions. No account or checkout required.

\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\tINTERACTIVE SIMULATION\n\t\t\t\t\t\t

Ready

\n\t\t\t\t\t
\n\t\t\t\t\t

No account. No checkout. No external writes.

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t

Without protection · blind retry

\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
  1. The action commits; acknowledgement is lost.
  2. \n\t\t\t\t\t\t\t
  3. A blind retry can create a second ticket.
  4. \n\t\t\t\t\t\t
\n\t\t\t\t\t\t—Simulated effects for this intent\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t

With Once · protected boundary

\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
  1. Known success can be replayed.
  2. \n\t\t\t\t\t\t\t
  3. Unknown outcome blocks another dispatch.
  4. \n\t\t\t\t\t\t
\n\t\t\t\t\t\t—Simulated effects for this intent\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\tNOT STARTED\n\t\t\t\t\t

Use the controls to explore confirmed replay, changed-input conflict and uncertain outcomes.

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t

\n\t\t\t\t\t\tInteractive controls need JavaScript. The explanation above remains available.\n\t\t\t\t\t\tRun the actual SDK locally.\n\t\t\t\t\t

\n\t\t\t\t\n\t\t\t\t

\n\t\t\t\t\tThis browser simulation illustrates Once’s documented behavior. It does not run the SDK, persist execution state or prove\n\t\t\t\t\texternal-provider durability. Inspect reproducible evidence or\n\t\t\t\t\tverify the installed SDK.\n\t\t\t\t

\n\t\t\t
\n\t\t\t
\n\t\t\t\tProtect your first action\n\t\t\t
\n\t\t
\n\t\t\n\t\t

\n\t\n\n";