Skip to content

Исправить composio-direct для Composio API v3.1#195

Merged
xlabtg merged 4 commits into
xlabtg:mainfrom
konard:issue-194-0cc7c6a386fc
Jun 21, 2026
Merged

Исправить composio-direct для Composio API v3.1#195
xlabtg merged 4 commits into
xlabtg:mainfrom
konard:issue-194-0cc7c6a386fc

Conversation

@konard

@konard konard commented Jun 21, 2026

Copy link
Copy Markdown

Fixes #194

Причина

composio-direct все еще был ориентирован на старый https://backend.composio.dev/api/v3, хотя текущая документация и OpenAPI Composio указывают базовый URL https://backend.composio.dev/api/v3.1. Из-за этого активный плагин с валидным API key мог получать Unknown tool на execute-запросах.

Что изменено

  • Обновил default base_url, manifest, package version и документацию composio-direct на Composio API v3.1.
  • Добавил fallback для execute/multi_execute между парными маршрутами /api/v3 и /api/v3.1 при ошибке Unknown tool, чтобы старые явные конфигурации не ломались резко.
  • Добавил регрессионный тест: legacy /api/v3 при Unknown tool повторяет execute через текущий /api/v3.1.
  • Обновил существующие тесты маршрутов на /api/v3.1.
  • Обновил plugin lockfiles (dedust, evaa, stonfi, vk-full-admin) для устранения свежего падения Plugin Dependencies по high audit findings.

Как воспроизвести

До фикса сценарий с base_url: "https://backend.composio.dev/api/v3" и ответом Composio Unknown tool завершался ошибкой без попытки актуального v3.1 route.

Проверяющий тест:

node --test plugins/composio-direct/tests/index.test.js

Тест retries current v3.1 execute API when legacy v3 reports unknown tool сначала краснел на старой реализации, затем проходит после фикса.

Проверка

npm ci --loglevel=verbose
for pkg in plugins/*/package.json; do dir=$(dirname "$pkg"); if [ -f "$dir/package-lock.json" ]; then npm ci --ignore-scripts --no-audit --no-fund --prefix "$dir"; fi; done
for pkg in plugins/*/package.json; do dir=$(dirname "$pkg"); if [ -f "$dir/package-lock.json" ]; then npm ci --ignore-scripts --no-audit --no-fund --prefix "$dir" && npm audit --audit-level=high --prefix "$dir"; fi; done
node --test plugins/composio-direct/tests/index.test.js plugins/composio-direct/test/unit/composio-direct.test.js plugins/composio-direct/test/integration/composio-api.test.js
npm run validate
npm run lint
npm run typecheck
npm test
node scripts/build-sdk.mjs

npm run lint проходит с существующими warnings по другим файлам, без errors.

Ссылки

konard added 2 commits June 21, 2026 16:27
Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: xlabtg#194
@konard konard changed the title [WIP] The composio direct plugin does not work Исправить composio-direct для Composio API v3.1 Jun 21, 2026
@konard konard marked this pull request as ready for review June 21, 2026 16:47
@konard

konard commented Jun 21, 2026

Copy link
Copy Markdown
Author

Working session summary

Готово: исправление запушено в ветку issue-194-0cc7c6a386fc, PR переведен из draft и обновлен: #195

Что сделано:

  • composio-direct переведен на актуальный Composio API v3.1.
  • Добавлен двунаправленный fallback между /api/v3.1 и /api/v3 при ошибке Unknown tool.
  • Добавлен регрессионный тест на исходную проблему.
  • Обновлены README/GUIDE, manifest/package version до 1.9.1.
  • После падения Plugin Dependencies обновлены lockfile’ы у затронутых плагинов, чтобы закрыть high npm audit уязвимости.

Проверка:

  • Локально прошли npm run validate, npm run lint, npm run typecheck, npm test, node scripts/build-sdk.mjs.
  • Все свежие GitHub Actions на SHA 4a373ed35348770466341e0348422b68d46aff01 зеленые: CI, Plugin Dependencies, CodeQL, Deploy to Vercel.
  • Рабочее дерево чистое.

This summary was automatically extracted from the AI working session output.

@konard

konard commented Jun 21, 2026

Copy link
Copy Markdown
Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $18.553021

📊 Context and tokens usage:

  • 591.4K / 200K (296%) input tokens, 43.0K / 128K (34%) output tokens

Total: (591.4K + 10.7M cached) input tokens, 43.0K output tokens, $18.553021 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Thinking level: max (~31999 tokens)
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Repository (57999KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard

konard commented Jun 21, 2026

Copy link
Copy Markdown
Author

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@xlabtg xlabtg merged commit 88aee61 into xlabtg:main Jun 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The composio direct plugin does not work

2 participants