Repository navigation
feat(learning): add opt-in product trajectories and bounded context - #7471
Draft
ataibarkai wants to merge 15 commits into
Draft
ataibarkai wants to merge 15 commits into
ataibarkai wants to merge 15 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Production Digest-Pinning AuditAll 42 services digest-pinned. Run 2026-09-27 19:49:03 PDT — 0 finding(s). |
@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/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: +45.9 kB (+2.61%) Total Size: 1.81 MB 📦 View Changed
ℹ️ View Unchanged
|
BenTaylorDev
added a commit
that referenced
this pull request
Oct 5, 2026
…#7611) ## What Adds a **Community frameworks** page at `/community-frameworks`. It says what "community" means for a community-built frontend package, and lists those frameworks: - tested with one stated `@copilotkit/core` version - updates are best effort, with no promised response time - releases on its own schedule, never blocking CopilotKit releases - each package's README is its setup guide; the CopilotKit documentation does not cover community packages **The framework table launches empty.** Svelte (#5905, for #310) gets a row once its package lands under `community/` (the folder and its contract landed in #7616), not while it is still a pull request. The page hides its page actions (the copy-prompt widget) with `hidePageActions: true`, as 13 other pages do. ## How readers reach it 1. **Root sidebar, "Other" section.** That section is hand-curated in `normalizeSidebarNav` (`src/lib/docs-render.tsx`), so a `meta.json` entry alone never shows it. The page is added there after "Open-source telemetry", using the same lookup as telemetry. It is also added to `docs/meta.json`, which is what puts it in the nav tree. 2. **Site search.** The search index only keeps pages that some sidebar can reach (`search-index-navigability.test.ts`), so (1) is what makes it searchable. 3. **Frontend picker.** A muted "Community frameworks →" link sits at the bottom of the picker, below the coming-soon channels. Clicking it sends `docs.frontend_picker.community_frameworks_clicked` (with `from_frontend` and `from_path`), so the clicks count as a demand signal for community frameworks. This is a low-stakes link, so it has no capture test. The existing `docs.frontend_selected` and `docs.framework_selected` names are unchanged. ## Testing All in a fresh worktree of current `main` with a clean `npm ci` of `showcase/shell-docs`: - `npm run pretest` (the generators): success - `tsc --noEmit`: success - `oxlint` on the two changed source files: 0 errors. The one warning (`isSection`, `docs-render.tsx:1558`) is not in this diff. - `oxfmt --check` on the changed source files: clean - `vitest run`: **1105 passed**, 3 failed. The 3 failures are all in `public-assets.test.ts`, which checks that PNGs start with the PNG signature. My worktree had no Git LFS objects, so the files were pointers: the test read `118 101 114 115` (`vers`, from `version https://git-lfs…`). CI fetches LFS, so these do not fail there. - Generated search index: contains `/docs/community-frameworks` → public href `/community-frameworks`. - **Rendered in the dev server** (`next dev --webpack`): - `GET /community-frameworks` returns 200 with title "Community frameworks", and every section is present. After the second commit: the heading reads "What community means", the table has a header and no rows, there is no #5905 link, and the copy-prompt widget (`docs-page-tools`) is gone. - The sidebar on `/webmcp` and on the page itself lists, under "Other": `/telemetry` "Open-source telemetry", then `/community-frameworks` "Community frameworks". - Frontend-scoped pages such as `/vue` have no "Other" section, so the picker link is the way in from there. - Conflicts: this branch adds no merge conflicts to the open PRs that touch the same files (#7471, #7231, #5842). Their conflict sets against this branch match their conflict sets against `main`. 🤖 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** * Added a “Community frameworks” link to the framework picker sidebar. Selecting it opens the community frameworks documentation and closes the picker. * Added a documentation page describing community package maintenance and release expectations, linking to package READMEs for setup, and explaining how to request or build a framework package. The frameworks table currently has no entries. * Added the page to the “Other” section of the documentation navigation. <!-- 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.
Change
Enable product trajectories with
learning={true}on the existing CopilotKit provider. Trusted actions, task text, bounded screen context and associated service requests/results travel through existing user-action annotations to the current agent thread. Capture waits for Intelligence discovery and an eligible thread; backend policy chooses Learning membership. Omission, false orenabled: falseleaves capture off. Applications need no frontend container assignment or per-handler tracking.@copilotkit/learningprovides standalone callback capture and a composable React provider. It records clicks, committed native/contenteditable edits, selected control state, supported command shortcuts, drag/drop labels and bounded public text selections. Previously observed field values make edits interpretable. Screen context is also an independent event at startup, navigation and meaningful screen changes, without an invented action ID. Context is deduplicated and limited to eight items / 2 KiB / 256 visited nodes; standalone changes are coalesced and capped.Requests retain filtered page/endpoint paths, method, status, duration and bounded public JSON fields. Separate response events observe JSON/text that the application consumes through fetch, or completed XHR JSON/text results. The recorder does not clone or consume fetch bodies to obtain extra data. Capture-local object aliases connect related IDs and redacted routes;
captureIdscopes their lifetime. Responses retain their initiating action/thread, while independent context uses the selected thread. Direct fetch/body continuations have an explicit parent request ID and heuristic attribution; arbitrary waits, timers, clones, streams and XHR response chains are not traced.Private/hidden controls, sensitive key/value patterns, headers, query strings, chat composers, synthetic actions and background requests are excluded. Active editing does not emit intermediate text through context changes. Request/response traversal and output, event rates, action references and the delivery queue are bounded. Text/names opt-outs disable body capture; request and response bodies also have independent switches. These filters do not anonymize arbitrary confidential prose or infer renamed private payload keys.
Includes the Product trajectories guide, provider references and an early-access CTA using the existing docs visibility gate. No AG-UI schema change is required. Companion Intelligence change preserves the enriched signals and historical references in prepared Learning input and provides the early ingress cutoff.
Validation
c75b6ee7e9: 285 Learning unit tests, 53 real Chromium tests and 31 focused React provider/routing tests pass. Explicit types, zero-warning scoped lint, formatting, Learning/React builds, publint and attw pass. Heavy checks ran serially, with one test worker and a 2 GiB React build heap. Guide MDX formatting/parser passes; no local full docs build is claimed.664c21edereplay: these exact 37 callbacks survive authenticated production handlers, migrated PGlite storage and two prepared Learning batches. With ingestion disabled, all 37 are acknowledged as dropped, with zero downstream queries or rows. A test annotation envelope supplies the source and thread; this does not exercise current React transport or a deployed service.590c149f/ Intelligence902a7d7a: immutable preview installation, consumer build/types, exact payload/thread storage and auth/ownership/deduplication/ingress restart controls. Those observations predate the current capture changes.Release scope
This remains a draft. Refreshed installable previews/images and shared-staging validation are still needed; no managed deployment or downstream Learning-model execution is claimed. Native changes and visible drag results do not establish persistence; temporal association does not establish causality. Context can be truncated, raw IDs are unavailable and aliases do not prove identity across unrelated services.
Docs use the existing shared-code visibility gate, not organization authorization; raw Markdown/search/LLM exports remain public. The provisional apply link still needs a working destination. These launch gaps remain explicit in the iteration artifact.