Commit Graph

115 Commits

Author SHA1 Message Date
Baptiste Arnaud
5861031f72
🔧 Add WhatsApp status forward URL update script (#2496)
- Add a production script to update the WhatsApp status webhook forward
URL on draft and published typebot settings.
- Register the script in `@typebot.io/scripts` and add the settings
project reference needed for typechecking.
- Ignore local `typebot-prod-db` skill folders for agent tooling.
2026-05-21 11:29:55 +02:00
Baptiste Arnaud
6f289f647f
🔒️ Upgrade vulnerable deps (ai v5, nodemailer v8, otel sdk-node 0.217) (#2491)
## Summary

Fixes 18 open Dependabot alerts and migrates affected code to the new
major versions:

- `@opentelemetry/sdk-node` → `^0.217.0` (Prometheus exporter DoS,
GHSA-q7rr-3cgh-j5r3)
- `nodemailer` → `^8.0.5` across all manifests + root override
(GHSA-vvjj-xcjg-gr5g, GHSA-c7w3-x93f-qmm8)
- `ai` → `^5.0.52` (GHSA-rwvc-j5jr-mgvh); legacy 3.x dep removed from
`packages/deprecated/legacy` and replaced with a small in-tree
`OpenAIStream` + `StreamingTextResponse` shim
- Provider SDKs aligned to v5 peer: `@ai-sdk/openai`, `anthropic`,
`groq`, `mistral`, `perplexity`, `deepseek`, `togetherai`, `openRouter`,
`dify-ai-provider`

### AI SDK v4 → v5 migration

- `parseTools`: `parameters` renamed to `inputSchema`
- `runChatCompletion` / `runChatCompletionStream`: `maxSteps` replaced
by `stopWhen(stepCountIs(maxSteps))`;
`usage.{prompt,completion,total}Tokens` replaced by
`totalUsage.{input,output,total}Tokens`
- New `toLegacyDataStream` helper that re-emits the v4 data-stream
protocol (`0:text`, `3:error`, `9:tool_call`, …) so existing consumers
in `embeds/js` and the OpenAI `askAssistant` / `askModel` handlers keep
working
- `compatibility: "strict"` removed from `createOpenAI` (option dropped
in v5)
- `formatDataStreamPart` / `processDataStream` imports moved to
`@ai-sdk/ui-utils` (legacy package pinned at 1.2.11)

### E2E test follow-up

Second commit fixes Playwright tests that broke once the env-resolved
URLs / new SDK surface kicked in:
- `fileUpload`: assert exported URL contains `parseS3PublicBaseUrl()`
(not `S3_ENDPOINT`) so it works with `S3_PUBLIC_CUSTOM_DOMAIN`; verify
post-deletion via cache-busted `request.get` instead of a CDN-cached new
tab.
- `ssrf`: assert on the actual "Security validation failed" log emitted
by the pre-flight check; fixture now maps `response.statusCode` into a
`Status` variable so `Status: …` assertions resolve.
- Root `dev` script includes `@typebot.io/partykit` so the webhook
listener e2e test can hit PartyKit on `:1999`.

Also fixes a pre-existing broken anchor link in `whatsapp-ai-agent.mdx`
that blocked the landing-page link checker.

## Test plan

- [ ] `bunx nx test` passes
- [ ] `bunx nx typecheck` passes
- [ ] `bunx nx affected -t
format-and-lint,lint-repo,check-broken-links,test --parallel=4` passes
(pre-commit)
- [ ] `bun run dev` boots builder, viewer, workflows **and** PartyKit
- [ ] Viewer Playwright suite: `fileUpload.spec.ts`, `ssrf.spec.ts`,
`webhookListener.spec.ts` all green
- [ ] Manual smoke: OpenAI `askAssistant` block streams correctly in the
embed (v4 data-stream protocol preserved)
- [ ] Manual smoke: Anthropic / Mistral / Groq blocks still execute
end-to-end
- [ ] Manual smoke: send a test email through a workspace SMTP block
(nodemailer v8)

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 16:30:36 +02:00
Baptiste Arnaud
6b8456b5bc
🐛 Force tsx scripts to use package tsconfig 2026-03-19 14:46:23 +01:00
Baptiste Arnaud
27aad0931d
🔧 Add custom nx-ignore command 2026-03-19 11:27:30 +01:00
Baptiste Arnaud
c2b251c7e5
♻️ Migrate to NX (#2418) 2026-03-18 15:29:32 +00:00
Baptiste Arnaud
d1e2781caf
🔧 Migrate biome rules: interactive semantics checks 2026-03-17 14:50:16 +01:00
Baptiste Arnaud
d48de8289d
🔧 Update inspectUser script to use production environment by default with SKIP_ENV_CHECK set 2026-02-24 18:13:41 +01:00
Baptiste Arnaud
dd10f4caa8
🐛 Fix transcript replay when using reply event 2026-02-24 16:34:00 +01:00
Baptiste Arnaud
6c2f3bf826
🔧 Update scripts update and inspect bot script env management 2026-02-19 10:59:22 +01:00
Baptiste Arnaud
ae5ea1f328
🔧 Fix Prisma scripts and refresh dependencies (#2389)
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Deploy Workflows (Fly.io) / deploy (push) Has been cancelled
- Update workspace dependencies across apps and packages to align with
new lint/Effect expectations
- Adjust Prisma scripts and configs (db push, studio, adapters, read
replicas) for the latest CLI flags and tracing helpers
- Refresh generated locks and helper modules (emails, bot engine,
telemetry, rich text, scripts)
2026-02-12 12:45:01 +01:00
Baptiste Arnaud
5e0de89911
🔧 Add forward WA errors and campaign statuses option 2026-02-11 16:46:35 +01:00
Baptiste Arnaud
8210b3c64b
🐛 Fix daily cron job typecheck failing 2026-01-20 19:13:00 +01:00
Baptiste Arnaud
80db9565cd
♻️ Upgrade to Zod v4 (#2355) 2026-01-19 10:51:20 +01:00
Baptiste Arnaud
ff728400d9
🔧 Upgrade bun and fix workflows ci 2026-01-16 13:22:27 +01:00
Baptiste Arnaud
d99a858cd0
💚 Fix CI not sending email due to React not defined 2026-01-08 15:23:47 +01:00
Kathryn Schutte
217e18bc59
🔨 Add workspace summary agent script (#2332) 2026-01-08 10:21:26 +01:00
Baptiste Arnaud
0ffe0d51fe
🔧 Add react in scripts deps 2026-01-07 18:55:23 +01:00
Baptiste Arnaud
c9d2fb36c6
⬆️ Upgrade bun 2025-11-27 11:21:57 +01:00
Baptiste Arnaud
415ef925c9
🔧 Adjust email campaign script 2025-11-19 10:53:20 +01:00
Baptiste Arnaud
7fd4b335de
🔧 Refactor email campaign script 2025-10-30 10:37:23 +01:00
Baptiste Arnaud
408ed327fe
🔨 Add sendEmailCampaign script 2025-10-21 10:40:26 +02:00
Baptiste Arnaud
626e225782
⬆️ Upgrade to bun v1.3.0 2025-10-16 10:32:51 +02:00
Baptiste Arnaud
5cdc3a9c23
♻️ Migrate Switch components to Base UI 2025-10-15 11:46:55 +02:00
Baptiste Arnaud
e8a20c92c8
🔧 Add deleteResultsRange and deleteS3Object scripts 2025-10-15 08:34:09 +02:00
Baptiste Arnaud
611588a72b
💚 Add missing package in script for daily job 2025-10-13 07:53:48 +02:00
Baptiste Arnaud
a4ca993d8d
💚 Fix env package not found in Github actions 2025-10-12 11:13:08 +02:00
Baptiste Arnaud
2b5f51a9d7
🔧 Add churn agent daily script 2025-10-06 11:23:24 +02:00
Baptiste Arnaud
bbf27c6808
🔧 Update exportResults script 2025-10-06 10:22:58 +02:00
Baptiste Arnaud
9688a297ad
🔧 Revert to carret version pinning 2025-10-03 10:51:27 +02:00
Baptiste Arnaud
5c667938e4
⬆️ Upgrade posthog-node 2025-09-10 11:50:31 +02:00
Baptiste Arnaud
e395a4726b
🔧 Add script to add HTTP proxy credentials 2025-09-03 18:40:54 +02:00
Baptiste Arnaud
8e456012f2
🔨 Add yesterday's total visitors in daily notification script 2025-06-18 13:03:45 +02:00
Baptiste Arnaud
1216749718
🔨 Add non-interactive mode for create-new-block script 2025-06-18 11:36:35 +02:00
Baptiste Arnaud
d7b1bde064
🔖 Release v3.5.0 2025-03-03 12:41:36 +01:00
Baptiste Arnaud
b406f6c620
👷 Renovate cron jobs 2025-02-19 22:32:41 +01:00
Baptiste Arnaud
fcef3da442
🔧 Filter out more known errors/message from Sentry
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Daily database cleanup / clean (push) Has been cancelled
Check and report chats usage / send (push) Has been cancelled
2025-02-17 15:43:17 +01:00
Baptiste Arnaud
27366dde5a
💚 Add missing packages and clean up unused packages 2025-02-04 11:39:17 +01:00
Baptiste Arnaud
9afb7aa6ec
🔧 Add DATABASE_URL_READ_REPLICA env to turbo.json 2025-01-27 20:39:41 +01:00
Baptiste Arnaud
86c5ae6684
⬆️ Upgrade prisma and add read replicas support in long running scripts 2025-01-27 19:37:37 +01:00
Baptiste Arnaud
06e6faa9d5
feat: integrate new brand (#1935) 2025-01-23 13:25:47 +01:00
Baptiste Arnaud
1d6eca4c0c
🐛 Add explicit react import in emails package to avoid not found bug in CI
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
related to GH action report email not sending #1910
2024-12-01 19:31:14 +01:00
Baptiste Arnaud
8c5e6123e8
📦 Add react dependency scripts package json 2024-12-01 17:47:59 +01:00
Baptiste Arnaud
badad223f1
📝 Update set variable documentation to include Pop/Shift operations
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Closes #1651
2024-11-12 09:42:05 -06:00
Baptiste Arnaud
2fe1c316ae
🔨 Add inspectPublishedTypebot script to query published Typebots 2024-10-24 14:58:41 -07:00
Baptiste Arnaud
5fb10d2ffb
Add script template that reads CSV file and process things 2024-10-11 11:54:00 +02:00
Baptiste Arnaud
6ec8f71cac
🔧 Upgrade Stripe API version and dependencies 2024-10-04 14:25:51 +02:00
Baptiste Arnaud
12fdfe7fdf
🐛 Fix scripts exec 2024-09-25 15:49:05 +02:00
Baptiste Arnaud
3498df6309
👷 Refactor bun command in check-and-report-chats-usage.yml 2024-09-25 15:26:02 +02:00
Baptiste Arnaud
10750f54d1
♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801)
Closes [#1754](https://github.com/baptisteArno/typebot.io/issues/1754)
2024-09-25 14:50:13 +02:00
Baptiste Arnaud
041b817aa0
🧑‍💻 (s3) Correctly delete the files when deleting resources 2024-09-02 11:23:01 +02:00