Skip to content

Commit 1619d63

Browse files
authored
v0.3.31: webhook fixes, advanced mode parameter filtering, credentials fixes, UI/UX improvements
2 parents d75cc1e + 9aa1fe8 commit 1619d63

File tree

136 files changed

+5175
-3270
lines changed

Some content is hidden

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

136 files changed

+5175
-3270
lines changed

README.md

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,46 @@
11
<p align="center">
2-
<img src="apps/sim/public/static/sim.png" alt="Sim Logo" width="500"/>
2+
<a href="https://sim.ai" target="_blank" rel="noopener noreferrer">
3+
<img src="apps/sim/public/logo/reverse/text/large.png" alt="Sim Logo" width="500"/>
4+
</a>
35
</p>
46

5-
<p align="center">
6-
<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>
7-
<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/simdotai"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
9-
<a href="https://github.com/simstudioai/sim/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome"></a>
10-
<a href="https://docs.sim.ai"><img src="https://img.shields.io/badge/Docs-visit%20documentation-blue.svg" alt="Documentation"></a>
11-
</p>
7+
<p align="center">Build and deploy AI agent workflows in minutes.</p>
128

139
<p align="center">
14-
<strong>Sim</strong> is a lightweight, user-friendly platform for building AI agent workflows.
10+
<a href="https://sim.ai" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/sim.ai-6F3DFA" alt="Sim.ai"></a>
11+
<a href="https://discord.gg/Hr4UWYEcTT" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Discord-Join%20Server-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
12+
<a href="https://x.com/simdotai" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/twitter/follow/simstudioai?style=social" alt="Twitter"></a>
13+
<a href="https://docs.sim.ai" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Docs-6F3DFA.svg" alt="Documentation"></a>
1514
</p>
1615

1716
<p align="center">
1817
<img src="apps/sim/public/static/demo.gif" alt="Sim Demo" width="800"/>
1918
</p>
2019

21-
## Getting Started
20+
## Quickstart
2221

23-
1. Use our [cloud-hosted version](https://sim.ai)
24-
2. Self-host using one of the methods below
22+
### Cloud-hosted: [sim.ai](https://sim.ai)
2523

26-
## Self-Hosting Options
24+
<a href="https://sim.ai" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/sim.ai-6F3DFA?logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iNjE2IiBoZWlnaHQ9IjYxNiIgdmlld0JveD0iMCAwIDYxNiA2MTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTU5XzMxMykiPgo8cGF0aCBkPSJNNjE2IDBIMFY2MTZINjE2VjBaIiBmaWxsPSIjNkYzREZBIi8+CjxwYXRoIGQ9Ik04MyAzNjUuNTY3SDExM0MxMTMgMzczLjgwNSAxMTYgMzgwLjM3MyAxMjIgMzg1LjI3MkMxMjggMzg5Ljk0OCAxMzYuMTExIDM5Mi4yODUgMTQ2LjMzMyAzOTIuMjg1QzE1Ny40NDQgMzkyLjI4NSAxNjYgMzkwLjE3MSAxNzIgMzg1LjkzOUMxNzcuOTk5IDM4MS40ODcgMTgxIDM3NS41ODYgMTgxIDM2OC4yMzlDMTgxIDM2Mi44OTUgMTc5LjMzMyAzNTguNDQyIDE3NiAzNTQuODhDMTcyLjg4OSAzNTEuMzE4IDE2Ny4xMTEgMzQ4LjQyMiAxNTguNjY3IDM0Ni4xOTZMMTMwIDMzOS41MTdDMTE1Lj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IGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==&logoColor=white" alt="Sim.ai"></a>
2725

28-
### Option 1: NPM Package (Simplest)
29-
30-
The easiest way to run Sim locally is using our [NPM package](https://www.npmjs.com/package/simstudio?activeTab=readme):
26+
### Self-hosted: NPM Package
3127

3228
```bash
3329
npx simstudio
3430
```
31+
http://localhost:3000
3532

36-
After running these commands, open [http://localhost:3000/](http://localhost:3000/) in your browser.
33+
#### Note
34+
Docker must be installed and running on your machine.
3735

3836
#### Options
3937

40-
- `-p, --port <port>`: Specify the port to run Sim on (default: 3000)
41-
- `--no-pull`: Skip pulling the latest Docker images
42-
43-
#### Requirements
38+
| Flag | Description |
39+
|------|-------------|
40+
| `-p, --port <port>` | Port to run Sim on (default `3000`) |
41+
| `--no-pull` | Skip pulling latest Docker images |
4442

45-
- Docker must be installed and running on your machine
46-
47-
### Option 2: Docker Compose
43+
### Self-hosted: Docker Compose
4844

4945
```bash
5046
# Clone the repository
@@ -76,14 +72,14 @@ Wait for the model to download, then visit [http://localhost:3000](http://localh
7672
docker compose -f docker-compose.ollama.yml exec ollama ollama pull llama3.1:8b
7773
```
7874

79-
### Option 3: Dev Containers
75+
### Self-hosted: Dev Containers
8076

8177
1. Open VS Code with the [Remote - Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
8278
2. Open the project and click "Reopen in Container" when prompted
8379
3. Run `bun run dev:full` in the terminal or use the `sim-start` alias
8480
- This starts both the main application and the realtime socket server
8581

86-
### Option 4: Manual Setup
82+
### Self-hosted: Manual Setup
8783

8884
**Requirements:**
8985
- [Bun](https://bun.sh/) runtime
@@ -158,6 +154,13 @@ cd apps/sim
158154
bun run dev:sockets
159155
```
160156

157+
## Copilot API Keys
158+
159+
Copilot is a Sim-managed service. To use Copilot on a self-hosted instance:
160+
161+
- Go to https://sim.ai → Settings → Copilot and generate a Copilot API key
162+
- Set `COPILOT_API_KEY` in your self-hosted environment to that value
163+
161164
## Tech Stack
162165

163166
- **Framework**: [Next.js](https://nextjs.org/) (App Router)
@@ -180,4 +183,4 @@ We welcome contributions! Please see our [Contributing Guide](.github/CONTRIBUTI
180183

181184
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
182185

183-
<p align="center">Made with ❤️ by the Sim Team</p>
186+
<p align="center">Made with ❤️ by the Sim Team</p>
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: Copilot
3+
description: Build and edit workflows with Sim Copilot
4+
---
5+
6+
import { Callout } from 'fumadocs-ui/components/callout'
7+
import { Card, Cards } from 'fumadocs-ui/components/card'
8+
import { MessageCircle, Package, Zap, Infinity as InfinityIcon, Brain, BrainCircuit } from 'lucide-react'
9+
10+
## What is Copilot
11+
12+
Copilot is your in-editor assistant that helps you build, understand, and improve workflows. It can:
13+
14+
- **Explain**: Answer questions about Sim and your current workflow
15+
- **Guide**: Suggest edits and best practices
16+
- **Edit**: Make changes to blocks, connections, and settings when you approve
17+
18+
<Callout type="info">
19+
Copilot is a Sim-managed service. For self-hosted deployments, generate a Copilot API key in the hosted app (sim.ai → Settings → Copilot) and set `COPILOT_API_KEY` in your environment.
20+
</Callout>
21+
22+
## Modes
23+
24+
<Cards>
25+
<Card title="Ask">
26+
<div className="flex items-start gap-3">
27+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
28+
<MessageCircle className="h-4 w-4 text-muted-foreground" />
29+
</span>
30+
<div>
31+
<p className="m-0 text-sm">
32+
Q&A mode for explanations, guidance, and suggestions without making changes to your workflow.
33+
</p>
34+
</div>
35+
</div>
36+
</Card>
37+
<Card title="Agent">
38+
<div className="flex items-start gap-3">
39+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
40+
<Package className="h-4 w-4 text-muted-foreground" />
41+
</span>
42+
<div>
43+
<p className="m-0 text-sm">
44+
Build-and-edit mode. Copilot proposes specific edits (add blocks, wire variables, tweak settings) and applies them when you approve.
45+
</p>
46+
</div>
47+
</div>
48+
</Card>
49+
</Cards>
50+
51+
## Depth Levels
52+
53+
<Cards>
54+
<Card title="Fast">
55+
<div className="flex items-start gap-3">
56+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
57+
<Zap className="h-4 w-4 text-muted-foreground" />
58+
</span>
59+
<div>
60+
<p className="m-0 text-sm">Quickest and cheapest. Best for small edits, simple workflows, and minor tweaks.</p>
61+
</div>
62+
</div>
63+
</Card>
64+
<Card title="Auto">
65+
<div className="flex items-start gap-3">
66+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
67+
<InfinityIcon className="h-4 w-4 text-muted-foreground" />
68+
</span>
69+
<div>
70+
<p className="m-0 text-sm">Balanced speed and reasoning. Recommended default for most tasks.</p>
71+
</div>
72+
</div>
73+
</Card>
74+
<Card title="Pro">
75+
<div className="flex items-start gap-3">
76+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
77+
<Brain className="h-4 w-4 text-muted-foreground" />
78+
</span>
79+
<div>
80+
<p className="m-0 text-sm">More reasoning for larger workflows and complex edits while staying performant.</p>
81+
</div>
82+
</div>
83+
</Card>
84+
<Card title="Max">
85+
<div className="flex items-start gap-3">
86+
<span className="mt-0.5 inline-flex h-8 w-8 items-center justify-center rounded-md border border-border/50 bg-muted/60">
87+
<BrainCircuit className="h-4 w-4 text-muted-foreground" />
88+
</span>
89+
<div>
90+
<p className="m-0 text-sm">Maximum reasoning for deep planning, debugging, and complex architectural changes.</p>
91+
</div>
92+
</div>
93+
</Card>
94+
</Cards>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Copilot",
3+
"pages": ["index"]
4+
}

apps/docs/content/docs/meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"connections",
1313
"---Execution---",
1414
"execution",
15+
"---Copilot---",
16+
"copilot",
1517
"---Advanced---",
1618
"./variables/index",
1719
"yaml",

apps/sim/app/api/copilot/chat/route.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe('Copilot Chat API Route', () => {
105105
env: {
106106
SIM_AGENT_API_URL: 'http://localhost:8000',
107107
COPILOT_API_KEY: 'test-sim-agent-key',
108+
BETTER_AUTH_URL: 'http://localhost:3000',
108109
},
109110
}))
110111

@@ -225,6 +226,7 @@ describe('Copilot Chat API Route', () => {
225226
mode: 'agent',
226227
provider: 'openai',
227228
depth: 0,
229+
origin: 'http://localhost:3000',
228230
}),
229231
})
230232
)
@@ -288,6 +290,7 @@ describe('Copilot Chat API Route', () => {
288290
mode: 'agent',
289291
provider: 'openai',
290292
depth: 0,
293+
origin: 'http://localhost:3000',
291294
}),
292295
})
293296
)
@@ -343,6 +346,7 @@ describe('Copilot Chat API Route', () => {
343346
mode: 'agent',
344347
provider: 'openai',
345348
depth: 0,
349+
origin: 'http://localhost:3000',
346350
}),
347351
})
348352
)
@@ -438,6 +442,7 @@ describe('Copilot Chat API Route', () => {
438442
mode: 'ask',
439443
provider: 'openai',
440444
depth: 0,
445+
origin: 'http://localhost:3000',
441446
}),
442447
})
443448
)

0 commit comments

Comments
 (0)