Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run build
run: npm run build
run: pnpm run build
13 changes: 9 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,22 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm run build

- name: Run linters
run: npm run lint
run: pnpm run lint
13 changes: 9 additions & 4 deletions .github/workflows/test-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm run build

- name: Run E2E tests
run: npm run test:e2e
run: pnpm run test:e2e
env:
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_TEST_API_KEY }}
ELEVENLABS_TEST_API_KEY: ${{ secrets.ELEVENLABS_TEST_API_KEY_SECONDARY }}
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ jobs:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Run build
run: npm run build
run: pnpm run build

- name: Run tests
run: npm run test
run: pnpm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"format": "prettier --write src/**/*.ts"
},
"dependencies": {
"@elevenlabs/elevenlabs-js": "2.18.0",
"@elevenlabs/elevenlabs-js": "2.26.0",
"@inkjs/ui": "^2.0.0",
"@types/read": "^0.0.32",
"chalk": "^5.3.0",
Expand Down
13 changes: 8 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/shared/elevenlabs-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { ElevenLabsClient } from '@elevenlabs/elevenlabs-js';
import { ElevenLabs } from '@elevenlabs/elevenlabs-js';
import {
ConversationalConfig,
AgentPlatformSettingsRequestModel
AgentPlatformSettingsRequestModel,
AgentWorkflowRequestModel
} from '@elevenlabs/elevenlabs-js/api';
import { getApiKey, loadConfig, Location } from './config.js';
import { toCamelCaseKeys, toSnakeCaseKeys } from './utils.js';
Expand Down Expand Up @@ -120,7 +121,7 @@ export async function createAgentApi(
name,
conversationConfig: convConfig,
platformSettings,
workflow,
workflow: workflow as AgentWorkflowRequestModel | undefined,
tags
});

Expand Down Expand Up @@ -158,7 +159,7 @@ export async function updateAgentApi(
name,
conversationConfig: convConfig,
platformSettings,
workflow,
workflow: workflow as AgentWorkflowRequestModel | undefined,
tags
});

Expand Down
Loading