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
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
"pnpm": ">=10.0.0"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
"@eslint/js": "^9.39.4",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^22.19.11",
"eslint": "^9.39.3",
"@types/node": "^22.19.17",
"eslint": "^9.39.4",
"globals": "^16.5.0",
"jiti": "^2.6.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.0",
"vite": "^7.3.1",
"vitest": "^4.0.18"
"typescript-eslint": "^8.58.1",
"vite": "^7.3.2",
"vitest": "^4.1.4"
},
"dependencies": {
"@livekit/agents": "^1.0.46",
"@livekit/agents-plugin-livekit": "^1.0.46",
"@livekit/agents-plugin-silero": "^1.0.46",
"@livekit/agents": "^1.2.4",
"@livekit/agents-plugin-livekit": "^1.2.4",
"@livekit/agents-plugin-silero": "^1.2.4",
"@livekit/noise-cancellation-node": "^0.1.9",
"dotenv": "^17.3.1",
"dotenv": "^17.4.1",
"zod": "^3.25.76"
}
}
21 changes: 18 additions & 3 deletions taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
version: "3"
output: interleaved
dotenv: [".env.local"]
vars:
INDENT: 4
Expand All @@ -11,16 +10,18 @@ tasks:
post_create:
desc: "Runs after this template is instantiated as a Sandbox or Bootstrap"
cmds:
- echo 'Your agent has been created!'
- echo 'To run the new agent locally:'
- echo ''
- echo '{{ indent .INDENT "cd" }} {{ .REL_PATH }}'
- echo '{{ indent .INDENT "pnpm install" }}'
- echo '{{ indent .INDENT "pnpm download-files" }}'
- echo '{{ indent .INDENT "pnpm dev" }}'
- echo ''
- task: help_open_web_console
- echo 'To deploy your agent to LiveKit cloud:'
- echo ''
- echo '{{ indent .INDENT "lk agent create" }}'
- echo '{{ indent .INDENT "lk agent deploy" }}'
- echo ''
- task: set_agent_name_if_present
- task: help_open_sandbox_if_present
Expand All @@ -40,15 +41,29 @@ tasks:
done < "$file"
mv "$tmp" "$file"

help_open_web_console:
status:
- test -z "$LIVEKIT_AGENT_NAME"
vars:
CONSOLE_URL: "https://cloud.livekit.io/projects/p_/agents/console"
CONSOLE_LINK: '{{ print "\x1b]8;;" .CONSOLE_URL "/?autoStart=true&agentName=" .LIVEKIT_AGENT_NAME "\x1b\\\x1b[36;4m" .CONSOLE_URL "/?autoStart=true&agentName=" .LIVEKIT_AGENT_NAME "\x1b[0m\x1b]8;;\x1b\\" }}'
cmds:
- echo 'Then open the web console:'
- echo ''
- echo '{{ indent .INDENT .CONSOLE_LINK }}'
- echo ''

help_open_sandbox_if_present:
desc: "When LIVEKIT_SANDBOX_ID is set, print the URL to open it"
status:
- test -z "$LIVEKIT_SANDBOX_ID"
vars:
SANDBOX_URL: 'https://{{ .LIVEKIT_SANDBOX_ID }}.sandbox.livekit.io'
SANDBOX_LINK: '{{ print "\x1b]8;;" .SANDBOX_URL "\x1b\\\x1b[36;4m" .SANDBOX_URL "\x1b[0m\x1b]8;;\x1b\\" }}'
cmds:
- echo 'To chat with your running agent, visit:'
- echo ''
- echo '{{ indent .INDENT "https://" }}{{ .LIVEKIT_SANDBOX_ID }}.sandbox.livekit.io'
- echo '{{ indent .INDENT .SANDBOX_LINK }}'
- echo ''


Expand Down
Loading