@agentdock/wire 0.0.10 → 0.0.12
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/agentCapabilities.d.ts +29 -2
- package/dist/agentCapabilities.d.ts.map +1 -1
- package/dist/agentCapabilities.js +113 -21
- package/dist/agentCapabilities.js.map +1 -1
- package/dist/agentInstallGuide.d.ts.map +1 -1
- package/dist/agentInstallGuide.js +18 -0
- package/dist/agentInstallGuide.js.map +1 -1
- package/dist/envelope.d.ts +48 -6
- package/dist/envelope.d.ts.map +1 -1
- package/dist/envelope.js +14 -4
- package/dist/envelope.js.map +1 -1
- package/dist/events.d.ts +39 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +10 -1
- package/dist/events.js.map +1 -1
- package/dist/features.d.ts +35 -0
- package/dist/features.d.ts.map +1 -0
- package/dist/features.js +53 -0
- package/dist/features.js.map +1 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/interactionEvents.d.ts +43 -4
- package/dist/interactionEvents.d.ts.map +1 -1
- package/dist/interactionEvents.js +16 -0
- package/dist/interactionEvents.js.map +1 -1
- package/dist/legacyProtocol.d.ts +40 -40
- package/dist/machine.d.ts +34 -0
- package/dist/machine.d.ts.map +1 -1
- package/dist/machine.js +15 -0
- package/dist/machine.js.map +1 -1
- package/dist/messageMeta.d.ts +14 -7
- package/dist/messageMeta.d.ts.map +1 -1
- package/dist/messageMeta.js +19 -3
- package/dist/messageMeta.js.map +1 -1
- package/dist/messages.d.ts +146 -56
- package/dist/messages.d.ts.map +1 -1
- package/dist/ops.d.ts +206 -0
- package/dist/ops.d.ts.map +1 -0
- package/dist/ops.js +74 -0
- package/dist/ops.js.map +1 -0
- package/dist/rpc.d.ts +121 -17
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +29 -12
- package/dist/rpc.js.map +1 -1
- package/dist/spawnError.d.ts +3 -3
- package/dist/stats.d.ts +977 -33
- package/dist/stats.d.ts.map +1 -1
- package/dist/stats.js +36 -0
- package/dist/stats.js.map +1 -1
- package/dist/sync.d.ts +69 -8
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +7 -0
- package/dist/sync.js.map +1 -1
- package/package.json +3 -2
- package/dist/agentModels.d.ts +0 -23
- package/dist/agentModels.d.ts.map +0 -1
- package/dist/agentModels.js +0 -77
- package/dist/agentModels.js.map +0 -1
- package/dist/team.d.ts +0 -1557
- package/dist/team.d.ts.map +0 -1
- package/dist/team.js +0 -93
- package/dist/team.js.map +0 -1
package/dist/messages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAIlE,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/ops.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Ops RPC method naming convention: namespace.action
|
|
4
|
+
* - file.* — RFC-033 file management
|
|
5
|
+
* - sync.* — RFC-034 data sync (Ops Agent → Server)
|
|
6
|
+
* - config.* — RFC-034 policy push (Server → Ops Agent)
|
|
7
|
+
*/
|
|
8
|
+
export declare const OpsMethodSchema: z.ZodString;
|
|
9
|
+
export type OpsMethod = z.infer<typeof OpsMethodSchema>;
|
|
10
|
+
export declare const OpsRpcTypeSchema: z.ZodEnum<["request", "response", "event"]>;
|
|
11
|
+
export type OpsRpcType = z.infer<typeof OpsRpcTypeSchema>;
|
|
12
|
+
/** Unified RPC message over the ops-upstream tunnel. */
|
|
13
|
+
export declare const OpsRpcMessageSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
type: z.ZodEnum<["request", "response", "event"]>;
|
|
16
|
+
method: z.ZodString;
|
|
17
|
+
payload: z.ZodUnknown;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
type: "request" | "response" | "event";
|
|
20
|
+
id: string;
|
|
21
|
+
method: string;
|
|
22
|
+
payload?: unknown;
|
|
23
|
+
}, {
|
|
24
|
+
type: "request" | "response" | "event";
|
|
25
|
+
id: string;
|
|
26
|
+
method: string;
|
|
27
|
+
payload?: unknown;
|
|
28
|
+
}>;
|
|
29
|
+
export type OpsRpcMessage = z.infer<typeof OpsRpcMessageSchema>;
|
|
30
|
+
/** Metrics tracked per ops tunnel connection (RFC-034 R7). */
|
|
31
|
+
export interface OpsTunnelMetrics {
|
|
32
|
+
readonly enterpriseId: string;
|
|
33
|
+
readonly connectedAt: Date | null;
|
|
34
|
+
readonly lastDisconnectedAt: Date | null;
|
|
35
|
+
readonly reconnectCount: number;
|
|
36
|
+
readonly lastSyncAt: Date | null;
|
|
37
|
+
readonly pendingRpcCount: number;
|
|
38
|
+
}
|
|
39
|
+
export declare const FileEntrySchema: z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
type: z.ZodEnum<["file", "directory"]>;
|
|
42
|
+
size: z.ZodNumber;
|
|
43
|
+
modifiedAt: z.ZodString;
|
|
44
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
type: "file" | "directory";
|
|
47
|
+
name: string;
|
|
48
|
+
size: number;
|
|
49
|
+
modifiedAt: string;
|
|
50
|
+
mimeType?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
type: "file" | "directory";
|
|
53
|
+
name: string;
|
|
54
|
+
size: number;
|
|
55
|
+
modifiedAt: string;
|
|
56
|
+
mimeType?: string | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
export type FileEntry = z.infer<typeof FileEntrySchema>;
|
|
59
|
+
export declare const FileStatSchema: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
path: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<["file", "directory"]>;
|
|
63
|
+
size: z.ZodNumber;
|
|
64
|
+
modifiedAt: z.ZodString;
|
|
65
|
+
createdAt: z.ZodString;
|
|
66
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
path: string;
|
|
69
|
+
type: "file" | "directory";
|
|
70
|
+
createdAt: string;
|
|
71
|
+
name: string;
|
|
72
|
+
size: number;
|
|
73
|
+
modifiedAt: string;
|
|
74
|
+
mimeType?: string | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
path: string;
|
|
77
|
+
type: "file" | "directory";
|
|
78
|
+
createdAt: string;
|
|
79
|
+
name: string;
|
|
80
|
+
size: number;
|
|
81
|
+
modifiedAt: string;
|
|
82
|
+
mimeType?: string | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export type FileStat = z.infer<typeof FileStatSchema>;
|
|
85
|
+
export declare const StorageUsageSchema: z.ZodObject<{
|
|
86
|
+
used: z.ZodNumber;
|
|
87
|
+
limit: z.ZodNumber;
|
|
88
|
+
fileCount: z.ZodNumber;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
limit: number;
|
|
91
|
+
used: number;
|
|
92
|
+
fileCount: number;
|
|
93
|
+
}, {
|
|
94
|
+
limit: number;
|
|
95
|
+
used: number;
|
|
96
|
+
fileCount: number;
|
|
97
|
+
}>;
|
|
98
|
+
export type StorageUsage = z.infer<typeof StorageUsageSchema>;
|
|
99
|
+
/** A single user record in a full sync push. */
|
|
100
|
+
export declare const SyncUserSchema: z.ZodObject<{
|
|
101
|
+
username: z.ZodString;
|
|
102
|
+
displayName: z.ZodString;
|
|
103
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
104
|
+
containerStatus: z.ZodString;
|
|
105
|
+
healthStatus: z.ZodNullable<z.ZodString>;
|
|
106
|
+
enabled: z.ZodBoolean;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
displayName: string;
|
|
109
|
+
machineId: string | null;
|
|
110
|
+
username: string;
|
|
111
|
+
containerStatus: string;
|
|
112
|
+
healthStatus: string | null;
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
}, {
|
|
115
|
+
displayName: string;
|
|
116
|
+
machineId: string | null;
|
|
117
|
+
username: string;
|
|
118
|
+
containerStatus: string;
|
|
119
|
+
healthStatus: string | null;
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
}>;
|
|
122
|
+
export type SyncUser = z.infer<typeof SyncUserSchema>;
|
|
123
|
+
/** sync.full — all users pushed on tunnel connect/reconnect. */
|
|
124
|
+
export declare const SyncFullPayloadSchema: z.ZodObject<{
|
|
125
|
+
users: z.ZodArray<z.ZodObject<{
|
|
126
|
+
username: z.ZodString;
|
|
127
|
+
displayName: z.ZodString;
|
|
128
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
129
|
+
containerStatus: z.ZodString;
|
|
130
|
+
healthStatus: z.ZodNullable<z.ZodString>;
|
|
131
|
+
enabled: z.ZodBoolean;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
displayName: string;
|
|
134
|
+
machineId: string | null;
|
|
135
|
+
username: string;
|
|
136
|
+
containerStatus: string;
|
|
137
|
+
healthStatus: string | null;
|
|
138
|
+
enabled: boolean;
|
|
139
|
+
}, {
|
|
140
|
+
displayName: string;
|
|
141
|
+
machineId: string | null;
|
|
142
|
+
username: string;
|
|
143
|
+
containerStatus: string;
|
|
144
|
+
healthStatus: string | null;
|
|
145
|
+
enabled: boolean;
|
|
146
|
+
}>, "many">;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
users: {
|
|
149
|
+
displayName: string;
|
|
150
|
+
machineId: string | null;
|
|
151
|
+
username: string;
|
|
152
|
+
containerStatus: string;
|
|
153
|
+
healthStatus: string | null;
|
|
154
|
+
enabled: boolean;
|
|
155
|
+
}[];
|
|
156
|
+
}, {
|
|
157
|
+
users: {
|
|
158
|
+
displayName: string;
|
|
159
|
+
machineId: string | null;
|
|
160
|
+
username: string;
|
|
161
|
+
containerStatus: string;
|
|
162
|
+
healthStatus: string | null;
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
}[];
|
|
165
|
+
}>;
|
|
166
|
+
export type SyncFullPayload = z.infer<typeof SyncFullPayloadSchema>;
|
|
167
|
+
/** sync.user-created — single user just created. */
|
|
168
|
+
export declare const SyncUserCreatedPayloadSchema: z.ZodObject<{
|
|
169
|
+
username: z.ZodString;
|
|
170
|
+
displayName: z.ZodString;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
displayName: string;
|
|
173
|
+
username: string;
|
|
174
|
+
}, {
|
|
175
|
+
displayName: string;
|
|
176
|
+
username: string;
|
|
177
|
+
}>;
|
|
178
|
+
export type SyncUserCreatedPayload = z.infer<typeof SyncUserCreatedPayloadSchema>;
|
|
179
|
+
/** sync.container-status — container state change. */
|
|
180
|
+
export declare const SyncContainerStatusPayloadSchema: z.ZodObject<{
|
|
181
|
+
username: z.ZodString;
|
|
182
|
+
containerStatus: z.ZodString;
|
|
183
|
+
healthStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
username: string;
|
|
186
|
+
containerStatus: string;
|
|
187
|
+
healthStatus?: string | null | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
username: string;
|
|
190
|
+
containerStatus: string;
|
|
191
|
+
healthStatus?: string | null | undefined;
|
|
192
|
+
}>;
|
|
193
|
+
export type SyncContainerStatusPayload = z.infer<typeof SyncContainerStatusPayloadSchema>;
|
|
194
|
+
/** sync.user-paired — daemon pairing detected, machineId available. */
|
|
195
|
+
export declare const SyncUserPairedPayloadSchema: z.ZodObject<{
|
|
196
|
+
username: z.ZodString;
|
|
197
|
+
machineId: z.ZodString;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
machineId: string;
|
|
200
|
+
username: string;
|
|
201
|
+
}, {
|
|
202
|
+
machineId: string;
|
|
203
|
+
username: string;
|
|
204
|
+
}>;
|
|
205
|
+
export type SyncUserPairedPayload = z.infer<typeof SyncUserPairedPayloadSchema>;
|
|
206
|
+
//# sourceMappingURL=ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,eAAe,aAGS,CAAC;AACtC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB,6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;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,oDAAoD;AACpD,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,sDAAsD;AACtD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,uEAAuE;AACvE,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/ops.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Ops RPC method naming convention: namespace.action
|
|
4
|
+
* - file.* — RFC-033 file management
|
|
5
|
+
* - sync.* — RFC-034 data sync (Ops Agent → Server)
|
|
6
|
+
* - config.* — RFC-034 policy push (Server → Ops Agent)
|
|
7
|
+
*/
|
|
8
|
+
export const OpsMethodSchema = z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1)
|
|
11
|
+
.regex(/^[a-z]+\.[a-z][a-z0-9-]*$/);
|
|
12
|
+
export const OpsRpcTypeSchema = z.enum(['request', 'response', 'event']);
|
|
13
|
+
/** Unified RPC message over the ops-upstream tunnel. */
|
|
14
|
+
export const OpsRpcMessageSchema = z.object({
|
|
15
|
+
id: z.string().min(1),
|
|
16
|
+
type: OpsRpcTypeSchema,
|
|
17
|
+
method: OpsMethodSchema,
|
|
18
|
+
payload: z.unknown(),
|
|
19
|
+
});
|
|
20
|
+
// FileEntry — directory listing item
|
|
21
|
+
export const FileEntrySchema = z.object({
|
|
22
|
+
name: z.string(),
|
|
23
|
+
type: z.enum(['file', 'directory']),
|
|
24
|
+
size: z.number().int().nonnegative(),
|
|
25
|
+
modifiedAt: z.string(),
|
|
26
|
+
mimeType: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
// FileStat — detailed metadata
|
|
29
|
+
export const FileStatSchema = z.object({
|
|
30
|
+
name: z.string(),
|
|
31
|
+
path: z.string(),
|
|
32
|
+
type: z.enum(['file', 'directory']),
|
|
33
|
+
size: z.number().int().nonnegative(),
|
|
34
|
+
modifiedAt: z.string(),
|
|
35
|
+
createdAt: z.string(),
|
|
36
|
+
mimeType: z.string().optional(),
|
|
37
|
+
});
|
|
38
|
+
// StorageUsage — quota info
|
|
39
|
+
export const StorageUsageSchema = z.object({
|
|
40
|
+
used: z.number().int().nonnegative(),
|
|
41
|
+
limit: z.number().int().nonnegative(),
|
|
42
|
+
fileCount: z.number().int().nonnegative(),
|
|
43
|
+
});
|
|
44
|
+
// ─── Sync payloads (RFC-034 P1) ─────────────────────────
|
|
45
|
+
/** A single user record in a full sync push. */
|
|
46
|
+
export const SyncUserSchema = z.object({
|
|
47
|
+
username: z.string().min(1),
|
|
48
|
+
displayName: z.string(),
|
|
49
|
+
machineId: z.string().nullable(),
|
|
50
|
+
containerStatus: z.string(),
|
|
51
|
+
healthStatus: z.string().nullable(),
|
|
52
|
+
enabled: z.boolean(),
|
|
53
|
+
});
|
|
54
|
+
/** sync.full — all users pushed on tunnel connect/reconnect. */
|
|
55
|
+
export const SyncFullPayloadSchema = z.object({
|
|
56
|
+
users: z.array(SyncUserSchema),
|
|
57
|
+
});
|
|
58
|
+
/** sync.user-created — single user just created. */
|
|
59
|
+
export const SyncUserCreatedPayloadSchema = z.object({
|
|
60
|
+
username: z.string().min(1),
|
|
61
|
+
displayName: z.string(),
|
|
62
|
+
});
|
|
63
|
+
/** sync.container-status — container state change. */
|
|
64
|
+
export const SyncContainerStatusPayloadSchema = z.object({
|
|
65
|
+
username: z.string().min(1),
|
|
66
|
+
containerStatus: z.string(),
|
|
67
|
+
healthStatus: z.string().nullable().optional(),
|
|
68
|
+
});
|
|
69
|
+
/** sync.user-paired — daemon pairing detected, machineId available. */
|
|
70
|
+
export const SyncUserPairedPayloadSchema = z.object({
|
|
71
|
+
username: z.string().min(1),
|
|
72
|
+
machineId: z.string().min(1),
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=ops.js.map
|
package/dist/ops.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAGtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAGzE,wDAAwD;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAaH,qCAAqC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;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C,MAAM,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAGH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;CAC/B,CAAC,CAAC;AAGH,oDAAoD;AACpD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAGH,sDAAsD;AACtD,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAGH,uEAAuE;AACvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAC"}
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "check-path"]>;
|
|
2
|
+
export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"]>;
|
|
3
3
|
/**
|
|
4
4
|
* Session-scoped RPC methods — registered by `agentdock start` (CLI process).
|
|
5
5
|
* These operate on a specific session and require the CLI to be running.
|
|
@@ -9,14 +9,14 @@ export declare const SESSION_RPC_METHODS: readonly ["answer-question", "approve-
|
|
|
9
9
|
* Machine-scoped RPC methods — registered by the persistent daemon only.
|
|
10
10
|
* These are account/machine-level operations independent of any session.
|
|
11
11
|
*/
|
|
12
|
-
export declare const MACHINE_RPC_METHODS: readonly ["start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "check-path"];
|
|
12
|
+
export declare const MACHINE_RPC_METHODS: readonly ["start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"];
|
|
13
13
|
/**
|
|
14
14
|
* All RPC methods that must be registered for Web UI to function.
|
|
15
15
|
* Daemon registers MACHINE_RPC_METHODS; CLI registers SESSION_RPC_METHODS.
|
|
16
16
|
*
|
|
17
17
|
* @deprecated Use SESSION_RPC_METHODS or MACHINE_RPC_METHODS directly.
|
|
18
18
|
*/
|
|
19
|
-
export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "check-path"];
|
|
19
|
+
export declare const DAEMON_REQUIRED_RPC_METHODS: readonly ["answer-question", "approve-permission", "deny-permission", "abort", "stop-session", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "check-path", "backfill-history-session"];
|
|
20
20
|
export declare const RpcCallSchema: z.ZodObject<{
|
|
21
21
|
method: z.ZodString;
|
|
22
22
|
params: z.ZodUnknown;
|
|
@@ -43,17 +43,17 @@ export declare const RpcResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
|
|
|
43
43
|
ok: z.ZodLiteral<false>;
|
|
44
44
|
error: z.ZodString;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
error: string;
|
|
47
46
|
ok: false;
|
|
48
|
-
}, {
|
|
49
47
|
error: string;
|
|
48
|
+
}, {
|
|
50
49
|
ok: false;
|
|
50
|
+
error: string;
|
|
51
51
|
}>]>;
|
|
52
52
|
export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
53
|
-
cli: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "qwen"]>;
|
|
53
|
+
cli: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw", "qwen"]>;
|
|
54
54
|
cwd: z.ZodString;
|
|
55
55
|
prompt: z.ZodOptional<z.ZodString>;
|
|
56
|
-
permissionMode: z.ZodDefault<z.ZodEnum<["default", "acceptEdits", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo"]>>;
|
|
56
|
+
permissionMode: z.ZodDefault<z.ZodEnum<["default", "acceptEdits", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto"]>>;
|
|
57
57
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
58
58
|
model: z.ZodOptional<z.ZodString>;
|
|
59
59
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -86,7 +86,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
86
86
|
/** Specify available tools from the built-in set (Claude CLI --tools). */
|
|
87
87
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
88
88
|
/** Reasoning effort level (Claude CLI --effort). */
|
|
89
|
-
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "max"]>>;
|
|
89
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
90
90
|
/** Additional directories to allow tool access to (Claude CLI --add-dir). */
|
|
91
91
|
addDirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
92
|
/** Agent for the session (Claude CLI --agent). */
|
|
@@ -130,15 +130,15 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
130
130
|
/** Enable bypass option without auto-enabling (Claude CLI --allow-dangerously-skip-permissions). */
|
|
131
131
|
allowDangerouslySkipPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
permissionMode: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "read-only" | "safe-yolo" | "yolo";
|
|
134
|
-
cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "qwen";
|
|
133
|
+
permissionMode: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto";
|
|
134
|
+
cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | "qwen";
|
|
135
135
|
cwd: string;
|
|
136
|
+
sessionId?: string | undefined;
|
|
136
137
|
model?: string | undefined;
|
|
137
138
|
fallbackModel?: string | undefined;
|
|
138
139
|
appendSystemPrompt?: string | undefined;
|
|
139
140
|
allowedTools?: string[] | undefined;
|
|
140
141
|
disallowedTools?: string[] | undefined;
|
|
141
|
-
sessionId?: string | undefined;
|
|
142
142
|
agent?: string | undefined;
|
|
143
143
|
machineId?: string | undefined;
|
|
144
144
|
prompt?: string | undefined;
|
|
@@ -153,7 +153,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
153
153
|
appendSystemPromptFile?: string | undefined;
|
|
154
154
|
maxBudgetUsd?: number | undefined;
|
|
155
155
|
tools?: string[] | undefined;
|
|
156
|
-
effort?: "low" | "medium" | "high" | "max" | undefined;
|
|
156
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
157
157
|
addDirs?: string[] | undefined;
|
|
158
158
|
agents?: string | undefined;
|
|
159
159
|
jsonSchema?: string | undefined;
|
|
@@ -174,15 +174,15 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
174
174
|
dangerouslySkipPermissions?: boolean | undefined;
|
|
175
175
|
allowDangerouslySkipPermissions?: boolean | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "qwen";
|
|
177
|
+
cli: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | "qwen";
|
|
178
178
|
cwd: string;
|
|
179
|
-
|
|
179
|
+
sessionId?: string | undefined;
|
|
180
|
+
permissionMode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
|
|
180
181
|
model?: string | undefined;
|
|
181
182
|
fallbackModel?: string | undefined;
|
|
182
183
|
appendSystemPrompt?: string | undefined;
|
|
183
184
|
allowedTools?: string[] | undefined;
|
|
184
185
|
disallowedTools?: string[] | undefined;
|
|
185
|
-
sessionId?: string | undefined;
|
|
186
186
|
agent?: string | undefined;
|
|
187
187
|
machineId?: string | undefined;
|
|
188
188
|
prompt?: string | undefined;
|
|
@@ -197,7 +197,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
197
197
|
appendSystemPromptFile?: string | undefined;
|
|
198
198
|
maxBudgetUsd?: number | undefined;
|
|
199
199
|
tools?: string[] | undefined;
|
|
200
|
-
effort?: "low" | "medium" | "high" | "max" | undefined;
|
|
200
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
201
201
|
addDirs?: string[] | undefined;
|
|
202
202
|
agents?: string | undefined;
|
|
203
203
|
jsonSchema?: string | undefined;
|
|
@@ -302,16 +302,65 @@ export declare const GetMessagesResponseSchema: z.ZodObject<{
|
|
|
302
302
|
}>;
|
|
303
303
|
export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
304
304
|
homedir: z.ZodString;
|
|
305
|
+
defaultCwd: z.ZodOptional<z.ZodString>;
|
|
305
306
|
recentCwds: z.ZodArray<z.ZodString, "many">;
|
|
306
307
|
availableAgents: z.ZodArray<z.ZodString, "many">;
|
|
308
|
+
agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
displayName: z.ZodString;
|
|
311
|
+
isDefault: z.ZodBoolean;
|
|
312
|
+
hidden: z.ZodBoolean;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
id: string;
|
|
315
|
+
displayName: string;
|
|
316
|
+
isDefault: boolean;
|
|
317
|
+
hidden: boolean;
|
|
318
|
+
}, {
|
|
319
|
+
id: string;
|
|
320
|
+
displayName: string;
|
|
321
|
+
isDefault: boolean;
|
|
322
|
+
hidden: boolean;
|
|
323
|
+
}>, "many">>>;
|
|
324
|
+
agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
label: z.ZodString;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
label: string;
|
|
329
|
+
id: string;
|
|
330
|
+
}, {
|
|
331
|
+
label: string;
|
|
332
|
+
id: string;
|
|
333
|
+
}>, "many">>>;
|
|
307
334
|
}, "strip", z.ZodTypeAny, {
|
|
308
335
|
homedir: string;
|
|
309
336
|
recentCwds: string[];
|
|
310
337
|
availableAgents: string[];
|
|
338
|
+
defaultCwd?: string | undefined;
|
|
339
|
+
agentModels?: Record<string, {
|
|
340
|
+
id: string;
|
|
341
|
+
displayName: string;
|
|
342
|
+
isDefault: boolean;
|
|
343
|
+
hidden: boolean;
|
|
344
|
+
}[]> | undefined;
|
|
345
|
+
agentModes?: Record<string, {
|
|
346
|
+
label: string;
|
|
347
|
+
id: string;
|
|
348
|
+
}[]> | undefined;
|
|
311
349
|
}, {
|
|
312
350
|
homedir: string;
|
|
313
351
|
recentCwds: string[];
|
|
314
352
|
availableAgents: string[];
|
|
353
|
+
defaultCwd?: string | undefined;
|
|
354
|
+
agentModels?: Record<string, {
|
|
355
|
+
id: string;
|
|
356
|
+
displayName: string;
|
|
357
|
+
isDefault: boolean;
|
|
358
|
+
hidden: boolean;
|
|
359
|
+
}[]> | undefined;
|
|
360
|
+
agentModes?: Record<string, {
|
|
361
|
+
label: string;
|
|
362
|
+
id: string;
|
|
363
|
+
}[]> | undefined;
|
|
315
364
|
}>;
|
|
316
365
|
export declare const CheckPathParamsSchema: z.ZodObject<{
|
|
317
366
|
cwd: z.ZodString;
|
|
@@ -324,6 +373,14 @@ export declare const CheckPathParamsSchema: z.ZodObject<{
|
|
|
324
373
|
cwd: string;
|
|
325
374
|
machineId?: string | undefined;
|
|
326
375
|
}>;
|
|
376
|
+
export declare const LabsSettingsSchema: z.ZodObject<{
|
|
377
|
+
/** Enable discovery and sync of CLI history sessions (experimental). */
|
|
378
|
+
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
historySessionSync: boolean;
|
|
381
|
+
}, {
|
|
382
|
+
historySessionSync?: boolean | undefined;
|
|
383
|
+
}>;
|
|
327
384
|
export declare const AgentEnvConfigSchema: z.ZodObject<{
|
|
328
385
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
329
386
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -364,6 +421,19 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
364
421
|
httpsProxy?: string | undefined;
|
|
365
422
|
customEnv?: Record<string, string> | undefined;
|
|
366
423
|
}>>;
|
|
424
|
+
opencode: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
426
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
427
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
httpProxy?: string | undefined;
|
|
430
|
+
httpsProxy?: string | undefined;
|
|
431
|
+
customEnv?: Record<string, string> | undefined;
|
|
432
|
+
}, {
|
|
433
|
+
httpProxy?: string | undefined;
|
|
434
|
+
httpsProxy?: string | undefined;
|
|
435
|
+
customEnv?: Record<string, string> | undefined;
|
|
436
|
+
}>>;
|
|
367
437
|
codex: z.ZodOptional<z.ZodObject<{
|
|
368
438
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
369
439
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -390,7 +460,20 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
390
460
|
httpsProxy?: string | undefined;
|
|
391
461
|
customEnv?: Record<string, string> | undefined;
|
|
392
462
|
}>>;
|
|
393
|
-
|
|
463
|
+
hermes: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
httpProxy: z.ZodOptional<z.ZodString>;
|
|
465
|
+
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
466
|
+
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
httpProxy?: string | undefined;
|
|
469
|
+
httpsProxy?: string | undefined;
|
|
470
|
+
customEnv?: Record<string, string> | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
httpProxy?: string | undefined;
|
|
473
|
+
httpsProxy?: string | undefined;
|
|
474
|
+
customEnv?: Record<string, string> | undefined;
|
|
475
|
+
}>>;
|
|
476
|
+
openclaw: z.ZodOptional<z.ZodObject<{
|
|
394
477
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
395
478
|
httpsProxy: z.ZodOptional<z.ZodString>;
|
|
396
479
|
customEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -429,6 +512,16 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
429
512
|
httpsProxy?: string | undefined;
|
|
430
513
|
customEnv?: Record<string, string> | undefined;
|
|
431
514
|
} | undefined;
|
|
515
|
+
hermes?: {
|
|
516
|
+
httpProxy?: string | undefined;
|
|
517
|
+
httpsProxy?: string | undefined;
|
|
518
|
+
customEnv?: Record<string, string> | undefined;
|
|
519
|
+
} | undefined;
|
|
520
|
+
openclaw?: {
|
|
521
|
+
httpProxy?: string | undefined;
|
|
522
|
+
httpsProxy?: string | undefined;
|
|
523
|
+
customEnv?: Record<string, string> | undefined;
|
|
524
|
+
} | undefined;
|
|
432
525
|
}, {
|
|
433
526
|
claude?: {
|
|
434
527
|
httpProxy?: string | undefined;
|
|
@@ -455,6 +548,16 @@ export declare const AgentSettingsSchema: z.ZodObject<{
|
|
|
455
548
|
httpsProxy?: string | undefined;
|
|
456
549
|
customEnv?: Record<string, string> | undefined;
|
|
457
550
|
} | undefined;
|
|
551
|
+
hermes?: {
|
|
552
|
+
httpProxy?: string | undefined;
|
|
553
|
+
httpsProxy?: string | undefined;
|
|
554
|
+
customEnv?: Record<string, string> | undefined;
|
|
555
|
+
} | undefined;
|
|
556
|
+
openclaw?: {
|
|
557
|
+
httpProxy?: string | undefined;
|
|
558
|
+
httpsProxy?: string | undefined;
|
|
559
|
+
customEnv?: Record<string, string> | undefined;
|
|
560
|
+
} | undefined;
|
|
458
561
|
}>;
|
|
459
562
|
export type RpcCall = z.infer<typeof RpcCallSchema>;
|
|
460
563
|
export type RpcResult = z.infer<typeof RpcResultSchema>;
|
|
@@ -465,4 +568,5 @@ export type MachineInfoResponse = z.infer<typeof MachineInfoResponseSchema>;
|
|
|
465
568
|
export type CheckPathParams = z.infer<typeof CheckPathParamsSchema>;
|
|
466
569
|
export type AgentEnvConfig = z.infer<typeof AgentEnvConfigSchema>;
|
|
467
570
|
export type AgentSettings = z.infer<typeof AgentSettingsSchema>;
|
|
571
|
+
export type LabsSettings = z.infer<typeof LabsSettingsSchema>;
|
|
468
572
|
//# sourceMappingURL=rpc.d.ts.map
|
package/dist/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,SAAS,wWAoBpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,gGAMyB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+KASyB,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,oQAGiB,CAAC;AAE1D,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;IAG1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;IAQnC,yEAAyE;;IAEzE,sEAAsE;;IAEtE,wEAAwE;;IAExE,+DAA+D;;IAE/D,6DAA6D;;IAE7D,wEAAwE;;IAExE,4EAA4E;;IAE5E,oFAAoF;;IAKpF,+EAA+E;;IAE/E,6EAA6E;;IAE7E,2FAA2F;;IAE3F,+EAA+E;;IAE/E,yEAAyE;;IAEzE,0EAA0E;;IAE1E,oDAAoD;;IAEpD,6EAA6E;;IAE7E,kDAAkD;;IAElD,gEAAgE;;IAEhE,+EAA+E;;IAE/E,+EAA+E;;IAE/E,qEAAqE;;IAErE,qEAAqE;;IAErE,yEAAyE;;IAEzE,6DAA6D;;IAE7D,oEAAoE;;IAEpE,0DAA0D;;IAE1D,wEAAwE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