feat: ai journey creation revival#8784
Draft
edmonday wants to merge 397 commits into
Draft
Conversation
- Added new dependencies: @opentelemetry/api-logs, @opentelemetry/sdk-logs, @vercel/otel, and langfuse-vercel. - Updated versions for @opentelemetry/instrumentation and langfuse packages. - Enhanced chat API to include Zod validation for incoming messages and integrated system prompt retrieval from langfuse.
…rades - Updated @ai-sdk/google to version 1.2.19. - Added multiple new esbuild packages for various platforms and architectures, all at version 0.17.19. - Updated wrangler dependencies to version 1.20250408.0 for various platforms. - Adjusted devOptional flag for @emnapi/runtime to true.
- Updated instrumentation to use environment variables for Langfuse configuration. - Modified chat API to accept journeyId, selectedStepId, and selectedBlockId in the POST request. - Improved system prompt retrieval to include journey context. - Adjusted AiChat component to pass journey and step/block IDs in request body.
- Added console log to output the current environment (VERCEL_ENV, DD_ENV, NODE_ENV) in the chat API POST request handler for better debugging and monitoring.
- Upgraded jwt-decode to version 4.0.0 in package.json and package-lock.json. - Integrated jwtDecode function in the chat API to extract user_id and auth_time from the token for enhanced telemetry data.
- Refactored chat API to utilize Langfuse for telemetry, including environment context. - Updated instrumentation to use a new LangfuseExporter for improved data handling. - Added error handling and ensured proper flushing of telemetry data after API calls. - Improved system prompt retrieval to include environment details and journey context.
…om/JesusFilm/core into 25-03-NC-feat-ai-guided-journey-ui
- Updated the LangfuseExporter and Langfuse instances to use the correct variable 'langfuseEnvironment' for the environment property instead of an undefined reference.
- Removed the systemPromptFooter prop and related logic from the AiChat component. - Eliminated the SystemPrompt component and its associated files to streamline the chat interface. - Updated the Form component to reflect these changes, ensuring a cleaner and more efficient implementation.
…om/JesusFilm/core into 25-03-NC-feat-ai-guided-journey-ui
…acing - Introduced Zod schema for validating incoming request body, ensuring structured data handling. - Added UUID generation for traceability in telemetry data. - Refactored message handling to include system prompts dynamically based on journey context. - Updated response headers to include trace ID for improved debugging and monitoring.
…om/JesusFilm/core into 25-03-NC-feat-ai-guided-journey-ui
- Added a fetchWithAuthorization function to handle API requests with user authentication. - Implemented trace ID storage in messages for improved tracking of responses. - Updated MessageList to display user feedback based on trace ID. - Refactored message handling to incorporate new trace ID logic.
- Simplified the structure of the POST request function by removing unnecessary try-finally blocks. - Enhanced request validation using Zod schema for better error handling. - Improved token handling and authorization checks. - Maintained dynamic system prompt integration based on journey context and ensured proper telemetry data flushing.
- Changed import paths for Langfuse components to reflect new directory structure. - Removed obsolete Langfuse configuration file to streamline the codebase. - Updated UserFeedback component to utilize the new langfuseWeb API for scoring user feedback.
- Modified the UserFeedback component to utilize the updated langfuseWeb API for scoring user feedback, enhancing integration with the Langfuse service.
…om/JesusFilm/core into 25-03-NC-feat-ai-guided-journey-ui
- Added error handling logic to ensure langfuseExporter.forceFlush() is called on both error and finish events, enhancing reliability in telemetry data flushing.
Contributor
|
The latest updates on your projects.
|
Contributor
|
The latest updates on your projects.
|
Contributor
|
The latest updates on your projects.
|
Contributor
|
Found 1 test failure on Blacksmith runners: Failure
|
Contributor
|
The latest updates on your projects.
|
Contributor
|
The latest updates on your projects.
|
Contributor
|
The latest updates on your projects.
|
Contributor
|
The latest updates on your projects.
|
…ourney-creation-revival # Conflicts: # apps/journeys-admin/next-env.d.ts # apps/journeys-admin/next.config.js # apps/journeys-admin/src/components/Editor/Editor.spec.tsx # apps/journeys-admin/tsconfig.json # libs/journeys/ui/src/libs/blurImage/blurImage.spec.ts # package.json # pnpm-lock.yaml
The bare 'next-i18next' entry resolves to the App Router build, which does not export useTranslation. journeys-admin is a Pages Router app, so use the next-i18next/pages entry like the rest of the codebase. https://claude.ai/code/session_01CYWVnfZqMvdeYer2yLTiJA
|
|
Contributor
|
The latest updates on your projects.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.