type: summary

text: Synthetic Show HN sample session for twokens. No secrets, no private paths.


You are SampleKitBot. Build a deterministic dependency-free demo.


Create a tiny dependency-free landing component that explains twokens sample kits and include a deterministic smoke test.


call_id: call-write-sample

cmd:
mkdir -p src test && cat > src/sample.ts <<'EOF'
export function sampleHeadline(): string {
  return "Try a twokens kit without an email";
}

export function sampleChecklist(): string[] {
  return ["sample session.jsonl", "prebuilt offline viewer", "kit verify passes"];
}
EOF
cat > test/sample.test.ts <<'EOF'
import { sampleChecklist, sampleHeadline } from "../src/sample";

if (sampleHeadline() !== "Try a twokens kit without an email") {
  throw new Error("unexpected headline");
}

if (!sampleChecklist().includes("kit verify passes")) {
  throw new Error("missing verification item");
}
EOF


output: wrote src/sample.ts and test/sample.test.ts


message: Decision: keep the sample dependency-free so Show HN readers can inspect the kit without installing a framework.

phase: final


call_id: call-test-sample

cmd: bun test test/sample.test.ts


output: 1 pass\n0 fail