-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Phase 2 (AI Core) + Phase 3 (Preview & Editing) #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1ea27f9
feat: add Rust backend for sidecar, AI streaming, and hardware detection
Szymon0C ef4b558
feat: add system prompts for generation and editing
Szymon0C 40986bc
feat: add AI and chat stores with streaming hook
Szymon0C a971a5f
feat: add ChatPanel, ChatMessage, and ChatInput components
Szymon0C 19da4bc
feat: wire ChatPanel into ProjectPage with basic iframe preview
Szymon0C 17d31b5
feat: add sidecar setup script and bundle config
Szymon0C 1c2e058
Add Phase 3 Preview & Editing implementation plan
Szymon0C 8ca3e3a
feat: add editor store for edit mode, viewport, and section selection
Szymon0C e1b24cb
feat: add iframe helper script for section detection and edit overlays
Szymon0C d7f83d5
feat: add iframe bridge with typed postMessage protocol
Szymon0C 2db411b
feat: add HTML section parser for extract/replace by data-offpage-id
Szymon0C 401999c
feat: add PreviewFrame component with iframe bridge and viewport sizing
Szymon0C 956fe84
feat: add PreviewToolbar with viewport and edit mode toggles
Szymon0C b5b3208
feat: add InlineEditBar for section-level AI editing prompts
Szymon0C 08d1965
feat: add generateSection to useAiStream for inline section editing
Szymon0C a20334f
feat: wire PreviewFrame, toolbar, and InlineEditBar into ProjectPage
Szymon0C 1a8c04c
feat: add snapshot creation after chat edits and generation
Szymon0C 8645827
fix: apply CodeRabbit review fixes for PR #4
Szymon0C File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,6 @@ dist-ssr | |
|
|
||
| # OS files | ||
| Thumbs.db | ||
|
|
||
| # Sidecar binaries (downloaded, not committed) | ||
| src-tauri/binaries/ | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| LLAMA_VERSION="b5460" | ||
| BINARIES_DIR="src-tauri/binaries" | ||
| mkdir -p "$BINARIES_DIR" | ||
|
|
||
| TARGET=$(rustc --print host-triple 2>/dev/null || echo "unknown") | ||
|
|
||
| echo "Detected target: $TARGET" | ||
| echo "Setting up llama-server for Offpage..." | ||
|
|
||
| case "$TARGET" in | ||
| aarch64-apple-darwin) | ||
| ARCHIVE="llama-${LLAMA_VERSION}-bin-macos-arm64.tar.gz" | ||
| URL="https://github.com/ggml-org/llama.cpp/releases/download/${LLAMA_VERSION}/${ARCHIVE}" | ||
| ;; | ||
| x86_64-apple-darwin) | ||
| ARCHIVE="llama-${LLAMA_VERSION}-bin-macos-x64.tar.gz" | ||
| URL="https://github.com/ggml-org/llama.cpp/releases/download/${LLAMA_VERSION}/${ARCHIVE}" | ||
| ;; | ||
| x86_64-pc-windows-msvc) | ||
| ARCHIVE="llama-${LLAMA_VERSION}-bin-win-vulkan-x64.zip" | ||
| URL="https://github.com/ggml-org/llama.cpp/releases/download/${LLAMA_VERSION}/${ARCHIVE}" | ||
| ;; | ||
| *) | ||
| echo "Unsupported platform: $TARGET" | ||
| exit 1 | ||
| ;; | ||
| esac | ||
|
|
||
| DEST="$BINARIES_DIR/llama-server-$TARGET" | ||
| if [ "$TARGET" = "x86_64-pc-windows-msvc" ]; then | ||
| DEST="${DEST}.exe" | ||
| fi | ||
|
|
||
| if [ -f "$DEST" ]; then | ||
| echo "llama-server already exists at $DEST" | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "Downloading $URL..." | ||
| TMP_DIR=$(mktemp -d) | ||
| curl -L -o "$TMP_DIR/$ARCHIVE" "$URL" | ||
|
|
||
| echo "Extracting..." | ||
| case "$ARCHIVE" in | ||
| *.tar.gz) | ||
| tar -xzf "$TMP_DIR/$ARCHIVE" -C "$TMP_DIR" | ||
| cp "$TMP_DIR/build/bin/llama-server" "$DEST" | ||
| ;; | ||
| *.zip) | ||
| unzip -o "$TMP_DIR/$ARCHIVE" -d "$TMP_DIR/extracted" | ||
| cp "$TMP_DIR/extracted/build/bin/llama-server.exe" "$DEST" | ||
| ;; | ||
| esac | ||
|
|
||
| chmod +x "$DEST" | ||
| rm -rf "$TMP_DIR" | ||
|
|
||
| echo "llama-server installed at $DEST" | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.