🚧 Use TS project references

This commit is contained in:
Baptiste Arnaud
2024-08-28 18:09:35 +02:00
parent 0c7d2afd51
commit fdd6cc6fee
627 changed files with 3043 additions and 1696 deletions

View File

@@ -2,17 +2,14 @@
"name": "@typebot.io/anthropic-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"author": "Enchatted P.C.",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"@ai-sdk/anthropic": "0.0.30",

View File

@@ -1,11 +1,23 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../ai"
},
{
"path": "../../../lib"
},
{
"path": "../../core"
},
{
"path": "../openai"
}
]
}

View File

@@ -2,14 +2,11 @@
"name": "@typebot.io/cal-com-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5",
"@typebot.io/lib": "workspace:*"
"@typebot.io/lib": "workspace:*",
"@types/react": "18.3.4"
}
}
}

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,15 +2,12 @@
"name": "@typebot.io/chat-node-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5",
"@types/react": "18.3.4",
"ky": "1.2.4"
}
}
}

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,16 +2,13 @@
"name": "@typebot.io/dify-ai-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"ky": "1.2.4",
"typescript": "5.4.5"
"@types/react": "18.3.4",
"ky": "1.2.4"
},
"dependencies": {
"ai": "3.3.15"

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,18 +2,15 @@
"name": "@typebot.io/elevenlabs-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"ky": "1.2.4",
"@typebot.io/lib": "workspace:*"
"@typebot.io/lib": "workspace:*",
"ky": "1.2.4"
}
}
}

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,16 +2,13 @@
"name": "@typebot.io/groq-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/openai-block": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"ky": "1.2.4"

View File

@@ -1,11 +1,20 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
},
{
"path": "../openai"
}
]
}

View File

@@ -2,16 +2,13 @@
"name": "@typebot.io/mistral-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"@ai-sdk/mistral": "0.0.22",

View File

@@ -1,11 +1,23 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx", "helpers/client.ts"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../ai"
},
{
"path": "../../../lib"
},
{
"path": "../../core"
},
{
"path": "../openai"
}
]
}

View File

@@ -2,17 +2,14 @@
"name": "@typebot.io/nocodb-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"ky": "1.2.4"
}
}
}

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,16 +2,13 @@
"name": "@typebot.io/open-router-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5",
"@typebot.io/lib": "workspace:*",
"@typebot.io/openai-block": "workspace:*",
"@types/react": "18.3.4",
"ky": "1.2.4"
}
}
}

View File

@@ -1,11 +1,20 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
},
{
"path": "../openai"
}
]
}

View File

@@ -1,10 +1,8 @@
import { option, createAction } from '@typebot.io/forge'
import { defaultOpenAIOptions } from '../constants'
import OpenAI, { ClientOptions, toFile } from 'openai'
import OpenAI, { ClientOptions } from 'openai'
import { isNotEmpty } from '@typebot.io/lib'
import { auth } from '../auth'
import { baseOptions } from '../baseOptions'
import ky from 'ky'
export const createTranscription = createAction({
name: 'Create transcription',

View File

@@ -2,7 +2,6 @@
"name": "@typebot.io/openai-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"author": "Baptiste Arnaud",
"license": "AGPL-3.0-or-later",
@@ -15,10 +14,8 @@
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/variables": "workspace:*",
"@types/react": "18.2.15",
"ky": "1.2.4",
"typescript": "5.4.5"
"@types/react": "18.3.4",
"ky": "1.2.4"
}
}

View File

@@ -1,4 +1,4 @@
import { AsyncVariableStore, VariableStore } from '@typebot.io/forge/types'
import { AsyncVariableStore } from '@typebot.io/forge/types'
import { ChatCompletionOptions } from './parseChatCompletionOptions'
import { APICallError, streamText, ToolCallPart, ToolResultPart } from 'ai'
import { createOpenAI } from '@ai-sdk/openai'

View File

@@ -1,11 +1,26 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"extends": "../../../tsconfig/base.json",
"include": [
"**/*.ts",
"**/*.tsx"
],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../ai"
},
{
"path": "../../../lib"
},
{
"path": "../../../variables"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,18 +2,15 @@
"name": "@typebot.io/qrcode-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"@types/qrcode": "^1.5.3",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"qrcode": "^1.5.3"
}
}
}

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,15 +2,12 @@
"name": "@typebot.io/segment-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@types/react": "18.3.4"
},
"dependencies": {
"@segment/analytics-node": "^2.1.2"

View File

@@ -1,11 +1,17 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"extends": "../../../tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../core"
}
]
}

View File

@@ -2,16 +2,13 @@
"name": "@typebot.io/together-ai-block",
"version": "1.0.0",
"description": "",
"main": "index.ts",
"keywords": [],
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/variables": "workspace:*",
"@typebot.io/openai-block": "workspace:*",
"@types/react": "18.2.15",
"typescript": "5.4.5"
"@typebot.io/variables": "workspace:*",
"@types/react": "18.3.4"
}
}
}

View File

@@ -1,11 +1,26 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"extends": "../../../tsconfig/base.json",
"include": [
"**/*.ts",
"**/*.tsx"
],
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
"outDir": "dist"
},
"references": [
{
"path": "../../../lib"
},
{
"path": "../../../variables"
},
{
"path": "../../core"
},
{
"path": "../openai"
}
]
}