Add collaborative markdown document tools#4530
Open
samwillis wants to merge 3 commits into
Open
Conversation
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
dbd12ec to
828ffa0
Compare
828ffa0 to
319eba2
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## samwillis/agents-streaming-tool-calls #4530 +/- ##
=========================================================================
+ Coverage 55.05% 56.60% +1.55%
=========================================================================
Files 318 360 +42
Lines 37016 40834 +3818
Branches 10547 11241 +694
=========================================================================
+ Hits 20379 23116 +2737
- Misses 16604 17661 +1057
- Partials 33 57 +24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Contributor
Electric Agents Mobile BuildLocal mobile checks ran for commit The EAS Android preview build was skipped because the |
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
Stacked on #4555. Adds collaborative markdown documents for Electric Agents. This PR consumes the streaming tool-call hook from #4555, but keeps the markdown document implementation in a separate layer.
What this adds:
documentmanifest entry for markdown docs with:text/markdownapplication/vnd.electric-agents.markdown-yjsy-durable-streamsmarkdownY.Doc, keep it synced through@durable-streams/y-durable-streams, and append binary Yjs updates to durable streams.Architecture notes:
Y.Doc; the Yjs provider writes updates to the durable stream.onArgsDeltahook.Validation
pnpm --filter @electric-ax/agents-runtime typecheckpnpm --filter @electric-ax/agents-server-ui typecheckpnpm --filter @electric-ax/agents typecheckpnpm --filter @electric-ax/agents-server typecheckpnpm --filter @electric-ax/agents-runtime exec vitest run test/markdown-docs-tools.test.ts test/outbound-bridge.test.ts test/pi-adapter.test.tspnpm --filter @electric-ax/agents-runtime exec vitest run test/runtime-dsl.test.tspnpm --filter @electric-ax/agents exec vitest run test/spawn-worker-tool.test.ts test/horton-tool-composition.test.ts test/horton-system-prompt.test.tspnpm --filter @electric-ax/agents-server exec vitest run test/electric-agents-routes.test.ts test/electric-agents-status.test.ts test/electric-agents-manager-write-validation.test.tspnpm --filter @electric-ax/agents-server-ui exec vitest run src/components/views/MarkdownDocumentView.test.ts src/lib/workspace/workspaceReducer.test.tspnpm --filter @electric-examples/yjs run typecheckpnpm --filter @electric-ax/agents-mobile run ci:checkgit diff --check