fix(core): update

This commit is contained in:
Philipp Kunz 2024-04-01 02:58:27 +02:00
parent 8997ded81d
commit 4a17a1073e
4 changed files with 89 additions and 50 deletions

View File

@ -19,7 +19,7 @@
"@git.zone/tsrun": "^1.2.8",
"@git.zone/tstest": "^1.0.88",
"@git.zone/tswatch": "^2.0.1",
"@push.rocks/tapbundle": "^5.0.17"
"@push.rocks/tapbundle": "^5.0.22"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.18.0",
@ -43,7 +43,7 @@
"@tsclass/tsclass": "^4.0.52",
"mailauth": "^4.6.5",
"mailparser": "^3.6.9",
"openai": "^4.29.1",
"openai": "^4.29.2",
"uuid": "^9.0.1"
}
}

View File

@ -22,7 +22,7 @@ dependencies:
version: 6.0.3
'@apiclient.xyz/letterxpress':
specifier: ^1.0.17
version: 1.0.17(@types/node@20.11.29)
version: 1.0.17(@types/node@20.11.30)
'@push.rocks/projectinfo':
specifier: ^5.0.1
version: 5.0.2
@ -69,8 +69,8 @@ dependencies:
specifier: ^3.6.9
version: 3.6.9
openai:
specifier: ^4.29.1
version: 4.29.1
specifier: ^4.29.2
version: 4.29.2
uuid:
specifier: ^9.0.1
version: 9.0.1
@ -81,16 +81,16 @@ devDependencies:
version: 2.1.72
'@git.zone/tsrun':
specifier: ^1.2.8
version: 1.2.46(@types/node@20.11.29)
version: 1.2.46(@types/node@20.11.30)
'@git.zone/tstest':
specifier: ^1.0.88
version: 1.0.88(@types/node@20.11.29)
version: 1.0.88(@types/node@20.11.30)
'@git.zone/tswatch':
specifier: ^2.0.1
version: 2.0.23(@types/node@20.11.29)
version: 2.0.23(@types/node@20.11.30)
'@push.rocks/tapbundle':
specifier: ^5.0.17
version: 5.0.17
specifier: ^5.0.22
version: 5.0.22
packages:
@ -193,10 +193,10 @@ packages:
'@tsclass/tsclass': 4.0.52
dev: false
/@apiclient.xyz/letterxpress@1.0.17(@types/node@20.11.29):
/@apiclient.xyz/letterxpress@1.0.17(@types/node@20.11.30):
resolution: {integrity: sha512-8W5C2Hq7eV72d8u1VDDHDJhfoGnyuGxU1T5NtPFXJdyKgFKBRkCksD4ELio6rpJt9DmevTmgUYrLIZFmXZg4Gw==}
dependencies:
'@design.estate/dees-document': 1.0.99(@types/node@20.11.29)
'@design.estate/dees-document': 1.0.99(@types/node@20.11.30)
'@push.rocks/smartbuffer': 1.0.3
'@push.rocks/smarthash': 3.0.4
'@push.rocks/smartpromise': 4.0.3
@ -803,12 +803,12 @@ packages:
dev: false
optional: true
/@babel/code-frame@7.23.5:
resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==}
/@babel/code-frame@7.24.2:
resolution: {integrity: sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/highlight': 7.23.4
chalk: 2.4.2
'@babel/highlight': 7.24.2
picocolors: 1.0.0
dev: true
/@babel/helper-validator-identifier@7.22.20:
@ -816,13 +816,14 @@ packages:
engines: {node: '>=6.9.0'}
dev: true
/@babel/highlight@7.23.4:
resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==}
/@babel/highlight@7.24.2:
resolution: {integrity: sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-validator-identifier': 7.22.20
chalk: 2.4.2
js-tokens: 4.0.0
picocolors: 1.0.0
dev: true
/@babel/runtime@7.23.9:
@ -853,13 +854,13 @@ packages:
broadcast-channel: 3.7.0
dev: false
/@design.estate/dees-document@1.0.99(@types/node@20.11.29):
/@design.estate/dees-document@1.0.99(@types/node@20.11.30):
resolution: {integrity: sha512-sDJloFXXo9haXCib8SX8v+qBT3z2pUEX4pSAgrHLROrYptfMBURA8QVb5GKF1GXx4IOQ/9rLvyop+fe1P2H7LQ==}
dependencies:
'@design.estate/dees-domtools': 2.0.57
'@design.estate/dees-element': 2.0.34
'@design.estate/dees-wcctools': 1.0.87
'@git.zone/tsrun': 1.2.46(@types/node@20.11.29)
'@git.zone/tsrun': 1.2.46(@types/node@20.11.30)
'@push.rocks/smartfile': 11.0.4
'@push.rocks/smartjson': 5.0.10
'@push.rocks/smartpath': 5.0.11
@ -1134,7 +1135,7 @@ packages:
/@esm-bundle/chai@4.3.4-fix.0:
resolution: {integrity: sha512-26SKdM4uvDWlY8/OOOxSB1AqQWeBosCX3wRYUZO7enTAj03CtVxIiCimYVG2WpULcyV51qapK4qTovwkUr5Mlw==}
dependencies:
'@types/chai': 4.3.12
'@types/chai': 4.3.13
dev: true
/@fastify/busboy@2.1.0:
@ -1177,26 +1178,26 @@ packages:
- supports-color
dev: true
/@git.zone/tsrun@1.2.46(@types/node@20.11.29):
/@git.zone/tsrun@1.2.46(@types/node@20.11.30):
resolution: {integrity: sha512-8miFVBle9Mnjx+uPGI/P+EuWcIOXWjBAkdjN5IYbdp5Ytt4xQODCLh4JSnC9h56UeU1nUxCAxZeJs2e9TXrivA==}
hasBin: true
dependencies:
'@push.rocks/smartfile': 10.0.41
'@push.rocks/smartshell': 3.0.3
ts-node: 10.9.2(@types/node@20.11.29)(typescript@5.1.6)
ts-node: 10.9.2(@types/node@20.11.30)(typescript@5.1.6)
typescript: 5.1.6
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
- '@types/node'
/@git.zone/tstest@1.0.88(@types/node@20.11.29):
/@git.zone/tstest@1.0.88(@types/node@20.11.30):
resolution: {integrity: sha512-yTBKLI48Nz35qHOJ9ZnXY06VvBAhcC3NEZ4YyGDN4CmrZQ6MVK3fIMQUQCFVmba0GzSmvbgbJcZnd6IRezkyzQ==}
hasBin: true
dependencies:
'@api.global/typedserver': 3.0.27
'@git.zone/tsbundle': 2.0.15
'@git.zone/tsrun': 1.2.46(@types/node@20.11.29)
'@git.zone/tsrun': 1.2.46(@types/node@20.11.30)
'@push.rocks/consolecolor': 2.0.2
'@push.rocks/smartbrowser': 2.0.6
'@push.rocks/smartdelay': 3.0.5
@ -1204,7 +1205,7 @@ packages:
'@push.rocks/smartlog': 3.0.3
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smartshell': 3.0.4
'@push.rocks/tapbundle': 5.0.17
'@push.rocks/tapbundle': 5.0.22
'@types/ws': 8.5.10
figures: 6.1.0
ws: 8.16.0
@ -1218,13 +1219,13 @@ packages:
- utf-8-validate
dev: true
/@git.zone/tswatch@2.0.23(@types/node@20.11.29):
/@git.zone/tswatch@2.0.23(@types/node@20.11.30):
resolution: {integrity: sha512-ADloBDzuyyOjzDLwOVx+5lBEKJdx+r58Qat+oCDOOlRMwDOJcjI4qQOU8PVzFYCh7otraia6aNeXWXfKgKA92g==}
hasBin: true
dependencies:
'@api.global/typedserver': 3.0.27
'@git.zone/tsbundle': 2.0.15
'@git.zone/tsrun': 1.2.46(@types/node@20.11.29)
'@git.zone/tsrun': 1.2.46(@types/node@20.11.30)
'@push.rocks/early': 4.0.4
'@push.rocks/lik': 6.0.12
'@push.rocks/smartchok': 1.0.32
@ -1329,7 +1330,7 @@ packages:
/@open-wc/semantic-dom-diff@0.20.1:
resolution: {integrity: sha512-mPF/RPT2TU7Dw41LEDdaeP6eyTOWBD4z0+AHP4/d0SbgcfJZVRymlIB6DQmtz0fd2CImIS9kszaMmwMt92HBPA==}
dependencies:
'@types/chai': 4.3.12
'@types/chai': 4.3.13
'@web/test-runner-commands': 0.9.0
transitivePeerDependencies:
- bufferutil
@ -1681,6 +1682,16 @@ packages:
fast-json-stable-stringify: 2.1.0
lodash.clonedeep: 4.5.0
/@push.rocks/smartjson@5.0.16:
resolution: {integrity: sha512-uUlR6VjeaIpveOVuFDPSUnYJ5vN8RzSalotDl488iZAvHipkubHdBp2GKPGuj3jo2syRGKmzlGAwJyLmh9Ptpg==}
dependencies:
'@push.rocks/smartbuffer': 1.0.7
'@push.rocks/smartenv': 5.0.12
'@push.rocks/smartstring': 4.0.15
fast-json-stable-stringify: 2.1.0
lodash.clonedeep: 4.5.0
dev: true
/@push.rocks/smartlog-destination-devtools@1.0.10:
resolution: {integrity: sha512-E6xRx5vhR7gh9peXjUyBwNj0H0MeaBjh+PY++PbOhUF4NDMaEuswRLRs+UN9bfbLXZQl2i4hYD1MNCesHGTVgA==}
dependencies:
@ -2020,14 +2031,15 @@ packages:
'@types/js-yaml': 3.12.10
js-yaml: 3.14.1
/@push.rocks/tapbundle@5.0.17:
resolution: {integrity: sha512-I5N2ODuRmXQGFIM5f69GOLVkq2tJxMzz3BfHISbu0m5gLJLaLu6mYtbaFqUkUsJK9DCZWSWAY2CexUr+P0JEpw==}
/@push.rocks/tapbundle@5.0.22:
resolution: {integrity: sha512-dwX/jtoYKynMJlkPJR7NVq6Ne4hGzBg6rCDiu+Rkp3n++QnygVi3tTNXu3Brtb6JUvx0wNfsxAFx4fuSG+oV0g==}
dependencies:
'@open-wc/testing': 4.0.0
'@push.rocks/consolecolor': 2.0.2
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartenv': 5.0.12
'@push.rocks/smartexpect': 1.0.21
'@push.rocks/smartjson': 5.0.16
'@push.rocks/smartpromise': 4.0.3
'@push.rocks/smarttime': 4.0.6
transitivePeerDependencies:
@ -2916,7 +2928,7 @@ packages:
/@types/accepts@1.3.7:
resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==}
dependencies:
'@types/node': 20.11.29
'@types/node': 20.11.30
dev: true
/@types/babel__code-frame@7.0.6:
@ -2935,11 +2947,11 @@ packages:
/@types/chai-dom@1.11.3:
resolution: {integrity: sha512-EUEZI7uID4ewzxnU7DJXtyvykhQuwe+etJ1wwOiJyQRTH/ifMWKX+ghiXkxCUvNJ6IQDodf0JXhuP6zZcy2qXQ==}
dependencies:
'@types/chai': 4.3.12
'@types/chai': 4.3.13
dev: true
/@types/chai@4.3.12:
resolution: {integrity: sha512-zNKDHG/1yxm8Il6uCCVsm+dRdEsJlFoDu73X17y09bId6UwoYww+vFBsAcRzl8knM1sab3Dp1VRikFQwDOtDDw==}
/@types/chai@4.3.13:
resolution: {integrity: sha512-+LxQEbg4BDUf88utmhpUpTyYn1zHao443aGnXIAQak9ZMt9Rtsic0Oig0OS1xyIqdDXc5uMekoC6NaiUlkT/qA==}
dev: true
/@types/clean-css@4.2.11:
@ -2952,7 +2964,7 @@ packages:
/@types/co-body@6.1.3:
resolution: {integrity: sha512-UhuhrQ5hclX6UJctv5m4Rfp52AfG9o9+d9/HwjxhVB5NjXxr5t9oKgJxN8xRHgr35oo8meUEHUPFWiKg6y71aA==}
dependencies:
'@types/node': 20.11.29
'@types/node': 20.11.30
'@types/qs': 6.9.13
dev: true
@ -2978,7 +2990,7 @@ packages:
'@types/connect': 3.4.38
'@types/express': 4.17.21
'@types/keygrip': 1.0.6
'@types/node': 20.11.29
'@types/node': 20.11.30
dev: true
/@types/cors@2.8.17:
@ -3123,7 +3135,7 @@ packages:
'@types/http-errors': 2.0.4
'@types/keygrip': 1.0.6
'@types/koa-compose': 3.2.8
'@types/node': 20.11.29
'@types/node': 20.11.30
dev: true
/@types/mdast@4.0.3:
@ -3164,6 +3176,12 @@ packages:
undici-types: 5.26.5
dev: false
/@types/node@18.19.26:
resolution: {integrity: sha512-+wiMJsIwLOYCvUqSdKTrfkS8mpTp+MPINe6+Np4TAGFWWRWiBQ5kSq9nZGCSPkzx9mvT+uEukzpX4MOSCydcvw==}
dependencies:
undici-types: 5.26.5
dev: false
/@types/node@20.11.19:
resolution: {integrity: sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==}
dependencies:
@ -3174,6 +3192,11 @@ packages:
dependencies:
undici-types: 5.26.5
/@types/node@20.11.30:
resolution: {integrity: sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==}
dependencies:
undici-types: 5.26.5
/@types/parse5@6.0.3:
resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}
dev: true
@ -3216,7 +3239,7 @@ packages:
/@types/sinon-chai@3.2.12:
resolution: {integrity: sha512-9y0Gflk3b0+NhQZ/oxGtaAJDvRywCa5sIyaVnounqLvmf93yBF4EgIRspePtkMs3Tr844nCclYMlcCNmLCvjuQ==}
dependencies:
'@types/chai': 4.3.12
'@types/chai': 4.3.13
'@types/sinon': 17.0.3
dev: true
@ -3278,7 +3301,7 @@ packages:
/@types/ws@7.4.7:
resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==}
dependencies:
'@types/node': 20.11.29
'@types/node': 20.11.30
dev: true
/@types/ws@8.5.10:
@ -3291,7 +3314,7 @@ packages:
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
requiresBuild: true
dependencies:
'@types/node': 20.11.29
'@types/node': 20.11.30
optional: true
/@ungap/structured-clone@1.2.0:
@ -3357,7 +3380,7 @@ packages:
resolution: {integrity: sha512-2hESALx/UFsAzK+ApWXAkFp2eCmwcs2yj1v4YjwV8F38sQumJ40P3px3BMjFwkOYDORtQOicW0RUeSw1g3BMLA==}
engines: {node: '>=18.0.0'}
dependencies:
'@babel/code-frame': 7.23.5
'@babel/code-frame': 7.24.2
'@types/babel__code-frame': 7.0.6
'@types/co-body': 6.1.3
'@types/convert-source-map': 2.0.3
@ -6205,6 +6228,18 @@ packages:
dependencies:
whatwg-url: 5.0.0
/node-fetch@2.7.0:
resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
engines: {node: 4.x || >=6.0.0}
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
dependencies:
whatwg-url: 5.0.0
dev: false
/nodemailer@6.9.11:
resolution: {integrity: sha512-UiAkgiERuG94kl/3bKfE8o10epvDnl0vokNEtZDPTq9BWzIl6EFT9336SbIT4oaTBD8NmmUTLsQyXHV82eXSWg==}
engines: {node: '>=6.0.0'}
@ -6279,18 +6314,18 @@ packages:
is-docker: 2.2.1
is-wsl: 2.2.0
/openai@4.29.1:
resolution: {integrity: sha512-vvKRIgB4/7w48PGVbeR8OceH/PT6fRo4sTIjRC7+y7WoK7by1R0cXs2SZRx4KsEh0ZB8J0eqdVIdRgs8XzeoEg==}
/openai@4.29.2:
resolution: {integrity: sha512-cPkT6zjEcE4qU5OW/SoDDuXEsdOLrXlAORhzmaguj5xZSPlgKvLhi27sFWhLKj07Y6WKNWxcwIbzm512FzTBNQ==}
hasBin: true
dependencies:
'@types/node': 18.19.25
'@types/node': 18.19.26
'@types/node-fetch': 2.6.11
abort-controller: 3.0.0
agentkeepalive: 4.5.0
digest-fetch: 1.3.0
form-data-encoder: 1.7.2
formdata-node: 4.4.1
node-fetch: 2.6.7
node-fetch: 2.7.0
web-streams-polyfill: 3.3.3
transitivePeerDependencies:
- encoding
@ -6428,6 +6463,10 @@ packages:
/pend@1.2.0:
resolution: {integrity: sha1-elfrVQpng/kRUzH89GY9XI4AelA=}
/picocolors@1.0.0:
resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
dev: true
/picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
@ -7180,7 +7219,7 @@ packages:
resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}
dev: false
/ts-node@10.9.2(@types/node@20.11.29)(typescript@5.1.6):
/ts-node@10.9.2(@types/node@20.11.30)(typescript@5.1.6):
resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}
hasBin: true
peerDependencies:
@ -7199,7 +7238,7 @@ packages:
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 20.11.29
'@types/node': 20.11.30
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/platformservice',
version: '1.0.7',
version: '1.0.8',
description: 'contains the platformservice container with mail, sms, letter, ai services.'
}

View File

@ -28,7 +28,7 @@ export class OpenAiBridge {
}[]
) {
const result = await this.openAiApiClient.chat.completions.create({
model: 'gpt-3.5-turbo-16k-0613',
model: 'gpt-4-turbo-preview',
messages: [
{ role: 'system', content: systemMessage },
...messageHistory,