@cloudbase/ai 3.6.2 → 3.6.5-alpha.0

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.
Files changed (41) hide show
  1. package/dist/miniprogram/index.js +1 -1
  2. package/dist/miniprogram/index.js.LICENSE.txt +2 -2
  3. package/package.json +8 -4
  4. package/.eslintignore +0 -2
  5. package/.eslintrc.js +0 -16
  6. package/src/AI.ts +0 -191
  7. package/src/bot/index.ts +0 -278
  8. package/src/bot/types.ts +0 -165
  9. package/src/errors.ts +0 -23
  10. package/src/eventsource_parser/index.ts +0 -2
  11. package/src/eventsource_parser/parse.ts +0 -169
  12. package/src/eventsource_parser/stream.ts +0 -35
  13. package/src/eventsource_parser/types.ts +0 -90
  14. package/src/index.ts +0 -165
  15. package/src/models/Ark/index.ts +0 -94
  16. package/src/models/Ark/type.ts +0 -82
  17. package/src/models/DashScope/index.ts +0 -97
  18. package/src/models/DashScope/type.ts +0 -76
  19. package/src/models/DeepSeek/index.ts +0 -80
  20. package/src/models/Default/index.ts +0 -70
  21. package/src/models/HunYuan/index.ts +0 -94
  22. package/src/models/HunYuan/type.ts +0 -85
  23. package/src/models/HunYuan/util.ts +0 -60
  24. package/src/models/HunYuanBeta/index.ts +0 -83
  25. package/src/models/HunYuanExp/index.ts +0 -80
  26. package/src/models/HunYuanOpen/index.ts +0 -83
  27. package/src/models/Moonshot/index.ts +0 -95
  28. package/src/models/Moonshot/type.ts +0 -82
  29. package/src/models/Yi/index.ts +0 -100
  30. package/src/models/Yi/type.ts +0 -77
  31. package/src/models/ZhiPu/index.ts +0 -104
  32. package/src/models/ZhiPu/type.ts +0 -71
  33. package/src/models/image-model.ts +0 -100
  34. package/src/models/index.ts +0 -41
  35. package/src/models/model.ts +0 -425
  36. package/src/type.ts +0 -362
  37. package/src/utils.ts +0 -198
  38. package/tsconfig.esm.json +0 -16
  39. package/tsconfig.json +0 -16
  40. package/webpack/web.prod.js +0 -100
  41. package/webpack/webpack.miniprogram.js +0 -24
@@ -1,24 +0,0 @@
1
- const path = require('path')
2
-
3
- const params = {
4
- context: path.resolve(__dirname, '../'),
5
- mode: 'production',
6
- watch: false,
7
- entry: path.resolve(__dirname, '../src/index.ts'),
8
- output: {
9
- path: path.resolve(__dirname, '../dist/miniprogram'),
10
- filename: 'index.js',
11
- library: `tcbauth`,
12
- libraryTarget: 'umd',
13
- umdNamedDefine: true,
14
- globalObject: 'typeof window !== "undefined"?window:this',
15
- },
16
- externals: {
17
- },
18
- definePlugin: {
19
- 'process.env.NODE_ENV': JSON.stringify('production'), // 注入环境变量,用于业务代码判断
20
- 'globalThis.IS_MP_BUILD': true,
21
- },
22
- }
23
-
24
- module.exports = require('./web.prod.js')(params)