@easbot/agent 0.2.15 → 0.2.16
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/dist/assets/txt/tool/agent-client-chat.txt +59 -39
- package/dist/cli.cjs +322 -322
- package/dist/cli.mjs +317 -317
- package/dist/index.cjs +297 -297
- package/dist/index.d.cts +37 -37
- package/dist/index.d.ts +37 -37
- package/dist/index.mjs +300 -300
- package/package.json +12 -12
package/dist/index.d.cts
CHANGED
|
@@ -26,8 +26,8 @@ import { Diagnostic } from 'vscode-languageserver-types';
|
|
|
26
26
|
import * as vscode_jsonrpc from 'vscode-jsonrpc';
|
|
27
27
|
|
|
28
28
|
interface ConnectionState {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
localAgentId: string;
|
|
30
|
+
remoteAgentId: string;
|
|
31
31
|
connectionId: string;
|
|
32
32
|
sessionId: string;
|
|
33
33
|
localSessionId?: string;
|
|
@@ -45,14 +45,14 @@ interface ConnectionState {
|
|
|
45
45
|
interface ConnectionResult {
|
|
46
46
|
connectionId: string;
|
|
47
47
|
sessionId: string;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
localAgentId: string;
|
|
49
|
+
remoteAgentId: string;
|
|
50
50
|
baseUrl: string;
|
|
51
51
|
}
|
|
52
52
|
interface RoutingContext {
|
|
53
53
|
connectionId?: string;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
localAgentId?: string;
|
|
55
|
+
remoteAgentId?: string;
|
|
56
56
|
baseUrl?: string;
|
|
57
57
|
sessionId?: string;
|
|
58
58
|
}
|
|
@@ -60,8 +60,8 @@ interface RoutingResult {
|
|
|
60
60
|
success: boolean;
|
|
61
61
|
connectionId?: string;
|
|
62
62
|
sessionId?: string;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
localAgentId?: string;
|
|
64
|
+
remoteAgentId?: string;
|
|
65
65
|
baseUrl?: string;
|
|
66
66
|
error?: string;
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ interface HistoryContext {
|
|
|
69
69
|
scope: 'session' | 'peer' | 'global';
|
|
70
70
|
windowSize?: number;
|
|
71
71
|
currentSessionId: string;
|
|
72
|
-
|
|
72
|
+
remoteAgentId: string;
|
|
73
73
|
tokenBudget?: number;
|
|
74
74
|
}
|
|
75
75
|
interface ComposedContext {
|
|
@@ -97,7 +97,7 @@ interface InteractionContext {
|
|
|
97
97
|
connectionId: string;
|
|
98
98
|
localSessionId: string;
|
|
99
99
|
baseUrl: string;
|
|
100
|
-
|
|
100
|
+
remoteAgentId?: string;
|
|
101
101
|
originalPrompt: string;
|
|
102
102
|
currentRound: number;
|
|
103
103
|
maxRounds: number;
|
|
@@ -121,7 +121,7 @@ interface InteractionMessage {
|
|
|
121
121
|
remoteAgent: {
|
|
122
122
|
baseUrl: string;
|
|
123
123
|
sessionId: string;
|
|
124
|
-
|
|
124
|
+
agentId?: string;
|
|
125
125
|
};
|
|
126
126
|
response: {
|
|
127
127
|
text: string;
|
|
@@ -153,16 +153,16 @@ declare class ConnectionRegistry {
|
|
|
153
153
|
private readonly defaultHistoryScope;
|
|
154
154
|
private readonly defaultHistoryWindowSize;
|
|
155
155
|
private readonly defaultDegradePolicy;
|
|
156
|
-
private
|
|
156
|
+
private agentIndex;
|
|
157
157
|
private serviceIndex;
|
|
158
158
|
private connections;
|
|
159
159
|
static create(config?: ConnectionRegistryConfig): Promise<ConnectionRegistry>;
|
|
160
160
|
private constructor();
|
|
161
|
-
connect(baseUrl: string,
|
|
161
|
+
connect(baseUrl: string, localAgentId: string, remoteAgentId: string, remoteSessionId?: string, localSessionId?: string): ConnectionResult;
|
|
162
162
|
resolve(id: string, createIfMissing?: boolean): ConnectionState | undefined;
|
|
163
163
|
closeConnection(connectionId: string): void;
|
|
164
164
|
markDegraded(connectionId: string, reason: string): void;
|
|
165
|
-
getConnectionsByPeer(
|
|
165
|
+
getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
166
166
|
getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
167
167
|
getAllActiveConnections(): ConnectionState[];
|
|
168
168
|
updateLastSeenMessageId(connectionId: string, messageId: string): void;
|
|
@@ -197,7 +197,7 @@ declare class SessionRouter {
|
|
|
197
197
|
private routeByPeerAndBaseUrl;
|
|
198
198
|
private routeByBaseUrlAndSessionId;
|
|
199
199
|
protected getConnectionState(connectionId: string): ConnectionState | undefined;
|
|
200
|
-
protected getConnectionsByPeer(
|
|
200
|
+
protected getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
201
201
|
protected getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
202
202
|
private getErrorCode;
|
|
203
203
|
}
|
|
@@ -206,7 +206,7 @@ declare class RegistrySessionRouter extends SessionRouter {
|
|
|
206
206
|
static fromRegistry(registry: RegistrySessionRouter['registry']): RegistrySessionRouter;
|
|
207
207
|
protected constructor(registry: RegistrySessionRouter['registry']);
|
|
208
208
|
protected getConnectionState(connectionId: string): ConnectionState | undefined;
|
|
209
|
-
protected getConnectionsByPeer(
|
|
209
|
+
protected getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
210
210
|
protected getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -236,7 +236,7 @@ declare class HistorySelector {
|
|
|
236
236
|
select(context: HistoryContext): Promise<ComposedContext>;
|
|
237
237
|
composeContext(sessionIds: string[], tokenBudget?: number): Promise<ComposedContext>;
|
|
238
238
|
addMessage(sessionId: string, message: Omit<SessionMessage, 'timestamp'>): Promise<void>;
|
|
239
|
-
markAsGlobal(sessionId: string,
|
|
239
|
+
markAsGlobal(sessionId: string, agentId: string, baseUrl: string): Promise<void>;
|
|
240
240
|
private loadSessionHistory;
|
|
241
241
|
private loadPeerHistory;
|
|
242
242
|
private loadGlobalHistory;
|
|
@@ -1590,7 +1590,7 @@ declare const ACPServerConfigSchema: z.ZodObject<{
|
|
|
1590
1590
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1591
1591
|
hostname: z.ZodDefault<z.ZodString>;
|
|
1592
1592
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
1593
|
-
|
|
1593
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1594
1594
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
1595
1595
|
command: z.ZodString;
|
|
1596
1596
|
args: z.ZodArray<z.ZodString>;
|
|
@@ -1622,7 +1622,7 @@ declare const InfoACPConfigSchema: z.ZodObject<{
|
|
|
1622
1622
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1623
1623
|
hostname: z.ZodDefault<z.ZodString>;
|
|
1624
1624
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
1625
|
-
|
|
1625
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1626
1626
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
1627
1627
|
command: z.ZodString;
|
|
1628
1628
|
args: z.ZodArray<z.ZodString>;
|
|
@@ -1655,7 +1655,7 @@ declare const InfoACPConfigSchema: z.ZodObject<{
|
|
|
1655
1655
|
custom: "custom";
|
|
1656
1656
|
pi: "pi";
|
|
1657
1657
|
}>;
|
|
1658
|
-
|
|
1658
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1659
1659
|
channels: z.ZodArray<z.ZodPreprocess<z.ZodEnum<typeof ChannelType>>>;
|
|
1660
1660
|
connection: z.ZodObject<{
|
|
1661
1661
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
@@ -5799,7 +5799,7 @@ declare const Info: z$1.ZodObject<{
|
|
|
5799
5799
|
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
5800
5800
|
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
5801
5801
|
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
5802
|
-
|
|
5802
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
5803
5803
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
5804
5804
|
command: z$1.ZodString;
|
|
5805
5805
|
args: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -5832,7 +5832,7 @@ declare const Info: z$1.ZodObject<{
|
|
|
5832
5832
|
custom: "custom";
|
|
5833
5833
|
pi: "pi";
|
|
5834
5834
|
}>;
|
|
5835
|
-
|
|
5835
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
5836
5836
|
channels: z$1.ZodArray<z$1.ZodPreprocess<z$1.ZodEnum<typeof ChannelType>>>;
|
|
5837
5837
|
connection: z$1.ZodObject<{
|
|
5838
5838
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -6987,7 +6987,7 @@ declare function load(text: string, configFilepath: string): Promise<{
|
|
|
6987
6987
|
port: number;
|
|
6988
6988
|
hostname: string;
|
|
6989
6989
|
timeout: number;
|
|
6990
|
-
|
|
6990
|
+
agentId?: string | undefined;
|
|
6991
6991
|
stdio?: {
|
|
6992
6992
|
command: string;
|
|
6993
6993
|
args: string[];
|
|
@@ -7036,7 +7036,7 @@ declare function load(text: string, configFilepath: string): Promise<{
|
|
|
7036
7036
|
};
|
|
7037
7037
|
autoConnect: boolean;
|
|
7038
7038
|
priority: number;
|
|
7039
|
-
|
|
7039
|
+
agentId?: string | undefined;
|
|
7040
7040
|
}[];
|
|
7041
7041
|
defaultClientId?: string | undefined;
|
|
7042
7042
|
} | undefined;
|
|
@@ -7919,7 +7919,7 @@ declare function updateGlobal(config: Info): Promise<{
|
|
|
7919
7919
|
port: number;
|
|
7920
7920
|
hostname: string;
|
|
7921
7921
|
timeout: number;
|
|
7922
|
-
|
|
7922
|
+
agentId?: string | undefined;
|
|
7923
7923
|
stdio?: {
|
|
7924
7924
|
command: string;
|
|
7925
7925
|
args: string[];
|
|
@@ -7970,7 +7970,7 @@ declare function updateGlobal(config: Info): Promise<{
|
|
|
7970
7970
|
};
|
|
7971
7971
|
autoConnect: boolean;
|
|
7972
7972
|
priority: number;
|
|
7973
|
-
|
|
7973
|
+
agentId?: string | undefined;
|
|
7974
7974
|
}[];
|
|
7975
7975
|
defaultClientId?: string | undefined;
|
|
7976
7976
|
} | undefined;
|
|
@@ -8818,7 +8818,7 @@ declare function getGlobal(): Promise<{
|
|
|
8818
8818
|
port: number;
|
|
8819
8819
|
hostname: string;
|
|
8820
8820
|
timeout: number;
|
|
8821
|
-
|
|
8821
|
+
agentId?: string | undefined;
|
|
8822
8822
|
stdio?: {
|
|
8823
8823
|
command: string;
|
|
8824
8824
|
args: string[];
|
|
@@ -8867,7 +8867,7 @@ declare function getGlobal(): Promise<{
|
|
|
8867
8867
|
};
|
|
8868
8868
|
autoConnect: boolean;
|
|
8869
8869
|
priority: number;
|
|
8870
|
-
|
|
8870
|
+
agentId?: string | undefined;
|
|
8871
8871
|
}[];
|
|
8872
8872
|
defaultClientId?: string | undefined;
|
|
8873
8873
|
} | undefined;
|
|
@@ -13122,7 +13122,7 @@ declare namespace Config {
|
|
|
13122
13122
|
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
13123
13123
|
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
13124
13124
|
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
13125
|
-
|
|
13125
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
13126
13126
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
13127
13127
|
command: z$1.ZodString;
|
|
13128
13128
|
args: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -13155,7 +13155,7 @@ declare namespace Config {
|
|
|
13155
13155
|
custom: "custom";
|
|
13156
13156
|
pi: "pi";
|
|
13157
13157
|
}>;
|
|
13158
|
-
|
|
13158
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
13159
13159
|
channels: z$1.ZodArray<z$1.ZodPreprocess<z$1.ZodEnum<typeof ChannelType>>>;
|
|
13160
13160
|
connection: z$1.ZodObject<{
|
|
13161
13161
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -14552,7 +14552,7 @@ declare namespace Config {
|
|
|
14552
14552
|
port: number;
|
|
14553
14553
|
hostname: string;
|
|
14554
14554
|
timeout: number;
|
|
14555
|
-
|
|
14555
|
+
agentId?: string | undefined;
|
|
14556
14556
|
stdio?: {
|
|
14557
14557
|
command: string;
|
|
14558
14558
|
args: string[];
|
|
@@ -14601,7 +14601,7 @@ declare namespace Config {
|
|
|
14601
14601
|
};
|
|
14602
14602
|
autoConnect: boolean;
|
|
14603
14603
|
priority: number;
|
|
14604
|
-
|
|
14604
|
+
agentId?: string | undefined;
|
|
14605
14605
|
}[];
|
|
14606
14606
|
defaultClientId?: string | undefined;
|
|
14607
14607
|
} | undefined;
|
|
@@ -26102,23 +26102,23 @@ declare abstract class ACPService implements Agent$3 {
|
|
|
26102
26102
|
} | null;
|
|
26103
26103
|
forceDegrade(reason: string): void;
|
|
26104
26104
|
forceRecover(): void;
|
|
26105
|
-
createConnection(baseUrl: string,
|
|
26105
|
+
createConnection(baseUrl: string, localAgentId?: string, remoteAgentId?: string, sessionId?: string): {
|
|
26106
26106
|
connectionId: string;
|
|
26107
26107
|
sessionId: string;
|
|
26108
|
-
|
|
26109
|
-
|
|
26108
|
+
localAgentId: string;
|
|
26109
|
+
remoteAgentId: string;
|
|
26110
26110
|
baseUrl: string;
|
|
26111
26111
|
};
|
|
26112
26112
|
routeToConnection(context: {
|
|
26113
26113
|
connectionId?: string;
|
|
26114
|
-
|
|
26114
|
+
remoteAgentId?: string;
|
|
26115
26115
|
baseUrl?: string;
|
|
26116
26116
|
sessionId?: string;
|
|
26117
26117
|
}): Promise<{
|
|
26118
26118
|
success: boolean;
|
|
26119
26119
|
connectionId?: string;
|
|
26120
26120
|
sessionId?: string;
|
|
26121
|
-
|
|
26121
|
+
remoteAgentId?: string;
|
|
26122
26122
|
baseUrl?: string;
|
|
26123
26123
|
error?: string;
|
|
26124
26124
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ import { Diagnostic } from 'vscode-languageserver-types';
|
|
|
26
26
|
import * as vscode_jsonrpc from 'vscode-jsonrpc';
|
|
27
27
|
|
|
28
28
|
interface ConnectionState {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
localAgentId: string;
|
|
30
|
+
remoteAgentId: string;
|
|
31
31
|
connectionId: string;
|
|
32
32
|
sessionId: string;
|
|
33
33
|
localSessionId?: string;
|
|
@@ -45,14 +45,14 @@ interface ConnectionState {
|
|
|
45
45
|
interface ConnectionResult {
|
|
46
46
|
connectionId: string;
|
|
47
47
|
sessionId: string;
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
localAgentId: string;
|
|
49
|
+
remoteAgentId: string;
|
|
50
50
|
baseUrl: string;
|
|
51
51
|
}
|
|
52
52
|
interface RoutingContext {
|
|
53
53
|
connectionId?: string;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
localAgentId?: string;
|
|
55
|
+
remoteAgentId?: string;
|
|
56
56
|
baseUrl?: string;
|
|
57
57
|
sessionId?: string;
|
|
58
58
|
}
|
|
@@ -60,8 +60,8 @@ interface RoutingResult {
|
|
|
60
60
|
success: boolean;
|
|
61
61
|
connectionId?: string;
|
|
62
62
|
sessionId?: string;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
localAgentId?: string;
|
|
64
|
+
remoteAgentId?: string;
|
|
65
65
|
baseUrl?: string;
|
|
66
66
|
error?: string;
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ interface HistoryContext {
|
|
|
69
69
|
scope: 'session' | 'peer' | 'global';
|
|
70
70
|
windowSize?: number;
|
|
71
71
|
currentSessionId: string;
|
|
72
|
-
|
|
72
|
+
remoteAgentId: string;
|
|
73
73
|
tokenBudget?: number;
|
|
74
74
|
}
|
|
75
75
|
interface ComposedContext {
|
|
@@ -97,7 +97,7 @@ interface InteractionContext {
|
|
|
97
97
|
connectionId: string;
|
|
98
98
|
localSessionId: string;
|
|
99
99
|
baseUrl: string;
|
|
100
|
-
|
|
100
|
+
remoteAgentId?: string;
|
|
101
101
|
originalPrompt: string;
|
|
102
102
|
currentRound: number;
|
|
103
103
|
maxRounds: number;
|
|
@@ -121,7 +121,7 @@ interface InteractionMessage {
|
|
|
121
121
|
remoteAgent: {
|
|
122
122
|
baseUrl: string;
|
|
123
123
|
sessionId: string;
|
|
124
|
-
|
|
124
|
+
agentId?: string;
|
|
125
125
|
};
|
|
126
126
|
response: {
|
|
127
127
|
text: string;
|
|
@@ -153,16 +153,16 @@ declare class ConnectionRegistry {
|
|
|
153
153
|
private readonly defaultHistoryScope;
|
|
154
154
|
private readonly defaultHistoryWindowSize;
|
|
155
155
|
private readonly defaultDegradePolicy;
|
|
156
|
-
private
|
|
156
|
+
private agentIndex;
|
|
157
157
|
private serviceIndex;
|
|
158
158
|
private connections;
|
|
159
159
|
static create(config?: ConnectionRegistryConfig): Promise<ConnectionRegistry>;
|
|
160
160
|
private constructor();
|
|
161
|
-
connect(baseUrl: string,
|
|
161
|
+
connect(baseUrl: string, localAgentId: string, remoteAgentId: string, remoteSessionId?: string, localSessionId?: string): ConnectionResult;
|
|
162
162
|
resolve(id: string, createIfMissing?: boolean): ConnectionState | undefined;
|
|
163
163
|
closeConnection(connectionId: string): void;
|
|
164
164
|
markDegraded(connectionId: string, reason: string): void;
|
|
165
|
-
getConnectionsByPeer(
|
|
165
|
+
getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
166
166
|
getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
167
167
|
getAllActiveConnections(): ConnectionState[];
|
|
168
168
|
updateLastSeenMessageId(connectionId: string, messageId: string): void;
|
|
@@ -197,7 +197,7 @@ declare class SessionRouter {
|
|
|
197
197
|
private routeByPeerAndBaseUrl;
|
|
198
198
|
private routeByBaseUrlAndSessionId;
|
|
199
199
|
protected getConnectionState(connectionId: string): ConnectionState | undefined;
|
|
200
|
-
protected getConnectionsByPeer(
|
|
200
|
+
protected getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
201
201
|
protected getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
202
202
|
private getErrorCode;
|
|
203
203
|
}
|
|
@@ -206,7 +206,7 @@ declare class RegistrySessionRouter extends SessionRouter {
|
|
|
206
206
|
static fromRegistry(registry: RegistrySessionRouter['registry']): RegistrySessionRouter;
|
|
207
207
|
protected constructor(registry: RegistrySessionRouter['registry']);
|
|
208
208
|
protected getConnectionState(connectionId: string): ConnectionState | undefined;
|
|
209
|
-
protected getConnectionsByPeer(
|
|
209
|
+
protected getConnectionsByPeer(agentId: string): ConnectionState[];
|
|
210
210
|
protected getConnectionsByService(baseUrl: string): ConnectionState[];
|
|
211
211
|
}
|
|
212
212
|
|
|
@@ -236,7 +236,7 @@ declare class HistorySelector {
|
|
|
236
236
|
select(context: HistoryContext): Promise<ComposedContext>;
|
|
237
237
|
composeContext(sessionIds: string[], tokenBudget?: number): Promise<ComposedContext>;
|
|
238
238
|
addMessage(sessionId: string, message: Omit<SessionMessage, 'timestamp'>): Promise<void>;
|
|
239
|
-
markAsGlobal(sessionId: string,
|
|
239
|
+
markAsGlobal(sessionId: string, agentId: string, baseUrl: string): Promise<void>;
|
|
240
240
|
private loadSessionHistory;
|
|
241
241
|
private loadPeerHistory;
|
|
242
242
|
private loadGlobalHistory;
|
|
@@ -1590,7 +1590,7 @@ declare const ACPServerConfigSchema: z.ZodObject<{
|
|
|
1590
1590
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1591
1591
|
hostname: z.ZodDefault<z.ZodString>;
|
|
1592
1592
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
1593
|
-
|
|
1593
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1594
1594
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
1595
1595
|
command: z.ZodString;
|
|
1596
1596
|
args: z.ZodArray<z.ZodString>;
|
|
@@ -1622,7 +1622,7 @@ declare const InfoACPConfigSchema: z.ZodObject<{
|
|
|
1622
1622
|
port: z.ZodDefault<z.ZodNumber>;
|
|
1623
1623
|
hostname: z.ZodDefault<z.ZodString>;
|
|
1624
1624
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
1625
|
-
|
|
1625
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1626
1626
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
1627
1627
|
command: z.ZodString;
|
|
1628
1628
|
args: z.ZodArray<z.ZodString>;
|
|
@@ -1655,7 +1655,7 @@ declare const InfoACPConfigSchema: z.ZodObject<{
|
|
|
1655
1655
|
custom: "custom";
|
|
1656
1656
|
pi: "pi";
|
|
1657
1657
|
}>;
|
|
1658
|
-
|
|
1658
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1659
1659
|
channels: z.ZodArray<z.ZodPreprocess<z.ZodEnum<typeof ChannelType>>>;
|
|
1660
1660
|
connection: z.ZodObject<{
|
|
1661
1661
|
stdio: z.ZodOptional<z.ZodObject<{
|
|
@@ -5799,7 +5799,7 @@ declare const Info: z$1.ZodObject<{
|
|
|
5799
5799
|
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
5800
5800
|
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
5801
5801
|
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
5802
|
-
|
|
5802
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
5803
5803
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
5804
5804
|
command: z$1.ZodString;
|
|
5805
5805
|
args: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -5832,7 +5832,7 @@ declare const Info: z$1.ZodObject<{
|
|
|
5832
5832
|
custom: "custom";
|
|
5833
5833
|
pi: "pi";
|
|
5834
5834
|
}>;
|
|
5835
|
-
|
|
5835
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
5836
5836
|
channels: z$1.ZodArray<z$1.ZodPreprocess<z$1.ZodEnum<typeof ChannelType>>>;
|
|
5837
5837
|
connection: z$1.ZodObject<{
|
|
5838
5838
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -6987,7 +6987,7 @@ declare function load(text: string, configFilepath: string): Promise<{
|
|
|
6987
6987
|
port: number;
|
|
6988
6988
|
hostname: string;
|
|
6989
6989
|
timeout: number;
|
|
6990
|
-
|
|
6990
|
+
agentId?: string | undefined;
|
|
6991
6991
|
stdio?: {
|
|
6992
6992
|
command: string;
|
|
6993
6993
|
args: string[];
|
|
@@ -7036,7 +7036,7 @@ declare function load(text: string, configFilepath: string): Promise<{
|
|
|
7036
7036
|
};
|
|
7037
7037
|
autoConnect: boolean;
|
|
7038
7038
|
priority: number;
|
|
7039
|
-
|
|
7039
|
+
agentId?: string | undefined;
|
|
7040
7040
|
}[];
|
|
7041
7041
|
defaultClientId?: string | undefined;
|
|
7042
7042
|
} | undefined;
|
|
@@ -7919,7 +7919,7 @@ declare function updateGlobal(config: Info): Promise<{
|
|
|
7919
7919
|
port: number;
|
|
7920
7920
|
hostname: string;
|
|
7921
7921
|
timeout: number;
|
|
7922
|
-
|
|
7922
|
+
agentId?: string | undefined;
|
|
7923
7923
|
stdio?: {
|
|
7924
7924
|
command: string;
|
|
7925
7925
|
args: string[];
|
|
@@ -7970,7 +7970,7 @@ declare function updateGlobal(config: Info): Promise<{
|
|
|
7970
7970
|
};
|
|
7971
7971
|
autoConnect: boolean;
|
|
7972
7972
|
priority: number;
|
|
7973
|
-
|
|
7973
|
+
agentId?: string | undefined;
|
|
7974
7974
|
}[];
|
|
7975
7975
|
defaultClientId?: string | undefined;
|
|
7976
7976
|
} | undefined;
|
|
@@ -8818,7 +8818,7 @@ declare function getGlobal(): Promise<{
|
|
|
8818
8818
|
port: number;
|
|
8819
8819
|
hostname: string;
|
|
8820
8820
|
timeout: number;
|
|
8821
|
-
|
|
8821
|
+
agentId?: string | undefined;
|
|
8822
8822
|
stdio?: {
|
|
8823
8823
|
command: string;
|
|
8824
8824
|
args: string[];
|
|
@@ -8867,7 +8867,7 @@ declare function getGlobal(): Promise<{
|
|
|
8867
8867
|
};
|
|
8868
8868
|
autoConnect: boolean;
|
|
8869
8869
|
priority: number;
|
|
8870
|
-
|
|
8870
|
+
agentId?: string | undefined;
|
|
8871
8871
|
}[];
|
|
8872
8872
|
defaultClientId?: string | undefined;
|
|
8873
8873
|
} | undefined;
|
|
@@ -13122,7 +13122,7 @@ declare namespace Config {
|
|
|
13122
13122
|
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
13123
13123
|
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
13124
13124
|
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
13125
|
-
|
|
13125
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
13126
13126
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
13127
13127
|
command: z$1.ZodString;
|
|
13128
13128
|
args: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -13155,7 +13155,7 @@ declare namespace Config {
|
|
|
13155
13155
|
custom: "custom";
|
|
13156
13156
|
pi: "pi";
|
|
13157
13157
|
}>;
|
|
13158
|
-
|
|
13158
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
13159
13159
|
channels: z$1.ZodArray<z$1.ZodPreprocess<z$1.ZodEnum<typeof ChannelType>>>;
|
|
13160
13160
|
connection: z$1.ZodObject<{
|
|
13161
13161
|
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -14552,7 +14552,7 @@ declare namespace Config {
|
|
|
14552
14552
|
port: number;
|
|
14553
14553
|
hostname: string;
|
|
14554
14554
|
timeout: number;
|
|
14555
|
-
|
|
14555
|
+
agentId?: string | undefined;
|
|
14556
14556
|
stdio?: {
|
|
14557
14557
|
command: string;
|
|
14558
14558
|
args: string[];
|
|
@@ -14601,7 +14601,7 @@ declare namespace Config {
|
|
|
14601
14601
|
};
|
|
14602
14602
|
autoConnect: boolean;
|
|
14603
14603
|
priority: number;
|
|
14604
|
-
|
|
14604
|
+
agentId?: string | undefined;
|
|
14605
14605
|
}[];
|
|
14606
14606
|
defaultClientId?: string | undefined;
|
|
14607
14607
|
} | undefined;
|
|
@@ -26102,23 +26102,23 @@ declare abstract class ACPService implements Agent$3 {
|
|
|
26102
26102
|
} | null;
|
|
26103
26103
|
forceDegrade(reason: string): void;
|
|
26104
26104
|
forceRecover(): void;
|
|
26105
|
-
createConnection(baseUrl: string,
|
|
26105
|
+
createConnection(baseUrl: string, localAgentId?: string, remoteAgentId?: string, sessionId?: string): {
|
|
26106
26106
|
connectionId: string;
|
|
26107
26107
|
sessionId: string;
|
|
26108
|
-
|
|
26109
|
-
|
|
26108
|
+
localAgentId: string;
|
|
26109
|
+
remoteAgentId: string;
|
|
26110
26110
|
baseUrl: string;
|
|
26111
26111
|
};
|
|
26112
26112
|
routeToConnection(context: {
|
|
26113
26113
|
connectionId?: string;
|
|
26114
|
-
|
|
26114
|
+
remoteAgentId?: string;
|
|
26115
26115
|
baseUrl?: string;
|
|
26116
26116
|
sessionId?: string;
|
|
26117
26117
|
}): Promise<{
|
|
26118
26118
|
success: boolean;
|
|
26119
26119
|
connectionId?: string;
|
|
26120
26120
|
sessionId?: string;
|
|
26121
|
-
|
|
26121
|
+
remoteAgentId?: string;
|
|
26122
26122
|
baseUrl?: string;
|
|
26123
26123
|
error?: string;
|
|
26124
26124
|
}>;
|