Skip to content

Commit 4585ae0

Browse files
committed
services, imports and co
1 parent 1b94e39 commit 4585ae0

29 files changed

+747
-107
lines changed

posthog/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ POSTHOG_API_KEY=
44
POSTHOG_PROJECT_ID=
55
POSTHOG_HOST=https://us.posthog.com
66
OPENAI_API_KEY=
7+
LINEAR_API_KEY=
78

89
# (Optional) Restack Cloud - You only need to set these if you are using Restack Cloud
910

posthog/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
"author": "",
1616
"license": "ISC",
1717
"dependencies": {
18-
"@restackio/ai": "^0.0.85",
19-
"@restackio/integrations-linear": "^0.0.8",
20-
"@restackio/integrations-openai": "^0.0.34",
18+
"@restackio/ai": "0.0.86",
19+
"@linear/sdk": "29.0.0",
2120
"@temporalio/workflow": "1.11.1",
22-
"dotenv": "^16.4.5",
23-
"typescript": "^5.6.2",
24-
"uuid": "^10.0.0",
25-
"zod": "^3.23.8",
26-
"zod-to-json-schema": "^3.23.3"
21+
"dotenv": "16.4.5",
22+
"openai": "4.71.1",
23+
"typescript": "5.6.2",
24+
"uuid": "10.0.0",
25+
"zod": "3.23.8",
26+
"zod-to-json-schema": "3.23.3"
2727
},
2828
"devDependencies": {
29-
"@restackio/cloud": "^1.0.19",
30-
"@types/node": "^22.5.5",
31-
"@types/uuid": "^10.0.0",
32-
"nodemon": "^3.1.4",
33-
"ts-node": "^10.9.2",
34-
"ts-node-dev": "^2.0.0"
29+
"@restackio/cloud": "1.0.19",
30+
"@types/node": "22.5.5",
31+
"@types/uuid": "10.0.0",
32+
"nodemon": "3.1.4",
33+
"ts-node": "10.9.2",
34+
"ts-node-dev": "2.0.0"
3535
}
3636
}

posthog/pnpm-lock.yaml

Lines changed: 52 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

posthog/restack_up.mjs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,41 @@ const main = async () => {
3232
],
3333
};
3434

35+
const engine = {
36+
name: 'restack_engine',
37+
image: 'ghcr.io/restackio/restack:main',
38+
portMapping: [
39+
{
40+
port: 5233,
41+
path: '/',
42+
name: 'engine-frontend',
43+
},
44+
{
45+
port: 6233,
46+
path: '/api',
47+
name: 'engine-api',
48+
},
49+
],
50+
environmentVariables: [
51+
{
52+
name: 'RESTACK_ENGINE_ID',
53+
value: process.env.RESTACK_ENGINE_ID,
54+
},
55+
{
56+
name: 'RESTACK_ENGINE_ADDRESS',
57+
value: process.env.RESTACK_ENGINE_ADDRESS_WITHOUT_PORT,
58+
},
59+
{
60+
name: 'RESTACK_ENGINE_API_KEY',
61+
value: process.env.RESTACK_ENGINE_API_KEY,
62+
},
63+
],
64+
};
65+
3566
await restackCloudClient.stack({
3667
name: "posthog-example",
3768
previewEnabled: false,
38-
applications: [servicesApp],
69+
applications: [servicesApp, engine],
3970
});
4071

4172
await restackCloudClient.up();

posthog/src/functions/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
export * from "./linear";
2+
export * from "./openai";
13
export * from "./posthog";
24
export * from "./utils";
5+

0 commit comments

Comments
 (0)