@purpleschool/rugpt-lib-common 0.0.70 → 0.0.72-es-add-test

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.
@@ -38,8 +38,8 @@ jobs:
38
38
  echo "should_publish=true" >> $GITHUB_OUTPUT
39
39
  fi
40
40
 
41
- send-already-exists-telegram:
42
- name: Send start Telegram message
41
+ send-already-exists:
42
+ name: Send exists message
43
43
  needs: [check-version]
44
44
  if: needs.check-version.outputs.should_publish == 'false'
45
45
  uses: ./.github/workflows/pachca-notification.yml
@@ -49,8 +49,8 @@ jobs:
49
49
  📝 Текущая версия пакета: **${{ needs.check-version.outputs.version }}**
50
50
  secrets: inherit
51
51
 
52
- send-start-telegram:
53
- name: Send start Telegram message
52
+ send-start:
53
+ name: Send start message
54
54
  needs: [check-version]
55
55
  if: needs.check-version.outputs.should_publish == 'true'
56
56
  uses: ./.github/workflows/pachca-notification.yml
@@ -87,9 +87,17 @@ jobs:
87
87
 
88
88
  - name: Publish package on NPM
89
89
  working-directory: '.'
90
- run: npm publish --access public
90
+ run: |
91
+ if [[ "$VERSION" == *"-"* ]]; then
92
+ TAG="next"
93
+ else
94
+ TAG="latest"
95
+ fi
96
+
97
+ npm publish --tag "$TAG" --access public
91
98
  env:
92
99
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
100
+ VERSION: ${{ needs.check-version.outputs.version }}
93
101
 
94
102
  notify-success:
95
103
  needs: [publish, check-version]
@@ -5,4 +5,5 @@ var LOCALE;
5
5
  (function (LOCALE) {
6
6
  LOCALE["RU"] = "ru";
7
7
  LOCALE["EN"] = "en";
8
+ LOCALE["ES"] = "es";
8
9
  })(LOCALE || (exports.LOCALE = LOCALE = {}));
@@ -1612,6 +1612,11 @@ exports.ERRORS = {
1612
1612
  httpCode: 400,
1613
1613
  message: "Изображение содержит недопустимый контент и отклонено модерацией",
1614
1614
  },
1615
+ MAX_PROMPT_LENGTH_EXCEEDED: {
1616
+ code: "IMAGE_RECOGNITION.MAX_PROMPT_LENGTH_EXCEEDED",
1617
+ httpCode: 400,
1618
+ message: "Превышена максимальная длина запроса",
1619
+ },
1615
1620
  PROMPT_MODERATION_REJECTED: {
1616
1621
  code: "IMAGE_RECOGNITION.PROMPT_MODERATION_REJECTED",
1617
1622
  httpCode: 400,
@@ -1,4 +1,5 @@
1
1
  export enum LOCALE {
2
2
  RU = 'ru',
3
3
  EN = 'en',
4
+ ES = 'es',
4
5
  }
package/errors/errors.ts CHANGED
@@ -1668,6 +1668,11 @@ export const ERRORS = {
1668
1668
  message:
1669
1669
  "Изображение содержит недопустимый контент и отклонено модерацией",
1670
1670
  },
1671
+ MAX_PROMPT_LENGTH_EXCEEDED: {
1672
+ code: "IMAGE_RECOGNITION.MAX_PROMPT_LENGTH_EXCEEDED",
1673
+ httpCode: 400,
1674
+ message: "Превышена максимальная длина запроса",
1675
+ },
1671
1676
  PROMPT_MODERATION_REJECTED: {
1672
1677
  code: "IMAGE_RECOGNITION.PROMPT_MODERATION_REJECTED",
1673
1678
  httpCode: 400,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/rugpt-lib-common",
3
- "version": "0.0.70",
3
+ "version": "0.0.72-es-add-test",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",