Skip to content

Commit 37c5d8c

Browse files
authored
Merge pull request #59 from restackio/voice-to-functions
2 parents 457e27d + 43799be commit 37c5d8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1472
-281
lines changed

voice/Dockerfile.server

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ WORKDIR /app
3434

3535
COPY --from=builder /app .
3636

37-
ENV NODE_OPTIONS=--max-old-space-size=4096
37+
ENV NODE_OPTIONS="--max-old-space-size=4096"
3838

39-
EXPOSE 80
40-
41-
CMD ["node", "dist/services"]
39+
CMD ["node", "dist/server"]

voice/callWorkflow.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { client } from "../hello/src/client";
1+
import { client } from "./src/client";
22

33
async function scheduleWorkflow() {
44
try {

voice/package.json

+30-27
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,44 @@
1111
"build": "tsc --build",
1212
"clean": "rm -rf node_modules",
1313
"call": "ts-node ./callWorkflow.ts",
14-
"ngrok": "ngrok http 4000"
14+
"ngrok": "ngrok http 4000",
15+
"restack-up": "dotenv -e .env -- tsx restack_up.mjs",
16+
"docker:build:server": "docker build -f Dockerfile.server -t voice .",
17+
"docker:run:server": "docker run -d -p 4000:4000 voice",
18+
"docker:build:services": "docker build -f Dockerfile.services -t voice .",
19+
"docker:run:services": "docker run -d -p 4000:4000 voice"
1520
},
1621
"keywords": [],
1722
"author": "",
1823
"license": "ISC",
1924
"dependencies": {
20-
"@deepgram/sdk": "^3.6.0",
21-
"@restackio/ai": "^0.0.85",
22-
"@restackio/integrations-deepgram": "^0.0.13",
23-
"@restackio/integrations-openai": "^0.0.34",
24-
"@restackio/integrations-twilio": "^0.0.10",
25-
"@restackio/integrations-websocket": "^0.0.17",
26-
"@temporalio/workflow": "1.11.1",
27-
"cors": "^2.8.5",
28-
"dotenv": "^16.4.5",
29-
"express": "^4.21.0",
30-
"openai": "^4.59.0",
31-
"ts-node": "^10.9.2",
32-
"twilio": "^5.3.0",
33-
"typescript": "^5.6.2",
34-
"uuid": "^10.0.0",
35-
"ws": "^8.18.0",
36-
"zod": "^3.23.8"
25+
"@restackio/ai": "0.0.86",
26+
"@temporalio/workflow": "1.11.5",
27+
"cors": "2.8.5",
28+
"dotenv": "16.4.5",
29+
"express": "4.21.0",
30+
"openai": "4.59.0",
31+
"ts-node": "10.9.2",
32+
"twilio": "5.3.0",
33+
"@deepgram/sdk": "3.6.0",
34+
"typescript": "5.6.2",
35+
"uuid": "10.0.0",
36+
"ws": "8.18.0",
37+
"zod": "3.23.8"
3738
},
3839
"devDependencies": {
39-
"@restackio/cloud": "^1.0.19",
40-
"@types/cors": "^2.8.17",
41-
"@types/express": "^4.17.21",
42-
"@types/node": "^22.5.4",
43-
"@types/uuid": "^10.0.0",
44-
"@types/ws": "^8.5.12",
45-
"nodemon": "^3.1.4",
46-
"ts-node-dev": "^2.0.0"
40+
"@restackio/cloud": "1.0.23",
41+
"@types/cors": "2.8.17",
42+
"@types/express": "4.17.21",
43+
"@types/node": "22.5.4",
44+
"@types/uuid": "10.0.0",
45+
"@types/ws": "8.5.12",
46+
"nodemon": "3.1.4",
47+
"ts-node-dev": "2.0.0",
48+
"tsx": "4.19.2",
49+
"dotenv-cli": "7.4.4"
4750
},
4851
"optionalDependencies": {
49-
"bufferutil": "^4.0.8"
52+
"bufferutil": "4.0.8"
5053
}
5154
}

0 commit comments

Comments
 (0)