Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
add build setup
haxzie committed
Apr 17, 2025 at 15:28 UTC
af4ad5b641ebf212d19b3d4a30dfbbbc4743f4d9
6 files changed
+61
-3
.github/workflows/ci.yml
new
+54
@@ -0,0 +1,54 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+jobs:
9
+ install:
10
+ name: Install Dependencies
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout Code
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Set up Node.js
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: '18' # or whatever you're using
21
+ cache: 'pnpm'
22
+
23
+ - name: Install pnpm
24
+ run: npm install -g pnpm
25
+
26
+ - name: Install Dependencies
27
+ run: pnpm install --frozen-lockfile
28
+
29
+ build-and-test:
30
+ name: Build & Test
31
+ runs-on: ubuntu-latest
32
+ needs: install
33
+
34
+ steps:
35
+ - name: Checkout Code
36
+ uses: actions/checkout@v3
37
+
38
+ - name: Set up Node.js
39
+ uses: actions/setup-node@v3
40
+ with:
41
+ node-version: '18'
42
+ cache: 'pnpm'
43
+
44
+ - name: Install pnpm
45
+ run: npm install -g pnpm
46
+
47
+ - name: Install Dependencies
48
+ run: pnpm install --frozen-lockfile
49
+
50
+ - name: Run Build
51
+ run: pnpm turbo run build
52
+
53
+ - name: Run Tests
54
+ run: pnpm turbo run test
package.json
+1
@@ -6,6 +6,7 @@
6
"packages/*"
7
],
8
"scripts": {
9
+ "build": "turbo build",
10
"create-toolset": "bash scripts/create-toolset.sh",
11
"test": "echo \"Error: no test specified\" && exit 1"
12
},
packages/core/src/index.ts
+1
-1
@@ -3,7 +3,7 @@ import { Composio } from "./composio";
3
import { ComposioToolset } from "./toolset/ComposioToolset";
4
import { BaseComposioToolset } from "./toolset/BaseToolset";
5
import type { Tool, ToolListParamsSchema, ToolListParams } from "./types/tool.types";
6
-import type { Toolset } from "./types/toolset.types.";
6
+import type { Toolset } from "./types/toolset.types";
7
8
// Utils exports
9
import { jsonSchemaToModel } from "./utils/jsonSchema";
packages/core/src/toolset/BaseToolset.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { Toolset } from "../types/toolset.types.";
1
+import { Toolset } from "../types/toolset.types";
2
import { Tool, BaseTool, ToolListParams } from "../types/tool.types";
3
import { Composio } from "../composio";
4
packages/core/src/types/toolset.types.ts
renamed
-1
@@ -1,4 +1,3 @@
1
-import { Composio } from "../composio";
1
import { InstrumentedInstance } from "./telemetry.types";
2
import { Tool, BaseTool, ToolListParams } from "./tool.types";
3
turbo.json
+4
@@ -4,6 +4,10 @@
4
"build": {
5
"dependsOn": ["^build"],
6
"outputs": ["dist/"]
7
+ },
8
+ "test": {
9
+ "dependsOn": ["^build"],
10
+ "outputs": ["dist/"]
11
}
12
}
13
}
\ No newline at end of file