Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1>One action. Retry it. Verify one effect.</h1>
directory and durable SQLite file for every run. No network provider, payment or hosted subscription is used.
</div>
<h2>1. Check Node and install</h2>
<p>Use a fresh disposable directory. These commands work in a terminal or PowerShell.</p>
<p>Use a fresh disposable directory. These commands work in a terminal or PowerShell. Run steps 1–6 in order, from the same directory.</p>
<div class="codebox">
<button type="button" data-copy-target="install" data-copy-label="Copy setup commands" data-copy-event="install_copied">
Copy setup commands
Expand All @@ -67,7 +67,8 @@ <h2>1. Check Node and install</h2>
<h2>2. Save the complete example</h2>
<p>
<a href="first-action.mjs" download>Download first-action.mjs</a> into that directory, or copy the full code below into a file named
<code>first-action.mjs</code>.
<code>first-action.mjs</code>. Save it beside <code>package.json</code>. On Windows, check that your editor has not added
<code>.txt</code> to the filename.
</p>
<details>
<summary>Complete copyable example</summary>
Expand Down Expand Up @@ -219,6 +220,11 @@ <h2>6. Confirm provider truth</h2>
provider, not arbitrary APIs. Without confirmation, the action stays UNKNOWN. Local mode does not automatically redispatch an
ambiguous write on ABSENT.
</p>
<p>
You can repeat steps 3 and 4 with the same state to verify replay. Step 5 shows UNKNOWN before step 6 reconciles that action;
after reconciliation, its result is confirmed, so step 5 no longer produces the expected UNKNOWN output. To repeat the whole
experiment, start in another fresh disposable directory and keep the original state and journals together.
</p>
<h2 id="real-action">7. Protect a real action</h2>
<ol class="steps">
<li>
Expand Down
8 changes: 7 additions & 1 deletion scripts/check-site-surface.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ assert.match(homepage, /Run the retry demo/, "homepage must lead to the ungated
assert.doesNotMatch(homepage, /once-network|Open live proof|Test Once at your scale/, "obsolete proof/funnel claims must stay removed");
const schema = JSON.parse(homepage.match(/<script type="application\/ld\+json">([\s\S]*?)<\/script>/)[1]);
assert.equal(schema.softwareVersion, published.ts, "static structured metadata must match published SDK");
assert.match(read("docs/quickstart/index.html"), /@once-agent\/sdk@/);
for (const file of ["docs/index.html", "docs/quickstart/index.html"]) {
const pins = [...read(file).matchAll(/npm install @once-agent\/sdk@(\d+\.\d+\.\d+)/g)];
assert.ok(pins.length, `${file}: first-action install must pin a published SDK version`);
for (const [, version] of pins) {
assert.equal(version, published.ts, `${file}: first-action install must match the published SDK version`);
}
}
assert.ok(read("workers/playground/src/index.js").includes("return html(RETRY_DEMO_PAGE)"), "playground root must remain ungated");
assert.match(read("docs/quickstart/index.html"), /Local mode does not automatically redispatch/, "local ambiguity boundary must be explicit");
assert.ok(read("docs/demo/index.html").includes("does not run the SDK"));
Expand Down
Loading