-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from FormulaMonks/wip/monorepo-turbo
feat: Split into multiple libraries.
- Loading branch information
Showing
31 changed files
with
2,193 additions
and
2,372 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/node_modules | ||
/dist | ||
/.env | ||
node_modules | ||
dist | ||
.env | ||
.turbo |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
{ | ||
"name": "@formula-monks/kurt", | ||
"description": "A wrapper for AI SDKs, for building LLM-agnostic structured AI applications", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": ["dist"], | ||
"scripts": { | ||
"test": "jest", | ||
"build": "tsc", | ||
"prepack": "pnpm run build", | ||
"prepare": "husky" | ||
}, | ||
"dependencies": { | ||
"@google-cloud/vertexai": "1.1.0", | ||
"openai": "^4.40.0", | ||
"zod": "^3.23.5", | ||
"zod-to-json-schema": "^3.23.0" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.7.3", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@jest/globals": "^29.7.0", | ||
"czg": "^1.9.1", | ||
"husky": "^9.0.11", | ||
"jest": "^29.7.0", | ||
"lint-staged": "^15.2.2", | ||
"ts-jest": "^29.1.2", | ||
"type-fest": "^4.18.1", | ||
"typescript": "^5.4.5" | ||
"turbo": "^1.13.3" | ||
}, | ||
"scripts": { | ||
"prepare": "husky", | ||
"build": "pnpm turbo build", | ||
"test": "pnpm turbo test", | ||
"check": "pnpm turbo check", | ||
"lint": "pnpm turbo lint", | ||
"format": "pnpm turbo format" | ||
} | ||
} |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "@formula-monks/kurt-open-ai", | ||
"description": "OpenAI plugin for Kurt - A wrapper for AI SDKs, for building LLM-agnostic structured AI applications", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": ["dist"], | ||
"scripts": { | ||
"test": "jest", | ||
"build": "tsc --build", | ||
"prepack": "pnpm run build", | ||
"format": "pnpm biome format --write .", | ||
"lint": "pnpm biome lint --apply .", | ||
"check": "pnpm biome check ." | ||
}, | ||
"dependencies": { | ||
"@formula-monks/kurt": "workspace:^", | ||
"openai": "^4.40.0", | ||
"zod": "^3.23.5", | ||
"zod-to-json-schema": "^3.23.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@types/node": "^18.19.32", | ||
"jest": "^29.7.0", | ||
"ts-jest": "^29.1.2", | ||
"type-fest": "^4.18.1", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
This file contains 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
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { KurtOpenAI } from "./KurtOpenAI" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"downlevelIteration": true, | ||
"lib": ["esnext"], | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"target": "ES2015", | ||
"esModuleInterop": true | ||
}, | ||
"include": ["src/*.ts"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "@formula-monks/kurt-vertex-ai", | ||
"description": "VertexAI plugin for Kurt - A wrapper for AI SDKs, for building LLM-agnostic structured AI applications", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": ["dist"], | ||
"scripts": { | ||
"test": "jest", | ||
"build": "tsc", | ||
"prepack": "pnpm run build", | ||
"format": "pnpm biome format --write .", | ||
"lint": "pnpm biome lint --apply .", | ||
"check": "pnpm biome check ." | ||
}, | ||
"dependencies": { | ||
"@formula-monks/kurt": "workspace:^", | ||
"@google-cloud/vertexai": "1.1.0", | ||
"zod": "^3.23.5", | ||
"zod-to-json-schema": "^3.23.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@types/node": "^18.19.32", | ||
"jest": "^29.7.0", | ||
"ts-jest": "^29.1.2", | ||
"type-fest": "^4.18.1", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
This file contains 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
7 changes: 3 additions & 4 deletions
7
src/KurtVertexAI.ts → packages/kurt-vertex-ai/src/KurtVertexAI.ts
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { KurtVertexAI } from "./KurtVertexAI" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@formula-monks/kurt", | ||
"description": "A wrapper for AI SDKs, for building LLM-agnostic structured AI applications", | ||
"license": "MIT", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": ["dist"], | ||
"scripts": { | ||
"test": "jest", | ||
"build": "tsc --build", | ||
"prepack": "pnpm run build", | ||
"format": "pnpm biome format --write .", | ||
"lint": "pnpm biome lint --apply .", | ||
"check": "pnpm biome check ." | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.7.0", | ||
"@types/node": "^18.19.32", | ||
"czg": "^1.9.1", | ||
"jest": "^29.7.0", | ||
"ts-jest": "^29.1.2", | ||
"type-fest": "^4.18.1", | ||
"typescript": "^5.4.5", | ||
"zod": "^3.23.5" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "./Kurt" | ||
export * from "./KurtStream" | ||
export * from "./KurtSchema" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"declaration": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"downlevelIteration": true, | ||
"lib": ["esnext"], | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"target": "ES2015", | ||
"esModuleInterop": true | ||
}, | ||
"include": ["src/*.ts"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
Oops, something went wrong.