Skip to content

Commit 3415429

Browse files
waleedlatif1waleedlatificecrasher321greptile-apps[bot]
authored
v0.3.18: wand for system prompt, serializer required fields validation, deployed chat improvements (#843)
* fix(domain): fix telemetry endpoint, only add redirects for hosted version (#822) * fix(otel): change back telemetry endpoint * only add redirects for hosted version --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * fix(search-modal): fixed search modal keyboard nav (#823) * fixed search modal keyboard nav * break down file --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * improvement(docs): add base exec charge info to docs (#826) * improvement(doc-tags-subblock): use table for doc tags subblock in create_document tool for KB (#827) * improvement(doc-tags-subblock): use table for doc tags create doc tool in KB block * enforce max tags * remove red warning text * fix(bugs): fixed rb2b csp, fixed overly-verbose logs, fixed x URLs (#828) Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * feat(wand): subblock level wand configuration + migrate old wand usage to this (#829) * feat(wand): subblock level wand configuration + migrate old wand usage to this * fix build issue * Update apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/wand-prompt-bar/wand-prompt-bar.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * remove optional param * remove unused test file * address greptile comments * change to enum for gen type * fix caching issue --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * feat(tools): added hunter.io tools/block, added default values of first option in dropdowns to avoid operation selector issue, added descriptions & param validation & updated docs (#825) * feat(tools): added hunter.io tools/block, added default values of first option in dropdowns to avoid operation selector issue * fix * added description for all outputs, fixed param validation for tools * cleanup * add dual validation, once during serialization and once during execution * improvement(docs): add base exec charge info to docs (#826) * improvement(doc-tags-subblock): use table for doc tags subblock in create_document tool for KB (#827) * improvement(doc-tags-subblock): use table for doc tags create doc tool in KB block * enforce max tags * remove red warning text * fix(bugs): fixed rb2b csp, fixed overly-verbose logs, fixed x URLs (#828) Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * fixed serialization errors to appear like execution errors, also fixed contrast on cmdk modal * fixed required for tools, added tag dropdown for kb tags * fix remaining tools with required fields * update utils * update docs * fix kb tags * fix types for exa * lint * updated contributing guide + pr template * Test pre-commit hook with linting * Test pre-commit hook again * remove test files * fixed wealthbox tool * update telemetry endpoints --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com> * fix(deployed-chat): trigger blocks should not interfere with deployed chat exec (#832) * fix(deployed-chat): allow non-streaming responses in deployed chat, allow partial failure responses in deployed chat (#833) * fix(deployed-chat): allow non-streaming responses in deployed chat, allow partial failure responses in deployed chat * fix(csp): runtime variable resolution for CSP * cleanup --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * fix(sockets): duplicate block op should go through debounced path (#834) * improvement(sockets): add batch subblock updates for duplicate to clear queue faster (#835) * improvement(sockets): duplicate op should let addBlock take subblock values instead of separate looped op (#836) * improvement(sockets): addBlock can accept subblock values * cleanup unused code * fix(deploy-modal): break down deploy modal into separate components (#837) Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * fix(kb-tags): docs page kb tags ui (#838) * fix(kb-tags): docs page kb tags ui * remove console logs * remove console error * fix(chat-deploy): fixed form submission access patterns, fixed kb block filters (#839) * fix(chat-deploy): fixed form submission access patterns * fix(kb-block): fix tag filters component, removed unused component * fixed kb block subcomponents --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * fix(kb-tags): ui fixes, delete persistence for doc page header (#841) * fix deletion of tags + refactor next slot calc * fix kb tag filters count ui * fix(chat-deploy): added new image upload component, fixed some state issues with success view (#842) * fix(chat-deploy): added new image upload component, fixed some state issues with success view * cleanup --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> * feat(deploy-chat): added a logo upload for the chat, incr font size * fix(deploy-modal): break down deploy modal into separate components (#837) Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> --------- Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local> Co-authored-by: Vikhyath Mondreti <vikhyathvikku@gmail.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent bab4b9f commit 3415429

File tree

227 files changed

+9439
-7254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+9439
-7254
lines changed

.github/CONTRIBUTING.md

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ In addition, you will need to update the registries:
301301
302302
```typescript:/apps/sim/blocks/blocks/pinecone.ts
303303
import { PineconeIcon } from '@/components/icons'
304-
import { PineconeResponse } from '@/tools/pinecone/types'
305-
import { BlockConfig } from '../types'
304+
import type { BlockConfig } from '@/blocks/types'
305+
import type { PineconeResponse } from '@/tools/pinecone/types'
306306
307307
export const PineconeBlock: BlockConfig<PineconeResponse> = {
308308
type: 'pinecone',
@@ -313,13 +313,58 @@ In addition, you will need to update the registries:
313313
bgColor: '#123456',
314314
icon: PineconeIcon,
315315
316-
// If this block requires OAuth authentication
317-
provider: 'pinecone',
318-
319-
// Define subBlocks for the UI configuration
320316
subBlocks: [
321-
// Block configuration options
317+
{
318+
id: 'operation',
319+
title: 'Operation',
320+
type: 'dropdown',
321+
layout: 'full',
322+
required: true,
323+
options: [
324+
{ label: 'Generate Embeddings', id: 'generate' },
325+
{ label: 'Search Text', id: 'search_text' },
326+
],
327+
value: () => 'generate',
328+
},
329+
{
330+
id: 'apiKey',
331+
title: 'API Key',
332+
type: 'short-input',
333+
layout: 'full',
334+
placeholder: 'Your Pinecone API key',
335+
password: true,
336+
required: true,
337+
},
322338
],
339+
340+
tools: {
341+
access: ['pinecone_generate_embeddings', 'pinecone_search_text'],
342+
config: {
343+
tool: (params: Record<string, any>) => {
344+
switch (params.operation) {
345+
case 'generate':
346+
return 'pinecone_generate_embeddings'
347+
case 'search_text':
348+
return 'pinecone_search_text'
349+
default:
350+
throw new Error('Invalid operation selected')
351+
}
352+
},
353+
},
354+
},
355+
356+
inputs: {
357+
operation: { type: 'string', description: 'Operation to perform' },
358+
apiKey: { type: 'string', description: 'Pinecone API key' },
359+
searchQuery: { type: 'string', description: 'Search query text' },
360+
topK: { type: 'string', description: 'Number of results to return' },
361+
},
362+
363+
outputs: {
364+
matches: { type: 'any', description: 'Search results or generated embeddings' },
365+
data: { type: 'any', description: 'Response data from Pinecone' },
366+
usage: { type: 'any', description: 'API usage statistics' },
367+
},
323368
}
324369
```
325370

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,25 @@
1-
## Description
2-
3-
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
4-
5-
Fixes # (issue)
6-
7-
## Type of change
8-
9-
Please delete options that are not relevant.
10-
11-
- [ ] Bug fix (non-breaking change which fixes an issue)
12-
- [ ] New feature (non-breaking change which adds functionality)
13-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14-
- [ ] Documentation update
15-
- [ ] Security enhancement
16-
- [ ] Performance improvement
17-
- [ ] Code refactoring (no functional changes)
18-
19-
## How Has This Been Tested?
20-
21-
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
22-
23-
## Checklist:
24-
25-
- [ ] My code follows the style guidelines of this project
26-
- [ ] I have performed a self-review of my own code
27-
- [ ] I have commented my code, particularly in hard-to-understand areas
28-
- [ ] I have added tests that prove my fix is effective or that my feature works
29-
- [ ] All tests pass locally and in CI (`bun run test`)
30-
- [ ] My changes generate no new warnings
31-
- [ ] Any dependent changes have been merged and published in downstream modules
32-
- [ ] I have updated version numbers as needed (if needed)
1+
## Summary
2+
Brief description of what this PR does and why.
3+
4+
Fixes #(issue)
5+
6+
## Type of Change
7+
- [ ] Bug fix
8+
- [ ] New feature
9+
- [ ] Breaking change
10+
- [ ] Documentation
11+
- [ ] Other: ___________
12+
13+
## Testing
14+
How has this been tested? What should reviewers focus on?
15+
16+
## Checklist
17+
- [ ] Code follows project style guidelines
18+
- [ ] Self-reviewed my changes
19+
- [ ] Tests added/updated and passing
20+
- [ ] No new warnings introduced
3321
- [ ] I confirm that I have read and agree to the terms outlined in the [Contributor License Agreement (CLA)](./CONTRIBUTING.md#contributor-license-agreement-cla)
3422

35-
## Security Considerations:
36-
37-
- [ ] My changes do not introduce any new security vulnerabilities
38-
- [ ] I have considered the security implications of my changes
39-
40-
## Additional Information:
41-
42-
Any additional information, configuration or data that might be necessary to reproduce the issue or use the feature.
23+
## Screenshots/Videos
24+
<!-- If applicable, add screenshots or videos to help explain your changes -->
25+
<!-- For UI changes, before/after screenshots are especially helpful -->

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p align="center">
66
<a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache-2.0"></a>
77
<a href="https://discord.gg/Hr4UWYEcTT"><img src="https://img.shields.io/badge/Discord-Join%20Server-7289DA?logo=discord&logoColor=white" alt="Discord"></a>
8-
<a href="https://x.com/simstudioai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
8+
<a href="https://x.com/simdotai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
99
<a href="https://github.com/simstudioai/sim/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome"></a>
1010
<a href="https://docs.sim.ai"><img src="https://img.shields.io/badge/Docs-visit%20documentation-blue.svg" alt="Documentation"></a>
1111
</p>

apps/docs/content/docs/execution/advanced.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,18 @@ Sim automatically calculates costs for all AI model usage:
136136

137137
### How Costs Are Calculated
138138

139+
Every workflow execution includes two cost components:
140+
141+
**Base Execution Charge**: $0.001 per execution
142+
143+
**AI Model Usage**: Variable cost based on token consumption
139144
```javascript
140-
cost = (inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000
145+
modelCost = (inputTokens × inputPrice + outputTokens × outputPrice) / 1,000,000
146+
totalCost = baseExecutionCharge + modelCost
141147
```
142148

143149
<Callout type="info">
144-
Prices are per million tokens. The calculation divides by 1,000,000 to get the actual cost.
150+
AI model prices are per million tokens. The calculation divides by 1,000,000 to get the actual cost. Workflows without AI blocks only incur the base execution charge.
145151
</Callout>
146152

147153
### Pricing Options

apps/docs/content/docs/tools/airtable.mdx

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ Read records from an Airtable table
7979

8080
#### Output
8181

82-
| Parameter | Type |
83-
| --------- | ---- |
84-
| `records` | string |
85-
| `metadata` | string |
86-
| `totalRecords` | string |
82+
| Parameter | Type | Description |
83+
| --------- | ---- | ----------- |
84+
| `records` | json | Retrieved record data |
85+
| `record` | json | Single record data |
86+
| `metadata` | json | Operation metadata |
8787

8888
### `airtable_get_record`
8989

@@ -100,10 +100,11 @@ Retrieve a single record from an Airtable table by its ID
100100

101101
#### Output
102102

103-
| Parameter | Type |
104-
| --------- | ---- |
105-
| `record` | string |
106-
| `metadata` | string |
103+
| Parameter | Type | Description |
104+
| --------- | ---- | ----------- |
105+
| `records` | json | Retrieved record data |
106+
| `record` | json | Single record data |
107+
| `metadata` | json | Operation metadata |
107108

108109
### `airtable_create_records`
109110

@@ -119,10 +120,11 @@ Write new records to an Airtable table
119120

120121
#### Output
121122

122-
| Parameter | Type |
123-
| --------- | ---- |
124-
| `records` | string |
125-
| `metadata` | string |
123+
| Parameter | Type | Description |
124+
| --------- | ---- | ----------- |
125+
| `records` | json | Retrieved record data |
126+
| `record` | json | Single record data |
127+
| `metadata` | json | Operation metadata |
126128

127129
### `airtable_update_record`
128130

@@ -140,11 +142,11 @@ Update an existing record in an Airtable table by ID
140142

141143
#### Output
142144

143-
| Parameter | Type |
144-
| --------- | ---- |
145-
| `record` | string |
146-
| `metadata` | string |
147-
| `updatedFields` | string |
145+
| Parameter | Type | Description |
146+
| --------- | ---- | ----------- |
147+
| `records` | json | Retrieved record data |
148+
| `record` | json | Single record data |
149+
| `metadata` | json | Operation metadata |
148150

149151
### `airtable_update_multiple_records`
150152

@@ -160,33 +162,14 @@ Update multiple existing records in an Airtable table
160162

161163
#### Output
162164

163-
| Parameter | Type |
164-
| --------- | ---- |
165-
| `records` | string |
166-
| `metadata` | string |
167-
| `updatedRecordIds` | string |
165+
| Parameter | Type | Description |
166+
| --------- | ---- | ----------- |
167+
| `records` | json | Retrieved record data |
168+
| `record` | json | Single record data |
169+
| `metadata` | json | Operation metadata |
168170

169171

170172

171-
## Block Configuration
172-
173-
### Input
174-
175-
| Parameter | Type | Required | Description |
176-
| --------- | ---- | -------- | ----------- |
177-
| `operation` | string | Yes | Operation |
178-
179-
180-
181-
### Outputs
182-
183-
| Output | Type | Description |
184-
| ------ | ---- | ----------- |
185-
| `records` | json | records output from the block |
186-
| `record` | json | record output from the block |
187-
| `metadata` | json | metadata output from the block |
188-
189-
190173
## Notes
191174

192175
- Category: `tools`

apps/docs/content/docs/tools/arxiv.mdx

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,20 @@ Search for academic papers on ArXiv by keywords, authors, titles, or other field
6161

6262
| Parameter | Type | Required | Description |
6363
| --------- | ---- | -------- | ----------- |
64-
| `query` | string | Yes | The search query to execute |
64+
| `searchQuery` | string | Yes | The search query to execute |
6565
| `searchField` | string | No | Field to search in: all, ti \(title\), au \(author\), abs \(abstract\), co \(comment\), jr \(journal\), cat \(category\), rn \(report number\) |
6666
| `maxResults` | number | No | Maximum number of results to return \(default: 10, max: 2000\) |
6767
| `sortBy` | string | No | Sort by: relevance, lastUpdatedDate, submittedDate \(default: relevance\) |
6868
| `sortOrder` | string | No | Sort order: ascending, descending \(default: descending\) |
6969

7070
#### Output
7171

72-
| Parameter | Type |
73-
| --------- | ---- |
74-
| `query` | string |
75-
| `papers` | string |
76-
| `totalResults` | string |
72+
| Parameter | Type | Description |
73+
| --------- | ---- | ----------- |
74+
| `papers` | json | Found papers data |
75+
| `totalResults` | number | Total results count |
76+
| `paper` | json | Paper details |
77+
| `authorPapers` | json | Author papers list |
7778

7879
### `arxiv_get_paper`
7980

@@ -87,9 +88,12 @@ Get detailed information about a specific ArXiv paper by its ID.
8788

8889
#### Output
8990

90-
| Parameter | Type |
91-
| --------- | ---- |
92-
| `paper` | string |
91+
| Parameter | Type | Description |
92+
| --------- | ---- | ----------- |
93+
| `papers` | json | Found papers data |
94+
| `totalResults` | number | Total results count |
95+
| `paper` | json | Paper details |
96+
| `authorPapers` | json | Author papers list |
9397

9498
### `arxiv_get_author_papers`
9599

@@ -104,34 +108,15 @@ Search for papers by a specific author on ArXiv.
104108

105109
#### Output
106110

107-
| Parameter | Type |
108-
| --------- | ---- |
109-
| `authorPapers` | string |
110-
| `authorName` | string |
111-
| `totalResults` | string |
111+
| Parameter | Type | Description |
112+
| --------- | ---- | ----------- |
113+
| `papers` | json | Found papers data |
114+
| `totalResults` | number | Total results count |
115+
| `paper` | json | Paper details |
116+
| `authorPapers` | json | Author papers list |
112117

113118

114119

115-
## Block Configuration
116-
117-
### Input
118-
119-
| Parameter | Type | Required | Description |
120-
| --------- | ---- | -------- | ----------- |
121-
| `operation` | string | Yes | Operation |
122-
123-
124-
125-
### Outputs
126-
127-
| Output | Type | Description |
128-
| ------ | ---- | ----------- |
129-
| `papers` | json | papers output from the block |
130-
| `totalResults` | number | totalResults output from the block |
131-
| `paper` | json | paper output from the block |
132-
| `authorPapers` | json | authorPapers output from the block |
133-
134-
135120
## Notes
136121

137122
- Category: `tools`

0 commit comments

Comments
 (0)