mtmsdk 0.0.47 → 0.0.49

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 (236) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi/index.d.ts +2 -2
  6. package/dist/gomtmapi/index.d.ts.map +1 -1
  7. package/dist/gomtmapi/index.js +1 -1
  8. package/dist/gomtmapi/index.js.map +1 -1
  9. package/dist/gomtmapi/schemas.gen.d.ts +14 -328
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +14 -341
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +2 -80
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +1 -135
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +10 -437
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +8 -308
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +4 -232
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/sdk.gen.d.ts +1 -5
  32. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/sdk.gen.js +0 -4
  34. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  35. package/dist/mtgate_api/types.gen.d.ts +0 -6
  36. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/zod.gen.d.ts +0 -5
  38. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  39. package/dist/mtgate_api/zod.gen.js +0 -5
  40. package/dist/mtgate_api/zod.gen.js.map +1 -1
  41. package/dist/mtmai_api/index.d.ts +2 -2
  42. package/dist/mtmai_api/index.d.ts.map +1 -1
  43. package/dist/mtmai_api/index.js +1 -1
  44. package/dist/mtmai_api/index.js.map +1 -1
  45. package/dist/mtmai_api/zod.gen.d.ts +96 -96
  46. package/dist/openclaw/client-info.d.ts +0 -18
  47. package/dist/openclaw/client-info.d.ts.map +1 -1
  48. package/dist/openclaw/client-info.js +0 -6
  49. package/dist/openclaw/client-info.js.map +1 -1
  50. package/dist/openclaw/device-auth-utils.d.ts +3 -4
  51. package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
  52. package/dist/openclaw/device-auth-utils.js +4 -8
  53. package/dist/openclaw/device-auth-utils.js.map +1 -1
  54. package/dist/openclaw/device-auth.d.ts.map +1 -1
  55. package/dist/openclaw/device-auth.js +5 -2
  56. package/dist/openclaw/device-auth.js.map +1 -1
  57. package/dist/openclaw/device-identity.js +2 -2
  58. package/dist/openclaw/device-identity.js.map +1 -1
  59. package/dist/openclaw/gateway.d.ts +19 -5
  60. package/dist/openclaw/gateway.d.ts.map +1 -1
  61. package/dist/openclaw/gateway.js +75 -37
  62. package/dist/openclaw/gateway.js.map +1 -1
  63. package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
  64. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  65. package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
  66. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  67. package/dist/sbmng/index.d.ts +2 -2
  68. package/dist/sbmng/index.d.ts.map +1 -1
  69. package/dist/sbmng/index.js +1 -1
  70. package/dist/sbmng/index.js.map +1 -1
  71. package/dist/sbmng/schemas.gen.d.ts +97 -34
  72. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  73. package/dist/sbmng/schemas.gen.js +120 -49
  74. package/dist/sbmng/schemas.gen.js.map +1 -1
  75. package/dist/sbmng/sdk.gen.d.ts +7 -3
  76. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  77. package/dist/sbmng/sdk.gen.js +11 -3
  78. package/dist/sbmng/sdk.gen.js.map +1 -1
  79. package/dist/sbmng/types.gen.d.ts +82 -30
  80. package/dist/sbmng/types.gen.d.ts.map +1 -1
  81. package/dist/supabase/schema/index.d.ts +0 -8
  82. package/dist/supabase/schema/index.d.ts.map +1 -1
  83. package/dist/supabase/schema/index.js +0 -5
  84. package/dist/supabase/schema/index.js.map +1 -1
  85. package/dist/supabase/supabase-client.d.ts +900 -719
  86. package/dist/supabase/supabase-client.d.ts.map +1 -1
  87. package/dist/supabase/supabase.d.ts +1836 -1474
  88. package/dist/supabase/supabase.d.ts.map +1 -1
  89. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  90. package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
  91. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  92. package/dist/types/database.schemas.d.ts +999 -920
  93. package/dist/types/database.schemas.d.ts.map +1 -1
  94. package/dist/types/database.schemas.js +739 -435
  95. package/dist/types/database.schemas.js.map +1 -1
  96. package/dist/types/database.types.d.ts +919 -736
  97. package/dist/types/database.types.d.ts.map +1 -1
  98. package/dist/types/database.types.js +18 -2
  99. package/dist/types/database.types.js.map +1 -1
  100. package/dist/types/index.d.ts +35 -3
  101. package/dist/types/index.d.ts.map +1 -1
  102. package/dist/types/index.js +4 -1
  103. package/dist/types/index.js.map +1 -1
  104. package/package.json +4 -3
  105. package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
  106. package/src/gomtmapi/index.ts +2 -2
  107. package/src/gomtmapi/schemas.gen.ts +14 -356
  108. package/src/gomtmapi/sdk.gen.ts +2 -144
  109. package/src/gomtmapi/types.gen.ts +10 -492
  110. package/src/gomtmapi/zod.gen.ts +4 -263
  111. package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
  112. package/src/mtgate_api/index.ts +2 -2
  113. package/src/mtgate_api/sdk.gen.ts +1 -6
  114. package/src/mtgate_api/types.gen.ts +0 -7
  115. package/src/mtgate_api/zod.gen.ts +0 -6
  116. package/src/mtmai_api/index.ts +2 -2
  117. package/src/openclaw/client-info.ts +0 -9
  118. package/src/openclaw/device-auth-utils.ts +7 -12
  119. package/src/openclaw/device-auth.ts +5 -2
  120. package/src/openclaw/device-identity.ts +2 -2
  121. package/src/openclaw/gateway.ts +96 -50
  122. package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
  123. package/src/sbmng/index.ts +2 -2
  124. package/src/sbmng/schemas.gen.ts +121 -49
  125. package/src/sbmng/sdk.gen.ts +13 -4
  126. package/src/sbmng/types.gen.ts +87 -30
  127. package/src/supabase/schema/index.ts +0 -5
  128. package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
  129. package/src/types/database.schemas.ts +948 -598
  130. package/src/types/database.types.ts +864 -674
  131. package/src/types/index.ts +20 -4
  132. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
  133. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
  134. package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
  135. package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
  136. package/dist/api_hatchet/client/client.gen.d.ts +0 -3
  137. package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
  138. package/dist/api_hatchet/client/client.gen.js +0 -236
  139. package/dist/api_hatchet/client/client.gen.js.map +0 -1
  140. package/dist/api_hatchet/client/index.d.ts +0 -9
  141. package/dist/api_hatchet/client/index.d.ts.map +0 -1
  142. package/dist/api_hatchet/client/index.js +0 -7
  143. package/dist/api_hatchet/client/index.js.map +0 -1
  144. package/dist/api_hatchet/client/types.gen.d.ts +0 -118
  145. package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
  146. package/dist/api_hatchet/client/types.gen.js +0 -3
  147. package/dist/api_hatchet/client/types.gen.js.map +0 -1
  148. package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
  149. package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
  150. package/dist/api_hatchet/client/utils.gen.js +0 -232
  151. package/dist/api_hatchet/client/utils.gen.js.map +0 -1
  152. package/dist/api_hatchet/client.gen.d.ts +0 -13
  153. package/dist/api_hatchet/client.gen.d.ts.map +0 -1
  154. package/dist/api_hatchet/client.gen.js +0 -4
  155. package/dist/api_hatchet/client.gen.js.map +0 -1
  156. package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
  157. package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
  158. package/dist/api_hatchet/core/auth.gen.js +0 -15
  159. package/dist/api_hatchet/core/auth.gen.js.map +0 -1
  160. package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
  161. package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
  162. package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
  163. package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
  164. package/dist/api_hatchet/core/params.gen.d.ts +0 -44
  165. package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
  166. package/dist/api_hatchet/core/params.gen.js +0 -101
  167. package/dist/api_hatchet/core/params.gen.js.map +0 -1
  168. package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
  169. package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
  170. package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
  171. package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
  172. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
  173. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
  174. package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
  175. package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
  176. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
  177. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
  178. package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
  179. package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
  180. package/dist/api_hatchet/core/types.gen.d.ts +0 -79
  181. package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
  182. package/dist/api_hatchet/core/types.gen.js +0 -3
  183. package/dist/api_hatchet/core/types.gen.js.map +0 -1
  184. package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
  185. package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
  186. package/dist/api_hatchet/core/utils.gen.js +0 -88
  187. package/dist/api_hatchet/core/utils.gen.js.map +0 -1
  188. package/dist/api_hatchet/index.d.ts +0 -3
  189. package/dist/api_hatchet/index.d.ts.map +0 -1
  190. package/dist/api_hatchet/index.js +0 -4
  191. package/dist/api_hatchet/index.js.map +0 -1
  192. package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
  193. package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
  194. package/dist/api_hatchet/schemas.gen.js +0 -4743
  195. package/dist/api_hatchet/schemas.gen.js.map +0 -1
  196. package/dist/api_hatchet/sdk.gen.d.ts +0 -784
  197. package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
  198. package/dist/api_hatchet/sdk.gen.js +0 -1849
  199. package/dist/api_hatchet/sdk.gen.js.map +0 -1
  200. package/dist/api_hatchet/types.gen.d.ts +0 -6861
  201. package/dist/api_hatchet/types.gen.d.ts.map +0 -1
  202. package/dist/api_hatchet/types.gen.js +0 -209
  203. package/dist/api_hatchet/types.gen.js.map +0 -1
  204. package/dist/api_hatchet/zod.gen.d.ts +0 -10429
  205. package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
  206. package/dist/api_hatchet/zod.gen.js +0 -2766
  207. package/dist/api_hatchet/zod.gen.js.map +0 -1
  208. package/dist/openclaw/uuid.d.ts +0 -6
  209. package/dist/openclaw/uuid.d.ts.map +0 -1
  210. package/dist/openclaw/uuid.js +0 -39
  211. package/dist/openclaw/uuid.js.map +0 -1
  212. package/dist/types/rpc.schemas.d.ts +0 -52
  213. package/dist/types/rpc.schemas.d.ts.map +0 -1
  214. package/dist/types/rpc.schemas.js +0 -108
  215. package/dist/types/rpc.schemas.js.map +0 -1
  216. package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
  217. package/src/api_hatchet/client/client.gen.ts +0 -311
  218. package/src/api_hatchet/client/index.ts +0 -25
  219. package/src/api_hatchet/client/types.gen.ts +0 -241
  220. package/src/api_hatchet/client/utils.gen.ts +0 -332
  221. package/src/api_hatchet/client.gen.ts +0 -16
  222. package/src/api_hatchet/core/auth.gen.ts +0 -42
  223. package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
  224. package/src/api_hatchet/core/params.gen.ts +0 -176
  225. package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
  226. package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
  227. package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
  228. package/src/api_hatchet/core/types.gen.ts +0 -118
  229. package/src/api_hatchet/core/utils.gen.ts +0 -143
  230. package/src/api_hatchet/index.ts +0 -4
  231. package/src/api_hatchet/schemas.gen.ts +0 -4961
  232. package/src/api_hatchet/sdk.gen.ts +0 -1994
  233. package/src/api_hatchet/types.gen.ts +0 -7688
  234. package/src/api_hatchet/zod.gen.ts +0 -3230
  235. package/src/openclaw/uuid.ts +0 -48
  236. package/src/types/rpc.schemas.ts +0 -142
@@ -59,42 +59,6 @@ export const AddContactResponseSchema = {
59
59
  type: 'object'
60
60
  } as const;
61
61
 
62
- export const AgentRunReqSchema = {
63
- description: 'AgentRunReq schema',
64
- properties: {
65
- payload: {
66
- additionalProperties: {},
67
- type: 'object'
68
- },
69
- target_worker_id: {
70
- nullable: true,
71
- type: 'string'
72
- },
73
- type: {
74
- type: 'string'
75
- }
76
- },
77
- required: [
78
- 'type'
79
- ],
80
- type: 'object'
81
- } as const;
82
-
83
- export const AgentRunRespSchema = {
84
- description: 'AgentRunResp schema',
85
- properties: {
86
- data: {},
87
- error: {
88
- nullable: true,
89
- type: 'string'
90
- },
91
- status: {
92
- type: 'string'
93
- }
94
- },
95
- type: 'object'
96
- } as const;
97
-
98
62
  export const AuthResponseSchema = {
99
63
  description: 'AuthResponse schema',
100
64
  properties: {
@@ -207,43 +171,6 @@ export const BrowserOpenRespSchema = {
207
171
  type: 'object'
208
172
  } as const;
209
173
 
210
- export const ChatCompletionRequestSchema = {
211
- description: 'ChatCompletionRequest schema',
212
- properties: {
213
- max_tokens: {
214
- nullable: true,
215
- type: 'integer'
216
- },
217
- messages: {
218
- items: {
219
- properties: {
220
- content: {
221
- type: 'string'
222
- },
223
- role: {
224
- type: 'string'
225
- }
226
- },
227
- type: 'object'
228
- },
229
- type: 'array'
230
- },
231
- model: {
232
- type: 'string'
233
- },
234
- stream: {
235
- nullable: true,
236
- type: 'boolean'
237
- },
238
- temperature: {
239
- format: 'float',
240
- nullable: true,
241
- type: 'number'
242
- }
243
- },
244
- type: 'object'
245
- } as const;
246
-
247
174
  export const CheckUpdateResponseSchema = {
248
175
  description: 'CheckUpdateResponse schema',
249
176
  properties: {
@@ -268,66 +195,19 @@ export const CodeRunResultSchema = {
268
195
  format: 'double',
269
196
  type: 'number'
270
197
  },
271
- error: {
272
- description: '错误信息',
273
- nullable: true,
274
- type: 'string'
198
+ exitCode: {
199
+ description: '进程退出码',
200
+ type: 'integer'
275
201
  },
276
- logs: {
277
- description: '标准输出日志(stdout)',
202
+ stderr: {
203
+ description: '标准错误输出',
278
204
  nullable: true,
279
205
  type: 'string'
280
206
  },
281
- result: {
282
- description: '代码的返回值',
283
- nullable: true
284
- },
285
- status: {
286
- description: '运行状态: success | error',
287
- type: 'string'
288
- }
289
- },
290
- type: 'object'
291
- } as const;
292
-
293
- export const EditFileRequestSchema = {
294
- description: 'EditFileRequest schema',
295
- properties: {
296
- file_path: {
297
- description: 'Absolute path to the file',
298
- type: 'string'
299
- },
300
- new_string: {
301
- description: 'The new string to replace with.',
302
- type: 'string'
303
- },
304
- old_string: {
305
- description: 'The exact string to replace. If empty, creates a new file.',
306
- type: 'string'
307
- },
308
- replace_all: {
309
- description: 'If true, replace all occurrences. If false, fails if multiple matches found.',
310
- type: 'boolean'
311
- }
312
- },
313
- required: [
314
- 'file_path'
315
- ],
316
- type: 'object'
317
- } as const;
318
-
319
- export const EditFileResponseSchema = {
320
- description: 'EditFileResponse schema',
321
- properties: {
322
- diff: {
207
+ stdout: {
208
+ description: '标准输出',
323
209
  nullable: true,
324
210
  type: 'string'
325
- },
326
- message: {
327
- type: 'string'
328
- },
329
- success: {
330
- type: 'boolean'
331
211
  }
332
212
  },
333
213
  type: 'object'
@@ -388,93 +268,6 @@ export const HTTPErrorSchema = {
388
268
  type: 'object'
389
269
  } as const;
390
270
 
391
- export const HumanActionReqSchema = {
392
- description: 'HumanActionReq schema',
393
- properties: {
394
- action_type: {
395
- description: 'The type of action required (e.g., \'add_resource\', \'check_resource\')',
396
- type: 'string'
397
- },
398
- message: {
399
- description: 'Explanation to the user why this action is needed',
400
- type: 'string'
401
- },
402
- resource_id: {
403
- description: 'The specific ID of the resource that failed or needs attention',
404
- nullable: true,
405
- type: 'string'
406
- }
407
- },
408
- required: [
409
- 'action_type',
410
- 'message'
411
- ],
412
- type: 'object'
413
- } as const;
414
-
415
- export const HumanActionRespSchema = {
416
- description: 'HumanActionResp schema',
417
- properties: {
418
- client_action: {
419
- additionalProperties: {
420
- type: 'string'
421
- },
422
- nullable: true,
423
- type: 'object'
424
- },
425
- message: {
426
- type: 'string'
427
- },
428
- status: {
429
- type: 'string'
430
- }
431
- },
432
- type: 'object'
433
- } as const;
434
-
435
- export const ListDirRequestSchema = {
436
- description: 'ListDirRequest schema',
437
- properties: {
438
- path: {
439
- description: 'Directory path to list',
440
- type: 'string'
441
- }
442
- },
443
- required: [
444
- 'path'
445
- ],
446
- type: 'object'
447
- } as const;
448
-
449
- export const ListDirResponseSchema = {
450
- description: 'ListDirResponse schema',
451
- properties: {
452
- entries: {
453
- items: {
454
- properties: {
455
- is_dir: {
456
- type: 'boolean'
457
- },
458
- name: {
459
- type: 'string'
460
- },
461
- size: {
462
- format: 'int64',
463
- type: 'integer'
464
- }
465
- },
466
- type: 'object'
467
- },
468
- type: 'array'
469
- },
470
- error: {
471
- nullable: true,
472
- type: 'string'
473
- }
474
- },
475
- type: 'object'
476
- } as const;
477
-
478
271
  export const NapcatStatusSchema = {
479
272
  description: 'NapcatStatus schema',
480
273
  properties: {
@@ -553,58 +346,12 @@ export const PerformUpgradeResponseSchema = {
553
346
  type: 'object'
554
347
  } as const;
555
348
 
556
- export const ReadFilesRequestSchema = {
557
- description: 'ReadFilesRequest schema',
558
- properties: {
559
- paths: {
560
- description: 'List of file paths or glob patterns',
561
- items: {
562
- type: 'string'
563
- },
564
- type: 'array'
565
- }
566
- },
567
- required: [
568
- 'paths'
569
- ],
570
- type: 'object'
571
- } as const;
572
-
573
- export const ReadFilesResponseSchema = {
574
- description: 'ReadFilesResponse schema',
575
- properties: {
576
- results: {
577
- items: {
578
- properties: {
579
- content: {
580
- nullable: true,
581
- type: 'string'
582
- },
583
- error: {
584
- nullable: true,
585
- type: 'string'
586
- },
587
- file_path: {
588
- type: 'string'
589
- }
590
- },
591
- type: 'object'
592
- },
593
- type: 'array'
594
- },
595
- summary: {
596
- type: 'string'
597
- }
598
- },
599
- type: 'object'
600
- } as const;
601
-
602
349
  export const RunCodeReqSchema = {
603
350
  description: 'RunCodeReq schema',
604
351
  properties: {
605
352
  codeType: {
606
- description: '代码类型: python | browserjs',
607
- example: 'python,js',
353
+ description: '代码类型: python | bash | sh | nodejs | browserjs',
354
+ example: 'python,js,bash',
608
355
  minLength: 2,
609
356
  type: 'string'
610
357
  },
@@ -614,9 +361,11 @@ export const RunCodeReqSchema = {
614
361
  minLength: 1,
615
362
  type: 'string'
616
363
  },
617
- context: {
618
- additionalProperties: {},
619
- description: '注入到代码运行环境的上下文变量',
364
+ env: {
365
+ additionalProperties: {
366
+ type: 'string'
367
+ },
368
+ description: '环境变量',
620
369
  nullable: true,
621
370
  type: 'object'
622
371
  },
@@ -634,45 +383,6 @@ export const RunCodeReqSchema = {
634
383
  type: 'object'
635
384
  } as const;
636
385
 
637
- export const SearchFilesRequestSchema = {
638
- description: 'SearchFilesRequest schema',
639
- properties: {
640
- glob: {
641
- description: 'File pattern to include e.g. *.go',
642
- type: 'string'
643
- },
644
- path: {
645
- description: 'Directory to search in',
646
- type: 'string'
647
- },
648
- pattern: {
649
- description: 'Regex pattern to search',
650
- type: 'string'
651
- }
652
- },
653
- required: [
654
- 'pattern'
655
- ],
656
- type: 'object'
657
- } as const;
658
-
659
- export const SearchFilesResponseSchema = {
660
- description: 'SearchFilesResponse schema',
661
- properties: {
662
- error: {
663
- nullable: true,
664
- type: 'string'
665
- },
666
- matches: {
667
- items: {
668
- type: 'string'
669
- },
670
- type: 'array'
671
- }
672
- },
673
- type: 'object'
674
- } as const;
675
-
676
386
  export const SendCodeRequestSchema = {
677
387
  description: 'SendCodeRequest schema',
678
388
  properties: {
@@ -855,57 +565,6 @@ export const StatusResponseSchema = {
855
565
  type: 'object'
856
566
  } as const;
857
567
 
858
- export const TaskExecuteRequestSchema = {
859
- description: 'TaskExecuteRequest schema',
860
- properties: {
861
- code: {
862
- type: 'string'
863
- },
864
- code_type: {
865
- type: 'string'
866
- },
867
- meta: {
868
- additionalProperties: {},
869
- nullable: true,
870
- type: 'object'
871
- },
872
- task_id: {
873
- type: 'string'
874
- },
875
- timeout_seconds: {
876
- type: 'integer'
877
- }
878
- },
879
- type: 'object'
880
- } as const;
881
-
882
- export const TaskExecuteResponseSchema = {
883
- description: 'TaskExecuteResponse schema',
884
- properties: {
885
- error: {
886
- nullable: true,
887
- type: 'string'
888
- },
889
- output: {
890
- nullable: true,
891
- type: 'string'
892
- },
893
- result: {
894
- additionalProperties: {},
895
- nullable: true,
896
- type: 'object'
897
- },
898
- success: {
899
- type: 'boolean'
900
- },
901
- task_id: {
902
- nullable: true,
903
- type: 'string'
904
- }
905
- },
906
- type: 'object'
907
- } as const;
908
-
909
568
  export const UserInfoRequestSchema = {
910
569
  description: 'UserInfoRequest schema',
911
570
  properties: {
@@ -929,7 +588,6 @@ export const UserInfoRequestSchema = {
929
588
 
930
589
  export const stringSchema = {
931
590
  description: 'string schema',
932
- nullable: true,
933
591
  type: 'string'
934
592
  } as const;
935
593
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { Client, Options as Options2, TDataShape } from './client';
4
4
  import { client } from './client.gen';
5
- import type { AgentRunData, AgentRunErrors, AgentRunResponses, BrowserActionData, BrowserActionErrors, BrowserActionResponses, BrowserOpenData, BrowserOpenErrors, BrowserOpenResponses, CoddingToolEditFileData, CoddingToolEditFileErrors, CoddingToolEditFileResponses, CoddingToolListDirData, CoddingToolListDirErrors, CoddingToolListDirResponses, CoddingToolReadFilesData, CoddingToolReadFilesErrors, CoddingToolReadFilesResponses, CoddingToolSearchFilesData, CoddingToolSearchFilesErrors, CoddingToolSearchFilesResponses, CodeRunData, CodeRunErrors, CodeRunResponses, GetApiSystemStatusData, GetApiSystemStatusErrors, GetApiSystemStatusResponses, HumanRequestActionData, HumanRequestActionErrors, HumanRequestActionResponses, NapcatGetStatusData, NapcatGetStatusErrors, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartErrors, NapcatStartResponses, PostApiDbQueryQueryData, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponses, PostApiV1GeminiChatCompletionsData, PostApiV1GeminiChatCompletionsErrors, PostApiV1GeminiChatCompletionsResponses, PostApiV1TaskExecuteData, PostApiV1TaskExecuteErrors, PostApiV1TaskExecuteResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponses } from './types.gen';
5
+ import type { BrowserActionData, BrowserActionErrors, BrowserActionResponses, BrowserOpenData, BrowserOpenErrors, BrowserOpenResponses, CodeRunData, CodeRunErrors, CodeRunResponses, GetApiSystemStatusData, GetApiSystemStatusErrors, GetApiSystemStatusResponses, NapcatGetStatusData, NapcatGetStatusErrors, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartErrors, NapcatStartResponses, PostApiDbQueryQueryData, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponses } from './types.gen';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -18,30 +18,6 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
18
18
  meta?: Record<string, unknown>;
19
19
  };
20
20
 
21
- /**
22
- * agent run
23
- *
24
- * #### Controller:
25
- *
26
- * `github.com/codeh007/gomtm/pkg/routes/api/agent.(*AgentService).AgentRun`
27
- *
28
- * #### Middlewares:
29
- *
30
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
31
- *
32
- * ---
33
- *
34
- *
35
- */
36
- export const agentRun = <ThrowOnError extends boolean = false>(options: Options<AgentRunData, ThrowOnError>) => (options.client ?? client).post<AgentRunResponses, AgentRunErrors, ThrowOnError>({
37
- url: '/api/agent/run',
38
- ...options,
39
- headers: {
40
- 'Content-Type': '*/*',
41
- ...options.headers
42
- }
43
- });
44
-
45
21
  /**
46
22
  * handle action submit
47
23
  *
@@ -70,62 +46,6 @@ export const browserOpen = <ThrowOnError extends boolean = false>(options: Optio
70
46
  }
71
47
  });
72
48
 
73
- /**
74
- * edit file
75
- *
76
- * Replace text in a file. Matches exact 'old_string'. Use 'replace_all=true' for multiple occurrences.
77
- */
78
- export const coddingToolEditFile = <ThrowOnError extends boolean = false>(options: Options<CoddingToolEditFileData, ThrowOnError>) => (options.client ?? client).post<CoddingToolEditFileResponses, CoddingToolEditFileErrors, ThrowOnError>({
79
- url: '/api/codding_tool/edit_file',
80
- ...options,
81
- headers: {
82
- 'Content-Type': '*/*',
83
- ...options.headers
84
- }
85
- });
86
-
87
- /**
88
- * list dir
89
- *
90
- * List files and directories in a given path.
91
- */
92
- export const coddingToolListDir = <ThrowOnError extends boolean = false>(options: Options<CoddingToolListDirData, ThrowOnError>) => (options.client ?? client).post<CoddingToolListDirResponses, CoddingToolListDirErrors, ThrowOnError>({
93
- url: '/api/codding_tool/list_dir',
94
- ...options,
95
- headers: {
96
- 'Content-Type': '*/*',
97
- ...options.headers
98
- }
99
- });
100
-
101
- /**
102
- * read files
103
- *
104
- * Read content of multiple files. Supports simple glob patterns.
105
- */
106
- export const coddingToolReadFiles = <ThrowOnError extends boolean = false>(options: Options<CoddingToolReadFilesData, ThrowOnError>) => (options.client ?? client).post<CoddingToolReadFilesResponses, CoddingToolReadFilesErrors, ThrowOnError>({
107
- url: '/api/codding_tool/read_files',
108
- ...options,
109
- headers: {
110
- 'Content-Type': '*/*',
111
- ...options.headers
112
- }
113
- });
114
-
115
- /**
116
- * search files
117
- *
118
- * Search for a pattern in files using grep.
119
- */
120
- export const coddingToolSearchFiles = <ThrowOnError extends boolean = false>(options: Options<CoddingToolSearchFilesData, ThrowOnError>) => (options.client ?? client).post<CoddingToolSearchFilesResponses, CoddingToolSearchFilesErrors, ThrowOnError>({
121
- url: '/api/codding_tool/search_files',
122
- ...options,
123
- headers: {
124
- 'Content-Type': '*/*',
125
- ...options.headers
126
- }
127
- });
128
-
129
49
  /**
130
50
  * run code
131
51
  *
@@ -167,20 +87,6 @@ export const codeRun = <ThrowOnError extends boolean = false>(options: Options<C
167
87
  */
168
88
  export const postApiDbQueryQuery = <ThrowOnError extends boolean = false>(options?: Options<PostApiDbQueryQueryData, ThrowOnError>) => (options?.client ?? client).post<PostApiDbQueryQueryResponses, PostApiDbQueryQueryErrors, ThrowOnError>({ url: '/api/db_query/query', ...options });
169
89
 
170
- /**
171
- * request action
172
- *
173
- * Request specific manual actions from the user when automated attempts fail.
174
- */
175
- export const humanRequestAction = <ThrowOnError extends boolean = false>(options: Options<HumanRequestActionData, ThrowOnError>) => (options.client ?? client).post<HumanRequestActionResponses, HumanRequestActionErrors, ThrowOnError>({
176
- url: '/api/human/action',
177
- ...options,
178
- headers: {
179
- 'Content-Type': '*/*',
180
- ...options.headers
181
- }
182
- });
183
-
184
90
  /**
185
91
  * Start napcat service
186
92
  *
@@ -310,58 +216,10 @@ export const postApiSystemPerformUpgrade = <ThrowOnError extends boolean = false
310
216
  *
311
217
  * ---
312
218
  *
313
- * 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过 pg_net.http_get 探测,结果存入 servers.state。
219
+ * 返回完整的实例运行状态 (v6: 合并 info + health)。数据库通过 HTTP 探测读取该端点,并据此调和 servers.state。
314
220
  */
315
221
  export const getApiSystemStatus = <ThrowOnError extends boolean = false>(options?: Options<GetApiSystemStatusData, ThrowOnError>) => (options?.client ?? client).get<GetApiSystemStatusResponses, GetApiSystemStatusErrors, ThrowOnError>({ url: '/api/system/status', ...options });
316
222
 
317
- /**
318
- * handle chat completion
319
- *
320
- * #### Controller:
321
- *
322
- * `github.com/codeh007/gomtm/pkg/routes/api/gemini.(*Service).handleChatCompletion`
323
- *
324
- * #### Middlewares:
325
- *
326
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
327
- *
328
- * ---
329
- *
330
- *
331
- */
332
- export const postApiV1GeminiChatCompletions = <ThrowOnError extends boolean = false>(options: Options<PostApiV1GeminiChatCompletionsData, ThrowOnError>) => (options.client ?? client).post<PostApiV1GeminiChatCompletionsResponses, PostApiV1GeminiChatCompletionsErrors, ThrowOnError>({
333
- url: '/api/v1/gemini/chat/completions',
334
- ...options,
335
- headers: {
336
- 'Content-Type': '*/*',
337
- ...options.headers
338
- }
339
- });
340
-
341
- /**
342
- * 执行任务
343
- *
344
- * #### Controller:
345
- *
346
- * `github.com/codeh007/gomtm/pkg/routes/api/task_executor.(*Service).Execute`
347
- *
348
- * #### Middlewares:
349
- *
350
- * - `github.com/go-fuego/fuego.defaultLogger.middleware`
351
- *
352
- * ---
353
- *
354
- * 接收来自数据库调度的任务并执行。支持 bash/python/agent 类型。
355
- */
356
- export const postApiV1TaskExecute = <ThrowOnError extends boolean = false>(options: Options<PostApiV1TaskExecuteData, ThrowOnError>) => (options.client ?? client).post<PostApiV1TaskExecuteResponses, PostApiV1TaskExecuteErrors, ThrowOnError>({
357
- url: '/api/v1/task/execute',
358
- ...options,
359
- headers: {
360
- 'Content-Type': '*/*',
361
- ...options.headers
362
- }
363
- });
364
-
365
223
  /**
366
224
  * password
367
225
  *