Demonstration by Shopping Mall in website #1196
Merged
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.
This pull request includes several changes to the
packages/agent
andpackages/chat
modules, focusing on version updates, code refactoring, and improvements to configuration and functionality.Version Updates:
packages/agent/package.json
: Updated version from0.3.6
to0.3.7
.packages/chat/package.json
: Updated version from0.2.1
to0.2.4
and added"type": "module"
.Configuration and Functionality Improvements:
packages/agent/src/NestiaAgent.ts
: Added a new methodgetConfig
to theNestiaAgent
class to retrieve the configuration.packages/agent/test/cli.ts
: Refactored to fetch the Swagger document from a URL instead of reading from a file, and updated the host URL tohttp://127.0.0.1:37001
. [1] [2]packages/chat/src/main.tsx
: ReplacedNestiaChatUploader
withNestiaChatApplication
and added logic to fetch and convert Swagger documents, authenticate with the backend, and configure the chat agent.Code Refactoring:
packages/chat/build/deploy.mjs
: Renamed fromdeploy.js
and updated to use ES module syntax.packages/chat/src/components/MarkdownViewer.tsx
: Removedrehype-raw
,rehype-stringify
, andremark-mermaid-plugin
plugins, and added custom image styling.Dependency and Script Updates:
packages/chat/package.json
: Updated dependencies, including@mui/material
andrimraf
, and removed unused dependencies such asreact-json-editor-ajrm
. Updated thedeploy
script to usedeploy.mjs
. [1] [2] [3]Removed Files:
packages/chat/shopping.html
: Removed the file as it is no longer needed.packages/chat/src/NestiaChatUploader.tsx
: Removed the file and its references.packages/chat/src/index.ts
: Removed export ofNestiaChatUploader
. (Fd8740b6L1)These changes collectively improve the functionality, maintainability, and performance of the
packages/agent
andpackages/chat
modules.