rewrite#3
Merged
Merged
Conversation
- Replace JS with TypeScript (strict, verbatimModuleSyntax, isolatedDeclarations, erasableSyntaxOnly) - Build with tsdown (ESM + CJS dual output) - Replace axios with ky - Rename allModels() -> models(); remove curated data/ list - Remove all parameter from searchModels(); always searches live API - Add vitest test suite (28 tests across 5 files) - Add ESLint flat config + Prettier - Add GitHub Actions: ci.yml and publish.yml (manual, creates release tag) - Remove canary/ (dead code duplicate) - Fix conflicting types/closewords.d.ts that shadowed package's own types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add StreamChunk type to src/types.ts - Add stream() async generator and ask() shortcut to src/generate.ts - Add setSystem(), clearMessages(), useConversation(), ask(), stream() to AI class; constructor accepts system option - Conversation history is keyed by arbitrary string ID; calls without an active ID are stateless - Update src/index.ts exports - Add varsIgnorePattern to eslint no-unused-vars rule - Add examples/stream.js Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- closewords v3.1.1 ships proper ESM/CJS dual exports; remove workaround type cast in search.ts and stale createRequire comment - Mock closewords in search.test.ts via vi.mock (now possible with ESM exports); fixes internal levenshtein.get error in v3.1.1 - Update repository, bugs, and homepage URLs from oto-lab to otnc Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Restructure both READMEs: clean method tables with Returns column, separate static context and conversation sections, add CompletionResponse to Types, annotate stream() return type as AsyncGenerator<string> - Add README-ja.md (Japanese translation, fully aligned with English) - Keep "unlimited-ai is back!" and v6.x caution (v7 not yet published) - Note conversation history as a new feature in the changelog Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #2