Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 14:30 UTC
feat(ts/cli): addres review comments, add typescript-mjs-import-nodenext e2e test
jkomyno committed
Jan 14, 2026 at 23:31 UTC
a9de329703fba528fa602408f2b814ced0b47f9b
16 files changed
+300
-57
pnpm-lock.yaml
+9
@@ -313,6 +313,15 @@ importers:
313
specifier: workspace:*
314
version: link:../../../../packages/core
315
316
+ ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext:
317
+ devDependencies:
318
+ '@composio/cli':
319
+ specifier: workspace:*
320
+ version: link:../../../../packages/cli
321
+ typescript:
322
+ specifier: ^5.9.2
323
+ version: 5.9.3
324
+
325
ts/examples/anthropic:
326
dependencies:
327
'@anthropic-ai/claude-agent-sdk':
ts/e2e-tests/_utils/Dockerfile.node
+23
-5
@@ -1,5 +1,9 @@
1
# Reusable Dockerfile for Node.js e2e tests
2
# Usage: docker build -f Dockerfile.node --build-arg NODE_VERSION=20.19.0 --build-arg TEST_DIR=... --build-arg TEST_CMD="node test.cjs" -t test-name .
3
+#
4
+# Uses official node:slim images. For multi-version testing, run the build/run
5
+# multiple times with different NODE_VERSION values from the shell script.
6
+
7
ARG NODE_VERSION=20.19.0
8
9
FROM node:${NODE_VERSION}-slim
@@ -9,12 +13,17 @@ ENV PATH="$PNPM_HOME:$PATH"
13
14
WORKDIR /app
15
12
-# Install corepack to use pnpm.
13
-# See: https://vercel.com/kb/guide/corepack-errors-github-actions.
14
-RUN npm i -g corepack@latest && corepack enable
16
+# Install corepack (for pnpm) and bun
17
+RUN npm i -g corepack@latest bun && corepack enable
18
19
# Copy pnpm workspace files
17
-COPY pnpm-lock.yaml pnpm-workspace.yaml .pnpmfile.cjs package.json tsconfig.base.json tsdown.config.base.ts ./
20
+COPY pnpm-lock.yaml \
21
+ pnpm-workspace.yaml \
22
+ .pnpmfile.cjs \
23
+ package.json \
24
+ tsconfig.base.json \
25
+ tsdown.config.base.ts \
26
+ ./
27
28
# Copy all ts/packages (pre-built)
29
COPY ts/packages/ ./ts/packages/
@@ -27,11 +36,20 @@ COPY ts/e2e-tests/ ./ts/e2e-tests/
36
# because it causes native binding issues (e.g., rolldown-binding) across builds
37
RUN pnpm install --frozen-lockfile
38
39
+# Build and install composio CLI binary
40
+# This is a simplified version of ts/packages/cli/scripts/build-binary.ts + install-binary.ts
41
+WORKDIR /app/ts/packages/cli
42
+RUN bun build ./src/bin.ts \
43
+ --env DEBUG_OVERRIDE_* \
44
+ --compile \
45
+ --production \
46
+ --outfile /usr/local/bin/composio
47
+
48
# Test directory (relative to /app)
49
ARG TEST_DIR
50
WORKDIR /app/${TEST_DIR}
51
34
-# Command to run the test (e.g., "node test.cjs", "node test.mjs", "pnpm test")
52
+# Command to run the test (e.g., "node test.cjs", "node test.mjs", "pnpm test", "bun test")
53
ARG TEST_CMD="echo 'No TEST_CMD specified'"
54
ENV TEST_CMD=${TEST_CMD}
55
ts/e2e-tests/_utils/run-docker-test.sh
+42
-24
@@ -2,21 +2,22 @@
2
# Reusable Docker test runner for e2e tests
3
#
4
# Usage:
5
-# run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]
5
+# run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node-versions <versions>]
6
#
7
# Arguments:
8
-# --name, -n Name for the Docker image (e.g., "composio-cjs-test")
9
-# --dir, -d Relative path from repo root to test directory (e.g., "ts/packages/core/test-e2e/node-cjs")
10
-# --cmd, -c Command to run (e.g., "node test.cjs", "node test.mjs", "pnpm test"). Default: "pnpm test"
11
-# --node Node.js version. Default: 20.19.0
8
+# --name, -n Name for the Docker image (e.g., "composio-cjs-test")
9
+# --dir, -d Relative path from repo root to test directory (e.g., "ts/packages/core/test-e2e/node-cjs")
10
+# --cmd, -c Command to run (e.g., "node test.cjs", "node test.mjs", "pnpm test"). Default: "pnpm test"
11
+# --node-versions Space-separated Node.js versions to test with. Default: "20.19.0"
12
+# --node Single Node.js version (alias for --node-versions with one version)
13
#
14
# Example:
14
-# ./run-docker-test.sh --name "composio-cjs-test" --dir "ts/packages/core/test-e2e/node-cjs" --cmd "node test.cjs" --node "20.17.0"
15
+# ./run-docker-test.sh --name "composio-cjs-test" --dir "ts/packages/core/test-e2e/node-cjs" --cmd "node test.cjs" --node-versions "20.18.0 20.19.0"
16
17
set -e
18
19
# Default values
19
-NODE_VERSION="20.19.0"
20
+NODE_VERSIONS="20.19.0"
21
TEST_NAME=""
22
TEST_DIR=""
23
TEST_CMD="pnpm test"
@@ -36,13 +37,17 @@ while [[ $# -gt 0 ]]; do
37
TEST_CMD="$2"
38
shift 2
39
;;
40
+ --node-versions)
41
+ NODE_VERSIONS="$2"
42
+ shift 2
43
+ ;;
44
--node)
40
- NODE_VERSION="$2"
45
+ NODE_VERSIONS="$2"
46
shift 2
47
;;
48
*)
49
echo "Error: Unknown argument '$1'"
45
- echo "Usage: run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node <version>]"
50
+ echo "Usage: run-docker-test.sh --name <name> --dir <dir> --cmd <cmd> [--node-versions <versions>]"
51
exit 1
52
;;
53
esac
@@ -68,27 +73,40 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
73
REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
74
75
echo "🧪 Running Docker e2e test: $TEST_NAME"
71
-echo " Node.js version: $NODE_VERSION"
76
+echo " Node.js versions: $NODE_VERSIONS"
77
echo " Test directory: $TEST_DIR"
78
echo " Test command: $TEST_CMD"
79
echo ""
80
76
-echo "🐳 Building test image..."
77
-
81
cd "$REPO_ROOT"
82
80
-# Build Docker image
81
-docker build \
82
- -f "$SCRIPT_DIR/Dockerfile.node" \
83
- --build-arg NODE_VERSION="$NODE_VERSION" \
84
- --build-arg TEST_DIR="$TEST_DIR" \
85
- --build-arg TEST_CMD="$TEST_CMD" \
86
- -t "$TEST_NAME" \
87
- .
83
+# Build docker run arguments, passing through relevant environment variables
84
+DOCKER_ENV_ARGS=""
85
+if [[ -n "$COMPOSIO_API_KEY" ]]; then
86
+ DOCKER_ENV_ARGS="-e COMPOSIO_API_KEY=$COMPOSIO_API_KEY"
87
+fi
88
89
-echo ""
90
-echo "🧪 Running test in Docker container..."
91
-docker run --rm "$TEST_NAME"
89
+# Run tests for each Node.js version
90
+for NODE_VERSION in $NODE_VERSIONS; do
91
+ echo ""
92
+ echo "========================================"
93
+ echo "🐳 Building and testing with Node.js $NODE_VERSION"
94
+ echo "========================================"
95
+
96
+ IMAGE_NAME="${TEST_NAME}-node${NODE_VERSION}"
97
+
98
+ docker build \
99
+ -f "$SCRIPT_DIR/Dockerfile.node" \
100
+ --build-arg NODE_VERSION="$NODE_VERSION" \
101
+ --build-arg TEST_DIR="$TEST_DIR" \
102
+ --build-arg TEST_CMD="$TEST_CMD" \
103
+ -t "$IMAGE_NAME" \
104
+ .
105
+
106
+ echo ""
107
+ echo "🧪 Running test in Docker container..."
108
+ docker run --rm $DOCKER_ENV_ARGS "$IMAGE_NAME"
109
+done
110
111
echo ""
94
-echo "✅ Docker test completed successfully!"
112
+echo "✅ All Node.js versions passed!"
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/.gitignore
new
+3
@@ -0,0 +1,3 @@
1
+generated/
2
+dist/
3
+node_modules/
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/README.md
new
+36
@@ -0,0 +1,36 @@
1
+# TypeScript .mjs Import Resolution Test
2
+
3
+Verifies that `composio ts generate` produces TypeScript files that compile correctly with `moduleResolution: "nodenext"`.
4
+
5
+## The Issue
6
+
7
+When `composio ts generate --output-dir ./types` runs without `--transpiled`:
8
+
9
+- Only `.ts` files are generated
10
+- These files contain `import ... from "./foo.mjs"` statements
11
+- With `moduleResolution: "node16"` or `"nodenext"`, TypeScript resolves:
12
+ - `.js` imports → `.ts` files ✅
13
+ - `.mjs` imports → `.mts` files only (not `.ts`) ❌
14
+
15
+This causes `TS2307: Cannot find module './foo.mjs'` errors.
16
+
17
+## What It Tests
18
+
19
+| Test | Description |
20
+| ---------------------- | ----------------------------------------------------------- |
21
+| composio ts generate | Runs CLI to generate TypeScript files for entelligence toolkit |
22
+| File existence | Verifies generated .ts files exist |
23
+| TypeScript compilation | Runs `tsc --noEmit` to check import resolution |
24
+
25
+## Running
26
+
27
+```bash
28
+# With nvm - test specific Node.js versions
29
+nvm use 20.18.0 && pnpm install && pnpm test:e2e
30
+nvm use 20.19.0 && pnpm install && pnpm test:e2e
31
+```
32
+
33
+## Expected Behavior
34
+
35
+- **If bug exists (importExtension: 'mjs')**: Test 3 fails with TS2307
36
+- **If fixed (importExtension: 'js')**: All tests pass
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/package.json
new
+14
@@ -0,0 +1,14 @@
1
+{
2
+ "name": "@test-e2e/typescript-mjs-import-nodenext",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "test:e2e": "node test.mjs",
8
+ "test:e2e:node": "node test.mjs"
9
+ },
10
+ "devDependencies": {
11
+ "@composio/cli": "workspace:*",
12
+ "typescript": "^5.9.2"
13
+ }
14
+}
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/run-docker-test.sh
new
+26
@@ -0,0 +1,26 @@
1
+#!/bin/bash
2
+# TypeScript .mjs import resolution e2e test runner
3
+# Uses shared Docker test infrastructure from _utils/
4
+#
5
+# Requires COMPOSIO_API_KEY environment variable to be set
6
+# Tests with Node.js 20.18.0 and 20.19.0 using nvm
7
+
8
+set -e
9
+
10
+if [[ -z "$COMPOSIO_API_KEY" ]]; then
11
+ echo "Error: COMPOSIO_API_KEY environment variable is required"
12
+ echo "Export it before running: export COMPOSIO_API_KEY=your_key"
13
+ exit 1
14
+fi
15
+
16
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
17
+UTILS_DIR="$SCRIPT_DIR/../../../_utils"
18
+
19
+# Test with both Node.js 20.18.0 and 20.19.0
20
+NODE_VERSIONS="${COMPOSIO_E2E_NODE_VERSIONS:-20.18.0 20.19.0}"
21
+
22
+"$UTILS_DIR/run-docker-test.sh" \
23
+ --name "composio-typescript-mjs-import-nodenext" \
24
+ --dir "ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext" \
25
+ --cmd "node test.mjs" \
26
+ --node-versions "$NODE_VERSIONS"
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/test.mjs
new
+108
@@ -0,0 +1,108 @@
1
+/**
2
+ * E2E test: TypeScript .mjs import resolution with moduleResolution: "nodenext"
3
+ *
4
+ * This test verifies that generated TypeScript files with .mjs imports
5
+ * can be compiled successfully with moduleResolution: "nodenext".
6
+ *
7
+ * The issue: When `composio ts generate` uses importExtension: 'mjs',
8
+ * the generated .ts files contain `import ... from "./foo.mjs"` statements.
9
+ * With moduleResolution: "node16" or "nodenext", TypeScript expects .mjs
10
+ * imports to resolve to .mts files, NOT .ts files.
11
+ *
12
+ * This causes TS2307: Cannot find module './foo.mjs' errors.
13
+ */
14
+
15
+import assert from 'node:assert';
16
+import { execSync } from 'node:child_process';
17
+import { existsSync, rmSync, readdirSync } from 'node:fs';
18
+import { dirname, join } from 'node:path';
19
+import { fileURLToPath } from 'node:url';
20
+
21
+const __dirname = dirname(fileURLToPath(import.meta.url));
22
+const GENERATED_DIR = join(__dirname, 'generated');
23
+
24
+console.log('🧪 Testing TypeScript .mjs import resolution with moduleResolution: "nodenext"...\n');
25
+console.log(`Node.js version: ${process.version}`);
26
+console.log(`Working directory: ${__dirname}\n`);
27
+
28
+// Cleanup generated directory if it exists
29
+if (existsSync(GENERATED_DIR)) {
30
+ console.log('Cleaning up previous generated files...');
31
+ rmSync(GENERATED_DIR, { recursive: true });
32
+}
33
+
34
+// Test 1: Run composio ts generate --toolkits entelligence --output-dir ./generated
35
+console.log('Test 1: Running composio ts generate --toolkits entelligence --output-dir ./generated...');
36
+try {
37
+ // Use the composio CLI binary built and installed to /usr/local/bin in the Dockerfile
38
+ execSync(`composio ts generate --toolkits entelligence --output-dir ${GENERATED_DIR}`, {
39
+ cwd: __dirname,
40
+ stdio: 'inherit',
41
+ env: { ...process.env, FORCE_COLOR: '0' },
42
+ });
43
+
44
+ console.log('✅ Test 1 passed: composio ts generate succeeded\n');
45
+} catch (error) {
46
+ console.error('❌ Test 1 failed: composio ts generate threw an error');
47
+ console.error(error.message);
48
+ process.exit(1);
49
+}
50
+
51
+// Test 2: Verify generated files exist
52
+console.log('Test 2: Verifying generated files exist...');
53
+try {
54
+ assert.ok(existsSync(GENERATED_DIR), 'Generated directory should exist');
55
+
56
+ const files = readdirSync(GENERATED_DIR);
57
+ console.log('Generated files:', files);
58
+
59
+ assert.ok(files.length > 0, 'Generated directory should not be empty');
60
+ assert.ok(files.some((f) => f.endsWith('.ts')), 'Should have .ts files');
61
+
62
+ console.log('✅ Test 2 passed: Generated files exist\n');
63
+} catch (error) {
64
+ console.error('❌ Test 2 failed: Generated files verification failed');
65
+ console.error(error.message);
66
+ process.exit(1);
67
+}
68
+
69
+// Test 3: Run tsc --noEmit to check TypeScript compilation
70
+console.log('Test 3: Running tsc --noEmit to verify TypeScript compilation...');
71
+console.log('Expected: FAILURE with TS2307 if importExtension is "mjs"');
72
+console.log('Expected: SUCCESS if importExtension is "js"\n');
73
+
74
+try {
75
+ execSync('npx tsc --noEmit', {
76
+ cwd: __dirname,
77
+ stdio: 'pipe',
78
+ encoding: 'utf-8',
79
+ });
80
+
81
+ console.log('✅ Test 3 passed: TypeScript compilation succeeded');
82
+ console.log(' (importExtension is correctly set to "js")\n');
83
+} catch (error) {
84
+ // execSync error object has stdout/stderr as Buffer or string
85
+ const stdout = error.stdout?.toString?.() || error.stdout || '';
86
+ const stderr = error.stderr?.toString?.() || error.stderr || '';
87
+ const output = stdout + stderr + error.message;
88
+
89
+ if (output.includes('TS2307') && output.includes('.mjs')) {
90
+ console.log('❌ Test 3 failed: TypeScript compilation failed with TS2307');
91
+ console.log(' This confirms the bug: .mjs imports do not resolve to .ts files');
92
+ console.log(' with moduleResolution: "nodenext"\n');
93
+ console.log('Error output:');
94
+ console.log(stdout || stderr);
95
+ process.exit(1);
96
+ }
97
+
98
+ console.error('❌ Test 3 failed: Unexpected TypeScript error');
99
+ console.error('stdout:', stdout);
100
+ console.error('stderr:', stderr);
101
+ console.error('message:', error.message);
102
+ process.exit(1);
103
+}
104
+
105
+console.log('========================================');
106
+console.log('🎉 All tests passed!');
107
+console.log('========================================');
108
+process.exit(0);
ts/e2e-tests/runtimes/node/typescript-mjs-import-nodenext/tsconfig.json
new
+14
@@ -0,0 +1,14 @@
1
+{
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "module": "nodenext",
5
+ "moduleResolution": "nodenext",
6
+ "declaration": true,
7
+ "outDir": "./dist",
8
+ "rootDir": "./generated",
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true
12
+ },
13
+ "include": ["generated"]
14
+}
ts/packages/cli/src/commands/ts/commands/ts.generate.cmd.ts
+1
-1
@@ -211,7 +211,7 @@ export function generateTypescriptTypeStubs({
211
outputDir,
212
emitSingleFile: Boolean(compact), // Ensure boolean type
213
banner: BANNER,
214
- importExtension: 'mjs',
214
+ importExtension: 'js',
215
})(index);
216
217
// Write all generated files
ts/packages/cli/src/generation/typescript/generate-index-source.ts
+1
-1
@@ -32,7 +32,7 @@ const BARREL_OBJECT_NAME = 'Toolkits';
32
export type GenerateTypeScriptIndexMapSourceParams = {
33
banner: string;
34
emitSingleFile: boolean;
35
- importExtension: 'ts' | 'mjs';
35
+ importExtension: 'ts' | 'js';
36
};
37
38
export function generateIndexSource(params: GenerateTypeScriptIndexMapSourceParams) {
ts/packages/cli/src/generation/typescript/generate.ts
+1
-1
@@ -12,7 +12,7 @@ type GenerateTypeScriptSourcesParams = {
12
banner: string;
13
emitSingleFile: boolean;
14
outputDir: string;
15
- importExtension: 'ts' | 'mjs';
15
+ importExtension: 'ts' | 'js';
16
};
17
18
export function generateTypeScriptSources(params: GenerateTypeScriptSourcesParams) {
ts/packages/cli/src/generation/typescript/transpile.ts
+1
-8
@@ -27,7 +27,7 @@ export function transpileTypeScriptSources({ sources, outputDir }: TranspileType
27
rootDir: outputDir,
28
declaration: true,
29
emitDeclarationOnly: false,
30
- noEmitOnError: false,
30
+ noEmitOnError: true,
31
} satisfies ts.CompilerOptions;
32
33
const virtualFileMap = new Map(
@@ -56,13 +56,6 @@ export function transpileTypeScriptSources({ sources, outputDir }: TranspileType
56
return ogGetSourceFile(filename, languageVersion, onError, shouldCreateNewSourceFile);
57
};
58
59
- // Override writeFile to emit .mjs files directly instead of .js
60
- const ogWriteFile = tsHost.writeFile;
61
- tsHost.writeFile = (fileName, data, writeByteOrderMark, onError, sourceFiles, info) => {
62
- const mjsFileName = fileName.replace(/\.js$/, '.mjs');
63
- return ogWriteFile(mjsFileName, data, writeByteOrderMark, onError, sourceFiles, info);
64
- };
65
-
59
const program = ts.createProgram(virtualFileNames, compilerOptions, tsHost);
60
const emitResult = program.emit();
61
ts/packages/cli/test/src/commands/ts/ts.generate.cmd.test.ts
+20
-16
@@ -191,8 +191,8 @@ describe('CLI: composio ts generate', () => {
191
* Auto-generated by Composio CLI. Do not modify manually.
192
*/
193
194
- import { GMAIL } from "./gmail.mjs"
195
- import { SLACK } from "./slack.mjs"
194
+ import { GMAIL } from "./gmail.js"
195
+ import { SLACK } from "./slack.js"
196
197
/**
198
* Map of Composio toolkits to actions.
@@ -432,8 +432,8 @@ describe('CLI: composio ts generate', () => {
432
* Auto-generated by Composio CLI. Do not modify manually.
433
*/
434
435
- import { GMAIL } from "./gmail.mjs"
436
- import { SLACK } from "./slack.mjs"
435
+ import { GMAIL } from "./gmail.js"
436
+ import { SLACK } from "./slack.js"
437
438
/**
439
* Map of Composio toolkits to actions.
@@ -638,8 +638,8 @@ describe('CLI: composio ts generate', () => {
638
* Auto-generated by Composio CLI. Do not modify manually.
639
*/
640
641
- import { GMAIL } from "./gmail.mjs"
642
- import { SLACK } from "./slack.mjs"
641
+ import { GMAIL } from "./gmail.js"
642
+ import { SLACK } from "./slack.js"
643
644
/**
645
* Map of Composio toolkits to actions.
@@ -722,12 +722,14 @@ describe('CLI: composio ts generate', () => {
722
const fileNames = files.map(file => path.basename(file));
723
724
// Should have both .ts and .js files
725
- const tsFiles = fileNames.filter(name => name.endsWith('.ts'));
726
- const mjsFiles = fileNames.filter(name => name.endsWith('.mjs'));
725
+ const tsFiles = fileNames.filter(
726
+ name => name.endsWith('.ts') && !name.endsWith('.d.ts')
727
+ );
728
+ const jsFiles = fileNames.filter(name => name.endsWith('.js'));
729
const dtsFiles = fileNames.filter(name => name.endsWith('.d.ts'));
730
731
expect(tsFiles.length).toBeGreaterThan(0);
730
- expect(mjsFiles.length).toBeGreaterThan(0);
732
+ expect(jsFiles.length).toBeGreaterThan(0);
733
expect(dtsFiles.length).toBeGreaterThan(0);
734
735
// Verify the files are valid TypeScript
@@ -753,17 +755,19 @@ describe('CLI: composio ts generate', () => {
755
const args = ['ts', 'generate'];
756
yield* cli(args);
757
756
- // Check if the output directory contains both .ts and .mjs files
758
+ // Check if the output directory contains both .ts and .js files
759
const files = yield* fs.readDirectory(generatedDir);
760
const fileNames = files.map(file => path.basename(file));
761
760
- // Should have both .ts and .mjs files since compiled is true by default for @composio/core/generated
761
- const tsFiles = fileNames.filter(name => name.endsWith('.ts'));
762
- const mjsFiles = fileNames.filter(name => name.endsWith('.mjs'));
762
+ // Should have both .ts and .js files since compiled is true by default for @composio/core/generated
763
+ const tsFiles = fileNames.filter(
764
+ name => name.endsWith('.ts') && !name.endsWith('.d.ts')
765
+ );
766
+ const jsFiles = fileNames.filter(name => name.endsWith('.js'));
767
const dtsFiles = fileNames.filter(name => name.endsWith('.d.ts'));
768
769
expect(tsFiles.length).toBeGreaterThan(0);
766
- expect(mjsFiles.length).toBeGreaterThan(0);
770
+ expect(jsFiles.length).toBeGreaterThan(0);
771
expect(dtsFiles.length).toBeGreaterThan(0);
772
})
773
);
@@ -814,8 +818,8 @@ describe('CLI: composio ts generate', () => {
818
* Auto-generated by Composio CLI. Do not modify manually.
819
*/
820
817
- import { GMAIL } from "./gmail.mjs"
818
- import { SLACK } from "./slack.mjs"
821
+ import { GMAIL } from "./gmail.js"
822
+ import { SLACK } from "./slack.js"
823
824
/**
825
* Map of Composio toolkits to actions.
ts/packages/core/pack/generated/index.js
renamed
ts/packages/core/package.json
+1
-1
@@ -82,7 +82,7 @@
82
},
83
"./generated": {
84
"types": "./generated/index.d.ts",
85
- "default": "./generated/index.mjs"
85
+ "default": "./generated/index.js"
86
}
87
},
88
"files": [