@lobu/cli 3.0.3 → 3.0.5

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 (113) hide show
  1. package/README.md +18 -222
  2. package/dist/api/context.d.ts +20 -0
  3. package/dist/api/context.d.ts.map +1 -0
  4. package/dist/api/context.js +113 -0
  5. package/dist/api/context.js.map +1 -0
  6. package/dist/api/credentials.d.ts +9 -4
  7. package/dist/api/credentials.d.ts.map +1 -1
  8. package/dist/api/credentials.js +127 -15
  9. package/dist/api/credentials.js.map +1 -1
  10. package/dist/commands/chat.d.ts +16 -0
  11. package/dist/commands/chat.d.ts.map +1 -0
  12. package/dist/commands/chat.js +281 -0
  13. package/dist/commands/chat.js.map +1 -0
  14. package/dist/commands/context.d.ts +8 -0
  15. package/dist/commands/context.d.ts.map +1 -0
  16. package/dist/commands/context.js +46 -0
  17. package/dist/commands/context.js.map +1 -0
  18. package/dist/commands/dev.d.ts +3 -9
  19. package/dist/commands/dev.d.ts.map +1 -1
  20. package/dist/commands/dev.js +95 -64
  21. package/dist/commands/dev.js.map +1 -1
  22. package/dist/commands/init.d.ts.map +1 -1
  23. package/dist/commands/init.js +421 -673
  24. package/dist/commands/init.js.map +1 -1
  25. package/dist/commands/login.d.ts +2 -0
  26. package/dist/commands/login.d.ts.map +1 -1
  27. package/dist/commands/login.js +283 -14
  28. package/dist/commands/login.js.map +1 -1
  29. package/dist/commands/logout.d.ts +3 -1
  30. package/dist/commands/logout.d.ts.map +1 -1
  31. package/dist/commands/logout.js +5 -3
  32. package/dist/commands/logout.js.map +1 -1
  33. package/dist/commands/providers/add.d.ts.map +1 -1
  34. package/dist/commands/providers/add.js +38 -14
  35. package/dist/commands/providers/add.js.map +1 -1
  36. package/dist/commands/providers/list.d.ts.map +1 -1
  37. package/dist/commands/providers/list.js +4 -2
  38. package/dist/commands/providers/list.js.map +1 -1
  39. package/dist/commands/skills/add.d.ts.map +1 -1
  40. package/dist/commands/skills/add.js +25 -7
  41. package/dist/commands/skills/add.js.map +1 -1
  42. package/dist/commands/skills/info.d.ts.map +1 -1
  43. package/dist/commands/skills/info.js +0 -9
  44. package/dist/commands/skills/info.js.map +1 -1
  45. package/dist/commands/skills/list.d.ts.map +1 -1
  46. package/dist/commands/skills/list.js +5 -6
  47. package/dist/commands/skills/list.js.map +1 -1
  48. package/dist/commands/skills/registry.d.ts +6 -11
  49. package/dist/commands/skills/registry.d.ts.map +1 -1
  50. package/dist/commands/skills/registry.js +0 -3
  51. package/dist/commands/skills/registry.js.map +1 -1
  52. package/dist/commands/skills/search.d.ts.map +1 -1
  53. package/dist/commands/skills/search.js +3 -1
  54. package/dist/commands/skills/search.js.map +1 -1
  55. package/dist/commands/status.d.ts +1 -1
  56. package/dist/commands/status.d.ts.map +1 -1
  57. package/dist/commands/status.js +107 -4
  58. package/dist/commands/status.js.map +1 -1
  59. package/dist/commands/validate.d.ts.map +1 -1
  60. package/dist/commands/validate.js +9 -20
  61. package/dist/commands/validate.js.map +1 -1
  62. package/dist/commands/whoami.d.ts +3 -1
  63. package/dist/commands/whoami.d.ts.map +1 -1
  64. package/dist/commands/whoami.js +17 -3
  65. package/dist/commands/whoami.js.map +1 -1
  66. package/dist/config/loader.d.ts.map +1 -1
  67. package/dist/config/loader.js.map +1 -1
  68. package/dist/config/schema.d.ts +546 -111
  69. package/dist/config/schema.d.ts.map +1 -1
  70. package/dist/config/schema.js +26 -19
  71. package/dist/config/schema.js.map +1 -1
  72. package/dist/index.d.ts +0 -4
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +60 -25
  75. package/dist/index.js.map +1 -1
  76. package/dist/utils/markdown.d.ts +3 -0
  77. package/dist/utils/markdown.d.ts.map +1 -0
  78. package/dist/utils/markdown.js +10 -0
  79. package/dist/utils/markdown.js.map +1 -0
  80. package/package.json +4 -3
  81. package/dist/api/client.d.ts +0 -11
  82. package/dist/api/client.d.ts.map +0 -1
  83. package/dist/api/client.js +0 -35
  84. package/dist/api/client.js.map +0 -1
  85. package/dist/commands/launch.d.ts +0 -6
  86. package/dist/commands/launch.d.ts.map +0 -1
  87. package/dist/commands/launch.js +0 -32
  88. package/dist/commands/launch.js.map +0 -1
  89. package/dist/config/transformer.d.ts +0 -11
  90. package/dist/config/transformer.d.ts.map +0 -1
  91. package/dist/config/transformer.js +0 -49
  92. package/dist/config/transformer.js.map +0 -1
  93. package/dist/mcp-servers.d.ts +0 -11
  94. package/dist/mcp-servers.d.ts.map +0 -1
  95. package/dist/mcp-servers.js +0 -27
  96. package/dist/mcp-servers.js.map +0 -1
  97. package/dist/mcp-servers.json +0 -216
  98. package/dist/system-skills.json +0 -561
  99. package/dist/templates/.env.tmpl +0 -29
  100. package/dist/templates/.gitignore.tmpl +0 -32
  101. package/dist/templates/AGENTS.md.tmpl +0 -1
  102. package/dist/templates/Dockerfile.worker.tmpl +0 -29
  103. package/dist/templates/README.md.tmpl +0 -95
  104. package/dist/templates/TESTING.md.tmpl +0 -225
  105. package/dist/templates/lobu.toml.tmpl +0 -44
  106. package/dist/types.d.ts +0 -76
  107. package/dist/types.d.ts.map +0 -1
  108. package/dist/types.js +0 -2
  109. package/dist/types.js.map +0 -1
  110. package/dist/utils/config.d.ts +0 -2
  111. package/dist/utils/config.d.ts.map +0 -1
  112. package/dist/utils/config.js +0 -13
  113. package/dist/utils/config.js.map +0 -1
@@ -2,31 +2,82 @@ import { z } from "zod";
2
2
  declare const providerSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  model: z.ZodOptional<z.ZodString>;
5
+ key: z.ZodOptional<z.ZodString>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  id: string;
8
+ key?: string | undefined;
7
9
  model?: string | undefined;
8
10
  }, {
9
11
  id: string;
12
+ key?: string | undefined;
10
13
  model?: string | undefined;
11
14
  }>;
15
+ declare const connectionSchema: z.ZodObject<{
16
+ type: z.ZodString;
17
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ config: Record<string, string>;
20
+ type: string;
21
+ }, {
22
+ config: Record<string, string>;
23
+ type: string;
24
+ }>;
12
25
  declare const mcpServerSchema: z.ZodObject<{
13
26
  url: z.ZodOptional<z.ZodString>;
14
27
  command: z.ZodOptional<z.ZodString>;
15
28
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
29
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
17
30
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
+ oauth: z.ZodOptional<z.ZodObject<{
32
+ auth_url: z.ZodString;
33
+ token_url: z.ZodString;
34
+ client_id: z.ZodOptional<z.ZodString>;
35
+ client_secret: z.ZodOptional<z.ZodString>;
36
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ auth_url: string;
40
+ token_url: string;
41
+ client_id?: string | undefined;
42
+ client_secret?: string | undefined;
43
+ scopes?: string[] | undefined;
44
+ token_endpoint_auth_method?: string | undefined;
45
+ }, {
46
+ auth_url: string;
47
+ token_url: string;
48
+ client_id?: string | undefined;
49
+ client_secret?: string | undefined;
50
+ scopes?: string[] | undefined;
51
+ token_endpoint_auth_method?: string | undefined;
52
+ }>>;
18
53
  }, "strip", z.ZodTypeAny, {
19
- command?: string | undefined;
20
- url?: string | undefined;
21
- args?: string[] | undefined;
22
54
  env?: Record<string, string> | undefined;
23
55
  headers?: Record<string, string> | undefined;
24
- }, {
25
- command?: string | undefined;
26
56
  url?: string | undefined;
57
+ command?: string | undefined;
27
58
  args?: string[] | undefined;
59
+ oauth?: {
60
+ auth_url: string;
61
+ token_url: string;
62
+ client_id?: string | undefined;
63
+ client_secret?: string | undefined;
64
+ scopes?: string[] | undefined;
65
+ token_endpoint_auth_method?: string | undefined;
66
+ } | undefined;
67
+ }, {
28
68
  env?: Record<string, string> | undefined;
29
69
  headers?: Record<string, string> | undefined;
70
+ url?: string | undefined;
71
+ command?: string | undefined;
72
+ args?: string[] | undefined;
73
+ oauth?: {
74
+ auth_url: string;
75
+ token_url: string;
76
+ client_id?: string | undefined;
77
+ client_secret?: string | undefined;
78
+ scopes?: string[] | undefined;
79
+ token_endpoint_auth_method?: string | undefined;
80
+ } | undefined;
30
81
  }>;
31
82
  declare const skillsSchema: z.ZodObject<{
32
83
  enabled: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -36,36 +87,90 @@ declare const skillsSchema: z.ZodObject<{
36
87
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
88
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38
89
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
90
+ oauth: z.ZodOptional<z.ZodObject<{
91
+ auth_url: z.ZodString;
92
+ token_url: z.ZodString;
93
+ client_id: z.ZodOptional<z.ZodString>;
94
+ client_secret: z.ZodOptional<z.ZodString>;
95
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ auth_url: string;
99
+ token_url: string;
100
+ client_id?: string | undefined;
101
+ client_secret?: string | undefined;
102
+ scopes?: string[] | undefined;
103
+ token_endpoint_auth_method?: string | undefined;
104
+ }, {
105
+ auth_url: string;
106
+ token_url: string;
107
+ client_id?: string | undefined;
108
+ client_secret?: string | undefined;
109
+ scopes?: string[] | undefined;
110
+ token_endpoint_auth_method?: string | undefined;
111
+ }>>;
39
112
  }, "strip", z.ZodTypeAny, {
40
- command?: string | undefined;
41
- url?: string | undefined;
42
- args?: string[] | undefined;
43
113
  env?: Record<string, string> | undefined;
44
114
  headers?: Record<string, string> | undefined;
45
- }, {
46
- command?: string | undefined;
47
115
  url?: string | undefined;
116
+ command?: string | undefined;
48
117
  args?: string[] | undefined;
118
+ oauth?: {
119
+ auth_url: string;
120
+ token_url: string;
121
+ client_id?: string | undefined;
122
+ client_secret?: string | undefined;
123
+ scopes?: string[] | undefined;
124
+ token_endpoint_auth_method?: string | undefined;
125
+ } | undefined;
126
+ }, {
49
127
  env?: Record<string, string> | undefined;
50
128
  headers?: Record<string, string> | undefined;
129
+ url?: string | undefined;
130
+ command?: string | undefined;
131
+ args?: string[] | undefined;
132
+ oauth?: {
133
+ auth_url: string;
134
+ token_url: string;
135
+ client_id?: string | undefined;
136
+ client_secret?: string | undefined;
137
+ scopes?: string[] | undefined;
138
+ token_endpoint_auth_method?: string | undefined;
139
+ } | undefined;
51
140
  }>>>;
52
141
  }, "strip", z.ZodTypeAny, {
53
142
  enabled: string[];
54
143
  mcp?: Record<string, {
55
- command?: string | undefined;
56
- url?: string | undefined;
57
- args?: string[] | undefined;
58
144
  env?: Record<string, string> | undefined;
59
145
  headers?: Record<string, string> | undefined;
146
+ url?: string | undefined;
147
+ command?: string | undefined;
148
+ args?: string[] | undefined;
149
+ oauth?: {
150
+ auth_url: string;
151
+ token_url: string;
152
+ client_id?: string | undefined;
153
+ client_secret?: string | undefined;
154
+ scopes?: string[] | undefined;
155
+ token_endpoint_auth_method?: string | undefined;
156
+ } | undefined;
60
157
  }> | undefined;
61
158
  }, {
62
159
  enabled?: string[] | undefined;
63
160
  mcp?: Record<string, {
64
- command?: string | undefined;
65
- url?: string | undefined;
66
- args?: string[] | undefined;
67
161
  env?: Record<string, string> | undefined;
68
162
  headers?: Record<string, string> | undefined;
163
+ url?: string | undefined;
164
+ command?: string | undefined;
165
+ args?: string[] | undefined;
166
+ oauth?: {
167
+ auth_url: string;
168
+ token_url: string;
169
+ client_id?: string | undefined;
170
+ client_secret?: string | undefined;
171
+ scopes?: string[] | undefined;
172
+ token_endpoint_auth_method?: string | undefined;
173
+ } | undefined;
69
174
  }> | undefined;
70
175
  }>;
71
176
  declare const networkSchema: z.ZodObject<{
@@ -80,51 +185,38 @@ declare const networkSchema: z.ZodObject<{
80
185
  }>;
81
186
  declare const workerSchema: z.ZodObject<{
82
187
  nix_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
- timeout_minutes: z.ZodOptional<z.ZodNumber>;
84
188
  }, "strip", z.ZodTypeAny, {
85
189
  nix_packages?: string[] | undefined;
86
- timeout_minutes?: number | undefined;
87
190
  }, {
88
191
  nix_packages?: string[] | undefined;
89
- timeout_minutes?: number | undefined;
90
192
  }>;
91
- declare const platformsSchema: z.ZodObject<{
92
- telegram: z.ZodOptional<z.ZodBoolean>;
93
- slack: z.ZodOptional<z.ZodBoolean>;
94
- whatsapp: z.ZodOptional<z.ZodBoolean>;
95
- api: z.ZodOptional<z.ZodBoolean>;
96
- }, "strip", z.ZodTypeAny, {
97
- telegram?: boolean | undefined;
98
- slack?: boolean | undefined;
99
- api?: boolean | undefined;
100
- whatsapp?: boolean | undefined;
101
- }, {
102
- telegram?: boolean | undefined;
103
- slack?: boolean | undefined;
104
- api?: boolean | undefined;
105
- whatsapp?: boolean | undefined;
106
- }>;
107
- export declare const lobuConfigSchema: z.ZodObject<{
108
- agent: z.ZodObject<{
109
- name: z.ZodString;
110
- description: z.ZodOptional<z.ZodString>;
111
- }, "strip", z.ZodTypeAny, {
112
- name: string;
113
- description?: string | undefined;
114
- }, {
115
- name: string;
116
- description?: string | undefined;
117
- }>;
193
+ declare const agentEntrySchema: z.ZodObject<{
194
+ name: z.ZodString;
195
+ description: z.ZodOptional<z.ZodString>;
196
+ dir: z.ZodString;
118
197
  providers: z.ZodDefault<z.ZodArray<z.ZodObject<{
119
198
  id: z.ZodString;
120
199
  model: z.ZodOptional<z.ZodString>;
200
+ key: z.ZodOptional<z.ZodString>;
121
201
  }, "strip", z.ZodTypeAny, {
122
202
  id: string;
203
+ key?: string | undefined;
123
204
  model?: string | undefined;
124
205
  }, {
125
206
  id: string;
207
+ key?: string | undefined;
126
208
  model?: string | undefined;
127
209
  }>, "many">>;
210
+ connections: z.ZodDefault<z.ZodArray<z.ZodObject<{
211
+ type: z.ZodString;
212
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ config: Record<string, string>;
215
+ type: string;
216
+ }, {
217
+ config: Record<string, string>;
218
+ type: string;
219
+ }>, "many">>;
128
220
  skills: z.ZodDefault<z.ZodObject<{
129
221
  enabled: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
130
222
  mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -133,36 +225,90 @@ export declare const lobuConfigSchema: z.ZodObject<{
133
225
  args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
226
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
135
227
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
228
+ oauth: z.ZodOptional<z.ZodObject<{
229
+ auth_url: z.ZodString;
230
+ token_url: z.ZodString;
231
+ client_id: z.ZodOptional<z.ZodString>;
232
+ client_secret: z.ZodOptional<z.ZodString>;
233
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
234
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ auth_url: string;
237
+ token_url: string;
238
+ client_id?: string | undefined;
239
+ client_secret?: string | undefined;
240
+ scopes?: string[] | undefined;
241
+ token_endpoint_auth_method?: string | undefined;
242
+ }, {
243
+ auth_url: string;
244
+ token_url: string;
245
+ client_id?: string | undefined;
246
+ client_secret?: string | undefined;
247
+ scopes?: string[] | undefined;
248
+ token_endpoint_auth_method?: string | undefined;
249
+ }>>;
136
250
  }, "strip", z.ZodTypeAny, {
137
- command?: string | undefined;
138
- url?: string | undefined;
139
- args?: string[] | undefined;
140
251
  env?: Record<string, string> | undefined;
141
252
  headers?: Record<string, string> | undefined;
142
- }, {
143
- command?: string | undefined;
144
253
  url?: string | undefined;
254
+ command?: string | undefined;
145
255
  args?: string[] | undefined;
256
+ oauth?: {
257
+ auth_url: string;
258
+ token_url: string;
259
+ client_id?: string | undefined;
260
+ client_secret?: string | undefined;
261
+ scopes?: string[] | undefined;
262
+ token_endpoint_auth_method?: string | undefined;
263
+ } | undefined;
264
+ }, {
146
265
  env?: Record<string, string> | undefined;
147
266
  headers?: Record<string, string> | undefined;
267
+ url?: string | undefined;
268
+ command?: string | undefined;
269
+ args?: string[] | undefined;
270
+ oauth?: {
271
+ auth_url: string;
272
+ token_url: string;
273
+ client_id?: string | undefined;
274
+ client_secret?: string | undefined;
275
+ scopes?: string[] | undefined;
276
+ token_endpoint_auth_method?: string | undefined;
277
+ } | undefined;
148
278
  }>>>;
149
279
  }, "strip", z.ZodTypeAny, {
150
280
  enabled: string[];
151
281
  mcp?: Record<string, {
152
- command?: string | undefined;
153
- url?: string | undefined;
154
- args?: string[] | undefined;
155
282
  env?: Record<string, string> | undefined;
156
283
  headers?: Record<string, string> | undefined;
284
+ url?: string | undefined;
285
+ command?: string | undefined;
286
+ args?: string[] | undefined;
287
+ oauth?: {
288
+ auth_url: string;
289
+ token_url: string;
290
+ client_id?: string | undefined;
291
+ client_secret?: string | undefined;
292
+ scopes?: string[] | undefined;
293
+ token_endpoint_auth_method?: string | undefined;
294
+ } | undefined;
157
295
  }> | undefined;
158
296
  }, {
159
297
  enabled?: string[] | undefined;
160
298
  mcp?: Record<string, {
161
- command?: string | undefined;
162
- url?: string | undefined;
163
- args?: string[] | undefined;
164
299
  env?: Record<string, string> | undefined;
165
300
  headers?: Record<string, string> | undefined;
301
+ url?: string | undefined;
302
+ command?: string | undefined;
303
+ args?: string[] | undefined;
304
+ oauth?: {
305
+ auth_url: string;
306
+ token_url: string;
307
+ client_id?: string | undefined;
308
+ client_secret?: string | undefined;
309
+ scopes?: string[] | undefined;
310
+ token_endpoint_auth_method?: string | undefined;
311
+ } | undefined;
166
312
  }> | undefined;
167
313
  }>>;
168
314
  network: z.ZodOptional<z.ZodObject<{
@@ -177,87 +323,79 @@ export declare const lobuConfigSchema: z.ZodObject<{
177
323
  }>>;
178
324
  worker: z.ZodOptional<z.ZodObject<{
179
325
  nix_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
- timeout_minutes: z.ZodOptional<z.ZodNumber>;
181
326
  }, "strip", z.ZodTypeAny, {
182
327
  nix_packages?: string[] | undefined;
183
- timeout_minutes?: number | undefined;
184
328
  }, {
185
329
  nix_packages?: string[] | undefined;
186
- timeout_minutes?: number | undefined;
187
- }>>;
188
- platforms: z.ZodOptional<z.ZodObject<{
189
- telegram: z.ZodOptional<z.ZodBoolean>;
190
- slack: z.ZodOptional<z.ZodBoolean>;
191
- whatsapp: z.ZodOptional<z.ZodBoolean>;
192
- api: z.ZodOptional<z.ZodBoolean>;
193
- }, "strip", z.ZodTypeAny, {
194
- telegram?: boolean | undefined;
195
- slack?: boolean | undefined;
196
- api?: boolean | undefined;
197
- whatsapp?: boolean | undefined;
198
- }, {
199
- telegram?: boolean | undefined;
200
- slack?: boolean | undefined;
201
- api?: boolean | undefined;
202
- whatsapp?: boolean | undefined;
203
330
  }>>;
204
331
  }, "strip", z.ZodTypeAny, {
332
+ name: string;
333
+ providers: {
334
+ id: string;
335
+ key?: string | undefined;
336
+ model?: string | undefined;
337
+ }[];
205
338
  skills: {
206
339
  enabled: string[];
207
340
  mcp?: Record<string, {
208
- command?: string | undefined;
209
- url?: string | undefined;
210
- args?: string[] | undefined;
211
341
  env?: Record<string, string> | undefined;
212
342
  headers?: Record<string, string> | undefined;
343
+ url?: string | undefined;
344
+ command?: string | undefined;
345
+ args?: string[] | undefined;
346
+ oauth?: {
347
+ auth_url: string;
348
+ token_url: string;
349
+ client_id?: string | undefined;
350
+ client_secret?: string | undefined;
351
+ scopes?: string[] | undefined;
352
+ token_endpoint_auth_method?: string | undefined;
353
+ } | undefined;
213
354
  }> | undefined;
214
355
  };
215
- agent: {
216
- name: string;
217
- description?: string | undefined;
218
- };
219
- providers: {
220
- id: string;
221
- model?: string | undefined;
356
+ dir: string;
357
+ connections: {
358
+ config: Record<string, string>;
359
+ type: string;
222
360
  }[];
223
- platforms?: {
224
- telegram?: boolean | undefined;
225
- slack?: boolean | undefined;
226
- api?: boolean | undefined;
227
- whatsapp?: boolean | undefined;
228
- } | undefined;
361
+ description?: string | undefined;
229
362
  network?: {
230
363
  allowed?: string[] | undefined;
231
364
  denied?: string[] | undefined;
232
365
  } | undefined;
233
366
  worker?: {
234
367
  nix_packages?: string[] | undefined;
235
- timeout_minutes?: number | undefined;
236
368
  } | undefined;
237
369
  }, {
238
- agent: {
239
- name: string;
240
- description?: string | undefined;
241
- };
370
+ name: string;
371
+ dir: string;
372
+ providers?: {
373
+ id: string;
374
+ key?: string | undefined;
375
+ model?: string | undefined;
376
+ }[] | undefined;
242
377
  skills?: {
243
378
  enabled?: string[] | undefined;
244
379
  mcp?: Record<string, {
245
- command?: string | undefined;
246
- url?: string | undefined;
247
- args?: string[] | undefined;
248
380
  env?: Record<string, string> | undefined;
249
381
  headers?: Record<string, string> | undefined;
382
+ url?: string | undefined;
383
+ command?: string | undefined;
384
+ args?: string[] | undefined;
385
+ oauth?: {
386
+ auth_url: string;
387
+ token_url: string;
388
+ client_id?: string | undefined;
389
+ client_secret?: string | undefined;
390
+ scopes?: string[] | undefined;
391
+ token_endpoint_auth_method?: string | undefined;
392
+ } | undefined;
250
393
  }> | undefined;
251
394
  } | undefined;
252
- platforms?: {
253
- telegram?: boolean | undefined;
254
- slack?: boolean | undefined;
255
- api?: boolean | undefined;
256
- whatsapp?: boolean | undefined;
257
- } | undefined;
258
- providers?: {
259
- id: string;
260
- model?: string | undefined;
395
+ description?: string | undefined;
396
+ connections?: {
397
+ config: Record<string, string>;
398
+ type: string;
261
399
  }[] | undefined;
262
400
  network?: {
263
401
  allowed?: string[] | undefined;
@@ -265,15 +403,312 @@ export declare const lobuConfigSchema: z.ZodObject<{
265
403
  } | undefined;
266
404
  worker?: {
267
405
  nix_packages?: string[] | undefined;
268
- timeout_minutes?: number | undefined;
269
406
  } | undefined;
270
407
  }>;
408
+ export declare const lobuConfigSchema: z.ZodObject<{
409
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
410
+ name: z.ZodString;
411
+ description: z.ZodOptional<z.ZodString>;
412
+ dir: z.ZodString;
413
+ providers: z.ZodDefault<z.ZodArray<z.ZodObject<{
414
+ id: z.ZodString;
415
+ model: z.ZodOptional<z.ZodString>;
416
+ key: z.ZodOptional<z.ZodString>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ id: string;
419
+ key?: string | undefined;
420
+ model?: string | undefined;
421
+ }, {
422
+ id: string;
423
+ key?: string | undefined;
424
+ model?: string | undefined;
425
+ }>, "many">>;
426
+ connections: z.ZodDefault<z.ZodArray<z.ZodObject<{
427
+ type: z.ZodString;
428
+ config: z.ZodRecord<z.ZodString, z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ config: Record<string, string>;
431
+ type: string;
432
+ }, {
433
+ config: Record<string, string>;
434
+ type: string;
435
+ }>, "many">>;
436
+ skills: z.ZodDefault<z.ZodObject<{
437
+ enabled: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
438
+ mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
439
+ url: z.ZodOptional<z.ZodString>;
440
+ command: z.ZodOptional<z.ZodString>;
441
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
442
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
443
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
444
+ oauth: z.ZodOptional<z.ZodObject<{
445
+ auth_url: z.ZodString;
446
+ token_url: z.ZodString;
447
+ client_id: z.ZodOptional<z.ZodString>;
448
+ client_secret: z.ZodOptional<z.ZodString>;
449
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
450
+ token_endpoint_auth_method: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ auth_url: string;
453
+ token_url: string;
454
+ client_id?: string | undefined;
455
+ client_secret?: string | undefined;
456
+ scopes?: string[] | undefined;
457
+ token_endpoint_auth_method?: string | undefined;
458
+ }, {
459
+ auth_url: string;
460
+ token_url: string;
461
+ client_id?: string | undefined;
462
+ client_secret?: string | undefined;
463
+ scopes?: string[] | undefined;
464
+ token_endpoint_auth_method?: string | undefined;
465
+ }>>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ env?: Record<string, string> | undefined;
468
+ headers?: Record<string, string> | undefined;
469
+ url?: string | undefined;
470
+ command?: string | undefined;
471
+ args?: string[] | undefined;
472
+ oauth?: {
473
+ auth_url: string;
474
+ token_url: string;
475
+ client_id?: string | undefined;
476
+ client_secret?: string | undefined;
477
+ scopes?: string[] | undefined;
478
+ token_endpoint_auth_method?: string | undefined;
479
+ } | undefined;
480
+ }, {
481
+ env?: Record<string, string> | undefined;
482
+ headers?: Record<string, string> | undefined;
483
+ url?: string | undefined;
484
+ command?: string | undefined;
485
+ args?: string[] | undefined;
486
+ oauth?: {
487
+ auth_url: string;
488
+ token_url: string;
489
+ client_id?: string | undefined;
490
+ client_secret?: string | undefined;
491
+ scopes?: string[] | undefined;
492
+ token_endpoint_auth_method?: string | undefined;
493
+ } | undefined;
494
+ }>>>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ enabled: string[];
497
+ mcp?: Record<string, {
498
+ env?: Record<string, string> | undefined;
499
+ headers?: Record<string, string> | undefined;
500
+ url?: string | undefined;
501
+ command?: string | undefined;
502
+ args?: string[] | undefined;
503
+ oauth?: {
504
+ auth_url: string;
505
+ token_url: string;
506
+ client_id?: string | undefined;
507
+ client_secret?: string | undefined;
508
+ scopes?: string[] | undefined;
509
+ token_endpoint_auth_method?: string | undefined;
510
+ } | undefined;
511
+ }> | undefined;
512
+ }, {
513
+ enabled?: string[] | undefined;
514
+ mcp?: Record<string, {
515
+ env?: Record<string, string> | undefined;
516
+ headers?: Record<string, string> | undefined;
517
+ url?: string | undefined;
518
+ command?: string | undefined;
519
+ args?: string[] | undefined;
520
+ oauth?: {
521
+ auth_url: string;
522
+ token_url: string;
523
+ client_id?: string | undefined;
524
+ client_secret?: string | undefined;
525
+ scopes?: string[] | undefined;
526
+ token_endpoint_auth_method?: string | undefined;
527
+ } | undefined;
528
+ }> | undefined;
529
+ }>>;
530
+ network: z.ZodOptional<z.ZodObject<{
531
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
532
+ denied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ allowed?: string[] | undefined;
535
+ denied?: string[] | undefined;
536
+ }, {
537
+ allowed?: string[] | undefined;
538
+ denied?: string[] | undefined;
539
+ }>>;
540
+ worker: z.ZodOptional<z.ZodObject<{
541
+ nix_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ nix_packages?: string[] | undefined;
544
+ }, {
545
+ nix_packages?: string[] | undefined;
546
+ }>>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ name: string;
549
+ providers: {
550
+ id: string;
551
+ key?: string | undefined;
552
+ model?: string | undefined;
553
+ }[];
554
+ skills: {
555
+ enabled: string[];
556
+ mcp?: Record<string, {
557
+ env?: Record<string, string> | undefined;
558
+ headers?: Record<string, string> | undefined;
559
+ url?: string | undefined;
560
+ command?: string | undefined;
561
+ args?: string[] | undefined;
562
+ oauth?: {
563
+ auth_url: string;
564
+ token_url: string;
565
+ client_id?: string | undefined;
566
+ client_secret?: string | undefined;
567
+ scopes?: string[] | undefined;
568
+ token_endpoint_auth_method?: string | undefined;
569
+ } | undefined;
570
+ }> | undefined;
571
+ };
572
+ dir: string;
573
+ connections: {
574
+ config: Record<string, string>;
575
+ type: string;
576
+ }[];
577
+ description?: string | undefined;
578
+ network?: {
579
+ allowed?: string[] | undefined;
580
+ denied?: string[] | undefined;
581
+ } | undefined;
582
+ worker?: {
583
+ nix_packages?: string[] | undefined;
584
+ } | undefined;
585
+ }, {
586
+ name: string;
587
+ dir: string;
588
+ providers?: {
589
+ id: string;
590
+ key?: string | undefined;
591
+ model?: string | undefined;
592
+ }[] | undefined;
593
+ skills?: {
594
+ enabled?: string[] | undefined;
595
+ mcp?: Record<string, {
596
+ env?: Record<string, string> | undefined;
597
+ headers?: Record<string, string> | undefined;
598
+ url?: string | undefined;
599
+ command?: string | undefined;
600
+ args?: string[] | undefined;
601
+ oauth?: {
602
+ auth_url: string;
603
+ token_url: string;
604
+ client_id?: string | undefined;
605
+ client_secret?: string | undefined;
606
+ scopes?: string[] | undefined;
607
+ token_endpoint_auth_method?: string | undefined;
608
+ } | undefined;
609
+ }> | undefined;
610
+ } | undefined;
611
+ description?: string | undefined;
612
+ connections?: {
613
+ config: Record<string, string>;
614
+ type: string;
615
+ }[] | undefined;
616
+ network?: {
617
+ allowed?: string[] | undefined;
618
+ denied?: string[] | undefined;
619
+ } | undefined;
620
+ worker?: {
621
+ nix_packages?: string[] | undefined;
622
+ } | undefined;
623
+ }>>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ agents: Record<string, {
626
+ name: string;
627
+ providers: {
628
+ id: string;
629
+ key?: string | undefined;
630
+ model?: string | undefined;
631
+ }[];
632
+ skills: {
633
+ enabled: string[];
634
+ mcp?: Record<string, {
635
+ env?: Record<string, string> | undefined;
636
+ headers?: Record<string, string> | undefined;
637
+ url?: string | undefined;
638
+ command?: string | undefined;
639
+ args?: string[] | undefined;
640
+ oauth?: {
641
+ auth_url: string;
642
+ token_url: string;
643
+ client_id?: string | undefined;
644
+ client_secret?: string | undefined;
645
+ scopes?: string[] | undefined;
646
+ token_endpoint_auth_method?: string | undefined;
647
+ } | undefined;
648
+ }> | undefined;
649
+ };
650
+ dir: string;
651
+ connections: {
652
+ config: Record<string, string>;
653
+ type: string;
654
+ }[];
655
+ description?: string | undefined;
656
+ network?: {
657
+ allowed?: string[] | undefined;
658
+ denied?: string[] | undefined;
659
+ } | undefined;
660
+ worker?: {
661
+ nix_packages?: string[] | undefined;
662
+ } | undefined;
663
+ }>;
664
+ }, {
665
+ agents: Record<string, {
666
+ name: string;
667
+ dir: string;
668
+ providers?: {
669
+ id: string;
670
+ key?: string | undefined;
671
+ model?: string | undefined;
672
+ }[] | undefined;
673
+ skills?: {
674
+ enabled?: string[] | undefined;
675
+ mcp?: Record<string, {
676
+ env?: Record<string, string> | undefined;
677
+ headers?: Record<string, string> | undefined;
678
+ url?: string | undefined;
679
+ command?: string | undefined;
680
+ args?: string[] | undefined;
681
+ oauth?: {
682
+ auth_url: string;
683
+ token_url: string;
684
+ client_id?: string | undefined;
685
+ client_secret?: string | undefined;
686
+ scopes?: string[] | undefined;
687
+ token_endpoint_auth_method?: string | undefined;
688
+ } | undefined;
689
+ }> | undefined;
690
+ } | undefined;
691
+ description?: string | undefined;
692
+ connections?: {
693
+ config: Record<string, string>;
694
+ type: string;
695
+ }[] | undefined;
696
+ network?: {
697
+ allowed?: string[] | undefined;
698
+ denied?: string[] | undefined;
699
+ } | undefined;
700
+ worker?: {
701
+ nix_packages?: string[] | undefined;
702
+ } | undefined;
703
+ }>;
704
+ }>;
271
705
  export type LobuTomlConfig = z.infer<typeof lobuConfigSchema>;
706
+ export type AgentEntry = z.infer<typeof agentEntrySchema>;
272
707
  export type ProviderEntry = z.infer<typeof providerSchema>;
708
+ export type ConnectionEntry = z.infer<typeof connectionSchema>;
273
709
  export type McpServerEntry = z.infer<typeof mcpServerSchema>;
274
710
  export type SkillsEntry = z.infer<typeof skillsSchema>;
275
711
  export type NetworkEntry = z.infer<typeof networkSchema>;
276
712
  export type WorkerEntry = z.infer<typeof workerSchema>;
277
- export type PlatformsEntry = z.infer<typeof platformsSchema>;
278
713
  export {};
279
714
  //# sourceMappingURL=schema.d.ts.map