Skip to content

Commit 7aab0d4

Browse files
Fix React Server Components CVE vulnerabilities (#74)
* Fix React Server Components CVE vulnerabilities Updated dependencies to fix Next.js and React CVE vulnerabilities. The fix-react2shell-next tool automatically updated the following packages to their secure versions: - next - react-server-dom-webpack - react-server-dom-parcel - react-server-dom-turbopack All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com> * fix: prettier --------- Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com> Co-authored-by: Mateo <mathieu@playgrounds.network>
1 parent e2ad605 commit 7aab0d4

File tree

13 files changed

+113
-462
lines changed

13 files changed

+113
-462
lines changed

package-lock.json

Lines changed: 42 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/react": "^18.3.18",
3939
"autoprefixer": "^10.4.21",
4040
"lucide-react": "^0.460.0",
41-
"next": "^15.2.1",
41+
"next": "15.2.8",
4242
"nextra": "3.3.1",
4343
"nextra-docs-template": "0.0.11",
4444
"nextra-theme-docs": "3.3.1",

pages/docs/concepts/agent.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ Agents in Rig provide a high-level abstraction for working with LLMs, combining
1616
An Agent consists of:
1717

1818
1. **Base Components**
19-
2019
- Completion Model (e.g., GPT-4, Claude)
2120
- System Prompt (preamble)
2221
- Configuration (temperature, max tokens)
2322

2423
2. **Context Management**
25-
2624
- Static Context: Always available documents
2725
- Dynamic Context: RAG-based contextual documents
2826
- Vector Store Integration
@@ -142,13 +140,11 @@ Bear in mind that while prompt hooks are not blocking, it's generally advisable
142140
## Best Practices
143141

144142
1. **Context Management**
145-
146143
- Keep static context minimal and focused
147144
- Use dynamic context for large knowledge bases
148145
- Consider context window limitations
149146

150147
2. **Tool Integration**
151-
152148
- Prefer static tools for core functionality
153149
- Use dynamic tools for context-specific operations
154150
- Implement proper error handling in tools

pages/docs/concepts/completion.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,13 @@ let request = model.completion_request("prompt")
135135
### Request Components
136136

137137
1. **Core Elements**
138-
139138
- Prompt text
140139
- System preamble
141140
- Chat history
142141
- Temperature
143142
- Max tokens
144143

145144
2. **Context Management**
146-
147145
- Document attachments
148146
- Metadata handling
149147
- Formatting controls
@@ -242,13 +240,11 @@ impl CompletionModel for CustomProvider {
242240
## Best Practices
243241

244242
1. **Interface Selection**
245-
246243
- Use `Prompt` for simple interactions
247244
- Use `Chat` for conversational flows
248245
- Use `Completion` for fine-grained control
249246

250247
2. **Error Handling**
251-
252248
- Handle provider-specific errors
253249
- Implement graceful fallbacks
254250
- Log raw responses for debugging

pages/docs/concepts/embeddings.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,11 @@ qdrant.insert_documents(embeddings).await?;
9292
## Best Practices
9393

9494
1. **Document Preparation**
95-
9695
- Clean and normalize text before embedding
9796
- Consider chunking large documents
9897
- Remove irrelevant embedding content
9998

10099
2. **Error Handling**
101-
102100
- Handle provider API errors gracefully
103101
- Validate vector dimensions
104102
- Check for empty or invalid input

pages/docs/concepts/extractors.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,11 @@ impl<T: JsonSchema + for<'a> Deserialize<'a> + Serialize + Send + Sync> Tool for
130130
## Best Practices
131131

132132
1. **Structure Design**
133-
134133
- Use `Option<T>` for optional fields
135134
- Keep structures focused and minimal
136135
- Document field requirements
137136

138137
2. **Error Handling**
139-
140138
- Handle both extraction and deserialization errors
141139
- Provide fallback values where appropriate
142140
- Log extraction failures for debugging

pages/docs/concepts/loaders.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,11 @@ impl<T: Loadable> Loadable for Result<T, PdfLoaderError> {
130130
## Best Practices
131131

132132
1. **Error Handling**
133-
134133
- Use `ignore_errors()` for fault-tolerant processing
135134
- Handle specific error types when needed
136135
- Log errors appropriately
137136

138137
2. **Resource Management**
139-
140138
- Process files in batches
141139
- Consider memory usage with large files
142140
- Clean up temporary resources

pages/docs/integrations/model_providers/openai.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ let embedder = client.embedding_model(openai::TEXT_EMBEDDING_3_LARGE);
5454
1. **Tool Calling**: OpenAI models support function calling through a specialized JSON format. The provider automatically handles conversion between Rig's tool definitions and OpenAI's expected format.
5555

5656
2. **Response Processing**: The provider implements special handling for:
57-
5857
- Tool/function call responses
5958
- System messages
6059
- Token usage tracking

pages/docs/integrations/vector_stores/in_memory.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,11 @@ match store.get_document::<MyDoc>("doc1") {
220220
## Best Practices
221221

222222
1. **Memory Management**:
223-
224223
- Monitor memory usage with large datasets
225224
- Consider chunking large document additions
226225
- Use cloud-based vector stores for production deployments
227226

228227
2. **Document Structure**:
229-
230228
- Keep documents serializable
231229
- Avoid extremely large arrays
232230
- Consider using custom ID generation for meaningful identifiers
@@ -239,13 +237,11 @@ match store.get_document::<MyDoc>("doc1") {
239237
## Limitations
240238

241239
1. **Scalability**:
242-
243240
- Limited by available RAM
244241
- No persistence between program runs
245242
- Single-machine only
246243

247244
2. **Features**:
248-
249245
- No built-in indexing optimizations
250246
- No metadata filtering
251247
- No automatic persistence

pages/docs/integrations/vector_stores/lancedb.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,10 @@ impl RecordBatchDeserializer for Vec<RecordBatch> {
206206
## Best Practices
207207

208208
1. **Index Creation**:
209-
210209
- Minimum of 256 rows required for IVF-PQ indexing
211210
- Choose appropriate distance metrics based on your use case
212211

213212
2. **Schema Design**:
214-
215213
- Use appropriate data types for columns
216214
- Consider embedding dimension requirements
217215

@@ -222,12 +220,10 @@ impl RecordBatchDeserializer for Vec<RecordBatch> {
222220
## Limitations and Considerations
223221

224222
1. **Data Size**:
225-
226223
- Local storage is suitable for smaller datasets
227224
- Use cloud storage for large-scale deployments
228225

229226
2. **Index Requirements**:
230-
231227
- IVF-PQ index requires minimum dataset size
232228
- Consider memory requirements for large indices
233229

0 commit comments

Comments
 (0)