Skip to content

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

haxzieaf4ad5b641eb
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..3cb5db1a8
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,54 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+
+jobs:
+ install:
+ name: Install Dependencies
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v3
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '18' # or whatever you're using
+ cache: 'pnpm'
+
+ - name: Install pnpm
+ run: npm install -g pnpm
+
+ - name: Install Dependencies
+ run: pnpm install --frozen-lockfile
+
+ build-and-test:
+ name: Build & Test
+ runs-on: ubuntu-latest
+ needs: install
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v3
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '18'
+ cache: 'pnpm'
+
+ - name: Install pnpm
+ run: npm install -g pnpm
+
+ - name: Install Dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Run Build
+ run: pnpm turbo run build
+
+ - name: Run Tests
+ run: pnpm turbo run test
diff --git a/package.json b/package.json
index d5f67b80a..dddce5748 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"packages/*"
],
"scripts": {
+ "build": "turbo build",
"create-toolset": "bash scripts/create-toolset.sh",
"test": "echo \"Error: no test specified\" && exit 1"
},
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index b9245121b..5f984a8d6 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -3,7 +3,7 @@ import { Composio } from "./composio";
import { ComposioToolset } from "./toolset/ComposioToolset";
import { BaseComposioToolset } from "./toolset/BaseToolset";
import type { Tool, ToolListParamsSchema, ToolListParams } from "./types/tool.types";
-import type { Toolset } from "./types/toolset.types.";
+import type { Toolset } from "./types/toolset.types";
// Utils exports
import { jsonSchemaToModel } from "./utils/jsonSchema";
diff --git a/packages/core/src/toolset/BaseToolset.ts b/packages/core/src/toolset/BaseToolset.ts
index d68b5fb02..33857385a 100644
--- a/packages/core/src/toolset/BaseToolset.ts
+++ b/packages/core/src/toolset/BaseToolset.ts
@@ -1,4 +1,4 @@
-import { Toolset } from "../types/toolset.types.";
+import { Toolset } from "../types/toolset.types";
import { Tool, BaseTool, ToolListParams } from "../types/tool.types";
import { Composio } from "../composio";
diff --git a/packages/core/src/types/Toolset.types..ts b/packages/core/src/types/toolset.types.ts
similarity index 95%
rename from packages/core/src/types/Toolset.types..ts
rename to packages/core/src/types/toolset.types.ts
index 0fad29c8d..2cab867a8 100644
--- a/packages/core/src/types/Toolset.types..ts
+++ b/packages/core/src/types/toolset.types.ts
@@ -1,4 +1,3 @@
-import { Composio } from "../composio";
import { InstrumentedInstance } from "./telemetry.types";
import { Tool, BaseTool, ToolListParams } from "./tool.types";
diff --git a/turbo.json b/turbo.json
index c29f10b26..b3d0d572c 100644
--- a/turbo.json
+++ b/turbo.json
@@ -4,6 +4,10 @@
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/"]
+ },
+ "test": {
+ "dependsOn": ["^build"],
+ "outputs": ["dist/"]
}
}
}
\ No newline at end of file