Repository navigation
Conversation
AI SDK and pi message-format conversions now live under agents/experimental/channels/projections, one entry point per vendor. piChannelsHarness moves from the channels example into agents/harness/pi. CONTEXT.md gains Client and Projection.
🦋 Changeset detectedLatest commit: a3d87a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🟢 agents import sizes: 4 entry points changed, no growth
Changed exports (12)
How this worksEach runtime export is bundled on its own, minified, and gzipped. Changes smaller than 100 B, or smaller than 1% and 1 KiB, are ignored. Growth over 10% or 5 KiB is marked 🔴. This report is informational and does not fail CI. The workflow artifact contains every measurement. Compared |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
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.
This PR gives each harness vendor's message-format conversion one home: a projection under
agents/experimental/channels/projections/, one entry point per vendor. It also moves the pi harness adapter out of the channels example intoagents/harness/pi.Why
harness/ai-sdk/turns.ts, mixed with turn logic. The pi ones lived inexamples/next/channels, built on a second projection borrowed from the pi harness example.src/projections/only changes paths.src/projections/, until the format is promoted to core, because they depend on the experimental Channels protocol types.aior@earendil-works/pi-ai.Public API Surface
toResponseChunks,toTranscriptMessage,toUIMessageChunk,toUIMessage,AiSdkProjectionOptionsagents/experimental/channels/projections/ai-sdkagents/harness/ai-sdk;AiSdkConversionOptionsis renamedtoTranscriptMessages,toToolOutputChunk,PiChunkProjectionagents/experimental/channels/projections/pipiChannelsHarness,PiChannelsHarnessOptionsagents/harness/piPiHarnessbehind the shared harness interface, moved from the channels exampleCode Changes
projections/ai-sdk.tsholds the conversion half of the oldturns.ts.turns.tskeepsanswerToolCall,awaitsInputandToolCallAnswer, which are harness turn logic.projections/pi.tsprojects entries straight toTranscriptMessage, so it no longer goes through the pi example'sPiMessage. That example keepsPiMessageas its own UI view model, since it runs without Channels.PiChunkProjectionkeeps the open parts of one run, because pi addresses blocks by index. It holds no harness state.harness/pi/channels.tsis the old example adapter with message formats delegated to the projection. The example'sPiAgentnow imports it fromagents/harness/pi.docs/CONTEXT.mdadds Client and Projection, narrows Harness adapter to sessions, operations and results, and stops using "client" for a participant. Stale "Adapter" wording for a Channel inchannel.tsand the Slack Channel is gone.Compatibility
agents/harness/ai-sdkno longer exports the AI SDK conversions orAiSdkConversionOptions. Import them fromagents/experimental/channels/projections/ai-sdk. Neither entry point has been released yet, and the pending changeset foragents/harness/ai-sdkis updated to match.