Repository navigation
feat(channels): add streaming channel components - #6485
Draft
MikeRyanDev wants to merge 1 commit into
Draft
MikeRyanDev wants to merge 1 commit into
MikeRyanDev wants to merge 1 commit into
Conversation
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/schema
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
BenTaylorDev
added a commit
that referenced
this pull request
Oct 5, 2026
) ## What Community packages (`community/<name>/`, added in #7616) release through CopilotKit's pipeline as `@copilotkit/*`, under their own scope and version line. That was decided for Svelte (#5905). The release tooling could not see them, so this PR teaches it to. | File | Change | |---|---| | `scripts/release/lib/versions.ts` | `findPackageDir` and `getPackagesForScope` only searched `packages/`. Both now use one `listPackages()` helper that searches `PACKAGE_ROOTS = ["packages", "community"]`, in that order. A missing `community/` is skipped. Adds `isCommunityPackage()` and `getCommunityPackagesForScopes()`. | | `scripts/release/build-community-packages.ts` (new) | For a `--scope` selector (a scope, `all` or `learning-preview`, via the existing `resolveScopes`), installs (`--frozen-lockfile`) and builds each community package in those scopes, inside its own folder. When there are none it logs and exits 0, which is every scope today. | | `.github/workflows/publish-release.yml` | One step after "Build packages" runs that script for the release's scope. The root build is `nx run-many -t build --projects=packages/**`; community packages are not workspace members, so without this `pnpm pack` would publish them with no `dist`. The scope reaches the script through `env:`. | | `scripts/release/lib/versions.community.test.ts` (new) | Covers community packages in the tooling. It has its own config mock, because adding a scope to `versions.test.ts`'s shared mock would leave that file's other fixtures incomplete. | | `community/README.md` | Adds a **Releases** section: the core team adds a community package's scope in `release.config.json`, the `ReleaseScope` type and the three workflow dropdowns that `verify-release-scope-dropdowns.sh` checks. | Not touched on purpose: `pack-workspace.ts`'s `packageDirectory` only packs the runtime's `workspace:` closure (`verify-runtime-package.ts`), which never contains a community package; `angular-artifacts.ts` is Angular-only; and `public-api-manifest.ts` intentionally covers `packages/`. No scope is added here. The Svelte scope comes when the package lands. ## Testing - **New tests** (`versions.community.test.ts`): 5 passed. They cover finding a scope's package under `community/`, reading its version from `versionSource`, bumping it without touching its exact `@copilotkit/core` pin, selecting only community packages for the separate build, and still working when `community/` does not exist. - **Mutation check:** with `PACKAGE_ROOTS` reduced to `["packages"]`, 4 of the 5 fail. The "does not exist" case passes either way, as a robustness test should. Restored afterwards. - **Full release-script suite** (`npx vitest run --config scripts/release/vitest.config.mts`, as `test_unit.yml` runs it): 242 passed, 1 failed. The failure is `learning-preview.test.ts > packs and installs Core against the exact Learning from this run` (`pnpm install --offline …` fails). It fails identically on clean `main` (`ad2965c174`) in the same local setup, so it comes from the environment, not this change. - **The script, run for real:** - `--scope monorepo`, `all` and `learning-preview`: "No community packages in scope …; nothing to build", exit 0. - `--scope bogus`: "Unknown scope: bogus", exit 1. No `--scope`: exit 1. - **End to end with a temporary scope** and a throwaway `community/fakepkg` (its own pnpm root, depending on published `@copilotkit/core` `1.77.0`, with a `build` that writes `dist/`): the script installed and built it, `dist/index.js` read `built against core 1.77.0`, and **`pnpm pack` produced a tarball containing `package/dist/index.js`**. The temporary scope and package were removed afterwards. - **Workflow:** `actionlint` is clean. `zizmor` with the repo config reports the same 41 findings (0 low, 0 medium, 0 high) as on `main`, and none mention the new step. `verify-release-scope-dropdowns.sh`: "OK: all release scope dropdowns match release.config.json". - `oxfmt --check` and `oxlint` on the changed files: clean. Pre-commit hooks: all passed. - **Overlap:** #6856 and #6485 also touch these files. Their conflict sets against this branch match their conflict sets against `main` (2 and 9), so this adds no new conflicts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Community packages can now be included in releases with their own scope and version line. The release process builds eligible community packages before publishing them. * **Documentation** * Added guidance on configuring community package releases and selecting the appropriate release scope. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@copilotkit/schemapackage, based directly on the schema work from CopilotKit/Intelligence#601, plus pure functional streaming JSON parsing and schema resolution.defineChannelComponentwith typed streaming props, serializable local state, stable named callbacks, persisted bindings, recovery, and same-message component updates.Why
Channel components currently wait for complete tool arguments before rendering and cannot durably update after user interaction. This change lets an agent progressively render complete portions of a tool call, keep small component state, recover callback bindings, and update the same Slack or Teams message.
Developer impact
streaming()action and render partial, ready, and failed component phases.@copilotkit/schema0.1.0, then Channels 0.9.0, then a compatible Runtime release.Validation
publint, ATTW, commit hooks, andgit diff --checkpassed.@copilotkit/channels-core:buildas flaky after a successful run; no validation task failed.Design docs
CHANNEL_COMPONENTS_V2.mdCHANNEL_COMPONENT_DECISION_LOG.md