{"_id":"@cool-ai/beach-a2ui-renderer-text","name":"@cool-ai/beach-a2ui-renderer-text","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@cool-ai/beach-a2ui-renderer-text","version":"0.1.0","description":"Beach renderer — joins a reply's text parts into plain text. The lightweight output type for WhatsApp, SMS, and archives.","license":"Apache-2.0","repository":{"type":"git","url":"git+https://gitlab.com/johncandrew/beach.git","directory":"packages/beach-a2ui-renderer-text"},"homepage":"https://cool-ai.org","bugs":{"url":"https://gitlab.com/johncandrew/beach/-/issues"},"type":"module","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^5.5.0","vitest":"^2.0.0"},"scripts":{"build":"tsc --project tsconfig.json","dev":"tsc --project tsconfig.json --watch","test":"vitest run","coverage":"vitest run --coverage","test:watch":"vitest","typecheck":"tsc --noEmit"},"_id":"@cool-ai/beach-a2ui-renderer-text@0.1.0","_integrity":"sha512-gvC7Zwv8YAHmYNg3y9qWxaQpNkY/H/c2JJl7eGZOkV6GQfp2ukLgvpqrNvFaVLO8QNPGVBvJFbmWjYakjAk7Rg==","_resolved":"/tmp/11d457336052df3c29d286e98d50f484/cool-ai-beach-a2ui-renderer-text-0.1.0.tgz","_from":"file:cool-ai-beach-a2ui-renderer-text-0.1.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-gvC7Zwv8YAHmYNg3y9qWxaQpNkY/H/c2JJl7eGZOkV6GQfp2ukLgvpqrNvFaVLO8QNPGVBvJFbmWjYakjAk7Rg==","shasum":"0b3a9db30edbcf448af7212137e1d680a97deaec","tarball":"https://registry.npmjs.org/@cool-ai/beach-a2ui-renderer-text/-/beach-a2ui-renderer-text-0.1.0.tgz","fileCount":23,"unpackedSize":313762,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHHHg0OGy3M93lV2+ohKA7DU2MGwPnhY0fJxs/PYbY2MAiEAsbmtiTxmmPI/b09vPdBk2IpMLuTbI8+l9vbMKlviao4="}]},"_npmUser":{"name":"johncandrew","email":"johncandrew@yahoo.co.uk"},"directories":{},"maintainers":[{"name":"johncandrew","email":"johncandrew@yahoo.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/beach-a2ui-renderer-text_0.1.0_1780677376256_0.2315811839949331"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-05T16:36:16.045Z","0.1.0":"2026-06-05T16:36:16.415Z","modified":"2026-06-05T16:36:16.603Z"},"maintainers":[{"name":"johncandrew","email":"johncandrew@yahoo.co.uk"}],"description":"Beach renderer — joins a reply's text parts into plain text. The lightweight output type for WhatsApp, SMS, and archives.","homepage":"https://cool-ai.org","repository":{"type":"git","url":"git+https://gitlab.com/johncandrew/beach.git","directory":"packages/beach-a2ui-renderer-text"},"bugs":{"url":"https://gitlab.com/johncandrew/beach/-/issues"},"license":"Apache-2.0","readme":"# @cool-ai/beach-a2ui-renderer-text\n\nThe lightweight renderer: it joins a reply's text parts into a single plain-text string. This is the output type for channels that show plain text — WhatsApp, SMS, an archive. It walks no A2UI surface and emits no HTML; for those, reach for `@cool-ai/beach-a2ui-renderer-static` or `@cool-ai/beach-a2ui-renderer-lit`.\n\n## Use\n\n```ts\nimport { renderText } from '@cool-ai/beach-a2ui-renderer-text';\n\nrenderText([{ text: 'Your flight is confirmed.' }, { text: 'Booking ref: ABC123' }]);\n// → \"Your flight is confirmed.\\n\\nBooking ref: ABC123\"\n```\n\nIt accepts a single part, an array of parts, or a `{ parts: [...] }` envelope. Each part's `text` is taken; empty and non-string parts are skipped. Pass `{ separator }` to change the join (the default is a blank line).\n\nA channel adaptor is wired with a renderer by the consumer; for a text channel, that renderer is this one.\n","readmeFilename":"README.md","_rev":"1-5cbbc02d679bee91e377d7b0a2f0a9ea"}