@ansible/ansible-ai-connect-chatbot 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/Constants.d.ts +2 -3
- package/dist/ansible-chatbot.css +1 -1
- package/dist/ansible-chatbot.js +14911 -14775
- package/dist/ansible-chatbot.umd.cjs +111 -109
- package/dist/index.d.ts +1 -0
- package/dist/public/lightspeed.svg +73 -0
- package/dist/public/lightspeed_dark.svg +68 -0
- package/dist/public/user_logo.png +0 -0
- package/dist/types/Message.d.ts +1 -0
- package/dist/useChatbot/useChatbot.d.ts +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -72,3 +72,16 @@ CHATBOT_DEFAULT_PROVIDER=wisdom
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
```
|
|
75
|
+
|
|
76
|
+
## Releasing and publishing
|
|
77
|
+
|
|
78
|
+
Run the following GH workflows, in order:
|
|
79
|
+
|
|
80
|
+
1.- [AAP Chatbot - Release](../.github/workflows/ui_release_aap_chatbot.yml)
|
|
81
|
+
It validates the package by running tests, if successful, creates a new Pull Request with the package information.
|
|
82
|
+
|
|
83
|
+
2.- [AAP Chatbot - Publish](../.github/workflows/ui_publish_aap_chatbot.yml)
|
|
84
|
+
Should be run just after releasing. It validates the package by running tests, if successful, it builds, assembles and publishes the new [package version into npmjs](https://www.npmjs.com/package/@ansible/ansible-ai-connect-chatbot?activeTab=versions).
|
|
85
|
+
|
|
86
|
+
NOTE: Split the whole process into two different workflows so it gives a bit more flexibility on how to release and when to publish.
|
|
87
|
+
NOTE: Based on the [npmjs guideline for publishing new packages](https://docs.npmjs.com/updating-your-published-package-version-number).
|
package/dist/Constants.d.ts
CHANGED
|
@@ -4,13 +4,12 @@ export declare const API_TIMEOUT = 28000;
|
|
|
4
4
|
export declare const TIMEOUT_MSG: string;
|
|
5
5
|
export declare const TOO_MANY_REQUESTS_MSG = "_Chatbot service is busy with too many requests. Please try again later._";
|
|
6
6
|
export declare const FOOTNOTE_LABEL = "Always review AI-generated content prior to use.";
|
|
7
|
-
export declare const FOOTNOTE_TITLE = "Verify accuracy";
|
|
8
|
-
export declare const FOOTNOTE_DESCRIPTION = "While Lightspeed strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.";
|
|
9
7
|
export declare enum Sentiment {
|
|
10
8
|
THUMBS_UP = 0,
|
|
11
9
|
THUMBS_DOWN = 1
|
|
12
10
|
}
|
|
11
|
+
export declare const ANSIBLE_LIGHTSPEED_PRODUCT_NAME = "Ansible Lightspeed intelligent assistant";
|
|
13
12
|
export declare const GITHUB_NEW_ISSUE_BASE_URL = "https://github.com/ansible/ansible-lightspeed-va-feedback/issues/new";
|
|
14
|
-
export declare const QUERY_SYSTEM_INSTRUCTION
|
|
13
|
+
export declare const QUERY_SYSTEM_INSTRUCTION: string;
|
|
15
14
|
export declare const CHAT_HISTORY_HEADER = "Chat History";
|
|
16
15
|
export declare const INITIAL_NOTICE: AlertMessage;
|