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, 23:15 UTC
fix: remove `--active` flag from `uv run ...` and add dump generated types into `composio/generated`
angrybayblade committed
Jun 30, 2025 at 12:13 UTC
e9eac7fe34d5fcd5f8c6d425be6c23d24377be40
3 files changed
+8
-5
ts/packages/cli/src/commands/py/commands/py.generate.cmd.ts
+1
-1
@@ -86,7 +86,7 @@ export function generatePythonTypeStubs({ outputOpt }: GetCmdParams<typeof _pyCm
86
yield* Option.isNone(outputOpt)
87
? Console.log(
88
'✅ Type stubs generated successfully.\n' +
89
- 'You can now import generated types via `from composio.<toolkit_name> import <TOOLKIT_NAME>`.\n'
89
+ 'You can now import generated types via `from composio.generated.<toolkit_name> import <TOOLKIT_NAME>`.\n'
90
)
91
: Console.log(
92
`✅ Type stubs generated successfully.\n` +
ts/packages/cli/src/effects/find-composio-core-generated.ts
+6
-3
@@ -5,6 +5,7 @@ import {
5
JsPackageManagerDetector,
6
type PackageManager,
7
} from 'src/services/js-package-manager-detector';
8
+import type { PlatformError } from '@effect/platform/Error';
9
10
export class ComposioCorePkgNotFound extends Data.TaggedError('error/ComposioCorePkgNotFound')<{
11
readonly message: string;
@@ -48,7 +49,6 @@ export function pyFindComposioCoreGenerated(cwd: string) {
49
const [cmd, ...args] = [
50
'uv',
51
'run',
51
- '--active',
52
'python',
53
'-c',
54
'import composio; print(composio.__file__)',
@@ -61,11 +61,14 @@ export function pyFindComposioCoreGenerated(cwd: string) {
61
62
yield* Effect.logDebug({ stdout, cmd: [cmd, ...args].join(' ') });
63
64
- const composioCorePath = path.dirname(stdout);
64
+ const composioCorePath = `${path.dirname(stdout)}/generated`;
65
yield* Effect.logDebug({ composioCorePath });
66
67
+ const fs = yield* FileSystem.FileSystem;
68
+ yield* fs.makeDirectory(composioCorePath, { recursive: true });
69
+
70
return composioCorePath;
68
- }) satisfies Effect.Effect<string, ComposioCorePkgNotFound, unknown>;
71
+ }) satisfies Effect.Effect<string, ComposioCorePkgNotFound | PlatformError, unknown>;
72
}
73
74
/**
ts/packages/cli/test/__fixtures__/python-project-with-composio-core/setup.sh
+1
-1
@@ -8,6 +8,6 @@ uv venv
8
source .venv/bin/activate
9
uv pip install --requirements requirements.txt;
10
11
-uv run --active python -c "import composio; print (composio.__file__)"
11
+uv run python -c "import composio; print (composio.__file__)"
12
13
# deactivate