23b43be952
* WIP realtime streams * Handle realtime with large payloads or outputs #1451 * feat: optimize Redis stream handling with batching Add STREAM_ORIGIN to environment schema. Improve performance in RealtimeStreams by using TextDecoderStream for simpler text decoding and implementing batching of XADD commands for Redis streams. Limit stream size using MAXLEN option. Update environment variable repository with new variable type. Adjust import statements for Redis key and value types. * 🔧 chore: add dev dependencies for bundle analysis * add metadata tests and a few more utilties * Add stream tests and improve streaming * Added AI tool tasks, descriptions to tasks * Use the config file path to determine the workingDir, then the package.json path * Remove stream test files * useTaskTrigger react hook that allows triggering a task from the client * Add streaming support for the realtime react hooks * Add ability to stream results after useTaskTrigger * Improve the stream throttling * Use the runId as the ID key to bust the cache after triggering * Upgrade to to the latest electric sql client and server * Make realtime server backwards compat with 3.1.2 release * Pass the runId into useRealtimeRun * Fix scopes when specifiying reading all runs * WIP @trigger.dev/rsc package * Various fixes and accepted recommendations by CodeRabbit * Regenerate pnpm lock file * A couple tweaks to rsc and give up on rendering react in tasks for now * Add changeset * Remove triggerRequest from the useEffect deps * Improve realtime & frontend authentication errors * Fixed authorization tests * Remove unnecessary log * Add metadata.stream limits and improve the metadata streams structure * Streams can now have up to 2500 entries * Various coderabbit fixes * additional react-hooks jsdocs
122 lines
3.5 KiB
JSON
122 lines
3.5 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug WebApp",
|
|
"command": "pnpm run dev --filter webapp",
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"cwd": "${workspaceFolder}",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug realtimeStreams.test.ts",
|
|
"command": "pnpm run test -t RealtimeStreams",
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"cwd": "${workspaceFolder}/apps/webapp",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"name": "Chrome webapp",
|
|
"url": "http://localhost:3030",
|
|
"webRoot": "${workspaceFolder}/apps/webapp/app"
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 init CLI",
|
|
"command": "pnpm exec trigger init",
|
|
"cwd": "${workspaceFolder}/references/init-shell",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 Dev CLI",
|
|
"command": "pnpm exec trigger dev",
|
|
"cwd": "${workspaceFolder}/references/v3-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug Dev Next.js Realtime",
|
|
"command": "pnpm exec trigger dev",
|
|
"cwd": "${workspaceFolder}/references/nextjs-realtime",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug prisma-catalog deploy CLI",
|
|
"command": "pnpm exec trigger deploy --self-hosted --load-image",
|
|
"cwd": "${workspaceFolder}/references/prisma-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 Deploy CLI",
|
|
"command": "pnpm exec trigger deploy --self-hosted --load-image",
|
|
"cwd": "${workspaceFolder}/references/v3-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 list-profiles CLI",
|
|
"command": "pnpm exec trigger list-profiles --log-level debug",
|
|
"cwd": "${workspaceFolder}/references/v3-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 update CLI",
|
|
"command": "pnpm exec trigger update",
|
|
"cwd": "${workspaceFolder}/references/v3-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug V3 Management",
|
|
"command": "pnpm run management",
|
|
"cwd": "${workspaceFolder}/references/v3-catalog",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Trigger.dev CLI (v3)",
|
|
"port": 9229,
|
|
"restart": true,
|
|
"skipFiles": ["<node_internals>/**"]
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "Debug CLI e2e tests",
|
|
"command": "MOD=otel-telemetry-loader pnpm run test:e2e",
|
|
"cwd": "${workspaceFolder}/packages/cli-v3",
|
|
"sourceMaps": true
|
|
},
|
|
{
|
|
"type": "node-terminal",
|
|
"request": "launch",
|
|
"name": "debug v3 hello-world dev",
|
|
"command": "pnpm exec trigger dev",
|
|
"cwd": "${workspaceFolder}/references/hello-world",
|
|
"sourceMaps": true
|
|
}
|
|
]
|
|
}
|