@hautechai/sdk 1.0.2 → 1.0.4
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/.github/workflows/release.yaml +60 -62
- package/CHANGELOG.md +1 -0
- package/package.json +49 -44
- package/release.config.cjs +4 -0
- package/scripts/generate-permissions.js +0 -0
- package/scripts/generate.sh +0 -0
- package/scripts/up-versions.sh +0 -0
|
@@ -18,6 +18,9 @@ env:
|
|
|
18
18
|
permissions:
|
|
19
19
|
contents: write
|
|
20
20
|
id-token: write
|
|
21
|
+
issues: write
|
|
22
|
+
pull-requests: write
|
|
23
|
+
|
|
21
24
|
|
|
22
25
|
jobs:
|
|
23
26
|
test:
|
|
@@ -54,12 +57,12 @@ jobs:
|
|
|
54
57
|
APP_KEY_SECRET: ${{ secrets.APP_KEY_SECRET }}
|
|
55
58
|
SDK_TOKEN: ${{ secrets.SDK_TOKEN }}
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
release:
|
|
58
61
|
runs-on: ubuntu-22.04
|
|
59
62
|
needs: [test]
|
|
60
|
-
name:
|
|
61
|
-
outputs:
|
|
62
|
-
release_created: ${{ steps.semantic.outputs.release_created }}
|
|
63
|
+
name: Release
|
|
64
|
+
# outputs:
|
|
65
|
+
# release_created: ${{ steps.semantic.outputs.release_created }}
|
|
63
66
|
steps:
|
|
64
67
|
- uses: tibdex/github-app-token@v2
|
|
65
68
|
id: generate_token
|
|
@@ -93,65 +96,60 @@ jobs:
|
|
|
93
96
|
git config user.email "admin@hautech.ai"
|
|
94
97
|
git config user.name "Hautech Bot"
|
|
95
98
|
|
|
99
|
+
- name: Build the package
|
|
100
|
+
run: pnpm build
|
|
101
|
+
|
|
96
102
|
- name: up version
|
|
97
103
|
id: semantic
|
|
98
|
-
run:
|
|
99
|
-
OUTPUT=$(pnpm run up-versions)
|
|
100
|
-
|
|
101
|
-
echo $OUTPUT
|
|
102
|
-
|
|
103
|
-
if echo "$OUTPUT" | grep -q "no new version is released"; then
|
|
104
|
-
echo "release_created=false" >> $GITHUB_OUTPUT
|
|
105
|
-
else
|
|
106
|
-
echo "release_created=true" >> $GITHUB_OUTPUT
|
|
107
|
-
fi
|
|
104
|
+
run: pnpm run up-versions
|
|
108
105
|
env:
|
|
109
106
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
pnpm
|
|
156
|
-
|
|
157
|
-
|
|
107
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
108
|
+
|
|
109
|
+
# publish:
|
|
110
|
+
# runs-on: ubuntu-22.04
|
|
111
|
+
# name: Publish
|
|
112
|
+
# needs: [version]
|
|
113
|
+
# environment: main
|
|
114
|
+
# if: (!contains(needs.version.result, 'failure') && needs.version.outputs.release_created == 'true' && always())
|
|
115
|
+
# steps:
|
|
116
|
+
# - name: Checkout
|
|
117
|
+
# uses: actions/checkout@v4.2.2
|
|
118
|
+
# with:
|
|
119
|
+
# fetch-depth: 0
|
|
120
|
+
#
|
|
121
|
+
# - name: Setup PNPM
|
|
122
|
+
# uses: pnpm/action-setup@v3
|
|
123
|
+
# with:
|
|
124
|
+
# run_install: false
|
|
125
|
+
#
|
|
126
|
+
# - name: Setup Node.js
|
|
127
|
+
# uses: actions/setup-node@v4.4.0
|
|
128
|
+
# with:
|
|
129
|
+
# node-version: ${{ env.NODE_VERSION }}
|
|
130
|
+
# registry-url: 'https://registry.npmjs.org'
|
|
131
|
+
# cache: 'pnpm'
|
|
132
|
+
#
|
|
133
|
+
# - name: Install dependencies
|
|
134
|
+
# run: pnpm install --frozen-lockfile
|
|
135
|
+
# env:
|
|
136
|
+
# HUSKY: 0
|
|
137
|
+
#
|
|
138
|
+
# - name: Get version
|
|
139
|
+
# id: version
|
|
140
|
+
# run: |
|
|
141
|
+
# git fetch --all --tags
|
|
142
|
+
#
|
|
143
|
+
# TAG=$(git tag --list "${{ env.TAG_PREFIX }}/${{ env.APP_NAME }}@*" | sort -V | tail -n 1 | awk -F'@' '{print $3}')
|
|
144
|
+
#
|
|
145
|
+
# echo "tag=$TAG" >> $GITHUB_OUTPUT
|
|
146
|
+
#
|
|
147
|
+
# - name: Build the package
|
|
148
|
+
# run: pnpm build
|
|
149
|
+
#
|
|
150
|
+
# - name: Publish the package
|
|
151
|
+
# run: |
|
|
152
|
+
# pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
|
|
153
|
+
# pnpm publish --no-git-checks --access public
|
|
154
|
+
# env:
|
|
155
|
+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## [1.0.4](https://github.com/HautechAI/sdk/compare/@hautechai/sdk@1.0.3...@hautechai/sdk@1.0.4) (2025-07-17)
|
package/package.json
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@hautechai/sdk",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/HautechAI/sdk"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"generate": "./scripts/generate.sh",
|
|
14
|
+
"lint": "nx run-many --all --target=lint",
|
|
15
|
+
"lint:fix": "nx run-many --all --target=lint --fix",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"up-versions": "./scripts/up-versions.sh"
|
|
18
|
+
},
|
|
19
|
+
"description": "Hautech SDK",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@hautechai/pipelines": "0.5.0",
|
|
22
|
+
"axios": "1.7.9",
|
|
23
|
+
"jose": "5.9.6",
|
|
24
|
+
"websocket": "^1.0.35"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@jest/globals": "^29.7.0",
|
|
28
|
+
"@openapitools/openapi-generator-cli": "2.15.3",
|
|
29
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
30
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
31
|
+
"@semantic-release/github": "^11.0.3",
|
|
32
|
+
"@semantic-release/npm": "^12.0.2",
|
|
33
|
+
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
34
|
+
"@types/jest": "29.5.12",
|
|
35
|
+
"@types/jsonwebtoken": "9.0.7",
|
|
36
|
+
"@types/node": "22.5.2",
|
|
37
|
+
"@types/websocket": "^1.0.10",
|
|
38
|
+
"@types/ws": "^8.5.14",
|
|
39
|
+
"dotenv": "16.4.7",
|
|
40
|
+
"jest": "29.7.0",
|
|
41
|
+
"jest-environment-jsdom": "29.7.0",
|
|
42
|
+
"prettier": "^3.5.1",
|
|
43
|
+
"semantic-release": "^24.2.7",
|
|
44
|
+
"ts-jest": "29.2.5",
|
|
45
|
+
"ts-node": "10.9.2",
|
|
46
|
+
"tslib": "2.7.0",
|
|
47
|
+
"typescript": "5.5.4"
|
|
48
|
+
},
|
|
49
|
+
"packageManager": "pnpm@10.12.3+sha512.467df2c586056165580ad6dfb54ceaad94c5a30f80893ebdec5a44c5aa73c205ae4a5bb9d5ed6bb84ea7c249ece786642bbb49d06a307df218d03da41c317417"
|
|
50
|
+
}
|
package/release.config.cjs
CHANGED
|
File without changes
|
package/scripts/generate.sh
CHANGED
|
File without changes
|
package/scripts/up-versions.sh
CHANGED
|
File without changes
|