Commit Graph

5396 Commits

Author SHA1 Message Date
Musthaq Ahamad f33ad41e42 Release: update version (#2378)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@composio/vercel@1.0.0 @composio/openai-agents@1.0.0 @composio/mastra@1.0.0 @composio/llamaindex@1.0.0 @composio/langchain@1.0.0 @composio/google@1.0.0 @composio/core@0.5.0 @composio/cloudflare@1.0.0 @composio/claude-agent-sdk@1.0.0 @composio/anthropic@1.0.0
2026-01-13 14:05:47 +05:30
Sushmithamallesh 1342d469ca chore: trigger fumadocs build 2026-01-13 00:11:51 -08:00
Sushmithamallesh e5dad0c78f chore: trigger fumadocs rebuild 2026-01-13 00:02:38 -08:00
Malay Vasa 313ece7cc4 fix(tabs): remove unnecessary background class from TabsContent component 2026-01-13 13:22:13 +05:30
Malay Vasa 56117646b4 Fumadocs: refine dark theme and hover styles 2026-01-13 13:14:06 +05:30
Alberto Schiabel b28c2d7bb1 fix(core): support v1, v2, v3 in composio.triggers.verifyWebhooks (#2361)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
2026-01-13 13:06:03 +05:30
Alberto Schiabel ded64beb75 feat(ts): support Cloudflare Workers + refactor build pipeline with tsdown + introduce e2e tests (#2360)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
2026-01-13 13:02:58 +05:30
devin-ai-integration[bot] 16f17459b7 docs: hide labs/tool_router/session endpoint from API reference (#2376)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: himanshu@composio.dev <himanshu@composio.dev>
2026-01-13 12:11:24 +05:30
Sushmithamallesh aa2b0d13c5 fix(fumadocs): add Twoslash setup for core docs
- toolkit-versioning.mdx: Remove non-existent toolkit.meta.version,
  add optional chaining for availableVersions
- user-management.mdx: Add stubs for user, organization, req, app,
  storeConnectionRequest, userCanSendMessages
- using-triggers.mdx: Add type stubs for NextApiRequest/Response,
  TriggerEvent, crypto import

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 21:15:11 -08:00
Sushmithamallesh 91683f7e98 fix(fumadocs): add Twoslash setup code for TypeScript validation
Add setup code with `// ---cut---` pattern to TypeScript code blocks
so they pass Twoslash type checking at build time.

Changes:
- Tool router docs: authentication, users-and-sessions, managing-multiple-accounts,
  manually-authenticating-users, tools-and-toolkits, using-custom-auth-configs,
  using-in-chat-authentication, white-labeling-authentication, beta-to-stable migration
- Core docs: fetching-tools, executing-tools, custom-tools, authenticating-tools,
  connected-accounts, custom-auth-configs, custom-auth-params, programmatic-auth-configs,
  mcp-quickstart, mcp-providers, mcp-server-management, toolkit-versioning
- Provider docs: anthropic, google, mastra, vercel, custom-providers/typescript
- Migration guides: new-sdk, toolkit-versioning
- Changelog files: fixed missing callouts and formatting

Also:
- Fixed doc bug: `callbackUri` -> `callbackUrl` in using-in-chat-authentication.mdx
- Fixed optional chaining for `toolkit.connection?.connectedAccount`
- Added dependencies for type checking: @anthropic-ai/claude-agent-sdk, @ai-sdk/mcp

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 21:15:11 -08:00
Sushmitha Mallesh 777b989ecf fix(fumadocs): fix PostHog initialization race condition (#2375) 2026-01-12 17:36:16 -08:00
Sushmithamallesh a2bdc64da1 Fix PostHog initialization when already loaded
Handle the case when posthog.__loaded is already true (e.g., during HMR
or React StrictMode remounts). Previously, the init block was skipped
but isInitialized was never set to true, preventing pageview tracking.

Now we check posthog.__loaded first and set isInitialized immediately
if PostHog is already initialized.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 17:22:08 -08:00
Sushmitha Mallesh 8c3eb75a47 Merge branch 'next' into claude/work-branch 2026-01-12 17:13:46 -08:00
Sushmithamallesh 145a249e1a fix(fumadocs): fix PostHog initialization race condition
- Add isInitialized state to track when PostHog is ready
- Check posthog.__loaded to prevent double initialization
- Only render pageview tracker after PostHog is loaded

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 17:09:49 -08:00
Sushmitha Mallesh 87b5f3cad2 feat(fumadocs): add PostHog analytics integration (#2372) 2026-01-12 16:58:57 -08:00
Sushmitha Mallesh a24f45ce54 Merge branch 'next' into feat/fumadocs-twoslash 2026-01-12 16:35:48 -08:00
Sushmitha Mallesh 32584923c3 Merge branch 'next' into claude/work-branch 2026-01-12 16:31:26 -08:00
Sushmitha Mallesh 8ae4b3fa6c docs(fumadocs): sync missing changelogs from fern (#2373) 2026-01-12 16:22:46 -08:00
Sushmithamallesh c3ca84a0f9 docs(fumadocs): sync missing changelogs from fern
Add 7 changelog entries that were added to fern after initial migration:
- 12-30-25-proxy-binary-data: Binary Data Support for Proxy Execute
- 12-30-25: Webhook Payload V3 announcement
- 12-31-25: Deprecating BEARER_TOKEN auth scheme
- 01-07-26: Consistent Error Response & Union Types
- 01-08-26-mcp-api-key-enforcement: Optional API Key for MCP
- 01-09-26: Tool Enum Name Shortening
- 01-12-26-tool-router-improvements: Tool Router improvements

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:37:13 -08:00
Sushmithamallesh 840435fc8e docs: update CLAUDE.md for default-on Twoslash
Updated documentation to reflect that Twoslash type checking is now
the default for all TypeScript blocks (explicitTrigger: false).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:08:08 -08:00
Sushmithamallesh 564d4e2fb3 feat(fumadocs): make Twoslash type checking the default
Changed explicitTrigger from true to false so ALL TypeScript code
blocks are validated at build time. This matches the industry
standard approach used by TypeScript's official docs.

Build will now fail if any TypeScript snippet has type errors,
ensuring documentation stays in sync with the SDK.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:07:40 -08:00
Sushmithamallesh 4248a1b93f revert: remove Twoslash annotations from docs content
Revert all content changes from the previous Twoslash implementation
to start fresh with a cleaner approach.

The Twoslash infrastructure remains in place (source.config.ts with
explicitTrigger: true), but content files are restored to their
original state without annotations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:06:04 -08:00
Sushmithamallesh d22f7ace0b feat(fumadocs): add Twoslash type checking to core docs pages
Added TypeScript type validation via Twoslash to:
- authenticating-tools.mdx (7 blocks)
- connected-accounts.mdx (8 blocks)
- custom-auth-configs.mdx (2 blocks)
- custom-auth-params.mdx (4 blocks)
- custom-tools.mdx (5 blocks)
- executing-tools.mdx (7 blocks)
- fetching-tools.mdx (6 blocks)
- quickstart.mdx (2 blocks)

Fixed type errors caught by Twoslash:
- connected-accounts: redirect_url property name
- executing-tools: file upload property name (filePath -> file)
- custom-auth-params: beforeExecute modifier signature

Uses // ---cut--- for hidden setup code and // @noErrors for
examples with external dependencies (Anthropic, Vercel AI SDK)
or complex Zod types.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:27:20 -08:00
Sushmithamallesh 49fd92e2de chore: resolve merge conflicts with next branch
Update next to 16.1.0 while keeping posthog-js dependency.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:14:14 -08:00
Sushmithamallesh f708f54a01 feat(fumadocs): add PostHog analytics integration
Add PostHog analytics to the documentation site for tracking pageviews
and user engagement. The integration is optional and only activates
when environment variables are configured.

- Add posthog-js dependency
- Create PostHogProvider component with automatic pageview tracking
- Wrap app layout with PostHogProvider
- Add PostHog env vars to .env.example

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:09:49 -08:00
Sushmithamallesh a5aa415ddc refactor: rename workflow from Fumadocs to Docs 2026-01-12 14:03:21 -08:00
Sushmithamallesh 1688803dee refactor: rename workflow to explicitly indicate TypeScript validation 2026-01-12 13:55:14 -08:00
Sushmithamallesh 515b83c2c6 docs: clarify Twoslash is TypeScript-only, Python needs separate pipeline 2026-01-12 13:53:06 -08:00
Sushmithamallesh 4311a17900 chore: remove test file and document Twoslash in CLAUDE.md 2026-01-12 13:50:42 -08:00
Sushmithamallesh c6de67025d fix: remove broken test block so CI passes 2026-01-12 13:49:13 -08:00
Sushmithamallesh 0f5bf5c514 test: add broken twoslash block to verify CI fails 2026-01-12 13:44:50 -08:00
Sushmitha Mallesh 54faa4cb46 Merge branch 'next' into feat/fumadocs-twoslash 2026-01-12 13:41:53 -08:00
Sushmithamallesh 1b91babad7 fix(fumadocs): add required themes config for rehypeCodeOptions 2026-01-12 13:34:04 -08:00
Sushmitha Mallesh 91ee305df5 fix(fumadocs): upgrade Next.js to 16.1 and fix Turbopack workspace warning (#2370) 2026-01-12 13:31:29 -08:00
Sushmithamallesh 43d9e633ad feat(fumadocs): add Twoslash type checking for code blocks
- Add @shikijs/twoslash for compile-time TypeScript validation
- Install Composio SDK packages as devDependencies for import resolution
- Configure transformerTwoslash with explicitTrigger (opt-in per block)
- Add CI workflow to validate build on PRs
- Add test page to verify Twoslash functionality

Code blocks with ```ts twoslash will now be type-checked at build time.
Unexpected type errors will fail the build, blocking merge.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 13:30:37 -08:00
Sushmithamallesh c4f220d408 chore: add CODEOWNERS entry for fumadocs
Add @sushmithamallesh as codeowner for the fumadocs directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 13:18:24 -08:00
Sushmitha Mallesh c5c713ff51 Merge branch 'next' into docs/fix-next-build-errors 2026-01-12 13:15:31 -08:00
Sushmithamallesh a1adc435eb fix(fumadocs): upgrade Next.js to 16.1 and fix Turbopack workspace warning
- Upgrade Next.js from 16.0.10 to 16.1.0 (latest stable)
- Upgrade eslint-config-next to 16.1.0
- Add turbopack.root config to explicitly set project root

The fumadocs project uses bun independently from the parent monorepo's
pnpm workspaces. Without explicit turbopack.root, Next.js was detecting
both lockfiles and incorrectly inferring the workspace root.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 13:14:53 -08:00
Musthaq Ahamad 4a9167d768 Update tool router sdk docs (#2369) 2026-01-12 21:13:27 +05:30
Musthaq Ahamad 3c63b99b6b Release: update version (#2367)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@composio/openai-agents@0.4.0 @composio/openai@0.4.0 @composio/vercel@0.4.0 @composio/mastra@0.4.0 @composio/llamaindex@0.4.0 @composio/langchain@0.4.0 @composio/google@0.4.0 @composio/core@0.4.0 @composio/cloudflare@0.4.0 @composio/claude-agent-sdk@0.4.0 @composio/anthropic@0.4.0 v0.10.5
2026-01-12 20:52:23 +05:30
Musthaq Ahamad c7e121706f Fix. Use dedicated tools endpoint for tool router (#2368) 2026-01-12 20:37:54 +05:30
Alberto Schiabel 37a89abe57 feat(ts): upgrade Vercel provider to support AI v6 (#2314)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
2026-01-12 18:24:28 +05:30
Alberto Schiabel 2f879e8486 core(py): add auto_upload_download_files boolean flag to Composio() (#2334)
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
2026-01-12 16:31:29 +05:30
Musthaq Ahamad 5d05d0b92a Fix pin python client dependency in py SDK (#2365) v0.10.4 2026-01-12 16:19:23 +05:30
Samvit Jatia 33b2404765 docs: add changelog for tool enum name shortening (#2358) 2026-01-11 14:46:23 +05:30
Samvit Jatia 3c6bf551f7 Revert "docs: add changelog for tool enum name shortening" (#2363) 2026-01-11 14:46:13 +05:30
Samvit Jatia 09bf2d8c64 Revert "docs: add changelog for tool enum name shortening" 2026-01-11 11:52:51 +05:30
sjd9021 06b95dc320 docs: fix duplicate toolkit prefixes in changelog enum names
Addresses haxzie's review comment - removed duplicate toolkit prefixes
like DATABRICKS_DATABRICKS_... -> DATABRICKS_...
2026-01-10 14:36:00 +00:00
Samvit Jatia 621d15cf84 docs: add changelog for tool enum name shortening (#2357) 2026-01-10 20:01:06 +05:30
sjd9021 7f24f983ca docs: fix duplicate toolkit prefixes in changelog enum names
Addresses haxzie's review comment - removed duplicate toolkit prefixes
like DATABRICKS_DATABRICKS_... -> DATABRICKS_...
2026-01-10 13:31:54 +05:30