-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
137 changed files
with
2,788 additions
and
3,156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: "Setup Node.js, PNPM, and install dependencies" | ||
|
||
inputs: | ||
node-version: | ||
description: "Node.js version to use" | ||
required: false | ||
default: 20.12.2 | ||
pnpm-version: | ||
description: "PNPM version to use" | ||
required: false | ||
default: 9.14.2 | ||
skip-install: | ||
description: "Skip 'pnpm install'" | ||
required: false | ||
default: false | ||
install-args: | ||
description: "Additional args supplied to 'pnpm install'" | ||
required: false | ||
working-directory: | ||
description: "Working directory to run the command in" | ||
required: false | ||
default: ./typescript | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Log inputs | ||
shell: bash | ||
run: | | ||
echo "Node.js version: ${{ inputs.node-version }}" | ||
echo "PNPM version: ${{ inputs.pnpm-version }}" | ||
echo "Skip install: ${{ inputs.skip-install }}" | ||
echo "Install args: ${{ inputs.install-args }}" | ||
echo "Working directory: ${{ inputs.working-directory }}" | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
|
||
- id: pnpm-config | ||
if: inputs.skip-install == 'false' | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- id: cache-rotation | ||
shell: bash | ||
if: inputs.skip-install == 'false' | ||
run: | | ||
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
if: inputs.skip-install == 'false' | ||
with: | ||
path: ${{ steps.pnpm-config.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}- | ||
- name: Install dependencies | ||
shell: bash | ||
if: inputs.skip-install == 'false' | ||
working-directory: ${{ inputs.working-directory }} | ||
run: pnpm install --frozen-lockfile --prefer-offline ${{ inputs.install-args }} |
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,23 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-and-test: | ||
name: build & test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js, PNPM, and install dependencies | ||
uses: ./.github/actions/pnpm-install | ||
|
||
- name: Build all | ||
working-directory: ./typescript | ||
run: pnpm build | ||
|
||
- name: Test all | ||
working-directory: ./typescript | ||
run: pnpm test |
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,30 +1,32 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": ["dist/**/*"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": ["dist/**/*"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 4, | ||
"lineWidth": 120 | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
typescript/examples/eleven-labs/conversational-agent/.example.env
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,2 +1,3 @@ | ||
NEXT_PUBLIC_ELEVEN_LABS_AGENT_ID= | ||
NEXT_PUBLIC_SEPOLIA_RPC_URL= | ||
NEXT_PUBLIC_COINGECKO_API_KEY= |
2 changes: 1 addition & 1 deletion
2
typescript/examples/eleven-labs/conversational-agent/next.config.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { NextConfig } from "next"; | ||
|
||
const nextConfig: NextConfig = { | ||
/* config options here */ | ||
/* config options here */ | ||
}; | ||
|
||
export default nextConfig; |
59 changes: 29 additions & 30 deletions
59
typescript/examples/eleven-labs/conversational-agent/package.json
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,32 +1,31 @@ | ||
{ | ||
"name": "conversational-agent", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@11labs/react": "^0.0.4", | ||
"@goat-sdk/adapter-eleven-labs": "0.1.2", | ||
"@goat-sdk/core": "0.3.10", | ||
"@goat-sdk/wallet-viem": "0.1.3", | ||
"@tanstack/react-query": "^5.62.2", | ||
"connectkit": "^1.8.2", | ||
"next": "15.0.3", | ||
"react": "19.0.0-rc-66855b96-20241106", | ||
"react-dom": "19.0.0-rc-66855b96-20241106", | ||
"viem": "^2.21.49", | ||
"wagmi": "^2.13.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"postcss": "^8", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5" | ||
} | ||
"name": "conversational-agent", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@11labs/react": "^0.0.4", | ||
"@goat-sdk/adapter-eleven-labs": "0.1.2", | ||
"@goat-sdk/core": "0.3.10", | ||
"@goat-sdk/wallet-viem": "0.1.3", | ||
"@goat-sdk/plugin-coingecko": "workspace:*", | ||
"@tanstack/react-query": "^5.62.2", | ||
"connectkit": "^1.8.2", | ||
"next": "15.0.3", | ||
"react": "19.0.0-rc-66855b96-20241106", | ||
"react-dom": "19.0.0-rc-66855b96-20241106", | ||
"viem": "^2.21.49", | ||
"wagmi": "^2.13.3" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"postcss": "^8", | ||
"tailwindcss": "^3.4.1" | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
typescript/examples/eleven-labs/conversational-agent/postcss.config.mjs
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,8 +1,8 @@ | ||
/** @type {import('postcss-load-config').Config} */ | ||
const config = { | ||
plugins: { | ||
tailwindcss: {}, | ||
}, | ||
plugins: { | ||
tailwindcss: {}, | ||
}, | ||
}; | ||
|
||
export default config; |
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
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
Oops, something went wrong.