@comate/zulu 0.0.12 → 0.1.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.
package/README.md CHANGED
@@ -58,6 +58,7 @@ zulu run --query="你好" --license=xxxx
58
58
  | run | 是 | --query | 问题的内容 |
59
59
  | run | | --cwd | 工作路径,默认执行时所在地址 |
60
60
  | run | | --ripgrep | ripgrep的绝对路径 |
61
+ | run | | --max | max模式的模型id |
61
62
  | | | --ping | 测试网络连通性 |
62
63
  | | | --help | 帮助 |
63
64
  | | | --version | 版本号 |
@@ -1,10 +1,41 @@
1
1
  // ================ polyfill start ================
2
- import { compare } from 'compare-versions';
2
+ import {compare} from 'compare-versions';
3
3
  if (compare(process.version, '18.0.0', '<')) {
4
4
  await import('web-streams-polyfill/polyfill');
5
5
  }
6
6
  // ================= polyfill end =================
7
7
 
8
+ // TODO 重定向到日志系统
9
+ [
10
+ 'log',
11
+ 'info',
12
+ 'warn',
13
+ 'error',
14
+ 'debug',
15
+ 'trace',
16
+ 'dir',
17
+ 'dirxml',
18
+ 'table',
19
+ 'time',
20
+ 'timeEnd',
21
+ 'timeLog',
22
+ 'timeStamp',
23
+ 'group',
24
+ 'groupCollapsed',
25
+ 'groupEnd',
26
+ 'count',
27
+ 'countReset',
28
+ 'clear',
29
+ 'assert',
30
+ 'profile',
31
+ 'profileEnd',
32
+ ]
33
+ .forEach(key => {
34
+ console[key] = function () {
35
+ // nothing to do
36
+ };
37
+ });
38
+
8
39
  // 通过await import延迟加载,使得polyfill在主模块之前执行
9
40
  const {run} = await import('../server.js');
10
41
  run();