{"_id":"@capxul/tui-test-kit","_rev":"2-4e31f79a25473b8557b8cac9cbb8f8c4","name":"@capxul/tui-test-kit","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@capxul/tui-test-kit","version":"0.2.0","keywords":["asciinema","pty","terminal","testing","tui"],"license":"MIT","_id":"@capxul/tui-test-kit@0.2.0","maintainers":[{"name":"aaronabuusama","email":"aaron@capxul.com"}],"dist":{"shasum":"ebced05412b6c626331138e5d72a33427d399deb","tarball":"https://registry.npmjs.org/@capxul/tui-test-kit/-/tui-test-kit-0.2.0.tgz","fileCount":6,"integrity":"sha512-q2sfrX+RhXg8seY6mdIRr2bqc5aWhHSBz/tmAAU0wRpoirs6SMBdj3+DnjPfnv1JtS5RBmXc153Gy/jgkFrJKQ==","signatures":[{"sig":"MEYCIQD7Ge5fFEzjBsXtYIx1z5sLnbBf+BsP6zH1JsolWqW0pQIhAN4pQyPh2i/Nr/5e0bW8g7rUdxt5ZDjygmd8fy2xs+Rn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21764},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"08f6c405b454611df0f8d66a8e910b304bcdbfd8","scripts":{"test":"vitest run","build":"tsup src/index.ts --format esm --dts --clean","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaronabuusama","email":"aaron@capxul.com"},"_npmVersion":"11.12.1","description":"Drive terminal apps, record sessions, produce evidence packs.","directories":{},"_nodeVersion":"24.15.0","dependencies":{"node-pty":"^1.1.0","@xterm/headless":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.6","typescript":"^6","@types/node":"^25.7.0","@tui-proof-kit/config":"workspace:*"},"peerDependencies":{"typescript":"^5 || ^6"},"_npmOperationalInternal":{"tmp":"tmp/tui-test-kit_0.2.0_1778576097002_0.7735535048864648","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-05-12T08:54:56.863Z","modified":"2026-08-10T17:58:17.933Z","0.2.0":"2026-05-12T08:54:57.139Z"},"license":"MIT","keywords":["asciinema","pty","terminal","testing","tui"],"description":"Drive terminal apps, record sessions, produce evidence packs.","maintainers":[{"email":"aaron@capxul.com","name":"aaronabuusama"},{"email":"salaam@abuusama.dev","name":"pythonpete32"}],"readme":"# @capxul/tui-test-kit\n\nDrive terminal apps, record sessions, produce evidence packs.\n\n```bash\nnpm install @capxul/tui-test-kit\n```\n\n**Requirements:** Node.js >= 22. `node-pty` is a native C++ addon — you need a C++ compiler and `node-gyp` available (Xcode CLI tools on macOS, `build-essential` on Linux, Visual Studio Build Tools on Windows).\n\n## Quick start\n\n```ts\nimport { defineProof } from \"@capxul/tui-test-kit\";\n\nconst proof = defineProof({\n  id: \"hello\",\n  title: \"My first proof\",\n  cwd: process.cwd(),\n  handoffRoot: \"./evidence/hello\",\n  width: 80,\n  height: 24,\n});\n\nawait proof.run({\n  launch: { command: \"node\", args: [\"my-cli.ts\"] },\n  steps: [\n    {\n      id: \"greet\",\n      actions: [{ expectText: \"Ready\", timeoutMs: 5_000 }, { type: \"hello\" }, { press: \"Enter\" }],\n    },\n  ],\n  verify: (ctx) => {\n    ctx.finding({ status: \"pass\", title: \"It works\", body: \"TUI responded correctly.\" });\n  },\n});\n```\n\nFull docs: [proofkit-docs.pages.dev](https://proofkit-docs.pages.dev)\n","readmeFilename":"README.md"}