@easbot/types 0.3.28 → 0.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1415 -138
- package/dist/index.d.ts +1415 -138
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -305,7 +305,7 @@ interface AgentStatistics {
|
|
|
305
305
|
interface AgentExecutionResult extends ApiResult<any> {
|
|
306
306
|
agentId: string;
|
|
307
307
|
task: string;
|
|
308
|
-
status: '
|
|
308
|
+
status: 'in_progress' | 'completed' | 'failed' | 'timeout' | 'cancelled';
|
|
309
309
|
result?: any;
|
|
310
310
|
error?: string;
|
|
311
311
|
startTime: string;
|
|
@@ -395,21 +395,6 @@ interface SessionUpdate {
|
|
|
395
395
|
metadata?: Record<string, any>;
|
|
396
396
|
config?: Record<string, any>;
|
|
397
397
|
}
|
|
398
|
-
interface SessionInfo {
|
|
399
|
-
id: string;
|
|
400
|
-
title: string;
|
|
401
|
-
description?: string;
|
|
402
|
-
status: SessionStatus;
|
|
403
|
-
agentId?: string;
|
|
404
|
-
userId?: string;
|
|
405
|
-
createdAt: string;
|
|
406
|
-
updatedAt: string;
|
|
407
|
-
lastActivityAt: string;
|
|
408
|
-
closedAt?: string;
|
|
409
|
-
metadata: Record<string, any>;
|
|
410
|
-
config: Record<string, any>;
|
|
411
|
-
statistics?: SessionStatistics;
|
|
412
|
-
}
|
|
413
398
|
interface SessionStatistics {
|
|
414
399
|
messageCount: number;
|
|
415
400
|
totalTokens: number;
|
|
@@ -528,7 +513,7 @@ interface TaskStep {
|
|
|
528
513
|
id: string;
|
|
529
514
|
taskId: string;
|
|
530
515
|
name: string;
|
|
531
|
-
status: 'pending' | '
|
|
516
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
532
517
|
startTime?: string;
|
|
533
518
|
endTime?: string;
|
|
534
519
|
output?: any;
|
|
@@ -561,19 +546,19 @@ declare const Brand: {
|
|
|
561
546
|
type Brand = typeof Brand;
|
|
562
547
|
declare function brandEnv(suffix: string): string;
|
|
563
548
|
|
|
564
|
-
declare const
|
|
549
|
+
declare const PermissionActionSchema: z.ZodEnum<{
|
|
565
550
|
allow: "allow";
|
|
566
551
|
deny: "deny";
|
|
567
552
|
ask: "ask";
|
|
568
553
|
}>;
|
|
569
|
-
type
|
|
570
|
-
declare const
|
|
554
|
+
type PermissionActionType = z.infer<typeof PermissionActionSchema>;
|
|
555
|
+
declare const PermissionObjectSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
571
556
|
allow: "allow";
|
|
572
557
|
deny: "deny";
|
|
573
558
|
ask: "ask";
|
|
574
559
|
}>>;
|
|
575
|
-
type
|
|
576
|
-
declare const
|
|
560
|
+
type PermissionObjectType = z.infer<typeof PermissionObjectSchema>;
|
|
561
|
+
declare const PermissionRuleSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
577
562
|
allow: "allow";
|
|
578
563
|
deny: "deny";
|
|
579
564
|
ask: "ask";
|
|
@@ -582,8 +567,8 @@ declare const PermissionRule: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
582
567
|
deny: "deny";
|
|
583
568
|
ask: "ask";
|
|
584
569
|
}>>]>;
|
|
585
|
-
type
|
|
586
|
-
declare const
|
|
570
|
+
type PermissionRuleType = z.infer<typeof PermissionRuleSchema>;
|
|
571
|
+
declare const PermissionConfigSchema: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
587
572
|
__originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
588
573
|
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
589
574
|
allow: "allow";
|
|
@@ -677,11 +662,15 @@ declare const Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
|
677
662
|
deny: "deny";
|
|
678
663
|
ask: "ask";
|
|
679
664
|
}>>;
|
|
680
|
-
codesearch: z.ZodOptional<z.ZodEnum<{
|
|
665
|
+
codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
681
666
|
allow: "allow";
|
|
682
667
|
deny: "deny";
|
|
683
668
|
ask: "ask";
|
|
684
|
-
}
|
|
669
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
670
|
+
allow: "allow";
|
|
671
|
+
deny: "deny";
|
|
672
|
+
ask: "ask";
|
|
673
|
+
}>>]>>;
|
|
685
674
|
lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
686
675
|
allow: "allow";
|
|
687
676
|
deny: "deny";
|
|
@@ -840,7 +829,7 @@ declare const Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
|
840
829
|
question?: "allow" | "deny" | "ask" | undefined;
|
|
841
830
|
webfetch?: "allow" | "deny" | "ask" | undefined;
|
|
842
831
|
websearch?: "allow" | "deny" | "ask" | undefined;
|
|
843
|
-
codesearch?: "allow" | "deny" | "ask" | undefined;
|
|
832
|
+
codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
844
833
|
lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
845
834
|
doom_loop?: "allow" | "deny" | "ask" | undefined;
|
|
846
835
|
skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
@@ -857,7 +846,7 @@ declare const Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
|
857
846
|
batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
858
847
|
plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
859
848
|
}>>;
|
|
860
|
-
type
|
|
849
|
+
type PermissionConfigType = z.infer<typeof PermissionConfigSchema>;
|
|
861
850
|
declare const AgentPermissionSchema: z.ZodObject<{
|
|
862
851
|
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
863
852
|
allow: "allow";
|
|
@@ -1027,21 +1016,27 @@ declare const AgentPermissionSchema: z.ZodObject<{
|
|
|
1027
1016
|
deny: "deny";
|
|
1028
1017
|
ask: "ask";
|
|
1029
1018
|
}>>]>>>;
|
|
1030
|
-
type
|
|
1031
|
-
declare const
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1019
|
+
type AgentPermissionType = z.infer<typeof AgentPermissionSchema>;
|
|
1020
|
+
declare const PermissionRuntimeRuleSchema: z.ZodObject<{
|
|
1021
|
+
permission: z.ZodString;
|
|
1022
|
+
pattern: z.ZodString;
|
|
1023
|
+
action: z.ZodEnum<{
|
|
1024
|
+
allow: "allow";
|
|
1025
|
+
deny: "deny";
|
|
1026
|
+
ask: "ask";
|
|
1027
|
+
}>;
|
|
1028
|
+
}, z.core.$strip>;
|
|
1029
|
+
type PermissionRuntimeRuleType = z.infer<typeof PermissionRuntimeRuleSchema>;
|
|
1030
|
+
declare const PermissionRulesetSchema: z.ZodArray<z.ZodObject<{
|
|
1031
|
+
permission: z.ZodString;
|
|
1032
|
+
pattern: z.ZodString;
|
|
1033
|
+
action: z.ZodEnum<{
|
|
1034
|
+
allow: "allow";
|
|
1035
|
+
deny: "deny";
|
|
1036
|
+
ask: "ask";
|
|
1037
|
+
}>;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
type PermissionRulesetType = z.infer<typeof PermissionRulesetSchema>;
|
|
1045
1040
|
declare const Permission: {
|
|
1046
1041
|
readonly Action: z.ZodEnum<{
|
|
1047
1042
|
allow: "allow";
|
|
@@ -1325,11 +1320,15 @@ declare const Permission: {
|
|
|
1325
1320
|
deny: "deny";
|
|
1326
1321
|
ask: "ask";
|
|
1327
1322
|
}>>;
|
|
1328
|
-
codesearch: z.ZodOptional<z.ZodEnum<{
|
|
1323
|
+
codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1329
1324
|
allow: "allow";
|
|
1330
1325
|
deny: "deny";
|
|
1331
1326
|
ask: "ask";
|
|
1332
|
-
}
|
|
1327
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1328
|
+
allow: "allow";
|
|
1329
|
+
deny: "deny";
|
|
1330
|
+
ask: "ask";
|
|
1331
|
+
}>>]>>;
|
|
1333
1332
|
lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1334
1333
|
allow: "allow";
|
|
1335
1334
|
deny: "deny";
|
|
@@ -1488,7 +1487,7 @@ declare const Permission: {
|
|
|
1488
1487
|
question?: "allow" | "deny" | "ask" | undefined;
|
|
1489
1488
|
webfetch?: "allow" | "deny" | "ask" | undefined;
|
|
1490
1489
|
websearch?: "allow" | "deny" | "ask" | undefined;
|
|
1491
|
-
codesearch?: "allow" | "deny" | "ask" | undefined;
|
|
1490
|
+
codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1492
1491
|
lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1493
1492
|
doom_loop?: "allow" | "deny" | "ask" | undefined;
|
|
1494
1493
|
skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
@@ -1505,6 +1504,24 @@ declare const Permission: {
|
|
|
1505
1504
|
batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1506
1505
|
plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1507
1506
|
}>>;
|
|
1507
|
+
readonly RuntimeRule: z.ZodObject<{
|
|
1508
|
+
permission: z.ZodString;
|
|
1509
|
+
pattern: z.ZodString;
|
|
1510
|
+
action: z.ZodEnum<{
|
|
1511
|
+
allow: "allow";
|
|
1512
|
+
deny: "deny";
|
|
1513
|
+
ask: "ask";
|
|
1514
|
+
}>;
|
|
1515
|
+
}, z.core.$strip>;
|
|
1516
|
+
readonly Ruleset: z.ZodArray<z.ZodObject<{
|
|
1517
|
+
permission: z.ZodString;
|
|
1518
|
+
pattern: z.ZodString;
|
|
1519
|
+
action: z.ZodEnum<{
|
|
1520
|
+
allow: "allow";
|
|
1521
|
+
deny: "deny";
|
|
1522
|
+
ask: "ask";
|
|
1523
|
+
}>;
|
|
1524
|
+
}, z.core.$strip>>;
|
|
1508
1525
|
};
|
|
1509
1526
|
type Permission = typeof Permission;
|
|
1510
1527
|
|
|
@@ -1525,7 +1542,7 @@ type AgentPromptPart = {
|
|
|
1525
1542
|
mime?: string;
|
|
1526
1543
|
} | {
|
|
1527
1544
|
type: 'memory';
|
|
1528
|
-
status: 'pending' | '
|
|
1545
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
|
|
1529
1546
|
time: {
|
|
1530
1547
|
start: number;
|
|
1531
1548
|
end?: number;
|
|
@@ -1545,10 +1562,10 @@ interface AgentInput {
|
|
|
1545
1562
|
title: string;
|
|
1546
1563
|
agent?: string;
|
|
1547
1564
|
model?: AgentModel;
|
|
1548
|
-
tools?: Record<string, boolean>;
|
|
1549
1565
|
system?: string;
|
|
1550
1566
|
parts: AgentPromptPart[];
|
|
1551
1567
|
metadata?: Record<string, unknown>;
|
|
1568
|
+
temperature?: number;
|
|
1552
1569
|
}
|
|
1553
1570
|
interface AgentResult {
|
|
1554
1571
|
title: string;
|
|
@@ -1562,7 +1579,7 @@ interface AgentResultMetadata {
|
|
|
1562
1579
|
type AgentCallback = (result: AgentResult) => Promise<void>;
|
|
1563
1580
|
interface AgentToolCall {
|
|
1564
1581
|
name: string;
|
|
1565
|
-
status: 'completed' | '
|
|
1582
|
+
status: 'completed' | 'failed';
|
|
1566
1583
|
output?: unknown;
|
|
1567
1584
|
error?: string;
|
|
1568
1585
|
}
|
|
@@ -1585,77 +1602,6 @@ interface AgentMessage {
|
|
|
1585
1602
|
};
|
|
1586
1603
|
}
|
|
1587
1604
|
|
|
1588
|
-
type RunMode = 'ephemeral' | 'persistent';
|
|
1589
|
-
type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
|
|
1590
|
-
type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
|
|
1591
|
-
interface SubAgentInput extends AgentInput {
|
|
1592
|
-
agent: string;
|
|
1593
|
-
sessionId?: string;
|
|
1594
|
-
syncMessages?: boolean;
|
|
1595
|
-
config?: Partial<SubAgentConfig>;
|
|
1596
|
-
}
|
|
1597
|
-
interface SubAgentResult extends AgentResult {
|
|
1598
|
-
userMessage?: unknown;
|
|
1599
|
-
assistantMessage?: unknown;
|
|
1600
|
-
}
|
|
1601
|
-
interface ISubAgentRunner {
|
|
1602
|
-
run(input: SubAgentInput): Promise<SubAgentResult>;
|
|
1603
|
-
}
|
|
1604
|
-
interface SubAgentConfig {
|
|
1605
|
-
name: string;
|
|
1606
|
-
role: string;
|
|
1607
|
-
transport: TransportType;
|
|
1608
|
-
runMode: RunMode;
|
|
1609
|
-
uri?: string;
|
|
1610
|
-
command?: string;
|
|
1611
|
-
args?: string[];
|
|
1612
|
-
env?: Record<string, string | undefined>;
|
|
1613
|
-
timeout?: number;
|
|
1614
|
-
maxConcurrent?: number;
|
|
1615
|
-
cwd?: string;
|
|
1616
|
-
mcpServers?: string[];
|
|
1617
|
-
agentConfig?: {
|
|
1618
|
-
model?: AgentModel;
|
|
1619
|
-
system?: string;
|
|
1620
|
-
tools?: Record<string, boolean>;
|
|
1621
|
-
};
|
|
1622
|
-
}
|
|
1623
|
-
interface SubAgentInstance {
|
|
1624
|
-
id: string;
|
|
1625
|
-
config: SubAgentConfig;
|
|
1626
|
-
status: SubAgentStatus;
|
|
1627
|
-
sessionId?: string;
|
|
1628
|
-
process?: unknown;
|
|
1629
|
-
createdAt: number;
|
|
1630
|
-
lastActiveAt: number;
|
|
1631
|
-
error?: string;
|
|
1632
|
-
}
|
|
1633
|
-
interface SubAgentEvent {
|
|
1634
|
-
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
1635
|
-
instanceId: string;
|
|
1636
|
-
data?: unknown;
|
|
1637
|
-
error?: Error;
|
|
1638
|
-
timestamp: number;
|
|
1639
|
-
}
|
|
1640
|
-
interface SubAgentEvent {
|
|
1641
|
-
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
1642
|
-
instanceId: string;
|
|
1643
|
-
data?: unknown;
|
|
1644
|
-
error?: Error;
|
|
1645
|
-
timestamp: number;
|
|
1646
|
-
}
|
|
1647
|
-
interface SubAgentExecuteOptions {
|
|
1648
|
-
onMessage?: (message: AgentMessage) => Promise<void> | void;
|
|
1649
|
-
}
|
|
1650
|
-
interface SubAgentHandler {
|
|
1651
|
-
start(config: SubAgentConfig): Promise<void>;
|
|
1652
|
-
stop(): Promise<void>;
|
|
1653
|
-
isRunning(): boolean;
|
|
1654
|
-
execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
|
|
1655
|
-
interrupt(): Promise<void>;
|
|
1656
|
-
checkHealth?(): Promise<boolean>;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
1605
|
type LocalAgentInput = AgentInput;
|
|
1660
1606
|
type LocalAgentResult = AgentResult;
|
|
1661
1607
|
type GatewayMessagePromptPart = AgentPromptPart;
|
|
@@ -1809,15 +1755,6 @@ interface ILocalAgentRunner {
|
|
|
1809
1755
|
run(input: LocalAgentInput): Promise<LocalAgentResult>;
|
|
1810
1756
|
}
|
|
1811
1757
|
interface AgentAdapter {
|
|
1812
|
-
subAgentRunner: ISubAgentRunner;
|
|
1813
|
-
localAgentRunner: ILocalAgentRunner;
|
|
1814
|
-
hookRegistry: {
|
|
1815
|
-
triggerEvent<T = unknown>(event: string, input: T, context?: Record<string, unknown>): Promise<{
|
|
1816
|
-
success: boolean;
|
|
1817
|
-
output: T;
|
|
1818
|
-
modified: boolean;
|
|
1819
|
-
}>;
|
|
1820
|
-
};
|
|
1821
1758
|
global: IGlobal;
|
|
1822
1759
|
instance: IInstance;
|
|
1823
1760
|
sdk: EasbotClient;
|
|
@@ -1832,9 +1769,163 @@ interface IGatewayServer {
|
|
|
1832
1769
|
connections?: number;
|
|
1833
1770
|
};
|
|
1834
1771
|
}
|
|
1772
|
+
type AgentHealthStatus = 'healthy' | 'unhealthy' | 'offline';
|
|
1773
|
+
interface AgentRegistration {
|
|
1774
|
+
id: string;
|
|
1775
|
+
name: string;
|
|
1776
|
+
capabilities: string[];
|
|
1777
|
+
address: string;
|
|
1778
|
+
status: AgentHealthStatus;
|
|
1779
|
+
lastHeartbeat: number;
|
|
1780
|
+
registeredAt: number;
|
|
1781
|
+
connectionCount: number;
|
|
1782
|
+
metadata?: Record<string, unknown>;
|
|
1783
|
+
}
|
|
1784
|
+
type AgentRegistrationRequest = Omit<AgentRegistration, 'registeredAt' | 'lastHeartbeat' | 'connectionCount' | 'status'>;
|
|
1785
|
+
type AgentSelectionStrategy = 'random' | 'round-robin' | 'least-connections';
|
|
1786
|
+
interface AgentSelectionOptions {
|
|
1787
|
+
strategy: AgentSelectionStrategy;
|
|
1788
|
+
capabilities?: string[];
|
|
1789
|
+
healthyOnly?: boolean;
|
|
1790
|
+
}
|
|
1791
|
+
interface AgentHeartbeat {
|
|
1792
|
+
agentId: string;
|
|
1793
|
+
timestamp: number;
|
|
1794
|
+
status: AgentHealthStatus;
|
|
1795
|
+
metrics?: {
|
|
1796
|
+
cpuUsage?: number;
|
|
1797
|
+
memoryUsage?: number;
|
|
1798
|
+
connectionCount?: number;
|
|
1799
|
+
messageQueueLength?: number;
|
|
1800
|
+
};
|
|
1801
|
+
}
|
|
1802
|
+
interface AgentSelectionRecord {
|
|
1803
|
+
sessionId: string;
|
|
1804
|
+
messageId: string;
|
|
1805
|
+
agentId: string;
|
|
1806
|
+
selectedAt: number;
|
|
1807
|
+
strategy: AgentSelectionStrategy;
|
|
1808
|
+
}
|
|
1809
|
+
interface AgentRegistryStats {
|
|
1810
|
+
totalAgents: number;
|
|
1811
|
+
healthyAgents: number;
|
|
1812
|
+
unhealthyAgents: number;
|
|
1813
|
+
offlineAgents: number;
|
|
1814
|
+
totalConnections: number;
|
|
1815
|
+
}
|
|
1816
|
+
interface AgentSyncInfo {
|
|
1817
|
+
id: string;
|
|
1818
|
+
name: string;
|
|
1819
|
+
sourceGatewayId: string;
|
|
1820
|
+
address: string;
|
|
1821
|
+
capabilities: string[];
|
|
1822
|
+
status: AgentHealthStatus;
|
|
1823
|
+
updatedAt: number;
|
|
1824
|
+
metadata?: Record<string, unknown>;
|
|
1825
|
+
}
|
|
1826
|
+
type AgentSyncMode = 'pull' | 'push' | 'both';
|
|
1827
|
+
type AgentSyncPushEventType = 'register' | 'deregister' | 'heartbeat' | 'status_change';
|
|
1828
|
+
type AgentSyncConflictResolutionStrategy = 'latest' | 'local' | 'remote';
|
|
1829
|
+
interface AgentListRequestMessage {
|
|
1830
|
+
type: 'agent_list_request';
|
|
1831
|
+
requestId: string;
|
|
1832
|
+
sourceNodeId: string;
|
|
1833
|
+
timestamp: number;
|
|
1834
|
+
incremental?: boolean;
|
|
1835
|
+
lastSyncAt?: number;
|
|
1836
|
+
}
|
|
1837
|
+
interface AgentListResponseMessage {
|
|
1838
|
+
type: 'agent_list_response';
|
|
1839
|
+
requestId: string;
|
|
1840
|
+
sourceNodeId: string;
|
|
1841
|
+
timestamp: number;
|
|
1842
|
+
agents: AgentSyncInfo[];
|
|
1843
|
+
fullList: boolean;
|
|
1844
|
+
syncAt: number;
|
|
1845
|
+
}
|
|
1846
|
+
interface AgentRegisterMessage {
|
|
1847
|
+
type: 'agent_register';
|
|
1848
|
+
sourceNodeId: string;
|
|
1849
|
+
timestamp: number;
|
|
1850
|
+
agent: AgentSyncInfo;
|
|
1851
|
+
}
|
|
1852
|
+
interface AgentDeregisterMessage {
|
|
1853
|
+
type: 'agent_deregister';
|
|
1854
|
+
sourceNodeId: string;
|
|
1855
|
+
timestamp: number;
|
|
1856
|
+
agentId: string;
|
|
1857
|
+
}
|
|
1858
|
+
interface AgentHeartbeatSyncMessage {
|
|
1859
|
+
type: 'agent_heartbeat';
|
|
1860
|
+
sourceNodeId: string;
|
|
1861
|
+
timestamp: number;
|
|
1862
|
+
agentId: string;
|
|
1863
|
+
heartbeatAt: number;
|
|
1864
|
+
status: AgentHealthStatus;
|
|
1865
|
+
}
|
|
1866
|
+
interface AgentStatusChangeMessage {
|
|
1867
|
+
type: 'agent_status_change';
|
|
1868
|
+
sourceNodeId: string;
|
|
1869
|
+
timestamp: number;
|
|
1870
|
+
agentId: string;
|
|
1871
|
+
oldStatus: AgentHealthStatus;
|
|
1872
|
+
newStatus: AgentHealthStatus;
|
|
1873
|
+
changedAt: number;
|
|
1874
|
+
}
|
|
1875
|
+
type AgentSyncMessage = AgentListRequestMessage | AgentListResponseMessage | AgentRegisterMessage | AgentDeregisterMessage | AgentHeartbeatSyncMessage | AgentStatusChangeMessage;
|
|
1876
|
+
interface GatewayNodeInfo {
|
|
1877
|
+
id: string;
|
|
1878
|
+
name: string;
|
|
1879
|
+
address: string;
|
|
1880
|
+
port: number;
|
|
1881
|
+
lastSyncAt: number;
|
|
1882
|
+
status: 'online' | 'offline' | 'unknown';
|
|
1883
|
+
metadata?: Record<string, unknown>;
|
|
1884
|
+
}
|
|
1885
|
+
interface AgentSyncState {
|
|
1886
|
+
localNodeId: string;
|
|
1887
|
+
remoteNodes: Map<string, {
|
|
1888
|
+
info: GatewayNodeInfo;
|
|
1889
|
+
lastSyncAt: number;
|
|
1890
|
+
status: 'syncing' | 'synced' | 'error';
|
|
1891
|
+
error?: string;
|
|
1892
|
+
}>;
|
|
1893
|
+
localAgents: Map<string, AgentSyncInfo>;
|
|
1894
|
+
remoteAgents: Map<string, AgentSyncInfo>;
|
|
1895
|
+
}
|
|
1896
|
+
interface AgentSyncStats {
|
|
1897
|
+
localAgentCount: number;
|
|
1898
|
+
remoteAgentCount: number;
|
|
1899
|
+
totalAgentCount: number;
|
|
1900
|
+
onlineNodeCount: number;
|
|
1901
|
+
offlineNodeCount: number;
|
|
1902
|
+
lastSyncAt: number | null;
|
|
1903
|
+
}
|
|
1904
|
+
type GatewaySubscriberType = 'subagent' | 'tui' | 'desktop' | 'browser' | 'mobile' | 'api' | 'acp';
|
|
1835
1905
|
|
|
1836
1906
|
type gateway_AgentAdapter = AgentAdapter;
|
|
1907
|
+
type gateway_AgentDeregisterMessage = AgentDeregisterMessage;
|
|
1908
|
+
type gateway_AgentHealthStatus = AgentHealthStatus;
|
|
1909
|
+
type gateway_AgentHeartbeat = AgentHeartbeat;
|
|
1910
|
+
type gateway_AgentHeartbeatSyncMessage = AgentHeartbeatSyncMessage;
|
|
1837
1911
|
type gateway_AgentInfo = AgentInfo;
|
|
1912
|
+
type gateway_AgentListRequestMessage = AgentListRequestMessage;
|
|
1913
|
+
type gateway_AgentListResponseMessage = AgentListResponseMessage;
|
|
1914
|
+
type gateway_AgentRegisterMessage = AgentRegisterMessage;
|
|
1915
|
+
type gateway_AgentRegistration = AgentRegistration;
|
|
1916
|
+
type gateway_AgentRegistrationRequest = AgentRegistrationRequest;
|
|
1917
|
+
type gateway_AgentRegistryStats = AgentRegistryStats;
|
|
1918
|
+
type gateway_AgentSelectionOptions = AgentSelectionOptions;
|
|
1919
|
+
type gateway_AgentSelectionRecord = AgentSelectionRecord;
|
|
1920
|
+
type gateway_AgentSelectionStrategy = AgentSelectionStrategy;
|
|
1921
|
+
type gateway_AgentStatusChangeMessage = AgentStatusChangeMessage;
|
|
1922
|
+
type gateway_AgentSyncConflictResolutionStrategy = AgentSyncConflictResolutionStrategy;
|
|
1923
|
+
type gateway_AgentSyncInfo = AgentSyncInfo;
|
|
1924
|
+
type gateway_AgentSyncMessage = AgentSyncMessage;
|
|
1925
|
+
type gateway_AgentSyncMode = AgentSyncMode;
|
|
1926
|
+
type gateway_AgentSyncPushEventType = AgentSyncPushEventType;
|
|
1927
|
+
type gateway_AgentSyncState = AgentSyncState;
|
|
1928
|
+
type gateway_AgentSyncStats = AgentSyncStats;
|
|
1838
1929
|
type gateway_ChannelInfo = ChannelInfo;
|
|
1839
1930
|
type gateway_ChannelListResponse = ChannelListResponse;
|
|
1840
1931
|
type gateway_ChannelPluginInfo = ChannelPluginInfo;
|
|
@@ -1846,7 +1937,9 @@ type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
|
|
|
1846
1937
|
type gateway_GatewayMessageReadInput = GatewayMessageReadInput;
|
|
1847
1938
|
type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
|
|
1848
1939
|
type gateway_GatewayMessageSendInput = GatewayMessageSendInput;
|
|
1940
|
+
type gateway_GatewayNodeInfo = GatewayNodeInfo;
|
|
1849
1941
|
type gateway_GatewayServerConfig = GatewayServerConfig;
|
|
1942
|
+
type gateway_GatewaySubscriberType = GatewaySubscriberType;
|
|
1850
1943
|
type gateway_IGatewayServer = IGatewayServer;
|
|
1851
1944
|
type gateway_IGlobal = IGlobal;
|
|
1852
1945
|
type gateway_IHookRegistry = IHookRegistry;
|
|
@@ -1860,7 +1953,7 @@ type gateway_MessageStorage = MessageStorage;
|
|
|
1860
1953
|
type gateway_MessageType = MessageType;
|
|
1861
1954
|
type gateway_PlatformType = PlatformType;
|
|
1862
1955
|
declare namespace gateway {
|
|
1863
|
-
export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_ChannelListResponse as ChannelListResponse, gateway_ChannelPluginInfo as ChannelPluginInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessageDeliveredInput as GatewayMessageDeliveredInput, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReadInput as GatewayMessageReadInput, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayMessageSendInput as GatewayMessageSendInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_ILocalAgentRunner as ILocalAgentRunner, gateway_LocalAgentInput as LocalAgentInput, gateway_LocalAgentResult as LocalAgentResult, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
|
|
1956
|
+
export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentDeregisterMessage as AgentDeregisterMessage, gateway_AgentHealthStatus as AgentHealthStatus, gateway_AgentHeartbeat as AgentHeartbeat, gateway_AgentHeartbeatSyncMessage as AgentHeartbeatSyncMessage, gateway_AgentInfo as AgentInfo, gateway_AgentListRequestMessage as AgentListRequestMessage, gateway_AgentListResponseMessage as AgentListResponseMessage, gateway_AgentRegisterMessage as AgentRegisterMessage, gateway_AgentRegistration as AgentRegistration, gateway_AgentRegistrationRequest as AgentRegistrationRequest, gateway_AgentRegistryStats as AgentRegistryStats, gateway_AgentSelectionOptions as AgentSelectionOptions, gateway_AgentSelectionRecord as AgentSelectionRecord, gateway_AgentSelectionStrategy as AgentSelectionStrategy, gateway_AgentStatusChangeMessage as AgentStatusChangeMessage, gateway_AgentSyncConflictResolutionStrategy as AgentSyncConflictResolutionStrategy, gateway_AgentSyncInfo as AgentSyncInfo, gateway_AgentSyncMessage as AgentSyncMessage, gateway_AgentSyncMode as AgentSyncMode, gateway_AgentSyncPushEventType as AgentSyncPushEventType, gateway_AgentSyncState as AgentSyncState, gateway_AgentSyncStats as AgentSyncStats, gateway_ChannelInfo as ChannelInfo, gateway_ChannelListResponse as ChannelListResponse, gateway_ChannelPluginInfo as ChannelPluginInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessageDeliveredInput as GatewayMessageDeliveredInput, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReadInput as GatewayMessageReadInput, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayMessageSendInput as GatewayMessageSendInput, gateway_GatewayNodeInfo as GatewayNodeInfo, gateway_GatewayServerConfig as GatewayServerConfig, gateway_GatewaySubscriberType as GatewaySubscriberType, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_ILocalAgentRunner as ILocalAgentRunner, gateway_LocalAgentInput as LocalAgentInput, gateway_LocalAgentResult as LocalAgentResult, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
|
|
1864
1957
|
}
|
|
1865
1958
|
|
|
1866
1959
|
declare const ProjectIconSchema: z.ZodObject<{
|
|
@@ -1901,6 +1994,337 @@ declare const ProjectInfoSchema: z.ZodObject<{
|
|
|
1901
1994
|
}, z.core.$strip>;
|
|
1902
1995
|
type ProjectInfo = z.infer<typeof ProjectInfoSchema>;
|
|
1903
1996
|
|
|
1997
|
+
declare const SessionInfoSchema: z.ZodObject<{
|
|
1998
|
+
id: z.ZodString;
|
|
1999
|
+
slug: z.ZodString;
|
|
2000
|
+
providerId: z.ZodString;
|
|
2001
|
+
directory: z.ZodString;
|
|
2002
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2004
|
+
general: "general";
|
|
2005
|
+
coder: "coder";
|
|
2006
|
+
}>>;
|
|
2007
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2008
|
+
additions: z.ZodNumber;
|
|
2009
|
+
deletions: z.ZodNumber;
|
|
2010
|
+
files: z.ZodNumber;
|
|
2011
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2012
|
+
file: z.ZodString;
|
|
2013
|
+
before: z.ZodString;
|
|
2014
|
+
after: z.ZodString;
|
|
2015
|
+
additions: z.ZodNumber;
|
|
2016
|
+
deletions: z.ZodNumber;
|
|
2017
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2018
|
+
added: "added";
|
|
2019
|
+
modified: "modified";
|
|
2020
|
+
deleted: "deleted";
|
|
2021
|
+
renamed: "renamed";
|
|
2022
|
+
}>>;
|
|
2023
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
}, z.core.$strip>>>;
|
|
2025
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2026
|
+
"no-messages": "no-messages";
|
|
2027
|
+
"missing-from": "missing-from";
|
|
2028
|
+
"missing-to": "missing-to";
|
|
2029
|
+
}>>;
|
|
2030
|
+
}, z.core.$strip>>;
|
|
2031
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2032
|
+
url: z.ZodString;
|
|
2033
|
+
}, z.core.$strip>>;
|
|
2034
|
+
title: z.ZodString;
|
|
2035
|
+
version: z.ZodString;
|
|
2036
|
+
time: z.ZodObject<{
|
|
2037
|
+
created: z.ZodNumber;
|
|
2038
|
+
updated: z.ZodNumber;
|
|
2039
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2040
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2041
|
+
}, z.core.$strip>;
|
|
2042
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2043
|
+
permission: z.ZodString;
|
|
2044
|
+
pattern: z.ZodString;
|
|
2045
|
+
action: z.ZodEnum<{
|
|
2046
|
+
allow: "allow";
|
|
2047
|
+
deny: "deny";
|
|
2048
|
+
ask: "ask";
|
|
2049
|
+
}>;
|
|
2050
|
+
}, z.core.$strip>>>;
|
|
2051
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2052
|
+
messageId: z.ZodString;
|
|
2053
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2054
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2055
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2056
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2057
|
+
original: z.ZodString;
|
|
2058
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2059
|
+
}, z.core.$strip>>>;
|
|
2060
|
+
}, z.core.$strip>>;
|
|
2061
|
+
}, z.core.$strip>;
|
|
2062
|
+
type SessionInfo = z.infer<typeof SessionInfoSchema>;
|
|
2063
|
+
declare const GlobalSessionInfoSchema: z.ZodObject<{
|
|
2064
|
+
id: z.ZodString;
|
|
2065
|
+
slug: z.ZodString;
|
|
2066
|
+
providerId: z.ZodString;
|
|
2067
|
+
directory: z.ZodString;
|
|
2068
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2069
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2070
|
+
general: "general";
|
|
2071
|
+
coder: "coder";
|
|
2072
|
+
}>>;
|
|
2073
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2074
|
+
additions: z.ZodNumber;
|
|
2075
|
+
deletions: z.ZodNumber;
|
|
2076
|
+
files: z.ZodNumber;
|
|
2077
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2078
|
+
file: z.ZodString;
|
|
2079
|
+
before: z.ZodString;
|
|
2080
|
+
after: z.ZodString;
|
|
2081
|
+
additions: z.ZodNumber;
|
|
2082
|
+
deletions: z.ZodNumber;
|
|
2083
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2084
|
+
added: "added";
|
|
2085
|
+
modified: "modified";
|
|
2086
|
+
deleted: "deleted";
|
|
2087
|
+
renamed: "renamed";
|
|
2088
|
+
}>>;
|
|
2089
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
}, z.core.$strip>>>;
|
|
2091
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2092
|
+
"no-messages": "no-messages";
|
|
2093
|
+
"missing-from": "missing-from";
|
|
2094
|
+
"missing-to": "missing-to";
|
|
2095
|
+
}>>;
|
|
2096
|
+
}, z.core.$strip>>;
|
|
2097
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2098
|
+
url: z.ZodString;
|
|
2099
|
+
}, z.core.$strip>>;
|
|
2100
|
+
title: z.ZodString;
|
|
2101
|
+
version: z.ZodString;
|
|
2102
|
+
time: z.ZodObject<{
|
|
2103
|
+
created: z.ZodNumber;
|
|
2104
|
+
updated: z.ZodNumber;
|
|
2105
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2106
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2107
|
+
}, z.core.$strip>;
|
|
2108
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2109
|
+
permission: z.ZodString;
|
|
2110
|
+
pattern: z.ZodString;
|
|
2111
|
+
action: z.ZodEnum<{
|
|
2112
|
+
allow: "allow";
|
|
2113
|
+
deny: "deny";
|
|
2114
|
+
ask: "ask";
|
|
2115
|
+
}>;
|
|
2116
|
+
}, z.core.$strip>>>;
|
|
2117
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2118
|
+
messageId: z.ZodString;
|
|
2119
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2120
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2123
|
+
original: z.ZodString;
|
|
2124
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
}, z.core.$strip>>>;
|
|
2126
|
+
}, z.core.$strip>>;
|
|
2127
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
2128
|
+
id: z.ZodString;
|
|
2129
|
+
worktree: z.ZodString;
|
|
2130
|
+
vcs: z.ZodOptional<z.ZodLiteral<"git">>;
|
|
2131
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
2133
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
override: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
2138
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
}, z.core.$strip>>;
|
|
2140
|
+
time: z.ZodObject<{
|
|
2141
|
+
created: z.ZodNumber;
|
|
2142
|
+
updated: z.ZodNumber;
|
|
2143
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
2144
|
+
}, z.core.$strip>;
|
|
2145
|
+
sandboxes: z.ZodArray<z.ZodString>;
|
|
2146
|
+
}, z.core.$strip>>;
|
|
2147
|
+
}, z.core.$strip>;
|
|
2148
|
+
type GlobalSessionInfo = z.infer<typeof GlobalSessionInfoSchema>;
|
|
2149
|
+
declare const SessionShareInfoSchema: z.ZodObject<{
|
|
2150
|
+
secret: z.ZodString;
|
|
2151
|
+
url: z.ZodString;
|
|
2152
|
+
}, z.core.$strip>;
|
|
2153
|
+
type SessionShareInfo = z.infer<typeof SessionShareInfoSchema>;
|
|
2154
|
+
declare const Session: {
|
|
2155
|
+
readonly ContextModeValues: ("general" | "coder")[];
|
|
2156
|
+
readonly Info: z.ZodObject<{
|
|
2157
|
+
id: z.ZodString;
|
|
2158
|
+
slug: z.ZodString;
|
|
2159
|
+
providerId: z.ZodString;
|
|
2160
|
+
directory: z.ZodString;
|
|
2161
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2163
|
+
general: "general";
|
|
2164
|
+
coder: "coder";
|
|
2165
|
+
}>>;
|
|
2166
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2167
|
+
additions: z.ZodNumber;
|
|
2168
|
+
deletions: z.ZodNumber;
|
|
2169
|
+
files: z.ZodNumber;
|
|
2170
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2171
|
+
file: z.ZodString;
|
|
2172
|
+
before: z.ZodString;
|
|
2173
|
+
after: z.ZodString;
|
|
2174
|
+
additions: z.ZodNumber;
|
|
2175
|
+
deletions: z.ZodNumber;
|
|
2176
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2177
|
+
added: "added";
|
|
2178
|
+
modified: "modified";
|
|
2179
|
+
deleted: "deleted";
|
|
2180
|
+
renamed: "renamed";
|
|
2181
|
+
}>>;
|
|
2182
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2183
|
+
}, z.core.$strip>>>;
|
|
2184
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2185
|
+
"no-messages": "no-messages";
|
|
2186
|
+
"missing-from": "missing-from";
|
|
2187
|
+
"missing-to": "missing-to";
|
|
2188
|
+
}>>;
|
|
2189
|
+
}, z.core.$strip>>;
|
|
2190
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2191
|
+
url: z.ZodString;
|
|
2192
|
+
}, z.core.$strip>>;
|
|
2193
|
+
title: z.ZodString;
|
|
2194
|
+
version: z.ZodString;
|
|
2195
|
+
time: z.ZodObject<{
|
|
2196
|
+
created: z.ZodNumber;
|
|
2197
|
+
updated: z.ZodNumber;
|
|
2198
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2199
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2200
|
+
}, z.core.$strip>;
|
|
2201
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2202
|
+
permission: z.ZodString;
|
|
2203
|
+
pattern: z.ZodString;
|
|
2204
|
+
action: z.ZodEnum<{
|
|
2205
|
+
allow: "allow";
|
|
2206
|
+
deny: "deny";
|
|
2207
|
+
ask: "ask";
|
|
2208
|
+
}>;
|
|
2209
|
+
}, z.core.$strip>>>;
|
|
2210
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2211
|
+
messageId: z.ZodString;
|
|
2212
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2216
|
+
original: z.ZodString;
|
|
2217
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
}, z.core.$strip>>>;
|
|
2219
|
+
}, z.core.$strip>>;
|
|
2220
|
+
}, z.core.$strip>;
|
|
2221
|
+
readonly GlobalInfo: z.ZodObject<{
|
|
2222
|
+
id: z.ZodString;
|
|
2223
|
+
slug: z.ZodString;
|
|
2224
|
+
providerId: z.ZodString;
|
|
2225
|
+
directory: z.ZodString;
|
|
2226
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2228
|
+
general: "general";
|
|
2229
|
+
coder: "coder";
|
|
2230
|
+
}>>;
|
|
2231
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2232
|
+
additions: z.ZodNumber;
|
|
2233
|
+
deletions: z.ZodNumber;
|
|
2234
|
+
files: z.ZodNumber;
|
|
2235
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2236
|
+
file: z.ZodString;
|
|
2237
|
+
before: z.ZodString;
|
|
2238
|
+
after: z.ZodString;
|
|
2239
|
+
additions: z.ZodNumber;
|
|
2240
|
+
deletions: z.ZodNumber;
|
|
2241
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2242
|
+
added: "added";
|
|
2243
|
+
modified: "modified";
|
|
2244
|
+
deleted: "deleted";
|
|
2245
|
+
renamed: "renamed";
|
|
2246
|
+
}>>;
|
|
2247
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
}, z.core.$strip>>>;
|
|
2249
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2250
|
+
"no-messages": "no-messages";
|
|
2251
|
+
"missing-from": "missing-from";
|
|
2252
|
+
"missing-to": "missing-to";
|
|
2253
|
+
}>>;
|
|
2254
|
+
}, z.core.$strip>>;
|
|
2255
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2256
|
+
url: z.ZodString;
|
|
2257
|
+
}, z.core.$strip>>;
|
|
2258
|
+
title: z.ZodString;
|
|
2259
|
+
version: z.ZodString;
|
|
2260
|
+
time: z.ZodObject<{
|
|
2261
|
+
created: z.ZodNumber;
|
|
2262
|
+
updated: z.ZodNumber;
|
|
2263
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2264
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2265
|
+
}, z.core.$strip>;
|
|
2266
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2267
|
+
permission: z.ZodString;
|
|
2268
|
+
pattern: z.ZodString;
|
|
2269
|
+
action: z.ZodEnum<{
|
|
2270
|
+
allow: "allow";
|
|
2271
|
+
deny: "deny";
|
|
2272
|
+
ask: "ask";
|
|
2273
|
+
}>;
|
|
2274
|
+
}, z.core.$strip>>>;
|
|
2275
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2276
|
+
messageId: z.ZodString;
|
|
2277
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2278
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2281
|
+
original: z.ZodString;
|
|
2282
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
}, z.core.$strip>>>;
|
|
2284
|
+
}, z.core.$strip>>;
|
|
2285
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
2286
|
+
id: z.ZodString;
|
|
2287
|
+
worktree: z.ZodString;
|
|
2288
|
+
vcs: z.ZodOptional<z.ZodLiteral<"git">>;
|
|
2289
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
2291
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
override: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
}, z.core.$strip>>;
|
|
2295
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
2296
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
}, z.core.$strip>>;
|
|
2298
|
+
time: z.ZodObject<{
|
|
2299
|
+
created: z.ZodNumber;
|
|
2300
|
+
updated: z.ZodNumber;
|
|
2301
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
2302
|
+
}, z.core.$strip>;
|
|
2303
|
+
sandboxes: z.ZodArray<z.ZodString>;
|
|
2304
|
+
}, z.core.$strip>>;
|
|
2305
|
+
}, z.core.$strip>;
|
|
2306
|
+
readonly ShareInfo: z.ZodObject<{
|
|
2307
|
+
secret: z.ZodString;
|
|
2308
|
+
url: z.ZodString;
|
|
2309
|
+
}, z.core.$strip>;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
type ContextMode = 'general' | 'coder';
|
|
2313
|
+
declare const ContextModeEnum: {
|
|
2314
|
+
readonly General: "general";
|
|
2315
|
+
readonly Coder: "coder";
|
|
2316
|
+
};
|
|
2317
|
+
declare const ContextModeValues: ContextMode[];
|
|
2318
|
+
declare const DefaultContextMode: ContextMode;
|
|
2319
|
+
declare const ScopeEnum: {
|
|
2320
|
+
readonly General: "general";
|
|
2321
|
+
readonly Coder: "coder";
|
|
2322
|
+
readonly All: "all";
|
|
2323
|
+
};
|
|
2324
|
+
type Scope = (typeof ScopeEnum)[keyof typeof ScopeEnum];
|
|
2325
|
+
declare const ScopeValues: Scope[];
|
|
2326
|
+
declare const DefaultScope: Scope;
|
|
2327
|
+
|
|
1904
2328
|
type ShellFunction = (input: Uint8Array) => Uint8Array;
|
|
1905
2329
|
type ShellExpression = {
|
|
1906
2330
|
toString(): string;
|
|
@@ -1926,6 +2350,7 @@ interface EasbotShellPromise extends Promise<EasbotShellOutput> {
|
|
|
1926
2350
|
json(): Promise<unknown>;
|
|
1927
2351
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1928
2352
|
blob(): Promise<Blob>;
|
|
2353
|
+
stdinData(data: string | Buffer): this;
|
|
1929
2354
|
nothrow(): this;
|
|
1930
2355
|
throws(shouldThrow: boolean): this;
|
|
1931
2356
|
}
|
|
@@ -2074,11 +2499,6 @@ interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
|
|
|
2074
2499
|
graph?: GraphLlmConfig;
|
|
2075
2500
|
rerank?: RerankLlmConfig;
|
|
2076
2501
|
}
|
|
2077
|
-
declare const DEFAULT_NOTE_CHUNK_CONFIG: {
|
|
2078
|
-
readonly chunkSize: 1024;
|
|
2079
|
-
readonly chunkOverlap: 102;
|
|
2080
|
-
readonly minChunkLength: 100;
|
|
2081
|
-
};
|
|
2082
2502
|
interface NoteKnowledgeConfigWithModels extends NoteKnowledgeConfig {
|
|
2083
2503
|
embeddingLlm?: EmbeddingModel;
|
|
2084
2504
|
graphLlm?: LanguageModel;
|
|
@@ -2093,8 +2513,6 @@ interface CodebaseKnowledgeConfigWithModels extends CodebaseKnowledgeConfig {
|
|
|
2093
2513
|
embeddingLlm: EmbeddingModel;
|
|
2094
2514
|
graphLlm?: LanguageModel;
|
|
2095
2515
|
}
|
|
2096
|
-
declare function getDefaultDatabasePath(xdgData: string, dbName: string): string;
|
|
2097
|
-
declare function getWorkspaceDatabasePath(workspaceDir: string, dbName: string): string;
|
|
2098
2516
|
type KnowledgeSearchSource = 'vector' | 'fts' | 'graph' | 'hybrid' | 'reranked';
|
|
2099
2517
|
interface KnowledgeSearchOptions {
|
|
2100
2518
|
maxResults?: number;
|
|
@@ -2269,6 +2687,865 @@ declare const KNOWLEDGE_DOCTOR_PUBLIC_CHECKS: readonly ["database", "fts", "vect
|
|
|
2269
2687
|
type KnowledgeDoctorPublicCheck = (typeof KNOWLEDGE_DOCTOR_PUBLIC_CHECKS)[number];
|
|
2270
2688
|
declare const EMBEDDING_DIMS_CONSISTENCY_CHECK: "embeddingDims_consistency";
|
|
2271
2689
|
|
|
2690
|
+
type RunMode = 'ephemeral' | 'persistent';
|
|
2691
|
+
type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
|
|
2692
|
+
type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
|
|
2693
|
+
interface SubAgentInput extends AgentInput {
|
|
2694
|
+
agent: string;
|
|
2695
|
+
sessionId?: string;
|
|
2696
|
+
syncMessages?: boolean;
|
|
2697
|
+
config?: Partial<SubAgentConfig>;
|
|
2698
|
+
}
|
|
2699
|
+
interface SubAgentResult extends AgentResult {
|
|
2700
|
+
userMessage?: unknown;
|
|
2701
|
+
assistantMessage?: unknown;
|
|
2702
|
+
}
|
|
2703
|
+
interface ISubAgentRunner {
|
|
2704
|
+
run(input: SubAgentInput): Promise<SubAgentResult>;
|
|
2705
|
+
}
|
|
2706
|
+
interface SubAgentConfig {
|
|
2707
|
+
name: string;
|
|
2708
|
+
role: string;
|
|
2709
|
+
transport: TransportType;
|
|
2710
|
+
runMode: RunMode;
|
|
2711
|
+
uri?: string;
|
|
2712
|
+
command?: string;
|
|
2713
|
+
args?: string[];
|
|
2714
|
+
env?: Record<string, string | undefined>;
|
|
2715
|
+
timeout?: number;
|
|
2716
|
+
maxConcurrent?: number;
|
|
2717
|
+
cwd?: string;
|
|
2718
|
+
mcpServers?: string[];
|
|
2719
|
+
agentConfig?: {
|
|
2720
|
+
agent?: string;
|
|
2721
|
+
model?: string;
|
|
2722
|
+
system?: string;
|
|
2723
|
+
tools?: Record<string, boolean>;
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2726
|
+
interface SubAgentInstance {
|
|
2727
|
+
id: string;
|
|
2728
|
+
config: SubAgentConfig;
|
|
2729
|
+
status: SubAgentStatus;
|
|
2730
|
+
sessionId?: string;
|
|
2731
|
+
process?: unknown;
|
|
2732
|
+
createdAt: number;
|
|
2733
|
+
lastActiveAt: number;
|
|
2734
|
+
error?: string;
|
|
2735
|
+
}
|
|
2736
|
+
interface SubAgentEvent {
|
|
2737
|
+
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
2738
|
+
instanceId: string;
|
|
2739
|
+
data?: unknown;
|
|
2740
|
+
error?: Error;
|
|
2741
|
+
timestamp: number;
|
|
2742
|
+
}
|
|
2743
|
+
interface SubAgentEvent {
|
|
2744
|
+
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
2745
|
+
instanceId: string;
|
|
2746
|
+
data?: unknown;
|
|
2747
|
+
error?: Error;
|
|
2748
|
+
timestamp: number;
|
|
2749
|
+
}
|
|
2750
|
+
interface SubAgentExecuteOptions {
|
|
2751
|
+
onMessage?: (message: AgentMessage) => Promise<void> | void;
|
|
2752
|
+
}
|
|
2753
|
+
interface SubAgentHandler {
|
|
2754
|
+
start(config: SubAgentConfig): Promise<void>;
|
|
2755
|
+
stop(): Promise<void>;
|
|
2756
|
+
isRunning(): boolean;
|
|
2757
|
+
execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
|
|
2758
|
+
interrupt(): Promise<void>;
|
|
2759
|
+
checkHealth?(): Promise<boolean>;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
declare enum ChannelType {
|
|
2763
|
+
STDIO = "stdio",
|
|
2764
|
+
HTTP = "http",
|
|
2765
|
+
WS = "websocket"
|
|
2766
|
+
}
|
|
2767
|
+
declare const ACPStdioConnectionConfigSchema: z$1.ZodObject<{
|
|
2768
|
+
command: z$1.ZodString;
|
|
2769
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2770
|
+
}, z$1.core.$strip>;
|
|
2771
|
+
declare const ACPHttpConnectionConfigSchema: z$1.ZodObject<{
|
|
2772
|
+
baseUrl: z$1.ZodString;
|
|
2773
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2774
|
+
}, z$1.core.$strip>;
|
|
2775
|
+
declare const ACPWebSocketConnectionConfigSchema: z$1.ZodObject<{
|
|
2776
|
+
url: z$1.ZodString;
|
|
2777
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2778
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2779
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2780
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2781
|
+
}, z$1.core.$strip>;
|
|
2782
|
+
declare const ACPConnectionConfigSchema: z$1.ZodObject<{
|
|
2783
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2784
|
+
command: z$1.ZodString;
|
|
2785
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2786
|
+
}, z$1.core.$strip>>;
|
|
2787
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2788
|
+
baseUrl: z$1.ZodString;
|
|
2789
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2790
|
+
}, z$1.core.$strip>>;
|
|
2791
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2792
|
+
url: z$1.ZodString;
|
|
2793
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2794
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2795
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2796
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2797
|
+
}, z$1.core.$strip>>;
|
|
2798
|
+
}, z$1.core.$strip>;
|
|
2799
|
+
declare const ACPModelConfigSchema: z$1.ZodObject<{
|
|
2800
|
+
id: z$1.ZodString;
|
|
2801
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2802
|
+
}, z$1.core.$strip>;
|
|
2803
|
+
declare const ACPAgentRuntimeConfigSchema: z$1.ZodObject<{
|
|
2804
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2805
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2806
|
+
id: z$1.ZodString;
|
|
2807
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2808
|
+
}, z$1.core.$strip>>;
|
|
2809
|
+
}, z$1.core.$strip>;
|
|
2810
|
+
declare const ACPServerConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
2811
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
2812
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2813
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
2814
|
+
http: "http";
|
|
2815
|
+
websocket: "websocket";
|
|
2816
|
+
stdio: "stdio";
|
|
2817
|
+
}>>>;
|
|
2818
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2819
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
2820
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2821
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2822
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
2823
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2824
|
+
command: z$1.ZodString;
|
|
2825
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2826
|
+
}, z$1.core.$strip>>;
|
|
2827
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2828
|
+
baseUrl: z$1.ZodString;
|
|
2829
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2830
|
+
}, z$1.core.$strip>>;
|
|
2831
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2832
|
+
url: z$1.ZodString;
|
|
2833
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2834
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2835
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2836
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2837
|
+
}, z$1.core.$strip>>;
|
|
2838
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
2839
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2840
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2841
|
+
id: z$1.ZodString;
|
|
2842
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2843
|
+
}, z$1.core.$strip>>;
|
|
2844
|
+
}, z$1.core.$strip>>;
|
|
2845
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
2846
|
+
channel: ChannelType;
|
|
2847
|
+
directory: string;
|
|
2848
|
+
enabled: boolean;
|
|
2849
|
+
port: number;
|
|
2850
|
+
hostname: string;
|
|
2851
|
+
timeout: number;
|
|
2852
|
+
name?: string | undefined;
|
|
2853
|
+
agentId?: string | undefined;
|
|
2854
|
+
stdio?: {
|
|
2855
|
+
command: string;
|
|
2856
|
+
args: string[];
|
|
2857
|
+
} | undefined;
|
|
2858
|
+
http?: {
|
|
2859
|
+
baseUrl: string;
|
|
2860
|
+
timeout: number;
|
|
2861
|
+
} | undefined;
|
|
2862
|
+
ws?: {
|
|
2863
|
+
url: string;
|
|
2864
|
+
timeout: number;
|
|
2865
|
+
batchSize: number;
|
|
2866
|
+
batchInterval: number;
|
|
2867
|
+
heartbeatInterval: number;
|
|
2868
|
+
} | undefined;
|
|
2869
|
+
agent?: {
|
|
2870
|
+
agent?: string | undefined;
|
|
2871
|
+
model?: {
|
|
2872
|
+
id: string;
|
|
2873
|
+
options?: Record<string, unknown> | undefined;
|
|
2874
|
+
} | undefined;
|
|
2875
|
+
} | undefined;
|
|
2876
|
+
}, {
|
|
2877
|
+
directory: string;
|
|
2878
|
+
enabled: boolean;
|
|
2879
|
+
channel: "http" | "websocket" | "stdio";
|
|
2880
|
+
port: number;
|
|
2881
|
+
hostname: string;
|
|
2882
|
+
timeout: number;
|
|
2883
|
+
name?: string | undefined;
|
|
2884
|
+
agentId?: string | undefined;
|
|
2885
|
+
stdio?: {
|
|
2886
|
+
command: string;
|
|
2887
|
+
args: string[];
|
|
2888
|
+
} | undefined;
|
|
2889
|
+
http?: {
|
|
2890
|
+
baseUrl: string;
|
|
2891
|
+
timeout: number;
|
|
2892
|
+
} | undefined;
|
|
2893
|
+
ws?: {
|
|
2894
|
+
url: string;
|
|
2895
|
+
timeout: number;
|
|
2896
|
+
batchSize: number;
|
|
2897
|
+
batchInterval: number;
|
|
2898
|
+
heartbeatInterval: number;
|
|
2899
|
+
} | undefined;
|
|
2900
|
+
agent?: {
|
|
2901
|
+
agent?: string | undefined;
|
|
2902
|
+
model?: {
|
|
2903
|
+
id: string;
|
|
2904
|
+
options?: Record<string, unknown> | undefined;
|
|
2905
|
+
} | undefined;
|
|
2906
|
+
} | undefined;
|
|
2907
|
+
}>>;
|
|
2908
|
+
declare const ACPClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
2909
|
+
id: z$1.ZodString;
|
|
2910
|
+
type: z$1.ZodEnum<{
|
|
2911
|
+
custom: "custom";
|
|
2912
|
+
easbot: "easbot";
|
|
2913
|
+
}>;
|
|
2914
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2915
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
2916
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2917
|
+
http: "http";
|
|
2918
|
+
websocket: "websocket";
|
|
2919
|
+
stdio: "stdio";
|
|
2920
|
+
}>>;
|
|
2921
|
+
connection: z$1.ZodObject<{
|
|
2922
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2923
|
+
command: z$1.ZodString;
|
|
2924
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2925
|
+
}, z$1.core.$strip>>;
|
|
2926
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2927
|
+
baseUrl: z$1.ZodString;
|
|
2928
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2929
|
+
}, z$1.core.$strip>>;
|
|
2930
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2931
|
+
url: z$1.ZodString;
|
|
2932
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2933
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2934
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2935
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2936
|
+
}, z$1.core.$strip>>;
|
|
2937
|
+
}, z$1.core.$strip>;
|
|
2938
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2939
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2940
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
2941
|
+
channel: ChannelType;
|
|
2942
|
+
id: string;
|
|
2943
|
+
type: "custom" | "easbot";
|
|
2944
|
+
connection: {
|
|
2945
|
+
stdio?: {
|
|
2946
|
+
command: string;
|
|
2947
|
+
args: string[];
|
|
2948
|
+
} | undefined;
|
|
2949
|
+
http?: {
|
|
2950
|
+
baseUrl: string;
|
|
2951
|
+
timeout: number;
|
|
2952
|
+
} | undefined;
|
|
2953
|
+
ws?: {
|
|
2954
|
+
url: string;
|
|
2955
|
+
timeout: number;
|
|
2956
|
+
batchSize: number;
|
|
2957
|
+
batchInterval: number;
|
|
2958
|
+
heartbeatInterval: number;
|
|
2959
|
+
} | undefined;
|
|
2960
|
+
};
|
|
2961
|
+
autoConnect: boolean;
|
|
2962
|
+
priority: number;
|
|
2963
|
+
name?: string | undefined;
|
|
2964
|
+
agentId?: string | undefined;
|
|
2965
|
+
}, {
|
|
2966
|
+
id: string;
|
|
2967
|
+
type: "custom" | "easbot";
|
|
2968
|
+
connection: {
|
|
2969
|
+
stdio?: {
|
|
2970
|
+
command: string;
|
|
2971
|
+
args: string[];
|
|
2972
|
+
} | undefined;
|
|
2973
|
+
http?: {
|
|
2974
|
+
baseUrl: string;
|
|
2975
|
+
timeout: number;
|
|
2976
|
+
} | undefined;
|
|
2977
|
+
ws?: {
|
|
2978
|
+
url: string;
|
|
2979
|
+
timeout: number;
|
|
2980
|
+
batchSize: number;
|
|
2981
|
+
batchInterval: number;
|
|
2982
|
+
heartbeatInterval: number;
|
|
2983
|
+
} | undefined;
|
|
2984
|
+
};
|
|
2985
|
+
autoConnect: boolean;
|
|
2986
|
+
priority: number;
|
|
2987
|
+
name?: string | undefined;
|
|
2988
|
+
agentId?: string | undefined;
|
|
2989
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
2990
|
+
}>>;
|
|
2991
|
+
declare const ACPClientsConfigSchema: z$1.ZodObject<{
|
|
2992
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
2993
|
+
id: z$1.ZodString;
|
|
2994
|
+
type: z$1.ZodEnum<{
|
|
2995
|
+
custom: "custom";
|
|
2996
|
+
easbot: "easbot";
|
|
2997
|
+
}>;
|
|
2998
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2999
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3000
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3001
|
+
http: "http";
|
|
3002
|
+
websocket: "websocket";
|
|
3003
|
+
stdio: "stdio";
|
|
3004
|
+
}>>;
|
|
3005
|
+
connection: z$1.ZodObject<{
|
|
3006
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3007
|
+
command: z$1.ZodString;
|
|
3008
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3009
|
+
}, z$1.core.$strip>>;
|
|
3010
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3011
|
+
baseUrl: z$1.ZodString;
|
|
3012
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3013
|
+
}, z$1.core.$strip>>;
|
|
3014
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3015
|
+
url: z$1.ZodString;
|
|
3016
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3017
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3018
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3019
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3020
|
+
}, z$1.core.$strip>>;
|
|
3021
|
+
}, z$1.core.$strip>;
|
|
3022
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3023
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3024
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3025
|
+
channel: ChannelType;
|
|
3026
|
+
id: string;
|
|
3027
|
+
type: "custom" | "easbot";
|
|
3028
|
+
connection: {
|
|
3029
|
+
stdio?: {
|
|
3030
|
+
command: string;
|
|
3031
|
+
args: string[];
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
http?: {
|
|
3034
|
+
baseUrl: string;
|
|
3035
|
+
timeout: number;
|
|
3036
|
+
} | undefined;
|
|
3037
|
+
ws?: {
|
|
3038
|
+
url: string;
|
|
3039
|
+
timeout: number;
|
|
3040
|
+
batchSize: number;
|
|
3041
|
+
batchInterval: number;
|
|
3042
|
+
heartbeatInterval: number;
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
};
|
|
3045
|
+
autoConnect: boolean;
|
|
3046
|
+
priority: number;
|
|
3047
|
+
name?: string | undefined;
|
|
3048
|
+
agentId?: string | undefined;
|
|
3049
|
+
}, {
|
|
3050
|
+
id: string;
|
|
3051
|
+
type: "custom" | "easbot";
|
|
3052
|
+
connection: {
|
|
3053
|
+
stdio?: {
|
|
3054
|
+
command: string;
|
|
3055
|
+
args: string[];
|
|
3056
|
+
} | undefined;
|
|
3057
|
+
http?: {
|
|
3058
|
+
baseUrl: string;
|
|
3059
|
+
timeout: number;
|
|
3060
|
+
} | undefined;
|
|
3061
|
+
ws?: {
|
|
3062
|
+
url: string;
|
|
3063
|
+
timeout: number;
|
|
3064
|
+
batchSize: number;
|
|
3065
|
+
batchInterval: number;
|
|
3066
|
+
heartbeatInterval: number;
|
|
3067
|
+
} | undefined;
|
|
3068
|
+
};
|
|
3069
|
+
autoConnect: boolean;
|
|
3070
|
+
priority: number;
|
|
3071
|
+
name?: string | undefined;
|
|
3072
|
+
agentId?: string | undefined;
|
|
3073
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3074
|
+
}>>>;
|
|
3075
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3076
|
+
}, z$1.core.$strip>;
|
|
3077
|
+
declare const ACPInfoACPServerConfigSchema: z$1.ZodObject<{
|
|
3078
|
+
server: z$1.ZodPipe<z$1.ZodObject<{
|
|
3079
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
3080
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3081
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
3082
|
+
http: "http";
|
|
3083
|
+
websocket: "websocket";
|
|
3084
|
+
stdio: "stdio";
|
|
3085
|
+
}>>>;
|
|
3086
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3087
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
3088
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3089
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3090
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3091
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3092
|
+
command: z$1.ZodString;
|
|
3093
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3094
|
+
}, z$1.core.$strip>>;
|
|
3095
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3096
|
+
baseUrl: z$1.ZodString;
|
|
3097
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3098
|
+
}, z$1.core.$strip>>;
|
|
3099
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3100
|
+
url: z$1.ZodString;
|
|
3101
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3102
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3103
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3104
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3105
|
+
}, z$1.core.$strip>>;
|
|
3106
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
3107
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
3108
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
3109
|
+
id: z$1.ZodString;
|
|
3110
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3111
|
+
}, z$1.core.$strip>>;
|
|
3112
|
+
}, z$1.core.$strip>>;
|
|
3113
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3114
|
+
channel: ChannelType;
|
|
3115
|
+
directory: string;
|
|
3116
|
+
enabled: boolean;
|
|
3117
|
+
port: number;
|
|
3118
|
+
hostname: string;
|
|
3119
|
+
timeout: number;
|
|
3120
|
+
name?: string | undefined;
|
|
3121
|
+
agentId?: string | undefined;
|
|
3122
|
+
stdio?: {
|
|
3123
|
+
command: string;
|
|
3124
|
+
args: string[];
|
|
3125
|
+
} | undefined;
|
|
3126
|
+
http?: {
|
|
3127
|
+
baseUrl: string;
|
|
3128
|
+
timeout: number;
|
|
3129
|
+
} | undefined;
|
|
3130
|
+
ws?: {
|
|
3131
|
+
url: string;
|
|
3132
|
+
timeout: number;
|
|
3133
|
+
batchSize: number;
|
|
3134
|
+
batchInterval: number;
|
|
3135
|
+
heartbeatInterval: number;
|
|
3136
|
+
} | undefined;
|
|
3137
|
+
agent?: {
|
|
3138
|
+
agent?: string | undefined;
|
|
3139
|
+
model?: {
|
|
3140
|
+
id: string;
|
|
3141
|
+
options?: Record<string, unknown> | undefined;
|
|
3142
|
+
} | undefined;
|
|
3143
|
+
} | undefined;
|
|
3144
|
+
}, {
|
|
3145
|
+
directory: string;
|
|
3146
|
+
enabled: boolean;
|
|
3147
|
+
channel: "http" | "websocket" | "stdio";
|
|
3148
|
+
port: number;
|
|
3149
|
+
hostname: string;
|
|
3150
|
+
timeout: number;
|
|
3151
|
+
name?: string | undefined;
|
|
3152
|
+
agentId?: string | undefined;
|
|
3153
|
+
stdio?: {
|
|
3154
|
+
command: string;
|
|
3155
|
+
args: string[];
|
|
3156
|
+
} | undefined;
|
|
3157
|
+
http?: {
|
|
3158
|
+
baseUrl: string;
|
|
3159
|
+
timeout: number;
|
|
3160
|
+
} | undefined;
|
|
3161
|
+
ws?: {
|
|
3162
|
+
url: string;
|
|
3163
|
+
timeout: number;
|
|
3164
|
+
batchSize: number;
|
|
3165
|
+
batchInterval: number;
|
|
3166
|
+
heartbeatInterval: number;
|
|
3167
|
+
} | undefined;
|
|
3168
|
+
agent?: {
|
|
3169
|
+
agent?: string | undefined;
|
|
3170
|
+
model?: {
|
|
3171
|
+
id: string;
|
|
3172
|
+
options?: Record<string, unknown> | undefined;
|
|
3173
|
+
} | undefined;
|
|
3174
|
+
} | undefined;
|
|
3175
|
+
}>>;
|
|
3176
|
+
}, z$1.core.$strip>;
|
|
3177
|
+
declare const ACPInfoACPClientsConfigSchema: z$1.ZodObject<{
|
|
3178
|
+
clients: z$1.ZodObject<{
|
|
3179
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
3180
|
+
id: z$1.ZodString;
|
|
3181
|
+
type: z$1.ZodEnum<{
|
|
3182
|
+
custom: "custom";
|
|
3183
|
+
easbot: "easbot";
|
|
3184
|
+
}>;
|
|
3185
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3186
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3187
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3188
|
+
http: "http";
|
|
3189
|
+
websocket: "websocket";
|
|
3190
|
+
stdio: "stdio";
|
|
3191
|
+
}>>;
|
|
3192
|
+
connection: z$1.ZodObject<{
|
|
3193
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3194
|
+
command: z$1.ZodString;
|
|
3195
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3196
|
+
}, z$1.core.$strip>>;
|
|
3197
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3198
|
+
baseUrl: z$1.ZodString;
|
|
3199
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3200
|
+
}, z$1.core.$strip>>;
|
|
3201
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3202
|
+
url: z$1.ZodString;
|
|
3203
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3204
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3205
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3206
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3207
|
+
}, z$1.core.$strip>>;
|
|
3208
|
+
}, z$1.core.$strip>;
|
|
3209
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3210
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3211
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3212
|
+
channel: ChannelType;
|
|
3213
|
+
id: string;
|
|
3214
|
+
type: "custom" | "easbot";
|
|
3215
|
+
connection: {
|
|
3216
|
+
stdio?: {
|
|
3217
|
+
command: string;
|
|
3218
|
+
args: string[];
|
|
3219
|
+
} | undefined;
|
|
3220
|
+
http?: {
|
|
3221
|
+
baseUrl: string;
|
|
3222
|
+
timeout: number;
|
|
3223
|
+
} | undefined;
|
|
3224
|
+
ws?: {
|
|
3225
|
+
url: string;
|
|
3226
|
+
timeout: number;
|
|
3227
|
+
batchSize: number;
|
|
3228
|
+
batchInterval: number;
|
|
3229
|
+
heartbeatInterval: number;
|
|
3230
|
+
} | undefined;
|
|
3231
|
+
};
|
|
3232
|
+
autoConnect: boolean;
|
|
3233
|
+
priority: number;
|
|
3234
|
+
name?: string | undefined;
|
|
3235
|
+
agentId?: string | undefined;
|
|
3236
|
+
}, {
|
|
3237
|
+
id: string;
|
|
3238
|
+
type: "custom" | "easbot";
|
|
3239
|
+
connection: {
|
|
3240
|
+
stdio?: {
|
|
3241
|
+
command: string;
|
|
3242
|
+
args: string[];
|
|
3243
|
+
} | undefined;
|
|
3244
|
+
http?: {
|
|
3245
|
+
baseUrl: string;
|
|
3246
|
+
timeout: number;
|
|
3247
|
+
} | undefined;
|
|
3248
|
+
ws?: {
|
|
3249
|
+
url: string;
|
|
3250
|
+
timeout: number;
|
|
3251
|
+
batchSize: number;
|
|
3252
|
+
batchInterval: number;
|
|
3253
|
+
heartbeatInterval: number;
|
|
3254
|
+
} | undefined;
|
|
3255
|
+
};
|
|
3256
|
+
autoConnect: boolean;
|
|
3257
|
+
priority: number;
|
|
3258
|
+
name?: string | undefined;
|
|
3259
|
+
agentId?: string | undefined;
|
|
3260
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3261
|
+
}>>>;
|
|
3262
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3263
|
+
}, z$1.core.$strip>;
|
|
3264
|
+
}, z$1.core.$strip>;
|
|
3265
|
+
declare const ACPClientRegisterConfigSchema: z$1.ZodOptional<z$1.ZodObject<{
|
|
3266
|
+
autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3267
|
+
gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
3268
|
+
}, z$1.core.$strip>>;
|
|
3269
|
+
type ACPInfoACPConfigInput = {
|
|
3270
|
+
server: ACPServerConfig;
|
|
3271
|
+
clients?: z$1.infer<typeof ACPClientsConfigSchema>;
|
|
3272
|
+
client?: z$1.infer<typeof ACPClientRegisterConfigSchema>;
|
|
3273
|
+
};
|
|
3274
|
+
declare const ACPInfoACPConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
3275
|
+
server: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
|
|
3276
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
3277
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3278
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
3279
|
+
http: "http";
|
|
3280
|
+
websocket: "websocket";
|
|
3281
|
+
stdio: "stdio";
|
|
3282
|
+
}>>>;
|
|
3283
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3284
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
3285
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3286
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3287
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3288
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3289
|
+
command: z$1.ZodString;
|
|
3290
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3291
|
+
}, z$1.core.$strip>>;
|
|
3292
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3293
|
+
baseUrl: z$1.ZodString;
|
|
3294
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3295
|
+
}, z$1.core.$strip>>;
|
|
3296
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3297
|
+
url: z$1.ZodString;
|
|
3298
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3299
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3300
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3301
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3302
|
+
}, z$1.core.$strip>>;
|
|
3303
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
3304
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
3305
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
3306
|
+
id: z$1.ZodString;
|
|
3307
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3308
|
+
}, z$1.core.$strip>>;
|
|
3309
|
+
}, z$1.core.$strip>>;
|
|
3310
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3311
|
+
channel: ChannelType;
|
|
3312
|
+
directory: string;
|
|
3313
|
+
enabled: boolean;
|
|
3314
|
+
port: number;
|
|
3315
|
+
hostname: string;
|
|
3316
|
+
timeout: number;
|
|
3317
|
+
name?: string | undefined;
|
|
3318
|
+
agentId?: string | undefined;
|
|
3319
|
+
stdio?: {
|
|
3320
|
+
command: string;
|
|
3321
|
+
args: string[];
|
|
3322
|
+
} | undefined;
|
|
3323
|
+
http?: {
|
|
3324
|
+
baseUrl: string;
|
|
3325
|
+
timeout: number;
|
|
3326
|
+
} | undefined;
|
|
3327
|
+
ws?: {
|
|
3328
|
+
url: string;
|
|
3329
|
+
timeout: number;
|
|
3330
|
+
batchSize: number;
|
|
3331
|
+
batchInterval: number;
|
|
3332
|
+
heartbeatInterval: number;
|
|
3333
|
+
} | undefined;
|
|
3334
|
+
agent?: {
|
|
3335
|
+
agent?: string | undefined;
|
|
3336
|
+
model?: {
|
|
3337
|
+
id: string;
|
|
3338
|
+
options?: Record<string, unknown> | undefined;
|
|
3339
|
+
} | undefined;
|
|
3340
|
+
} | undefined;
|
|
3341
|
+
}, {
|
|
3342
|
+
directory: string;
|
|
3343
|
+
enabled: boolean;
|
|
3344
|
+
channel: "http" | "websocket" | "stdio";
|
|
3345
|
+
port: number;
|
|
3346
|
+
hostname: string;
|
|
3347
|
+
timeout: number;
|
|
3348
|
+
name?: string | undefined;
|
|
3349
|
+
agentId?: string | undefined;
|
|
3350
|
+
stdio?: {
|
|
3351
|
+
command: string;
|
|
3352
|
+
args: string[];
|
|
3353
|
+
} | undefined;
|
|
3354
|
+
http?: {
|
|
3355
|
+
baseUrl: string;
|
|
3356
|
+
timeout: number;
|
|
3357
|
+
} | undefined;
|
|
3358
|
+
ws?: {
|
|
3359
|
+
url: string;
|
|
3360
|
+
timeout: number;
|
|
3361
|
+
batchSize: number;
|
|
3362
|
+
batchInterval: number;
|
|
3363
|
+
heartbeatInterval: number;
|
|
3364
|
+
} | undefined;
|
|
3365
|
+
agent?: {
|
|
3366
|
+
agent?: string | undefined;
|
|
3367
|
+
model?: {
|
|
3368
|
+
id: string;
|
|
3369
|
+
options?: Record<string, unknown> | undefined;
|
|
3370
|
+
} | undefined;
|
|
3371
|
+
} | undefined;
|
|
3372
|
+
}>>>;
|
|
3373
|
+
clients: z$1.ZodOptional<z$1.ZodObject<{
|
|
3374
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
3375
|
+
id: z$1.ZodString;
|
|
3376
|
+
type: z$1.ZodEnum<{
|
|
3377
|
+
custom: "custom";
|
|
3378
|
+
easbot: "easbot";
|
|
3379
|
+
}>;
|
|
3380
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3381
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3382
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3383
|
+
http: "http";
|
|
3384
|
+
websocket: "websocket";
|
|
3385
|
+
stdio: "stdio";
|
|
3386
|
+
}>>;
|
|
3387
|
+
connection: z$1.ZodObject<{
|
|
3388
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3389
|
+
command: z$1.ZodString;
|
|
3390
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3391
|
+
}, z$1.core.$strip>>;
|
|
3392
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3393
|
+
baseUrl: z$1.ZodString;
|
|
3394
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3395
|
+
}, z$1.core.$strip>>;
|
|
3396
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3397
|
+
url: z$1.ZodString;
|
|
3398
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3399
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3400
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3401
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3402
|
+
}, z$1.core.$strip>>;
|
|
3403
|
+
}, z$1.core.$strip>;
|
|
3404
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3405
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3406
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3407
|
+
channel: ChannelType;
|
|
3408
|
+
id: string;
|
|
3409
|
+
type: "custom" | "easbot";
|
|
3410
|
+
connection: {
|
|
3411
|
+
stdio?: {
|
|
3412
|
+
command: string;
|
|
3413
|
+
args: string[];
|
|
3414
|
+
} | undefined;
|
|
3415
|
+
http?: {
|
|
3416
|
+
baseUrl: string;
|
|
3417
|
+
timeout: number;
|
|
3418
|
+
} | undefined;
|
|
3419
|
+
ws?: {
|
|
3420
|
+
url: string;
|
|
3421
|
+
timeout: number;
|
|
3422
|
+
batchSize: number;
|
|
3423
|
+
batchInterval: number;
|
|
3424
|
+
heartbeatInterval: number;
|
|
3425
|
+
} | undefined;
|
|
3426
|
+
};
|
|
3427
|
+
autoConnect: boolean;
|
|
3428
|
+
priority: number;
|
|
3429
|
+
name?: string | undefined;
|
|
3430
|
+
agentId?: string | undefined;
|
|
3431
|
+
}, {
|
|
3432
|
+
id: string;
|
|
3433
|
+
type: "custom" | "easbot";
|
|
3434
|
+
connection: {
|
|
3435
|
+
stdio?: {
|
|
3436
|
+
command: string;
|
|
3437
|
+
args: string[];
|
|
3438
|
+
} | undefined;
|
|
3439
|
+
http?: {
|
|
3440
|
+
baseUrl: string;
|
|
3441
|
+
timeout: number;
|
|
3442
|
+
} | undefined;
|
|
3443
|
+
ws?: {
|
|
3444
|
+
url: string;
|
|
3445
|
+
timeout: number;
|
|
3446
|
+
batchSize: number;
|
|
3447
|
+
batchInterval: number;
|
|
3448
|
+
heartbeatInterval: number;
|
|
3449
|
+
} | undefined;
|
|
3450
|
+
};
|
|
3451
|
+
autoConnect: boolean;
|
|
3452
|
+
priority: number;
|
|
3453
|
+
name?: string | undefined;
|
|
3454
|
+
agentId?: string | undefined;
|
|
3455
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3456
|
+
}>>>;
|
|
3457
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3458
|
+
}, z$1.core.$strip>>;
|
|
3459
|
+
client: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
3460
|
+
autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3461
|
+
gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
3462
|
+
}, z$1.core.$strip>>>;
|
|
3463
|
+
}, z$1.core.$strip>, z$1.ZodTransform<ACPInfoACPConfigInput, {
|
|
3464
|
+
server?: {
|
|
3465
|
+
channel: ChannelType;
|
|
3466
|
+
directory: string;
|
|
3467
|
+
enabled: boolean;
|
|
3468
|
+
port: number;
|
|
3469
|
+
hostname: string;
|
|
3470
|
+
timeout: number;
|
|
3471
|
+
name?: string | undefined;
|
|
3472
|
+
agentId?: string | undefined;
|
|
3473
|
+
stdio?: {
|
|
3474
|
+
command: string;
|
|
3475
|
+
args: string[];
|
|
3476
|
+
} | undefined;
|
|
3477
|
+
http?: {
|
|
3478
|
+
baseUrl: string;
|
|
3479
|
+
timeout: number;
|
|
3480
|
+
} | undefined;
|
|
3481
|
+
ws?: {
|
|
3482
|
+
url: string;
|
|
3483
|
+
timeout: number;
|
|
3484
|
+
batchSize: number;
|
|
3485
|
+
batchInterval: number;
|
|
3486
|
+
heartbeatInterval: number;
|
|
3487
|
+
} | undefined;
|
|
3488
|
+
agent?: {
|
|
3489
|
+
agent?: string | undefined;
|
|
3490
|
+
model?: {
|
|
3491
|
+
id: string;
|
|
3492
|
+
options?: Record<string, unknown> | undefined;
|
|
3493
|
+
} | undefined;
|
|
3494
|
+
} | undefined;
|
|
3495
|
+
} | undefined;
|
|
3496
|
+
clients?: {
|
|
3497
|
+
clients: {
|
|
3498
|
+
channel: ChannelType;
|
|
3499
|
+
id: string;
|
|
3500
|
+
type: "custom" | "easbot";
|
|
3501
|
+
connection: {
|
|
3502
|
+
stdio?: {
|
|
3503
|
+
command: string;
|
|
3504
|
+
args: string[];
|
|
3505
|
+
} | undefined;
|
|
3506
|
+
http?: {
|
|
3507
|
+
baseUrl: string;
|
|
3508
|
+
timeout: number;
|
|
3509
|
+
} | undefined;
|
|
3510
|
+
ws?: {
|
|
3511
|
+
url: string;
|
|
3512
|
+
timeout: number;
|
|
3513
|
+
batchSize: number;
|
|
3514
|
+
batchInterval: number;
|
|
3515
|
+
heartbeatInterval: number;
|
|
3516
|
+
} | undefined;
|
|
3517
|
+
};
|
|
3518
|
+
autoConnect: boolean;
|
|
3519
|
+
priority: number;
|
|
3520
|
+
name?: string | undefined;
|
|
3521
|
+
agentId?: string | undefined;
|
|
3522
|
+
}[];
|
|
3523
|
+
defaultClientId?: string | undefined;
|
|
3524
|
+
} | undefined;
|
|
3525
|
+
client?: {
|
|
3526
|
+
autoRegister: boolean;
|
|
3527
|
+
gatewayUrl?: string | undefined;
|
|
3528
|
+
} | undefined;
|
|
3529
|
+
}>>;
|
|
3530
|
+
type ACPChannelType = ChannelType;
|
|
3531
|
+
type ACPStdioConnectionConfig = z$1.infer<typeof ACPStdioConnectionConfigSchema>;
|
|
3532
|
+
type ACPHttpConnectionConfig = z$1.infer<typeof ACPHttpConnectionConfigSchema>;
|
|
3533
|
+
type ACPWebSocketConnectionConfig = z$1.infer<typeof ACPWebSocketConnectionConfigSchema>;
|
|
3534
|
+
type ACPConnectionConfig = z$1.infer<typeof ACPConnectionConfigSchema>;
|
|
3535
|
+
type ACPModelConfig = z$1.infer<typeof ACPModelConfigSchema>;
|
|
3536
|
+
type ACPAgentRuntimeConfig = z$1.infer<typeof ACPAgentRuntimeConfigSchema>;
|
|
3537
|
+
type ACPServerConfig = z$1.infer<typeof ACPServerConfigSchema>;
|
|
3538
|
+
type ACPClientConfig = z$1.infer<typeof ACPClientConfigSchema>;
|
|
3539
|
+
type ACPClientsConfig = z$1.infer<typeof ACPClientsConfigSchema>;
|
|
3540
|
+
type ACPInfoACPServerConfig = z$1.infer<typeof ACPInfoACPServerConfigSchema>;
|
|
3541
|
+
type ACPInfoACPClientsConfig = z$1.infer<typeof ACPInfoACPClientsConfigSchema>;
|
|
3542
|
+
type ACPClientRegisterConfig = z$1.infer<typeof ACPClientRegisterConfigSchema>;
|
|
3543
|
+
type ACPInfoACPConfig = ACPInfoACPConfigInput;
|
|
3544
|
+
declare const ACP_DEFAULT_SERVER_CONFIG: ACPServerConfig;
|
|
3545
|
+
declare const ACP_DEFAULT_CLIENT_CONFIG: Partial<ACPClientConfig>;
|
|
3546
|
+
declare function ACPValidateConfig(config: unknown): ACPInfoACPConfig;
|
|
3547
|
+
declare function ACPParsePartialConfig(partial: unknown): ACPInfoACPConfig;
|
|
3548
|
+
|
|
2272
3549
|
type PromptPart = {
|
|
2273
3550
|
type: 'text';
|
|
2274
3551
|
text: string;
|
|
@@ -2280,4 +3557,4 @@ type PromptPart = {
|
|
|
2280
3557
|
mime?: string;
|
|
2281
3558
|
};
|
|
2282
3559
|
|
|
2283
|
-
export { type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentInput, type AgentMessage, type AgentModel,
|
|
3560
|
+
export { type ACPAgentRuntimeConfig, ACPAgentRuntimeConfigSchema, type ACPChannelType, type ACPClientConfig, ACPClientConfigSchema, type ACPClientRegisterConfig, ACPClientRegisterConfigSchema, type ACPClientsConfig, ACPClientsConfigSchema, type ACPConnectionConfig, ACPConnectionConfigSchema, type ACPHttpConnectionConfig, ACPHttpConnectionConfigSchema, type ACPInfoACPClientsConfig, ACPInfoACPClientsConfigSchema, type ACPInfoACPConfig, ACPInfoACPConfigSchema, type ACPInfoACPServerConfig, ACPInfoACPServerConfigSchema, type ACPModelConfig, ACPModelConfigSchema, ACPParsePartialConfig, type ACPServerConfig, ACPServerConfigSchema, type ACPStdioConnectionConfig, ACPStdioConnectionConfigSchema, ACPValidateConfig, type ACPWebSocketConnectionConfig, ACPWebSocketConnectionConfigSchema, ACP_DEFAULT_CLIENT_CONFIG, ACP_DEFAULT_SERVER_CONFIG, type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentDeregisterMessage, type AgentExecute, type AgentExecutionResult, type AgentHealthStatus, type AgentHeartbeat, type AgentHeartbeatSyncMessage, type AgentInfo, type AgentInput, type AgentListRequestMessage, type AgentListResponseMessage, type AgentMessage, type AgentModel, AgentPermissionSchema as AgentPermission, AgentPermissionSchema, type AgentPermissionType, type AgentPromptPart, type AgentQuery, type AgentRegisterMessage, type AgentRegistration, type AgentRegistrationRequest, type AgentRegistryStats, type AgentResult, type AgentResultMetadata, type AgentSelectionOptions, type AgentSelectionRecord, type AgentSelectionStrategy, AgentState, type AgentStatistics, type AgentStatusChangeMessage, type AgentStatusInfo, type AgentSyncConflictResolutionStrategy, type AgentSyncInfo, type AgentSyncMessage, type AgentSyncMode, type AgentSyncPushEventType, type AgentSyncState, type AgentSyncStats, type AgentToolCall, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, Brand, Brand as BrandType, type ChannelInfo, type ChannelListResponse, type ChannelPluginInfo, ChannelType, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, type ContextMode, ContextModeEnum, ContextModeValues, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, DefaultContextMode, DefaultScope, EMBEDDING_DIMS_CONSISTENCY_CHECK, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessageDeliveredInput, type GatewayMessagePromptPart, type GatewayMessageReadInput, type GatewayMessageReceiveInput, type GatewayMessageSendInput, type GatewayNodeInfo, type GatewayServerConfig, type GatewaySubscriberType, gateway as GatewayTypes, type GlobalSessionInfo, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type ITool, type IndexerConfig, KNOWLEDGE_DOCTOR_PUBLIC_CHECKS, type KnowledgeBackend, type KnowledgeDoctorCheck, type KnowledgeDoctorPublicCheck, type KnowledgeDoctorResult, type KnowledgeIndexState, type KnowledgeIssue, type KnowledgeLlmCapabilities, type KnowledgeLlmStatus, type KnowledgeSearchOptions, type KnowledgeSearchSource, type KnowledgeSeverity, type KnowledgeStatus, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MemoryStatus, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type NoteStatus, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, Permission, PermissionActionSchema as PermissionAction, PermissionActionSchema, type PermissionActionType, PermissionConfigSchema as PermissionConfig, PermissionConfigSchema, type PermissionConfigType, PermissionObjectSchema as PermissionObject, PermissionObjectSchema, type PermissionObjectType, PermissionRuleSchema as PermissionRule, PermissionRuleSchema, type PermissionRuleType, PermissionRulesetSchema as PermissionRuleset, PermissionRulesetSchema, type PermissionRulesetType, PermissionRuntimeRuleSchema as PermissionRuntimeRule, PermissionRuntimeRuleSchema, type PermissionRuntimeRuleType, Permission as PermissionType, type PlatformType, type ProjectCommands, ProjectCommandsSchema, type ProjectIcon, ProjectIconSchema, type ProjectInfo, ProjectInfoSchema, type ProjectTime, ProjectTimeSchema, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, type RunMode, type Scope, ScopeEnum, ScopeValues, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionShareInfo, type SessionStatistics, SessionStatus, Session as SessionTypes, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentExecuteOptions, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentResult, type SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, type TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, brandEnv, buildToolArgs, createTool, toolSchema };
|