Skip to content

Commit 3ba3faa

Browse files
authored
Merge pull request #4 from VapiAI/feat/partial-update
Feat/partial update
2 parents 4c34aa7 + 6fd23f2 commit 3ba3faa

5 files changed

Lines changed: 468 additions & 115 deletions

File tree

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ echo "VAPI_TOKEN=your-token-here" > .env.dev
6464
| `npm run build` | Type-check the codebase |
6565
| `npm run pull:dev` | Pull resources from Vapi to local files |
6666
| `npm run pull:prod` | Pull resources from prod |
67-
| `npm run apply:dev` | Push local files to Vapi (dev) |
68-
| `npm run apply:prod` | Push local files to Vapi (prod) |
67+
| `npm run apply:dev` | Push all local files to Vapi (dev) |
68+
| `npm run apply:prod` | Push all local files to Vapi (prod) |
69+
| `npm run apply:dev assistants` | Push only assistants (dev) |
70+
| `npm run apply:dev tools` | Push only tools (dev) |
6971
| `npm run call:dev -- -a <name>` | Start a WebSocket call to an assistant (dev) |
7072
| `npm run call:dev -- -s <name>` | Start a WebSocket call to a squad (dev) |
7173

@@ -81,6 +83,42 @@ npm run pull:dev
8183
npm run apply:dev
8284
```
8385

86+
### Selective Apply (Partial Sync)
87+
88+
Push only specific resources instead of syncing everything:
89+
90+
#### By Resource Type
91+
92+
```bash
93+
npm run apply:dev assistants
94+
npm run apply:dev tools
95+
npm run apply:dev squads
96+
npm run apply:dev structuredOutputs
97+
npm run apply:dev personalities
98+
npm run apply:dev scenarios
99+
npm run apply:dev simulations
100+
npm run apply:dev simulationSuites
101+
```
102+
103+
#### By Specific File(s)
104+
105+
```bash
106+
# Push a single file
107+
npm run apply:dev resources/assistants/my-assistant.md
108+
109+
# Push multiple files
110+
npm run apply:dev resources/assistants/booking.md resources/tools/my-tool.yml
111+
```
112+
113+
#### Combined
114+
115+
```bash
116+
# Push specific file within a type
117+
npm run apply:dev assistants resources/assistants/booking.md
118+
```
119+
120+
**Note:** Partial applies skip deletion checks. Run full `npm run apply:dev` to sync deletions.
121+
84122
---
85123

86124
## Project Structure

0 commit comments

Comments
 (0)