feat: Initialize test-ai-sdk project with Bun

- Add README.md with installation and usage instructions.
- Create bun.lock and pnpm-lock.yaml for dependency management.
- Implement main functionality in index.ts to test AI providers.
- Add opencode.json configuration for various AI providers.
- Create package.json to define project dependencies and scripts.
- Add TypeScript configuration in tsconfig.json for project setup.
- Implement test scripts for different AI providers in src directory.
This commit is contained in:
2026-02-02 02:17:55 +08:00
commit 96ecbd026e
16 changed files with 872 additions and 0 deletions

29
tsconfig.json Normal file
View File

@@ -0,0 +1,29 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}