Skip to content

Conversation

@barak007
Copy link
Collaborator

@barak007 barak007 commented Sep 28, 2025

  • Implemented a text tokenizer in text-tokenizer.ts that identifies URLs, secrets, and plain text within a given string.
  • Added a new module tlds.ts containing a comprehensive list of top-level domains (TLDs) for URL validation.
  • Created a TypeScript configuration file tsconfig.json for the text tokens package.
  • Updated the base TypeScript configuration to include Node types alongside Mocha for improved type support.

Warning this was vibe coded.

I think we should take different approach by utilising markdown parser it will parse and urls but only in text nodes.

- Implemented a text tokenizer in `text-tokenizer.ts` that identifies URLs, secrets, and plain text within a given string.
- Added a new module `tlds.ts` containing a comprehensive list of top-level domains (TLDs) for URL validation.
- Created a TypeScript configuration file `tsconfig.json` for the text tokens package.
- Updated the base TypeScript configuration to include Node types alongside Mocha for improved type support.
…uding detailed features and correct export path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants