@ty_krystal/sei-ai 0.1.8 → 0.1.13

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 (59) hide show
  1. package/README.md +34 -65
  2. package/dist/commands/api-docs.d.ts +1 -2
  3. package/dist/commands/api-docs.js +1 -1
  4. package/dist/commands/call.d.ts +1 -2
  5. package/dist/commands/call.js +1 -1
  6. package/dist/commands/dict/add-category.d.ts +1 -2
  7. package/dist/commands/dict/add-category.js +1 -1
  8. package/dist/commands/dict/add-item.d.ts +1 -2
  9. package/dist/commands/dict/add-item.js +1 -1
  10. package/dist/commands/dict/list.d.ts +1 -2
  11. package/dist/commands/dict/list.js +1 -1
  12. package/dist/commands/init/base-data.d.ts +1 -2
  13. package/dist/commands/init/base-data.js +1 -1
  14. package/dist/commands/query-sql.d.ts +1 -2
  15. package/dist/commands/query-sql.js +1 -1
  16. package/dist/commands/query.d.ts +1 -2
  17. package/dist/commands/query.js +1 -1
  18. package/dist/commands/relogin.d.ts +1 -2
  19. package/dist/commands/relogin.js +1 -1
  20. package/dist/commands/save.d.ts +1 -2
  21. package/dist/commands/save.js +1 -1
  22. package/dist/commands.d.ts +24 -0
  23. package/dist/commands.js +23 -0
  24. package/dist/core/cli-actions.d.ts +94 -0
  25. package/dist/core/cli-actions.js +155 -0
  26. package/dist/core/cli-helpers.d.ts +39 -0
  27. package/dist/core/cli-helpers.js +246 -0
  28. package/dist/core/command-base/context.d.ts +6 -0
  29. package/dist/core/command-base/context.js +10 -0
  30. package/dist/core/command-base/output.d.ts +2 -0
  31. package/dist/core/command-base/output.js +6 -0
  32. package/dist/core/command-base/payload.d.ts +7 -0
  33. package/dist/core/command-base/payload.js +33 -0
  34. package/dist/core/command-base/sei-command.d.ts +40 -0
  35. package/dist/core/command-base/sei-command.js +85 -0
  36. package/dist/core/config.d.ts +3 -0
  37. package/dist/core/config.js +80 -0
  38. package/dist/core/constants.d.ts +35 -0
  39. package/dist/core/constants.js +48 -0
  40. package/dist/core/env.d.ts +1 -0
  41. package/dist/core/env.js +55 -0
  42. package/dist/core/errors.d.ts +10 -0
  43. package/dist/core/errors.js +55 -0
  44. package/dist/core/index.d.ts +14 -0
  45. package/dist/core/index.js +14 -0
  46. package/dist/core/logger.d.ts +2 -0
  47. package/dist/core/logger.js +71 -0
  48. package/dist/core/openapi.d.ts +2 -0
  49. package/dist/core/openapi.js +261 -0
  50. package/dist/core/sei-client.d.ts +25 -0
  51. package/dist/core/sei-client.js +524 -0
  52. package/dist/core/types.d.ts +135 -0
  53. package/dist/core/types.js +1 -0
  54. package/dist/core/utils.d.ts +12 -0
  55. package/dist/core/utils.js +53 -0
  56. package/dist/hooks/command_not_found.d.ts +3 -0
  57. package/dist/hooks/command_not_found.js +36 -0
  58. package/oclif.manifest.json +361 -423
  59. package/package.json +18 -8
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @ty_krystal/sei-ai
20
20
  $ sei-ai COMMAND
21
21
  running command...
22
22
  $ sei-ai (--version)
23
- @ty_krystal/sei-ai/0.1.8 linux-x64 node-v24.17.0
23
+ @ty_krystal/sei-ai/0.1.13 linux-x64 node-v24.17.0
24
24
  $ sei-ai --help [COMMAND]
25
25
  USAGE
26
26
  $ sei-ai COMMAND
@@ -58,9 +58,9 @@ Export and render OpenAPI docs
58
58
 
59
59
  ```
60
60
  USAGE
61
- $ sei-ai api-docs [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
62
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--format
63
- <value>] [--keyword <value>] [--output <value>]
61
+ $ sei-ai api-docs [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
62
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--format <value>]
63
+ [--keyword <value>] [--output <value>]
64
64
 
65
65
  FLAGS
66
66
  --account=<value> AI 登录账号
@@ -72,7 +72,6 @@ FLAGS
72
72
  --format=<value> [default: markdown] 输出格式
73
73
  --keyword=<value> 过滤关键字
74
74
  --output=<value> 输出文件路径
75
- --role=<value> AI 登录角色
76
75
  --timeout=<value> 请求超时(毫秒)
77
76
  --token=<value> 固定 token
78
77
 
@@ -82,17 +81,15 @@ DESCRIPTION
82
81
  Fetches the SEI OpenAPI document and renders a markdown or JSON summary.
83
82
  ```
84
83
 
85
- _See code: [src/commands/api-docs.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/api-docs.ts)_
86
-
87
84
  ## `sei-ai call METHOD PATH`
88
85
 
89
86
  Call a SEI endpoint
90
87
 
91
88
  ```
92
89
  USAGE
93
- $ sei-ai call METHOD PATH [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>]
94
- [--account <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
95
- [--allow-empty] [--allow-failure] [--file <value>] [--json <value>] [--no-token] [--stdin]
90
+ $ sei-ai call METHOD PATH [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
91
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-empty]
92
+ [--allow-failure] [--file <value>] [--json <value>] [--no-token] [--stdin]
96
93
 
97
94
  ARGUMENTS
98
95
  METHOD HTTP method
@@ -110,7 +107,6 @@ FLAGS
110
107
  --file=<value> JSON file path
111
108
  --json=<value> JSON payload
112
109
  --no-token 不附带 token
113
- --role=<value> AI 登录角色
114
110
  --stdin Read JSON payload from stdin
115
111
  --timeout=<value> 请求超时(毫秒)
116
112
  --token=<value> 固定 token
@@ -121,16 +117,14 @@ DESCRIPTION
121
117
  Makes an authenticated request to a SEI endpoint.
122
118
  ```
123
119
 
124
- _See code: [src/commands/call.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/call.ts)_
125
-
126
120
  ## `sei-ai dict:add-category NAME TYPECODE`
127
121
 
128
122
  Add a dictionary category
129
123
 
130
124
  ```
131
125
  USAGE
132
- $ sei-ai dict:add-category NAME TYPECODE [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>]
133
- [--account <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
126
+ $ sei-ai dict:add-category NAME TYPECODE [--config <value>] [--base-url <value>] [--ai-key <value>] [--account
127
+ <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
134
128
  [--allow-failure] [--body <value>] [--code <value>] [--ctype <value>] [--dict-flag <value>] [--ename <value>]
135
129
  [--memo <value>] [--sort <value>] [--sysid <value>] [--uuid <value>]
136
130
 
@@ -152,7 +146,6 @@ FLAGS
152
146
  --dict-flag=<value> 字典标记
153
147
  --ename=<value> 英文名
154
148
  --memo=<value> 备注
155
- --role=<value> AI 登录角色
156
149
  --sort=<value> 排序号
157
150
  --sysid=<value> 系统编号
158
151
  --timeout=<value> 请求超时(毫秒)
@@ -165,18 +158,16 @@ DESCRIPTION
165
158
  Builds and saves a SEI dictionary category row.
166
159
  ```
167
160
 
168
- _See code: [src/commands/dict/add-category.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/dict/add-category.ts)_
169
-
170
161
  ## `sei-ai dict:add-item CODE NAME TYPECODE`
171
162
 
172
163
  Add a dictionary item
173
164
 
174
165
  ```
175
166
  USAGE
176
- $ sei-ai dict:add-item CODE NAME TYPECODE [--config <value>] [--base-url <value>] [--ai-key <value>] [--role
177
- <value>] [--account <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout
178
- <value>] [--allow-failure] [--body <value>] [--ctype <value>] [--dict-flag <value>] [--ename <value>] [--memo
179
- <value>] [--parent <value>] [--sort <value>] [--sysid <value>] [--uuid <value>]
167
+ $ sei-ai dict:add-item CODE NAME TYPECODE [--config <value>] [--base-url <value>] [--ai-key <value>] [--account
168
+ <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
169
+ [--allow-failure] [--body <value>] [--ctype <value>] [--dict-flag <value>] [--ename <value>] [--memo <value>]
170
+ [--parent <value>] [--sort <value>] [--sysid <value>] [--uuid <value>]
180
171
 
181
172
  ARGUMENTS
182
173
  CODE 字典项编码
@@ -197,7 +188,6 @@ FLAGS
197
188
  --ename=<value> 英文名
198
189
  --memo=<value> 备注
199
190
  --parent=<value> 父级编号
200
- --role=<value> AI 登录角色
201
191
  --sort=<value> 排序号
202
192
  --sysid=<value> 系统编号
203
193
  --timeout=<value> 请求超时(毫秒)
@@ -210,17 +200,15 @@ DESCRIPTION
210
200
  Builds and saves a SEI dictionary item row.
211
201
  ```
212
202
 
213
- _See code: [src/commands/dict/add-item.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/dict/add-item.ts)_
214
-
215
203
  ## `sei-ai dict:list`
216
204
 
217
205
  List dictionary entries
218
206
 
219
207
  ```
220
208
  USAGE
221
- $ sei-ai dict:list [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
222
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
223
- [--allow-failure] [--flat] [--keyword <value>] [--size <value>] [--type <value>]
209
+ $ sei-ai dict:list [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
210
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-failure]
211
+ [--flat] [--keyword <value>] [--size <value>] [--type <value>]
224
212
 
225
213
  FLAGS
226
214
  --account=<value> AI 登录账号
@@ -232,7 +220,6 @@ FLAGS
232
220
  --config=<value> 配置文件路径
233
221
  --flat 只输出平铺结果
234
222
  --keyword=<value> 过滤关键字
235
- --role=<value> AI 登录角色
236
223
  --size=<value> [default: 1000] 返回条数
237
224
  --timeout=<value> 请求超时(毫秒)
238
225
  --token=<value> 固定 token
@@ -244,8 +231,6 @@ DESCRIPTION
244
231
  Queries SEI dictionary data and optionally renders the tree structure.
245
232
  ```
246
233
 
247
- _See code: [src/commands/dict/list.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/dict/list.ts)_
248
-
249
234
  ## `sei-ai help [COMMAND]`
250
235
 
251
236
  Display help for sei-ai.
@@ -272,10 +257,10 @@ Initialize base data
272
257
 
273
258
  ```
274
259
  USAGE
275
- $ sei-ai init:base-data [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
276
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
277
- [--admin-name <value>] [--admin-password <value>] [--admin-role <value>] [--admin-role-name <value>] [--admin-uid
278
- <value>] [--allow-failure] [--reset-admin-password] [--sql-file <value>] [--sysid <value>]
260
+ $ sei-ai init:base-data [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
261
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--admin-name
262
+ <value>] [--admin-password <value>] [--admin-role <value>] [--admin-role-name <value>] [--admin-uid <value>]
263
+ [--allow-failure] [--reset-admin-password] [--sql-file <value>] [--sysid <value>]
279
264
 
280
265
  FLAGS
281
266
  --account=<value> AI 登录账号
@@ -291,7 +276,6 @@ FLAGS
291
276
  --base-url=<value> SEI 基础地址
292
277
  --config=<value> 配置文件路径
293
278
  --reset-admin-password 重置管理员密码
294
- --role=<value> AI 登录角色
295
279
  --sql-file=<value> 初始化 SQL 文件
296
280
  --sysid=<value> 系统编号
297
281
  --timeout=<value> 请求超时(毫秒)
@@ -303,8 +287,6 @@ DESCRIPTION
303
287
  Executes the base seed SQL and clears SEI caches.
304
288
  ```
305
289
 
306
- _See code: [src/commands/init/base-data.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/init/base-data.ts)_
307
-
308
290
  ## `sei-ai plugins`
309
291
 
310
292
  List installed plugins.
@@ -601,9 +583,9 @@ Query SEI data
601
583
 
602
584
  ```
603
585
  USAGE
604
- $ sei-ai query [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
605
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
606
- [--allow-failure] [--file <value>] [--json <value>] [--stdin]
586
+ $ sei-ai query [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
587
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-failure]
588
+ [--file <value>] [--json <value>] [--stdin]
607
589
 
608
590
  FLAGS
609
591
  --account=<value> AI 登录账号
@@ -615,7 +597,6 @@ FLAGS
615
597
  --config=<value> 配置文件路径
616
598
  --file=<value> JSON file path
617
599
  --json=<value> JSON payload
618
- --role=<value> AI 登录角色
619
600
  --stdin Read JSON payload from stdin
620
601
  --timeout=<value> 请求超时(毫秒)
621
602
  --token=<value> 固定 token
@@ -626,17 +607,15 @@ DESCRIPTION
626
607
  Sends a SEI query payload.
627
608
  ```
628
609
 
629
- _See code: [src/commands/query.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/query.ts)_
630
-
631
610
  ## `sei-ai query-sql SQL`
632
611
 
633
612
  Query SEI with SQL
634
613
 
635
614
  ```
636
615
  USAGE
637
- $ sei-ai query-sql SQL [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
638
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
639
- [--allow-failure] [--page <value>] [--size <value>]
616
+ $ sei-ai query-sql SQL [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
617
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-failure]
618
+ [--page <value>] [--size <value>]
640
619
 
641
620
  ARGUMENTS
642
621
  SQL SQL 语句
@@ -650,7 +629,6 @@ FLAGS
650
629
  --base-url=<value> SEI 基础地址
651
630
  --config=<value> 配置文件路径
652
631
  --page=<value> [default: 1] 页码
653
- --role=<value> AI 登录角色
654
632
  --size=<value> [default: 20] 每页条数
655
633
  --timeout=<value> 请求超时(毫秒)
656
634
  --token=<value> 固定 token
@@ -664,16 +642,14 @@ ALIASES
664
642
  $ sei-ai sql
665
643
  ```
666
644
 
667
- _See code: [src/commands/query-sql.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/query-sql.ts)_
668
-
669
645
  ## `sei-ai relogin`
670
646
 
671
647
  Refresh the login token
672
648
 
673
649
  ```
674
650
  USAGE
675
- $ sei-ai relogin [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
676
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
651
+ $ sei-ai relogin [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
652
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
677
653
 
678
654
  FLAGS
679
655
  --account=<value> AI 登录账号
@@ -682,7 +658,6 @@ FLAGS
682
658
  --ai-key=<value> AI 登录密钥
683
659
  --base-url=<value> SEI 基础地址
684
660
  --config=<value> 配置文件路径
685
- --role=<value> AI 登录角色
686
661
  --timeout=<value> 请求超时(毫秒)
687
662
  --token=<value> 固定 token
688
663
 
@@ -692,17 +667,15 @@ DESCRIPTION
692
667
  Forces a fresh ai-login and prints the new token.
693
668
  ```
694
669
 
695
- _See code: [src/commands/relogin.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/relogin.ts)_
696
-
697
670
  ## `sei-ai save`
698
671
 
699
672
  Save SEI data
700
673
 
701
674
  ```
702
675
  USAGE
703
- $ sei-ai save [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
704
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
705
- [--allow-failure] [--file <value>] [--json <value>] [--stdin]
676
+ $ sei-ai save [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
677
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-failure]
678
+ [--file <value>] [--json <value>] [--stdin]
706
679
 
707
680
  FLAGS
708
681
  --account=<value> AI 登录账号
@@ -714,7 +687,6 @@ FLAGS
714
687
  --config=<value> 配置文件路径
715
688
  --file=<value> JSON file path
716
689
  --json=<value> JSON payload
717
- --role=<value> AI 登录角色
718
690
  --stdin Read JSON payload from stdin
719
691
  --timeout=<value> 请求超时(毫秒)
720
692
  --token=<value> 固定 token
@@ -725,17 +697,15 @@ DESCRIPTION
725
697
  Sends a SEI save payload.
726
698
  ```
727
699
 
728
- _See code: [src/commands/save.ts](https://github.com/tanyu/sei-ai/blob/v0.1.8/src/commands/save.ts)_
729
-
730
700
  ## `sei-ai sql SQL`
731
701
 
732
702
  Query SEI with SQL
733
703
 
734
704
  ```
735
705
  USAGE
736
- $ sei-ai sql SQL [--config <value>] [--base-url <value>] [--ai-key <value>] [--role <value>] [--account
737
- <value>] [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>]
738
- [--allow-failure] [--page <value>] [--size <value>]
706
+ $ sei-ai sql SQL [--config <value>] [--base-url <value>] [--ai-key <value>] [--account <value>]
707
+ [--account-project <value>] [--account-checkcode <value>] [--token <value>] [--timeout <value>] [--allow-failure]
708
+ [--page <value>] [--size <value>]
739
709
 
740
710
  ARGUMENTS
741
711
  SQL SQL 语句
@@ -749,7 +719,6 @@ FLAGS
749
719
  --base-url=<value> SEI 基础地址
750
720
  --config=<value> 配置文件路径
751
721
  --page=<value> [default: 1] 页码
752
- --role=<value> AI 登录角色
753
722
  --size=<value> [default: 20] 每页条数
754
723
  --timeout=<value> 请求超时(毫秒)
755
724
  --token=<value> 固定 token
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class ApiDocsCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
@@ -8,7 +8,6 @@ export default class ApiDocsCommand extends SeiCommand {
8
8
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
9
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
11
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
12
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
13
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { runApiDocs, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runApiDocs, SeiCommand } from '../core/index.js';
3
3
  export default class ApiDocsCommand extends SeiCommand {
4
4
  static description = 'Fetches the SEI OpenAPI document and renders a markdown or JSON summary.';
5
5
  static flags = {
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class CallCommand extends SeiCommand {
3
3
  static args: {
4
4
  method: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -15,7 +15,6 @@ export default class CallCommand extends SeiCommand {
15
15
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
17
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
18
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
19
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
20
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { runCall, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runCall, SeiCommand } from '../core/index.js';
3
3
  export default class CallCommand extends SeiCommand {
4
4
  static args = {
5
5
  method: Args.string({ description: 'HTTP method', required: true }),
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../../core/index.js';
2
2
  export default class DictAddCategoryCommand extends SeiCommand {
3
3
  static args: {
4
4
  name: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -19,7 +19,6 @@ export default class DictAddCategoryCommand extends SeiCommand {
19
19
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
20
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
21
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
22
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
23
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
24
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { runDictAddCategory, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runDictAddCategory, SeiCommand } from '../../core/index.js';
3
3
  export default class DictAddCategoryCommand extends SeiCommand {
4
4
  static args = {
5
5
  name: Args.string({ description: '字典名称', required: true }),
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../../core/index.js';
2
2
  export default class DictAddItemCommand extends SeiCommand {
3
3
  static args: {
4
4
  code: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
@@ -20,7 +20,6 @@ export default class DictAddItemCommand extends SeiCommand {
20
20
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
21
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
22
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
23
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
24
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
26
25
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { runDictAddItem, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runDictAddItem, SeiCommand } from '../../core/index.js';
3
3
  export default class DictAddItemCommand extends SeiCommand {
4
4
  static args = {
5
5
  code: Args.string({ description: '字典项编码', required: true }),
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../../core/index.js';
2
2
  export default class DictListCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
@@ -10,7 +10,6 @@ export default class DictListCommand extends SeiCommand {
10
10
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
13
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
14
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
15
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { runDictList, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runDictList, SeiCommand } from '../../core/index.js';
3
3
  export default class DictListCommand extends SeiCommand {
4
4
  static description = 'Queries SEI dictionary data and optionally renders the tree structure.';
5
5
  static flags = {
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../../core/index.js';
2
2
  export default class InitBaseDataCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
@@ -14,7 +14,6 @@ export default class InitBaseDataCommand extends SeiCommand {
14
14
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
15
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
17
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
18
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
19
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { runInitBaseData, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runInitBaseData, SeiCommand } from '../../core/index.js';
3
3
  export default class InitBaseDataCommand extends SeiCommand {
4
4
  static description = 'Executes the base seed SQL and clears SEI caches.';
5
5
  static flags = {
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class QuerySqlCommand extends SeiCommand {
3
3
  static aliases: string[];
4
4
  static args: {
@@ -12,7 +12,6 @@ export default class QuerySqlCommand extends SeiCommand {
12
12
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
13
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
15
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
16
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
17
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Args, Flags } from '@oclif/core';
2
- import { buildQuerySqlPayload, runQuerySql, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { buildQuerySqlPayload, runQuerySql, SeiCommand } from '../core/index.js';
3
3
  export default class QuerySqlCommand extends SeiCommand {
4
4
  static aliases = ['sql'];
5
5
  static args = {
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class QueryCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
@@ -9,7 +9,6 @@ export default class QueryCommand extends SeiCommand {
9
9
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
12
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
13
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
14
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { runQuery, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runQuery, SeiCommand } from '../core/index.js';
3
3
  export default class QueryCommand extends SeiCommand {
4
4
  static description = 'Sends a SEI query payload.';
5
5
  static flags = {
@@ -1,11 +1,10 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class ReloginCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
5
5
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
6
6
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
7
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
8
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
9
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
10
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,4 +1,4 @@
1
- import { runRelogin, SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { runRelogin, SeiCommand } from '../core/index.js';
2
2
  export default class ReloginCommand extends SeiCommand {
3
3
  static description = 'Forces a fresh ai-login and prints the new token.';
4
4
  static flags = {
@@ -1,4 +1,4 @@
1
- import { SeiCommand } from '@ty_krystal/sei-ai-core';
1
+ import { SeiCommand } from '../core/index.js';
2
2
  export default class SaveCommand extends SeiCommand {
3
3
  static description: string;
4
4
  static flags: {
@@ -9,7 +9,6 @@ export default class SaveCommand extends SeiCommand {
9
9
  config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'ai-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- role: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
12
  account: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
13
  'account-project': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
14
  'account-checkcode': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -1,5 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
- import { runSave, SeiCommand } from '@ty_krystal/sei-ai-core';
2
+ import { runSave, SeiCommand } from '../core/index.js';
3
3
  export default class SaveCommand extends SeiCommand {
4
4
  static description = 'Sends a SEI save payload.';
5
5
  static flags = {
@@ -0,0 +1,24 @@
1
+ import ApiDocsCommand from './commands/api-docs.js';
2
+ import CallCommand from './commands/call.js';
3
+ import DictAddCategoryCommand from './commands/dict/add-category.js';
4
+ import DictAddItemCommand from './commands/dict/add-item.js';
5
+ import DictListCommand from './commands/dict/list.js';
6
+ import InitBaseDataCommand from './commands/init/base-data.js';
7
+ import QuerySqlCommand from './commands/query-sql.js';
8
+ import QueryCommand from './commands/query.js';
9
+ import ReloginCommand from './commands/relogin.js';
10
+ import SaveCommand from './commands/save.js';
11
+ declare const _default: {
12
+ readonly 'api-docs': typeof ApiDocsCommand;
13
+ readonly call: typeof CallCommand;
14
+ readonly 'dict:add-category': typeof DictAddCategoryCommand;
15
+ readonly 'dict:add-item': typeof DictAddItemCommand;
16
+ readonly 'dict:list': typeof DictListCommand;
17
+ readonly 'init:base-data': typeof InitBaseDataCommand;
18
+ readonly query: typeof QueryCommand;
19
+ readonly 'query-sql': typeof QuerySqlCommand;
20
+ readonly relogin: typeof ReloginCommand;
21
+ readonly save: typeof SaveCommand;
22
+ readonly sql: typeof QuerySqlCommand;
23
+ };
24
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import ApiDocsCommand from './commands/api-docs.js';
2
+ import CallCommand from './commands/call.js';
3
+ import DictAddCategoryCommand from './commands/dict/add-category.js';
4
+ import DictAddItemCommand from './commands/dict/add-item.js';
5
+ import DictListCommand from './commands/dict/list.js';
6
+ import InitBaseDataCommand from './commands/init/base-data.js';
7
+ import QuerySqlCommand from './commands/query-sql.js';
8
+ import QueryCommand from './commands/query.js';
9
+ import ReloginCommand from './commands/relogin.js';
10
+ import SaveCommand from './commands/save.js';
11
+ export default {
12
+ 'api-docs': ApiDocsCommand,
13
+ call: CallCommand,
14
+ 'dict:add-category': DictAddCategoryCommand,
15
+ 'dict:add-item': DictAddItemCommand,
16
+ 'dict:list': DictListCommand,
17
+ 'init:base-data': InitBaseDataCommand,
18
+ query: QueryCommand,
19
+ 'query-sql': QuerySqlCommand,
20
+ relogin: ReloginCommand,
21
+ save: SaveCommand,
22
+ sql: QuerySqlCommand,
23
+ };