@devries-cameron20 / composio-1 / commits / db58d9f8d
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(ci): include Python release notes in client updates

jkomyno committed Nov 10, 2026 at 00:30 UTC db58d9f8db0ac6bda48e6a129a90f05c0abe57c8
2 files changed +19 -3
scripts/update-composio-client.ts
+7 -2
@@ -138,13 +138,13 @@ export function planUpdates(
138 throw new Error(`Refusing to downgrade a current or pending client pin to ${target}`);
139 }
140 const changed: Record<string, string> = {};
141 + const releases: string[] = [];
142 if (current[0] !== target) {
143 changed['pnpm-workspace.yaml'] = required(files, 'pnpm-workspace.yaml').replace(
144 catalogPattern,
145 `$1${target}$3`
146 );
146 - changed['.changeset/composio-client-update.md'] =
147 - `---\n'@composio/core': patch\n---\n\nUpdate @composio/client to ${target} to include the latest API changes.\n`;
147 + releases.push("'@composio/core': patch");
148 const changelog = required(files, 'ts/packages/cli/CHANGELOG.md');
149 const header = '# @composio/cli\n\n## Unreleased\n';
150 const marker = '### Patch Changes\n';
@@ -161,10 +161,15 @@ export function planUpdates(
161 changed['ts/packages/cli/CHANGELOG.md'] = `${header}${updated}${changelog.slice(end)}`;
162 }
163 if (current[1] !== target) {
164 + releases.push("'@composio/python-sdk': patch");
165 for (const path of ['python/pyproject.toml', 'python/setup.py']) {
166 changed[path] = required(files, path).replace(pythonPattern, `$1${target}$3`);
167 }
168 }
169 + if (releases.length > 0) {
170 + changed['.changeset/composio-client-update.md'] =
171 + `---\n${releases.join('\n')}\n---\n\nUpdate the API client dependencies to ${target} to include the latest API changes.\n`;
172 + }
173 return { changed, typescript: current[0] !== target, python: current[1] !== target };
174 }
175
test/composio-client-update.test.ts
+12 -1
@@ -133,6 +133,9 @@ test('planning updates owned pins, SDK changeset and CLI release note once', ()
133 expect(plan.changed['python/setup.py']).toContain('composio-client==2.0.1');
134 expect(plan.changed['python/pyproject.toml']).toContain('composio-client==2.0.1');
135 expect(plan.changed['.changeset/composio-client-update.md']).toContain("'@composio/core': patch");
136 + expect(plan.changed['.changeset/composio-client-update.md']).toContain(
137 + "'@composio/python-sdk': patch"
138 + );
139 expect(plan.changed['.changeset/composio-client-update.md']).not.toContain("'@composio/cli':");
140 expect(plan.changed['ts/packages/cli/CHANGELOG.md']).toContain('- Existing note.');
141 expect(planUpdates({ ...files, ...plan.changed }, '2.0.1').changed).toEqual({});
@@ -190,7 +193,15 @@ test('Python-only catchup does not create a TypeScript release', () => {
193 );
194 expect(plan.typescript).toBe(false);
195 expect(plan.python).toBe(true);
193 - expect(Object.keys(plan.changed).sort()).toEqual(['python/pyproject.toml', 'python/setup.py']);
196 + expect(Object.keys(plan.changed).sort()).toEqual([
197 + '.changeset/composio-client-update.md',
198 + 'python/pyproject.toml',
199 + 'python/setup.py',
200 + ]);
201 + expect(plan.changed['.changeset/composio-client-update.md']).toContain(
202 + "'@composio/python-sdk': patch"
203 + );
204 + expect(plan.changed['.changeset/composio-client-update.md']).not.toContain("'@composio/core':");
205 });
206
207 test('artifact transfer rejects unexpected paths, duplicates and advancing next before writes', async () => {