Repository navigation
Import the Chrome battery; name battery imports in the system prompt - #2
Merged
Merged
Conversation
…imports swarmrt now compiles chrome_launch, pdf_* and the audio_* codecs into a program only when the calling module imports Chrome / Pdf / Audio (skyblanket/swarmrt#6). browser.sw imports Chrome, and the sw-writing section of the system prompt names the imports so generated programs compile. On a swarmrt without lib/Chrome.sw the import is an unresolved-import warning and the build proceeds, so this is safe to merge first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016jS65kn5WxDsbVU2teBZZE
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks 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 |
6 tasks done
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.
Companion to skyblanket/swarmrt#6, which makes PDF, Chrome and the audio codecs batteries. swarmrt compiles them into a program only when the calling module imports
Pdf,ChromeorAudio, andswcrejects a call without the import.What changes
src/browser.swgetsimport Chrome. It is swarm-code's only battery call (chrome_launch).src/prompts.sw: the sw-writing section of the system prompt now names the imports. Programs the model writes withpdf_*,chrome_launchoraudio_*then compile.Merge order
Merge this first, or together with swarmrt#6.
main,import Chromeis an unresolved-import warning and the build proceeds, so this PR is safe on its own.mainwould fail to build without it.Testing
Against swarmrt#6:
The binary now contains the Chrome launcher but no PDF engine and no audio codecs (checked with
nm).🤖 Generated with Claude Code
https://claude.ai/code/session_016jS65kn5WxDsbVU2teBZZE
Generated by Claude Code