@zengxingyuan/aamp-cli-bridge 0.1.7-dev.1

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.
@@ -0,0 +1,639 @@
1
+ import { z } from 'zod';
2
+ export declare const cliProfileDefinitionSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodString>;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ command: z.ZodString;
6
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ stdin: z.ZodOptional<z.ZodString>;
8
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9
+ cwd: z.ZodOptional<z.ZodString>;
10
+ shell: z.ZodOptional<z.ZodBoolean>;
11
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
12
+ successExitCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
13
+ stream: z.ZodOptional<z.ZodObject<{
14
+ format: z.ZodEnum<["sse", "ndjson"]>;
15
+ enabled: z.ZodOptional<z.ZodBoolean>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ format: "sse" | "ndjson";
18
+ enabled?: boolean | undefined;
19
+ }, {
20
+ format: "sse" | "ndjson";
21
+ enabled?: boolean | undefined;
22
+ }>>;
23
+ output: z.ZodOptional<z.ZodObject<{
24
+ includeStderr: z.ZodOptional<z.ZodBoolean>;
25
+ stripAnsi: z.ZodOptional<z.ZodBoolean>;
26
+ trim: z.ZodOptional<z.ZodBoolean>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ includeStderr?: boolean | undefined;
29
+ stripAnsi?: boolean | undefined;
30
+ trim?: boolean | undefined;
31
+ }, {
32
+ includeStderr?: boolean | undefined;
33
+ stripAnsi?: boolean | undefined;
34
+ trim?: boolean | undefined;
35
+ }>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ command: string;
38
+ name?: string | undefined;
39
+ description?: string | undefined;
40
+ args?: string[] | undefined;
41
+ stdin?: string | undefined;
42
+ env?: Record<string, string> | undefined;
43
+ cwd?: string | undefined;
44
+ shell?: boolean | undefined;
45
+ timeoutMs?: number | undefined;
46
+ successExitCodes?: number[] | undefined;
47
+ stream?: {
48
+ format: "sse" | "ndjson";
49
+ enabled?: boolean | undefined;
50
+ } | undefined;
51
+ output?: {
52
+ includeStderr?: boolean | undefined;
53
+ stripAnsi?: boolean | undefined;
54
+ trim?: boolean | undefined;
55
+ } | undefined;
56
+ }, {
57
+ command: string;
58
+ name?: string | undefined;
59
+ description?: string | undefined;
60
+ args?: string[] | undefined;
61
+ stdin?: string | undefined;
62
+ env?: Record<string, string> | undefined;
63
+ cwd?: string | undefined;
64
+ shell?: boolean | undefined;
65
+ timeoutMs?: number | undefined;
66
+ successExitCodes?: number[] | undefined;
67
+ stream?: {
68
+ format: "sse" | "ndjson";
69
+ enabled?: boolean | undefined;
70
+ } | undefined;
71
+ output?: {
72
+ includeStderr?: boolean | undefined;
73
+ stripAnsi?: boolean | undefined;
74
+ trim?: boolean | undefined;
75
+ } | undefined;
76
+ }>;
77
+ declare const senderPolicySchema: z.ZodObject<{
78
+ sender: z.ZodString;
79
+ dispatchContextRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ sender: string;
82
+ dispatchContextRules?: Record<string, string[]> | undefined;
83
+ }, {
84
+ sender: string;
85
+ dispatchContextRules?: Record<string, string[]> | undefined;
86
+ }>;
87
+ declare const agentConfigSchema: z.ZodObject<{
88
+ name: z.ZodString;
89
+ cliProfile: z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ name: z.ZodOptional<z.ZodString>;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ command: z.ZodString;
93
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ stdin: z.ZodOptional<z.ZodString>;
95
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
96
+ cwd: z.ZodOptional<z.ZodString>;
97
+ shell: z.ZodOptional<z.ZodBoolean>;
98
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
99
+ successExitCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
100
+ stream: z.ZodOptional<z.ZodObject<{
101
+ format: z.ZodEnum<["sse", "ndjson"]>;
102
+ enabled: z.ZodOptional<z.ZodBoolean>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ format: "sse" | "ndjson";
105
+ enabled?: boolean | undefined;
106
+ }, {
107
+ format: "sse" | "ndjson";
108
+ enabled?: boolean | undefined;
109
+ }>>;
110
+ output: z.ZodOptional<z.ZodObject<{
111
+ includeStderr: z.ZodOptional<z.ZodBoolean>;
112
+ stripAnsi: z.ZodOptional<z.ZodBoolean>;
113
+ trim: z.ZodOptional<z.ZodBoolean>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ includeStderr?: boolean | undefined;
116
+ stripAnsi?: boolean | undefined;
117
+ trim?: boolean | undefined;
118
+ }, {
119
+ includeStderr?: boolean | undefined;
120
+ stripAnsi?: boolean | undefined;
121
+ trim?: boolean | undefined;
122
+ }>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ command: string;
125
+ name?: string | undefined;
126
+ description?: string | undefined;
127
+ args?: string[] | undefined;
128
+ stdin?: string | undefined;
129
+ env?: Record<string, string> | undefined;
130
+ cwd?: string | undefined;
131
+ shell?: boolean | undefined;
132
+ timeoutMs?: number | undefined;
133
+ successExitCodes?: number[] | undefined;
134
+ stream?: {
135
+ format: "sse" | "ndjson";
136
+ enabled?: boolean | undefined;
137
+ } | undefined;
138
+ output?: {
139
+ includeStderr?: boolean | undefined;
140
+ stripAnsi?: boolean | undefined;
141
+ trim?: boolean | undefined;
142
+ } | undefined;
143
+ }, {
144
+ command: string;
145
+ name?: string | undefined;
146
+ description?: string | undefined;
147
+ args?: string[] | undefined;
148
+ stdin?: string | undefined;
149
+ env?: Record<string, string> | undefined;
150
+ cwd?: string | undefined;
151
+ shell?: boolean | undefined;
152
+ timeoutMs?: number | undefined;
153
+ successExitCodes?: number[] | undefined;
154
+ stream?: {
155
+ format: "sse" | "ndjson";
156
+ enabled?: boolean | undefined;
157
+ } | undefined;
158
+ output?: {
159
+ includeStderr?: boolean | undefined;
160
+ stripAnsi?: boolean | undefined;
161
+ trim?: boolean | undefined;
162
+ } | undefined;
163
+ }>]>;
164
+ slug: z.ZodOptional<z.ZodString>;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ summary: z.ZodOptional<z.ZodString>;
167
+ cardText: z.ZodOptional<z.ZodString>;
168
+ cardFile: z.ZodOptional<z.ZodString>;
169
+ credentialsFile: z.ZodOptional<z.ZodString>;
170
+ pairingFile: z.ZodOptional<z.ZodString>;
171
+ senderPoliciesFile: z.ZodOptional<z.ZodString>;
172
+ senderWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
173
+ senderPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
174
+ sender: z.ZodString;
175
+ dispatchContextRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ sender: string;
178
+ dispatchContextRules?: Record<string, string[]> | undefined;
179
+ }, {
180
+ sender: string;
181
+ dispatchContextRules?: Record<string, string[]> | undefined;
182
+ }>, "many">>;
183
+ taskDispatchConcurrency: z.ZodOptional<z.ZodNumber>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ name: string;
186
+ cliProfile: string | {
187
+ command: string;
188
+ name?: string | undefined;
189
+ description?: string | undefined;
190
+ args?: string[] | undefined;
191
+ stdin?: string | undefined;
192
+ env?: Record<string, string> | undefined;
193
+ cwd?: string | undefined;
194
+ shell?: boolean | undefined;
195
+ timeoutMs?: number | undefined;
196
+ successExitCodes?: number[] | undefined;
197
+ stream?: {
198
+ format: "sse" | "ndjson";
199
+ enabled?: boolean | undefined;
200
+ } | undefined;
201
+ output?: {
202
+ includeStderr?: boolean | undefined;
203
+ stripAnsi?: boolean | undefined;
204
+ trim?: boolean | undefined;
205
+ } | undefined;
206
+ };
207
+ description?: string | undefined;
208
+ slug?: string | undefined;
209
+ summary?: string | undefined;
210
+ cardText?: string | undefined;
211
+ cardFile?: string | undefined;
212
+ credentialsFile?: string | undefined;
213
+ pairingFile?: string | undefined;
214
+ senderPoliciesFile?: string | undefined;
215
+ senderWhitelist?: string[] | undefined;
216
+ senderPolicies?: {
217
+ sender: string;
218
+ dispatchContextRules?: Record<string, string[]> | undefined;
219
+ }[] | undefined;
220
+ taskDispatchConcurrency?: number | undefined;
221
+ }, {
222
+ name: string;
223
+ cliProfile: string | {
224
+ command: string;
225
+ name?: string | undefined;
226
+ description?: string | undefined;
227
+ args?: string[] | undefined;
228
+ stdin?: string | undefined;
229
+ env?: Record<string, string> | undefined;
230
+ cwd?: string | undefined;
231
+ shell?: boolean | undefined;
232
+ timeoutMs?: number | undefined;
233
+ successExitCodes?: number[] | undefined;
234
+ stream?: {
235
+ format: "sse" | "ndjson";
236
+ enabled?: boolean | undefined;
237
+ } | undefined;
238
+ output?: {
239
+ includeStderr?: boolean | undefined;
240
+ stripAnsi?: boolean | undefined;
241
+ trim?: boolean | undefined;
242
+ } | undefined;
243
+ };
244
+ description?: string | undefined;
245
+ slug?: string | undefined;
246
+ summary?: string | undefined;
247
+ cardText?: string | undefined;
248
+ cardFile?: string | undefined;
249
+ credentialsFile?: string | undefined;
250
+ pairingFile?: string | undefined;
251
+ senderPoliciesFile?: string | undefined;
252
+ senderWhitelist?: string[] | undefined;
253
+ senderPolicies?: {
254
+ sender: string;
255
+ dispatchContextRules?: Record<string, string[]> | undefined;
256
+ }[] | undefined;
257
+ taskDispatchConcurrency?: number | undefined;
258
+ }>;
259
+ declare const bridgeConfigSchema: z.ZodObject<{
260
+ aampHost: z.ZodString;
261
+ rejectUnauthorized: z.ZodDefault<z.ZodBoolean>;
262
+ profiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
263
+ name: z.ZodOptional<z.ZodString>;
264
+ description: z.ZodOptional<z.ZodString>;
265
+ command: z.ZodString;
266
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
267
+ stdin: z.ZodOptional<z.ZodString>;
268
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
+ cwd: z.ZodOptional<z.ZodString>;
270
+ shell: z.ZodOptional<z.ZodBoolean>;
271
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
272
+ successExitCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
273
+ stream: z.ZodOptional<z.ZodObject<{
274
+ format: z.ZodEnum<["sse", "ndjson"]>;
275
+ enabled: z.ZodOptional<z.ZodBoolean>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ format: "sse" | "ndjson";
278
+ enabled?: boolean | undefined;
279
+ }, {
280
+ format: "sse" | "ndjson";
281
+ enabled?: boolean | undefined;
282
+ }>>;
283
+ output: z.ZodOptional<z.ZodObject<{
284
+ includeStderr: z.ZodOptional<z.ZodBoolean>;
285
+ stripAnsi: z.ZodOptional<z.ZodBoolean>;
286
+ trim: z.ZodOptional<z.ZodBoolean>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ includeStderr?: boolean | undefined;
289
+ stripAnsi?: boolean | undefined;
290
+ trim?: boolean | undefined;
291
+ }, {
292
+ includeStderr?: boolean | undefined;
293
+ stripAnsi?: boolean | undefined;
294
+ trim?: boolean | undefined;
295
+ }>>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ command: string;
298
+ name?: string | undefined;
299
+ description?: string | undefined;
300
+ args?: string[] | undefined;
301
+ stdin?: string | undefined;
302
+ env?: Record<string, string> | undefined;
303
+ cwd?: string | undefined;
304
+ shell?: boolean | undefined;
305
+ timeoutMs?: number | undefined;
306
+ successExitCodes?: number[] | undefined;
307
+ stream?: {
308
+ format: "sse" | "ndjson";
309
+ enabled?: boolean | undefined;
310
+ } | undefined;
311
+ output?: {
312
+ includeStderr?: boolean | undefined;
313
+ stripAnsi?: boolean | undefined;
314
+ trim?: boolean | undefined;
315
+ } | undefined;
316
+ }, {
317
+ command: string;
318
+ name?: string | undefined;
319
+ description?: string | undefined;
320
+ args?: string[] | undefined;
321
+ stdin?: string | undefined;
322
+ env?: Record<string, string> | undefined;
323
+ cwd?: string | undefined;
324
+ shell?: boolean | undefined;
325
+ timeoutMs?: number | undefined;
326
+ successExitCodes?: number[] | undefined;
327
+ stream?: {
328
+ format: "sse" | "ndjson";
329
+ enabled?: boolean | undefined;
330
+ } | undefined;
331
+ output?: {
332
+ includeStderr?: boolean | undefined;
333
+ stripAnsi?: boolean | undefined;
334
+ trim?: boolean | undefined;
335
+ } | undefined;
336
+ }>>>;
337
+ agents: z.ZodArray<z.ZodObject<{
338
+ name: z.ZodString;
339
+ cliProfile: z.ZodUnion<[z.ZodString, z.ZodObject<{
340
+ name: z.ZodOptional<z.ZodString>;
341
+ description: z.ZodOptional<z.ZodString>;
342
+ command: z.ZodString;
343
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
+ stdin: z.ZodOptional<z.ZodString>;
345
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
346
+ cwd: z.ZodOptional<z.ZodString>;
347
+ shell: z.ZodOptional<z.ZodBoolean>;
348
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
349
+ successExitCodes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
350
+ stream: z.ZodOptional<z.ZodObject<{
351
+ format: z.ZodEnum<["sse", "ndjson"]>;
352
+ enabled: z.ZodOptional<z.ZodBoolean>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ format: "sse" | "ndjson";
355
+ enabled?: boolean | undefined;
356
+ }, {
357
+ format: "sse" | "ndjson";
358
+ enabled?: boolean | undefined;
359
+ }>>;
360
+ output: z.ZodOptional<z.ZodObject<{
361
+ includeStderr: z.ZodOptional<z.ZodBoolean>;
362
+ stripAnsi: z.ZodOptional<z.ZodBoolean>;
363
+ trim: z.ZodOptional<z.ZodBoolean>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ includeStderr?: boolean | undefined;
366
+ stripAnsi?: boolean | undefined;
367
+ trim?: boolean | undefined;
368
+ }, {
369
+ includeStderr?: boolean | undefined;
370
+ stripAnsi?: boolean | undefined;
371
+ trim?: boolean | undefined;
372
+ }>>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ command: string;
375
+ name?: string | undefined;
376
+ description?: string | undefined;
377
+ args?: string[] | undefined;
378
+ stdin?: string | undefined;
379
+ env?: Record<string, string> | undefined;
380
+ cwd?: string | undefined;
381
+ shell?: boolean | undefined;
382
+ timeoutMs?: number | undefined;
383
+ successExitCodes?: number[] | undefined;
384
+ stream?: {
385
+ format: "sse" | "ndjson";
386
+ enabled?: boolean | undefined;
387
+ } | undefined;
388
+ output?: {
389
+ includeStderr?: boolean | undefined;
390
+ stripAnsi?: boolean | undefined;
391
+ trim?: boolean | undefined;
392
+ } | undefined;
393
+ }, {
394
+ command: string;
395
+ name?: string | undefined;
396
+ description?: string | undefined;
397
+ args?: string[] | undefined;
398
+ stdin?: string | undefined;
399
+ env?: Record<string, string> | undefined;
400
+ cwd?: string | undefined;
401
+ shell?: boolean | undefined;
402
+ timeoutMs?: number | undefined;
403
+ successExitCodes?: number[] | undefined;
404
+ stream?: {
405
+ format: "sse" | "ndjson";
406
+ enabled?: boolean | undefined;
407
+ } | undefined;
408
+ output?: {
409
+ includeStderr?: boolean | undefined;
410
+ stripAnsi?: boolean | undefined;
411
+ trim?: boolean | undefined;
412
+ } | undefined;
413
+ }>]>;
414
+ slug: z.ZodOptional<z.ZodString>;
415
+ description: z.ZodOptional<z.ZodString>;
416
+ summary: z.ZodOptional<z.ZodString>;
417
+ cardText: z.ZodOptional<z.ZodString>;
418
+ cardFile: z.ZodOptional<z.ZodString>;
419
+ credentialsFile: z.ZodOptional<z.ZodString>;
420
+ pairingFile: z.ZodOptional<z.ZodString>;
421
+ senderPoliciesFile: z.ZodOptional<z.ZodString>;
422
+ senderWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
423
+ senderPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
424
+ sender: z.ZodString;
425
+ dispatchContextRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ sender: string;
428
+ dispatchContextRules?: Record<string, string[]> | undefined;
429
+ }, {
430
+ sender: string;
431
+ dispatchContextRules?: Record<string, string[]> | undefined;
432
+ }>, "many">>;
433
+ taskDispatchConcurrency: z.ZodOptional<z.ZodNumber>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ name: string;
436
+ cliProfile: string | {
437
+ command: string;
438
+ name?: string | undefined;
439
+ description?: string | undefined;
440
+ args?: string[] | undefined;
441
+ stdin?: string | undefined;
442
+ env?: Record<string, string> | undefined;
443
+ cwd?: string | undefined;
444
+ shell?: boolean | undefined;
445
+ timeoutMs?: number | undefined;
446
+ successExitCodes?: number[] | undefined;
447
+ stream?: {
448
+ format: "sse" | "ndjson";
449
+ enabled?: boolean | undefined;
450
+ } | undefined;
451
+ output?: {
452
+ includeStderr?: boolean | undefined;
453
+ stripAnsi?: boolean | undefined;
454
+ trim?: boolean | undefined;
455
+ } | undefined;
456
+ };
457
+ description?: string | undefined;
458
+ slug?: string | undefined;
459
+ summary?: string | undefined;
460
+ cardText?: string | undefined;
461
+ cardFile?: string | undefined;
462
+ credentialsFile?: string | undefined;
463
+ pairingFile?: string | undefined;
464
+ senderPoliciesFile?: string | undefined;
465
+ senderWhitelist?: string[] | undefined;
466
+ senderPolicies?: {
467
+ sender: string;
468
+ dispatchContextRules?: Record<string, string[]> | undefined;
469
+ }[] | undefined;
470
+ taskDispatchConcurrency?: number | undefined;
471
+ }, {
472
+ name: string;
473
+ cliProfile: string | {
474
+ command: string;
475
+ name?: string | undefined;
476
+ description?: string | undefined;
477
+ args?: string[] | undefined;
478
+ stdin?: string | undefined;
479
+ env?: Record<string, string> | undefined;
480
+ cwd?: string | undefined;
481
+ shell?: boolean | undefined;
482
+ timeoutMs?: number | undefined;
483
+ successExitCodes?: number[] | undefined;
484
+ stream?: {
485
+ format: "sse" | "ndjson";
486
+ enabled?: boolean | undefined;
487
+ } | undefined;
488
+ output?: {
489
+ includeStderr?: boolean | undefined;
490
+ stripAnsi?: boolean | undefined;
491
+ trim?: boolean | undefined;
492
+ } | undefined;
493
+ };
494
+ description?: string | undefined;
495
+ slug?: string | undefined;
496
+ summary?: string | undefined;
497
+ cardText?: string | undefined;
498
+ cardFile?: string | undefined;
499
+ credentialsFile?: string | undefined;
500
+ pairingFile?: string | undefined;
501
+ senderPoliciesFile?: string | undefined;
502
+ senderWhitelist?: string[] | undefined;
503
+ senderPolicies?: {
504
+ sender: string;
505
+ dispatchContextRules?: Record<string, string[]> | undefined;
506
+ }[] | undefined;
507
+ taskDispatchConcurrency?: number | undefined;
508
+ }>, "many">;
509
+ }, "strip", z.ZodTypeAny, {
510
+ aampHost: string;
511
+ rejectUnauthorized: boolean;
512
+ agents: {
513
+ name: string;
514
+ cliProfile: string | {
515
+ command: string;
516
+ name?: string | undefined;
517
+ description?: string | undefined;
518
+ args?: string[] | undefined;
519
+ stdin?: string | undefined;
520
+ env?: Record<string, string> | undefined;
521
+ cwd?: string | undefined;
522
+ shell?: boolean | undefined;
523
+ timeoutMs?: number | undefined;
524
+ successExitCodes?: number[] | undefined;
525
+ stream?: {
526
+ format: "sse" | "ndjson";
527
+ enabled?: boolean | undefined;
528
+ } | undefined;
529
+ output?: {
530
+ includeStderr?: boolean | undefined;
531
+ stripAnsi?: boolean | undefined;
532
+ trim?: boolean | undefined;
533
+ } | undefined;
534
+ };
535
+ description?: string | undefined;
536
+ slug?: string | undefined;
537
+ summary?: string | undefined;
538
+ cardText?: string | undefined;
539
+ cardFile?: string | undefined;
540
+ credentialsFile?: string | undefined;
541
+ pairingFile?: string | undefined;
542
+ senderPoliciesFile?: string | undefined;
543
+ senderWhitelist?: string[] | undefined;
544
+ senderPolicies?: {
545
+ sender: string;
546
+ dispatchContextRules?: Record<string, string[]> | undefined;
547
+ }[] | undefined;
548
+ taskDispatchConcurrency?: number | undefined;
549
+ }[];
550
+ profiles?: Record<string, {
551
+ command: string;
552
+ name?: string | undefined;
553
+ description?: string | undefined;
554
+ args?: string[] | undefined;
555
+ stdin?: string | undefined;
556
+ env?: Record<string, string> | undefined;
557
+ cwd?: string | undefined;
558
+ shell?: boolean | undefined;
559
+ timeoutMs?: number | undefined;
560
+ successExitCodes?: number[] | undefined;
561
+ stream?: {
562
+ format: "sse" | "ndjson";
563
+ enabled?: boolean | undefined;
564
+ } | undefined;
565
+ output?: {
566
+ includeStderr?: boolean | undefined;
567
+ stripAnsi?: boolean | undefined;
568
+ trim?: boolean | undefined;
569
+ } | undefined;
570
+ }> | undefined;
571
+ }, {
572
+ aampHost: string;
573
+ agents: {
574
+ name: string;
575
+ cliProfile: string | {
576
+ command: string;
577
+ name?: string | undefined;
578
+ description?: string | undefined;
579
+ args?: string[] | undefined;
580
+ stdin?: string | undefined;
581
+ env?: Record<string, string> | undefined;
582
+ cwd?: string | undefined;
583
+ shell?: boolean | undefined;
584
+ timeoutMs?: number | undefined;
585
+ successExitCodes?: number[] | undefined;
586
+ stream?: {
587
+ format: "sse" | "ndjson";
588
+ enabled?: boolean | undefined;
589
+ } | undefined;
590
+ output?: {
591
+ includeStderr?: boolean | undefined;
592
+ stripAnsi?: boolean | undefined;
593
+ trim?: boolean | undefined;
594
+ } | undefined;
595
+ };
596
+ description?: string | undefined;
597
+ slug?: string | undefined;
598
+ summary?: string | undefined;
599
+ cardText?: string | undefined;
600
+ cardFile?: string | undefined;
601
+ credentialsFile?: string | undefined;
602
+ pairingFile?: string | undefined;
603
+ senderPoliciesFile?: string | undefined;
604
+ senderWhitelist?: string[] | undefined;
605
+ senderPolicies?: {
606
+ sender: string;
607
+ dispatchContextRules?: Record<string, string[]> | undefined;
608
+ }[] | undefined;
609
+ taskDispatchConcurrency?: number | undefined;
610
+ }[];
611
+ rejectUnauthorized?: boolean | undefined;
612
+ profiles?: Record<string, {
613
+ command: string;
614
+ name?: string | undefined;
615
+ description?: string | undefined;
616
+ args?: string[] | undefined;
617
+ stdin?: string | undefined;
618
+ env?: Record<string, string> | undefined;
619
+ cwd?: string | undefined;
620
+ shell?: boolean | undefined;
621
+ timeoutMs?: number | undefined;
622
+ successExitCodes?: number[] | undefined;
623
+ stream?: {
624
+ format: "sse" | "ndjson";
625
+ enabled?: boolean | undefined;
626
+ } | undefined;
627
+ output?: {
628
+ includeStderr?: boolean | undefined;
629
+ stripAnsi?: boolean | undefined;
630
+ trim?: boolean | undefined;
631
+ } | undefined;
632
+ }> | undefined;
633
+ }>;
634
+ export type CliProfileDefinition = z.infer<typeof cliProfileDefinitionSchema>;
635
+ export type SenderPolicy = z.infer<typeof senderPolicySchema>;
636
+ export type AgentConfig = z.infer<typeof agentConfigSchema>;
637
+ export type BridgeConfig = z.infer<typeof bridgeConfigSchema>;
638
+ export declare function loadConfig(path: string): BridgeConfig;
639
+ export {};