@agent-earth/shared 0.0.4
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/index.d.ts +10 -0
- package/dist/index.js +1 -0
- package/dist/schemas/agent-system.schema.d.ts +11661 -0
- package/dist/schemas/agent-system.schema.js +1 -0
- package/dist/schemas/agent.schema.d.ts +901 -0
- package/dist/schemas/agent.schema.js +1 -0
- package/dist/schemas/cesium.schema.d.ts +517 -0
- package/dist/schemas/cesium.schema.js +1 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/mcp.schema.d.ts +1791 -0
- package/dist/schemas/mcp.schema.js +1 -0
- package/dist/schemas/service-config.schema.d.ts +1302 -0
- package/dist/schemas/service-config.schema.js +1 -0
- package/dist/schemas/skill.schema.d.ts +392 -0
- package/dist/schemas/skill.schema.js +1 -0
- package/dist/schemas/store.schema.d.ts +1242 -0
- package/dist/schemas/store.schema.js +1 -0
- package/dist/schemas/user.schema.d.ts +541 -0
- package/dist/schemas/user.schema.js +1 -0
- package/dist/schemas/websocket.schema.d.ts +1186 -0
- package/dist/schemas/websocket.schema.js +1 -0
- package/dist/schemas/wiki.schema.d.ts +865 -0
- package/dist/schemas/wiki.schema.js +1 -0
- package/dist/types/agent.d.ts +45 -0
- package/dist/types/agent.js +1 -0
- package/dist/types/at-file.d.ts +42 -0
- package/dist/types/at-file.js +1 -0
- package/dist/types/cesium.d.ts +116 -0
- package/dist/types/cesium.js +1 -0
- package/dist/types/hermes.d.ts +95 -0
- package/dist/types/hermes.js +1 -0
- package/dist/types/mcp.d.ts +202 -0
- package/dist/types/mcp.js +1 -0
- package/dist/types/skill.d.ts +29 -0
- package/dist/types/skill.js +1 -0
- package/dist/types/slash-command.d.ts +26 -0
- package/dist/types/slash-command.js +1 -0
- package/dist/types/websocket.d.ts +301 -0
- package/dist/types/websocket.js +1 -0
- package/dist/types/wiki.d.ts +66 -0
- package/dist/types/wiki.js +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as t}from"zod";export const AgentTriggerSchema=t.object({type:t.enum(["event","message","schedule","condition"]),source:t.string(),condition:t.string().optional(),targetAgentId:t.string().optional()});export const AgentOutputConfigSchema=t.object({type:t.enum(["websocket","api","skill"]),destination:t.string(),format:t.enum(["text","json","cesium_command"])});export const AgentConfigSchema=t.object({id:t.string(),name:t.string(),description:t.string(),type:t.enum(["main","sub"]),skills:t.array(t.any()),mcps:t.array(t.any()),modelConfig:t.any(),agentConfig:t.any(),triggers:t.array(AgentTriggerSchema).optional(),outputs:t.array(AgentOutputConfigSchema).optional()});export const OrchestrationTriggerSchema=t.object({id:t.string(),sourceAgentId:t.string(),targetAgentId:t.string(),eventType:t.string(),condition:t.string().optional()});export const MessageRoutingConfigSchema=t.object({fromAgentId:t.string(),toAgentId:t.string(),messageType:t.string(),transform:t.string().optional()});export const AgentOrchestrationConfigSchema=t.object({mainAgent:AgentConfigSchema,subAgents:t.array(AgentConfigSchema),triggers:t.array(OrchestrationTriggerSchema),routing:t.array(MessageRoutingConfigSchema)});export const AgentMetadataSchema=t.object({id:t.string(),name:t.string(),displayName:t.string(),description:t.string(),category:t.enum(["industry","domain","general"]),tags:t.array(t.string()),author:t.string(),version:t.string(),createdAt:t.string(),updatedAt:t.string(),status:t.enum(["draft","published","deprecated"]),skills:t.array(t.string()),mcps:t.array(t.string()),wikiRequired:t.boolean().default(!1),smartEarthEnabled:t.boolean().default(!1),capabilities:t.array(t.string()),limitations:t.array(t.string()).optional(),useCases:t.array(t.string()).optional(),requirements:t.object({minContextLength:t.number().optional(),recommendedModel:t.string().optional(),requiredSkills:t.array(t.string()).optional(),requiredMCPs:t.array(t.string()).optional()}).optional()});export const AgentTemplateSchema=t.object({id:t.string(),name:t.string(),description:t.string(),category:t.enum(["industry","domain","demo","starter"]),baseConfig:AgentConfigSchema.partial(),defaultSkills:t.array(t.string()),defaultMCPs:t.array(t.string()),customizableFields:t.array(t.string()),previewImage:t.string().optional(),documentationUrl:t.string().optional(),setupGuide:t.string().optional(),exampleConfigs:t.array(AgentConfigSchema).optional()});export const AgentInstanceSchema=t.object({id:t.string(),agentId:t.string(),agentName:t.string(),instanceId:t.string(),tags:t.array(t.string()).default([]),status:t.enum(["running","idle","error","stopped"]),startedAt:t.string().optional(),lastActivityAt:t.string().optional(),currentSession:t.string().optional(),metrics:t.object({totalSessions:t.number().default(0),totalMessages:t.number().default(0),averageResponseTime:t.number().optional(),errorCount:t.number().default(0),memoryUsage:t.number().optional(),cpuUsage:t.number().optional()}).optional()});export const AgentSmartAssistantConfigSchema=t.object({enabled:t.boolean().default(!1),model:t.string().optional(),systemPrompt:t.string().optional(),capabilities:t.array(t.enum(["generate_agent_config","suggest_skills","suggest_mcps","configure_triggers","setup_routing","create_workflow"])),contextWindowSize:t.number().default(4096)});
|
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CesiumPositionSchema: z.ZodObject<{
|
|
3
|
+
longitude: z.ZodNumber;
|
|
4
|
+
latitude: z.ZodNumber;
|
|
5
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
longitude: number;
|
|
8
|
+
latitude: number;
|
|
9
|
+
altitude?: number | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
longitude: number;
|
|
12
|
+
latitude: number;
|
|
13
|
+
altitude?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const CesiumMarkerSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
position: z.ZodObject<{
|
|
18
|
+
longitude: z.ZodNumber;
|
|
19
|
+
latitude: z.ZodNumber;
|
|
20
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
longitude: number;
|
|
23
|
+
latitude: number;
|
|
24
|
+
altitude?: number | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
longitude: number;
|
|
27
|
+
latitude: number;
|
|
28
|
+
altitude?: number | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
label: z.ZodOptional<z.ZodString>;
|
|
31
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
32
|
+
color: z.ZodOptional<z.ZodString>;
|
|
33
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
id: string;
|
|
38
|
+
position: {
|
|
39
|
+
longitude: number;
|
|
40
|
+
latitude: number;
|
|
41
|
+
altitude?: number | undefined;
|
|
42
|
+
};
|
|
43
|
+
scale?: number | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
properties?: Record<string, any> | undefined;
|
|
46
|
+
label?: string | undefined;
|
|
47
|
+
icon?: string | undefined;
|
|
48
|
+
color?: string | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
id: string;
|
|
51
|
+
position: {
|
|
52
|
+
longitude: number;
|
|
53
|
+
latitude: number;
|
|
54
|
+
altitude?: number | undefined;
|
|
55
|
+
};
|
|
56
|
+
scale?: number | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
properties?: Record<string, any> | undefined;
|
|
59
|
+
label?: string | undefined;
|
|
60
|
+
icon?: string | undefined;
|
|
61
|
+
color?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const CesiumBillboardSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
position: z.ZodObject<{
|
|
66
|
+
longitude: z.ZodNumber;
|
|
67
|
+
latitude: z.ZodNumber;
|
|
68
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
longitude: number;
|
|
71
|
+
latitude: number;
|
|
72
|
+
altitude?: number | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
longitude: number;
|
|
75
|
+
latitude: number;
|
|
76
|
+
altitude?: number | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
label: z.ZodOptional<z.ZodString>;
|
|
79
|
+
image: z.ZodOptional<z.ZodString>;
|
|
80
|
+
color: z.ZodOptional<z.ZodString>;
|
|
81
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
heightPx: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
id: string;
|
|
87
|
+
position: {
|
|
88
|
+
longitude: number;
|
|
89
|
+
latitude: number;
|
|
90
|
+
altitude?: number | undefined;
|
|
91
|
+
};
|
|
92
|
+
scale?: number | undefined;
|
|
93
|
+
properties?: Record<string, any> | undefined;
|
|
94
|
+
label?: string | undefined;
|
|
95
|
+
color?: string | undefined;
|
|
96
|
+
image?: string | undefined;
|
|
97
|
+
width?: number | undefined;
|
|
98
|
+
heightPx?: number | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
id: string;
|
|
101
|
+
position: {
|
|
102
|
+
longitude: number;
|
|
103
|
+
latitude: number;
|
|
104
|
+
altitude?: number | undefined;
|
|
105
|
+
};
|
|
106
|
+
scale?: number | undefined;
|
|
107
|
+
properties?: Record<string, any> | undefined;
|
|
108
|
+
label?: string | undefined;
|
|
109
|
+
color?: string | undefined;
|
|
110
|
+
image?: string | undefined;
|
|
111
|
+
width?: number | undefined;
|
|
112
|
+
heightPx?: number | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const CesiumCameraSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
position: z.ZodObject<{
|
|
117
|
+
longitude: z.ZodNumber;
|
|
118
|
+
latitude: z.ZodNumber;
|
|
119
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
longitude: number;
|
|
122
|
+
latitude: number;
|
|
123
|
+
altitude?: number | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
longitude: number;
|
|
126
|
+
latitude: number;
|
|
127
|
+
altitude?: number | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
name: z.ZodOptional<z.ZodString>;
|
|
130
|
+
label: z.ZodOptional<z.ZodString>;
|
|
131
|
+
title: z.ZodOptional<z.ZodString>;
|
|
132
|
+
image: z.ZodOptional<z.ZodString>;
|
|
133
|
+
panelImage: z.ZodOptional<z.ZodString>;
|
|
134
|
+
panelDescription: z.ZodOptional<z.ZodString>;
|
|
135
|
+
panelWidth: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
panelHeight: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
panelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
138
|
+
panelBorderColor: z.ZodOptional<z.ZodString>;
|
|
139
|
+
panelTitleColor: z.ZodOptional<z.ZodString>;
|
|
140
|
+
panelTextColor: z.ZodOptional<z.ZodString>;
|
|
141
|
+
color: z.ZodOptional<z.ZodString>;
|
|
142
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
heightPx: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
heightReference: z.ZodOptional<z.ZodEnum<["NONE", "CLAMP_TO_GROUND", "RELATIVE_TO_GROUND"]>>;
|
|
146
|
+
showPanel: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
id: string;
|
|
150
|
+
position: {
|
|
151
|
+
longitude: number;
|
|
152
|
+
latitude: number;
|
|
153
|
+
altitude?: number | undefined;
|
|
154
|
+
};
|
|
155
|
+
scale?: number | undefined;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
properties?: Record<string, any> | undefined;
|
|
158
|
+
label?: string | undefined;
|
|
159
|
+
title?: string | undefined;
|
|
160
|
+
color?: string | undefined;
|
|
161
|
+
image?: string | undefined;
|
|
162
|
+
width?: number | undefined;
|
|
163
|
+
heightPx?: number | undefined;
|
|
164
|
+
panelImage?: string | undefined;
|
|
165
|
+
panelDescription?: string | undefined;
|
|
166
|
+
panelWidth?: number | undefined;
|
|
167
|
+
panelHeight?: number | undefined;
|
|
168
|
+
panelBackgroundColor?: string | undefined;
|
|
169
|
+
panelBorderColor?: string | undefined;
|
|
170
|
+
panelTitleColor?: string | undefined;
|
|
171
|
+
panelTextColor?: string | undefined;
|
|
172
|
+
heightReference?: "NONE" | "CLAMP_TO_GROUND" | "RELATIVE_TO_GROUND" | undefined;
|
|
173
|
+
showPanel?: boolean | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
id: string;
|
|
176
|
+
position: {
|
|
177
|
+
longitude: number;
|
|
178
|
+
latitude: number;
|
|
179
|
+
altitude?: number | undefined;
|
|
180
|
+
};
|
|
181
|
+
scale?: number | undefined;
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
properties?: Record<string, any> | undefined;
|
|
184
|
+
label?: string | undefined;
|
|
185
|
+
title?: string | undefined;
|
|
186
|
+
color?: string | undefined;
|
|
187
|
+
image?: string | undefined;
|
|
188
|
+
width?: number | undefined;
|
|
189
|
+
heightPx?: number | undefined;
|
|
190
|
+
panelImage?: string | undefined;
|
|
191
|
+
panelDescription?: string | undefined;
|
|
192
|
+
panelWidth?: number | undefined;
|
|
193
|
+
panelHeight?: number | undefined;
|
|
194
|
+
panelBackgroundColor?: string | undefined;
|
|
195
|
+
panelBorderColor?: string | undefined;
|
|
196
|
+
panelTitleColor?: string | undefined;
|
|
197
|
+
panelTextColor?: string | undefined;
|
|
198
|
+
heightReference?: "NONE" | "CLAMP_TO_GROUND" | "RELATIVE_TO_GROUND" | undefined;
|
|
199
|
+
showPanel?: boolean | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
export declare const CesiumTrajectorySchema: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
points: z.ZodArray<z.ZodObject<{
|
|
204
|
+
longitude: z.ZodNumber;
|
|
205
|
+
latitude: z.ZodNumber;
|
|
206
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
longitude: number;
|
|
209
|
+
latitude: number;
|
|
210
|
+
altitude?: number | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
longitude: number;
|
|
213
|
+
latitude: number;
|
|
214
|
+
altitude?: number | undefined;
|
|
215
|
+
}>, "many">;
|
|
216
|
+
color: z.ZodOptional<z.ZodString>;
|
|
217
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
label: z.ZodOptional<z.ZodString>;
|
|
219
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
id: string;
|
|
222
|
+
points: {
|
|
223
|
+
longitude: number;
|
|
224
|
+
latitude: number;
|
|
225
|
+
altitude?: number | undefined;
|
|
226
|
+
}[];
|
|
227
|
+
properties?: Record<string, any> | undefined;
|
|
228
|
+
label?: string | undefined;
|
|
229
|
+
color?: string | undefined;
|
|
230
|
+
width?: number | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
id: string;
|
|
233
|
+
points: {
|
|
234
|
+
longitude: number;
|
|
235
|
+
latitude: number;
|
|
236
|
+
altitude?: number | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
properties?: Record<string, any> | undefined;
|
|
239
|
+
label?: string | undefined;
|
|
240
|
+
color?: string | undefined;
|
|
241
|
+
width?: number | undefined;
|
|
242
|
+
}>;
|
|
243
|
+
export declare const CesiumRegionSchema: z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
points: z.ZodArray<z.ZodObject<{
|
|
246
|
+
longitude: z.ZodNumber;
|
|
247
|
+
latitude: z.ZodNumber;
|
|
248
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
longitude: number;
|
|
251
|
+
latitude: number;
|
|
252
|
+
altitude?: number | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
longitude: number;
|
|
255
|
+
latitude: number;
|
|
256
|
+
altitude?: number | undefined;
|
|
257
|
+
}>, "many">;
|
|
258
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
259
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
260
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
label: z.ZodOptional<z.ZodString>;
|
|
262
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
id: string;
|
|
265
|
+
points: {
|
|
266
|
+
longitude: number;
|
|
267
|
+
latitude: number;
|
|
268
|
+
altitude?: number | undefined;
|
|
269
|
+
}[];
|
|
270
|
+
properties?: Record<string, any> | undefined;
|
|
271
|
+
label?: string | undefined;
|
|
272
|
+
fillColor?: string | undefined;
|
|
273
|
+
strokeColor?: string | undefined;
|
|
274
|
+
strokeWidth?: number | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
id: string;
|
|
277
|
+
points: {
|
|
278
|
+
longitude: number;
|
|
279
|
+
latitude: number;
|
|
280
|
+
altitude?: number | undefined;
|
|
281
|
+
}[];
|
|
282
|
+
properties?: Record<string, any> | undefined;
|
|
283
|
+
label?: string | undefined;
|
|
284
|
+
fillColor?: string | undefined;
|
|
285
|
+
strokeColor?: string | undefined;
|
|
286
|
+
strokeWidth?: number | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
export declare const CesiumViewSchema: z.ZodObject<{
|
|
289
|
+
position: z.ZodObject<{
|
|
290
|
+
longitude: z.ZodNumber;
|
|
291
|
+
latitude: z.ZodNumber;
|
|
292
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
longitude: number;
|
|
295
|
+
latitude: number;
|
|
296
|
+
altitude?: number | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
longitude: number;
|
|
299
|
+
latitude: number;
|
|
300
|
+
altitude?: number | undefined;
|
|
301
|
+
}>;
|
|
302
|
+
heading: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
pitch: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
roll: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
position: {
|
|
308
|
+
longitude: number;
|
|
309
|
+
latitude: number;
|
|
310
|
+
altitude?: number | undefined;
|
|
311
|
+
};
|
|
312
|
+
heading?: number | undefined;
|
|
313
|
+
pitch?: number | undefined;
|
|
314
|
+
roll?: number | undefined;
|
|
315
|
+
zoom?: number | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
position: {
|
|
318
|
+
longitude: number;
|
|
319
|
+
latitude: number;
|
|
320
|
+
altitude?: number | undefined;
|
|
321
|
+
};
|
|
322
|
+
heading?: number | undefined;
|
|
323
|
+
pitch?: number | undefined;
|
|
324
|
+
roll?: number | undefined;
|
|
325
|
+
zoom?: number | undefined;
|
|
326
|
+
}>;
|
|
327
|
+
export declare const CesiumAnimationSchema: z.ZodObject<{
|
|
328
|
+
type: z.ZodEnum<["fly_to", "zoom_to", "rotate"]>;
|
|
329
|
+
target: z.ZodUnion<[z.ZodObject<{
|
|
330
|
+
longitude: z.ZodNumber;
|
|
331
|
+
latitude: z.ZodNumber;
|
|
332
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
longitude: number;
|
|
335
|
+
latitude: number;
|
|
336
|
+
altitude?: number | undefined;
|
|
337
|
+
}, {
|
|
338
|
+
longitude: number;
|
|
339
|
+
latitude: number;
|
|
340
|
+
altitude?: number | undefined;
|
|
341
|
+
}>, z.ZodObject<{
|
|
342
|
+
position: z.ZodObject<{
|
|
343
|
+
longitude: z.ZodNumber;
|
|
344
|
+
latitude: z.ZodNumber;
|
|
345
|
+
altitude: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
longitude: number;
|
|
348
|
+
latitude: number;
|
|
349
|
+
altitude?: number | undefined;
|
|
350
|
+
}, {
|
|
351
|
+
longitude: number;
|
|
352
|
+
latitude: number;
|
|
353
|
+
altitude?: number | undefined;
|
|
354
|
+
}>;
|
|
355
|
+
heading: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
pitch: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
roll: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
position: {
|
|
361
|
+
longitude: number;
|
|
362
|
+
latitude: number;
|
|
363
|
+
altitude?: number | undefined;
|
|
364
|
+
};
|
|
365
|
+
heading?: number | undefined;
|
|
366
|
+
pitch?: number | undefined;
|
|
367
|
+
roll?: number | undefined;
|
|
368
|
+
zoom?: number | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
position: {
|
|
371
|
+
longitude: number;
|
|
372
|
+
latitude: number;
|
|
373
|
+
altitude?: number | undefined;
|
|
374
|
+
};
|
|
375
|
+
heading?: number | undefined;
|
|
376
|
+
pitch?: number | undefined;
|
|
377
|
+
roll?: number | undefined;
|
|
378
|
+
zoom?: number | undefined;
|
|
379
|
+
}>]>;
|
|
380
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
easing: z.ZodOptional<z.ZodEnum<["linear", "ease_in", "ease_out", "ease_in_out"]>>;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
type: "fly_to" | "zoom_to" | "rotate";
|
|
384
|
+
target: {
|
|
385
|
+
longitude: number;
|
|
386
|
+
latitude: number;
|
|
387
|
+
altitude?: number | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
position: {
|
|
390
|
+
longitude: number;
|
|
391
|
+
latitude: number;
|
|
392
|
+
altitude?: number | undefined;
|
|
393
|
+
};
|
|
394
|
+
heading?: number | undefined;
|
|
395
|
+
pitch?: number | undefined;
|
|
396
|
+
roll?: number | undefined;
|
|
397
|
+
zoom?: number | undefined;
|
|
398
|
+
};
|
|
399
|
+
duration?: number | undefined;
|
|
400
|
+
easing?: "linear" | "ease_in" | "ease_out" | "ease_in_out" | undefined;
|
|
401
|
+
}, {
|
|
402
|
+
type: "fly_to" | "zoom_to" | "rotate";
|
|
403
|
+
target: {
|
|
404
|
+
longitude: number;
|
|
405
|
+
latitude: number;
|
|
406
|
+
altitude?: number | undefined;
|
|
407
|
+
} | {
|
|
408
|
+
position: {
|
|
409
|
+
longitude: number;
|
|
410
|
+
latitude: number;
|
|
411
|
+
altitude?: number | undefined;
|
|
412
|
+
};
|
|
413
|
+
heading?: number | undefined;
|
|
414
|
+
pitch?: number | undefined;
|
|
415
|
+
roll?: number | undefined;
|
|
416
|
+
zoom?: number | undefined;
|
|
417
|
+
};
|
|
418
|
+
duration?: number | undefined;
|
|
419
|
+
easing?: "linear" | "ease_in" | "ease_out" | "ease_in_out" | undefined;
|
|
420
|
+
}>;
|
|
421
|
+
export declare const CesiumLayerSchema: z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
type: z.ZodEnum<["imagery", "terrain", "3dtiles", "vector"]>;
|
|
424
|
+
url: z.ZodString;
|
|
425
|
+
name: z.ZodOptional<z.ZodString>;
|
|
426
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
427
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
url: string;
|
|
430
|
+
id: string;
|
|
431
|
+
type: "imagery" | "terrain" | "3dtiles" | "vector";
|
|
432
|
+
name?: string | undefined;
|
|
433
|
+
opacity?: number | undefined;
|
|
434
|
+
show?: boolean | undefined;
|
|
435
|
+
}, {
|
|
436
|
+
url: string;
|
|
437
|
+
id: string;
|
|
438
|
+
type: "imagery" | "terrain" | "3dtiles" | "vector";
|
|
439
|
+
name?: string | undefined;
|
|
440
|
+
opacity?: number | undefined;
|
|
441
|
+
show?: boolean | undefined;
|
|
442
|
+
}>;
|
|
443
|
+
export declare const CesiumCommandSchema: z.ZodObject<{
|
|
444
|
+
type: z.ZodEnum<["add_marker", "add_billboard", "add_camera", "batch_add_entities", "remove_marker", "update_marker", "update_camera", "draw_trajectory", "remove_trajectory", "draw_region", "remove_region", "highlight_region", "set_view", "fly_to", "set_basemap", "clear_all", "add_layer", "remove_layer", "animate", "load_3dtiles", "load_3dtiles_city", "add_model", "remove_model", "replace_city_model_in_polygon", "lac_compute_polyline_3d", "lac_render_grid_cells", "lac_render_grid_tiles", "lac_render_route_polyline", "lac_render_route_protection_zone", "lac_render_start_end_point", "lac_set_layer_visible", "lac_remove_start_end_point", "lac_remove_layer"]>;
|
|
445
|
+
id: z.ZodOptional<z.ZodString>;
|
|
446
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
447
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
type: "add_marker" | "add_billboard" | "add_camera" | "batch_add_entities" | "remove_marker" | "update_marker" | "update_camera" | "draw_trajectory" | "remove_trajectory" | "draw_region" | "remove_region" | "highlight_region" | "set_view" | "fly_to" | "set_basemap" | "clear_all" | "add_layer" | "remove_layer" | "animate" | "load_3dtiles" | "load_3dtiles_city" | "add_model" | "remove_model" | "replace_city_model_in_polygon" | "lac_compute_polyline_3d" | "lac_render_grid_cells" | "lac_render_grid_tiles" | "lac_render_route_polyline" | "lac_render_route_protection_zone" | "lac_render_start_end_point" | "lac_set_layer_visible" | "lac_remove_start_end_point" | "lac_remove_layer";
|
|
450
|
+
parameters: Record<string, any>;
|
|
451
|
+
id?: string | undefined;
|
|
452
|
+
timestamp?: string | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
type: "add_marker" | "add_billboard" | "add_camera" | "batch_add_entities" | "remove_marker" | "update_marker" | "update_camera" | "draw_trajectory" | "remove_trajectory" | "draw_region" | "remove_region" | "highlight_region" | "set_view" | "fly_to" | "set_basemap" | "clear_all" | "add_layer" | "remove_layer" | "animate" | "load_3dtiles" | "load_3dtiles_city" | "add_model" | "remove_model" | "replace_city_model_in_polygon" | "lac_compute_polyline_3d" | "lac_render_grid_cells" | "lac_render_grid_tiles" | "lac_render_route_polyline" | "lac_render_route_protection_zone" | "lac_render_start_end_point" | "lac_set_layer_visible" | "lac_remove_start_end_point" | "lac_remove_layer";
|
|
455
|
+
parameters: Record<string, any>;
|
|
456
|
+
id?: string | undefined;
|
|
457
|
+
timestamp?: string | undefined;
|
|
458
|
+
}>;
|
|
459
|
+
export declare const CesiumCommandResultSchema: z.ZodObject<{
|
|
460
|
+
success: z.ZodBoolean;
|
|
461
|
+
commandId: z.ZodString;
|
|
462
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
463
|
+
error: z.ZodOptional<z.ZodString>;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
success: boolean;
|
|
466
|
+
commandId: string;
|
|
467
|
+
error?: string | undefined;
|
|
468
|
+
data?: any;
|
|
469
|
+
}, {
|
|
470
|
+
success: boolean;
|
|
471
|
+
commandId: string;
|
|
472
|
+
error?: string | undefined;
|
|
473
|
+
data?: any;
|
|
474
|
+
}>;
|
|
475
|
+
export declare const CesiumModelSchema: z.ZodObject<{
|
|
476
|
+
longitude: z.ZodNumber;
|
|
477
|
+
latitude: z.ZodNumber;
|
|
478
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
url: z.ZodString;
|
|
480
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
heading: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
pitch: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
roll: z.ZodOptional<z.ZodNumber>;
|
|
484
|
+
label: z.ZodOptional<z.ZodString>;
|
|
485
|
+
minimumPixelSize: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
heightReference: z.ZodOptional<z.ZodEnum<["NONE", "CLAMP_TO_GROUND", "RELATIVE_TO_GROUND"]>>;
|
|
487
|
+
silhouetteColor: z.ZodOptional<z.ZodString>;
|
|
488
|
+
silhouetteSize: z.ZodOptional<z.ZodNumber>;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
url: string;
|
|
491
|
+
longitude: number;
|
|
492
|
+
latitude: number;
|
|
493
|
+
scale?: number | undefined;
|
|
494
|
+
label?: string | undefined;
|
|
495
|
+
heightReference?: "NONE" | "CLAMP_TO_GROUND" | "RELATIVE_TO_GROUND" | undefined;
|
|
496
|
+
heading?: number | undefined;
|
|
497
|
+
pitch?: number | undefined;
|
|
498
|
+
roll?: number | undefined;
|
|
499
|
+
height?: number | undefined;
|
|
500
|
+
minimumPixelSize?: number | undefined;
|
|
501
|
+
silhouetteColor?: string | undefined;
|
|
502
|
+
silhouetteSize?: number | undefined;
|
|
503
|
+
}, {
|
|
504
|
+
url: string;
|
|
505
|
+
longitude: number;
|
|
506
|
+
latitude: number;
|
|
507
|
+
scale?: number | undefined;
|
|
508
|
+
label?: string | undefined;
|
|
509
|
+
heightReference?: "NONE" | "CLAMP_TO_GROUND" | "RELATIVE_TO_GROUND" | undefined;
|
|
510
|
+
heading?: number | undefined;
|
|
511
|
+
pitch?: number | undefined;
|
|
512
|
+
roll?: number | undefined;
|
|
513
|
+
height?: number | undefined;
|
|
514
|
+
minimumPixelSize?: number | undefined;
|
|
515
|
+
silhouetteColor?: string | undefined;
|
|
516
|
+
silhouetteSize?: number | undefined;
|
|
517
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as o}from"zod";export const CesiumPositionSchema=o.object({longitude:o.number(),latitude:o.number(),altitude:o.number().optional()});export const CesiumMarkerSchema=o.object({id:o.string(),position:CesiumPositionSchema,label:o.string().optional(),icon:o.string().optional(),color:o.string().optional(),scale:o.number().optional(),description:o.string().optional(),properties:o.record(o.any()).optional()});export const CesiumBillboardSchema=o.object({id:o.string(),position:CesiumPositionSchema,label:o.string().optional(),image:o.string().optional(),color:o.string().optional(),scale:o.number().optional(),width:o.number().optional(),heightPx:o.number().optional(),properties:o.record(o.any()).optional()});export const CesiumCameraSchema=o.object({id:o.string(),position:CesiumPositionSchema,name:o.string().optional(),label:o.string().optional(),title:o.string().optional(),image:o.string().optional(),panelImage:o.string().optional(),panelDescription:o.string().optional(),panelWidth:o.number().optional(),panelHeight:o.number().optional(),panelBackgroundColor:o.string().optional(),panelBorderColor:o.string().optional(),panelTitleColor:o.string().optional(),panelTextColor:o.string().optional(),color:o.string().optional(),scale:o.number().optional(),width:o.number().optional(),heightPx:o.number().optional(),heightReference:o.enum(["NONE","CLAMP_TO_GROUND","RELATIVE_TO_GROUND"]).optional(),showPanel:o.boolean().optional(),properties:o.record(o.any()).optional()});export const CesiumTrajectorySchema=o.object({id:o.string(),points:o.array(CesiumPositionSchema),color:o.string().optional(),width:o.number().optional(),label:o.string().optional(),properties:o.record(o.any()).optional()});export const CesiumRegionSchema=o.object({id:o.string(),points:o.array(CesiumPositionSchema),fillColor:o.string().optional(),strokeColor:o.string().optional(),strokeWidth:o.number().optional(),label:o.string().optional(),properties:o.record(o.any()).optional()});export const CesiumViewSchema=o.object({position:CesiumPositionSchema,heading:o.number().optional(),pitch:o.number().optional(),roll:o.number().optional(),zoom:o.number().optional()});export const CesiumAnimationSchema=o.object({type:o.enum(["fly_to","zoom_to","rotate"]),target:o.union([CesiumPositionSchema,CesiumViewSchema]),duration:o.number().optional(),easing:o.enum(["linear","ease_in","ease_out","ease_in_out"]).optional()});export const CesiumLayerSchema=o.object({id:o.string(),type:o.enum(["imagery","terrain","3dtiles","vector"]),url:o.string(),name:o.string().optional(),opacity:o.number().optional(),show:o.boolean().optional()});export const CesiumCommandSchema=o.object({type:o.enum(["add_marker","add_billboard","add_camera","batch_add_entities","remove_marker","update_marker","update_camera","draw_trajectory","remove_trajectory","draw_region","remove_region","highlight_region","set_view","fly_to","set_basemap","clear_all","add_layer","remove_layer","animate","load_3dtiles","load_3dtiles_city","add_model","remove_model","replace_city_model_in_polygon","lac_compute_polyline_3d","lac_render_grid_cells","lac_render_grid_tiles","lac_render_route_polyline","lac_render_route_protection_zone","lac_render_start_end_point","lac_set_layer_visible","lac_remove_start_end_point","lac_remove_layer"]),id:o.string().optional(),timestamp:o.string().optional(),parameters:o.record(o.any())});export const CesiumCommandResultSchema=o.object({success:o.boolean(),commandId:o.string(),data:o.any().optional(),error:o.string().optional()});export const CesiumModelSchema=o.object({longitude:o.number(),latitude:o.number(),height:o.number().optional(),url:o.string(),scale:o.number().optional(),heading:o.number().optional(),pitch:o.number().optional(),roll:o.number().optional(),label:o.string().optional(),minimumPixelSize:o.number().optional(),heightReference:o.enum(["NONE","CLAMP_TO_GROUND","RELATIVE_TO_GROUND"]).optional(),silhouetteColor:o.string().optional(),silhouetteSize:o.number().optional()});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './agent.schema.js';
|
|
2
|
+
export * from './skill.schema.js';
|
|
3
|
+
export * from './mcp.schema.js';
|
|
4
|
+
export * from './wiki.schema.js';
|
|
5
|
+
export * from './websocket.schema.js';
|
|
6
|
+
export * from './cesium.schema.js';
|
|
7
|
+
export * from './store.schema.js';
|
|
8
|
+
export * from './service-config.schema.js';
|
|
9
|
+
export * from './user.schema.js';
|
|
10
|
+
export * from './agent-system.schema.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./agent.schema.js";export*from"./skill.schema.js";export*from"./mcp.schema.js";export*from"./wiki.schema.js";export*from"./websocket.schema.js";export*from"./cesium.schema.js";export*from"./store.schema.js";export*from"./service-config.schema.js";export*from"./user.schema.js";export*from"./agent-system.schema.js";
|