-
-
Notifications
You must be signed in to change notification settings - Fork 27
Agentic tools #39
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
Agentic tools #39
Conversation
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
- Delete system-prompt.txt (unused, replaced by prompts/prompts.ts) - Update tools.json to only document implemented tools (file, line-replace, shell, supabase, mcp-tools) - All system prompts now managed through: * prompts/prompts.ts (default) * prompts/fine-tuned.ts (enhanced) * prompts/optimized.ts (experimental) * prompt-library.ts (central registry) - Prompts accessible via Settings UI and programmatically via PromptLibrary - All prompts are dynamically injected with Supabase and environment context
Update system prompts to support all JavaScript/TypeScript-based frameworks: - Web frameworks: React, Vue, Svelte, Angular, Next.js, Astro, Qwik, TypeScript - Mobile frameworks: React Native, Expo, and other JS/TS mobile frameworks - Backend frameworks: Node.js, Express, and similar frameworks Changes: - prompts/prompts.ts: Replace framework restriction with comprehensive framework list - prompts/fine-tuned.ts: Replace framework restriction with comprehensive framework list - Keep technical WebContainer constraints (no native binaries, limited Python, etc.) This aligns with starter templates available in app/utils/constants.ts
Create new base-prompt.ts that contains core standards applicable to all projects: - Framework-agnostic universal guidelines - Code quality standards (TypeScript, error handling, security) - Validation and database best practices - Tool usage documentation - Artifact requirements - Response standards - Code organization patterns - Design and UX standards - Performance optimization - Testing mindset - Decision framework Update prompt-library.ts to include base prompt as 'Universal Standards (Core)' This provides a foundation that applies regardless of framework or project type. Prompts now available: - base: Universal Standards (Core) - framework-agnostic best practices - default: Default Prompt - comprehensive guidelines - enhanced: Fine Tuned Prompt - optimized for better results - optimized: Optimized Prompt - low token usage (experimental)
- Remove unused ArtifactsStore class from app/lib/stores/artifacts.ts - Consolidate artifact management into WorkbenchStore (single source of truth) - Add new prompt registry and alert store files - Update prompt library and chat API routes
- Change webcontainer setupWebContainerEventHandlers to static import - Remove dynamic import in workbench.ts for better code splitting - Maintains all existing functionality while improving bundle optimization
- Move Workbench component from main content area to right below the unified header container - Maintains all existing functionality while improving layout structure - Headers (CodeModeHeader/PreviewHeader) now directly precede the workbench content
- Move workbench back to its original position as a sibling to the chat in the main content area - Restore the intended side-by-side layout of chat and workbench - Headers remain at the top, followed by the flex container with chat and workbench
- Add dark:invert class to Netlify and Cloudflare SVG icons in PreviewHeader - Add dark:invert class to Netlify and Cloudflare SVG icons in DeployDialog - Vercel icons already had dark:invert class - All deployment platform icons now properly adapt to light/dark themes
…complete component specs
…nd improve spacing
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.
Changes made:
app/lib/api/chat-validation.ts– Request validation with typed errorsapp/routes/api.chat.ts– Categorized errors, proper HTTP status codesapp/lib/stores/artifacts.ts– Artifacts management extractedapp/lib/stores/alerts.ts– Alerts management extractedapp/lib/common/prompt-registry.ts– Unified prompt system with versioning and statsapp/lib/common/prompt-library.ts– Updated to use new registryapp/lib/stores/artifact-versions.ts– Version tracking for artifacts and filesapp/components/chat/ContextIndicator.tsx– Collapsible context indicatorapp/components/chat/AssistantMessage.tsx– Integrated new indicatorapp/lib/common/prompts/system-prompt-universal.ts– Multi-framework