@celestia-island/plana-types 0.1.0 → 0.1.2

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.
Files changed (85) hide show
  1. package/LICENSE +222 -0
  2. package/bindings/engine.ts +13 -1
  3. package/bindings/enums.ts +0 -2
  4. package/bindings/httpTypes.ts +0 -58
  5. package/bindings/mdd.ts +444 -0
  6. package/bindings/protocol-core-httpTypes.ts +69 -0
  7. package/bindings/{mcp → tools}/philia.ts +4 -4
  8. package/bindings/ws/agentLifecycle.ts +17 -4
  9. package/bindings/ws/core.ts +3 -3
  10. package/bindings/ws/handshake.ts +0 -4
  11. package/bindings/ws/layer2.ts +6 -6
  12. package/bindings/ws/realtime.ts +122 -0
  13. package/bindings/ws/tasks.ts +6 -1
  14. package/index.ts +74 -0
  15. package/package.json +13 -3
  16. package/Cargo.toml +0 -38
  17. package/bindings/FileAnchor.ts +0 -3
  18. package/bindings/index.ts +0 -47
  19. package/bindings/mcp/index.ts +0 -13
  20. package/bindings/package.json +0 -16
  21. package/bindings/region.ts +0 -3
  22. package/bindings/ws/baseMessages.ts +0 -7
  23. package/examples/schema_dump.rs +0 -51
  24. package/pnpm-workspace.yaml +0 -2
  25. package/src/engine.rs +0 -602
  26. package/src/enums.rs +0 -334
  27. package/src/external_mcp.rs +0 -132
  28. package/src/http.rs +0 -1077
  29. package/src/identity.rs +0 -160
  30. package/src/lib.rs +0 -1215
  31. package/src/malkuth.rs +0 -145
  32. package/src/mcp/aporia.rs +0 -272
  33. package/src/mcp/eleos.rs +0 -210
  34. package/src/mcp/epieikeia.rs +0 -194
  35. package/src/mcp/haplotes.rs +0 -310
  36. package/src/mcp/hubris.rs +0 -377
  37. package/src/mcp/kalos.rs +0 -251
  38. package/src/mcp/mod.rs +0 -23
  39. package/src/mcp/neikos.rs +0 -533
  40. package/src/mcp/orexis.rs +0 -493
  41. package/src/mcp/philia.rs +0 -267
  42. package/src/mcp/polemos.rs +0 -241
  43. package/src/mcp/skemma.rs +0 -442
  44. package/src/mcp/skopeo.rs +0 -282
  45. package/src/mcp/web_automation.rs +0 -122
  46. package/src/model.rs +0 -421
  47. package/src/protocol/base_messages.rs +0 -125
  48. package/src/protocol/handshake.rs +0 -364
  49. package/src/protocol/jsonrpc.rs +0 -888
  50. package/src/protocol/mod.rs +0 -10
  51. package/src/rbac.rs +0 -786
  52. package/src/region.rs +0 -362
  53. package/src/tracing_helpers.rs +0 -9
  54. package/src/ws/agent/agent_lifecycle.rs +0 -221
  55. package/src/ws/agent/layer2.rs +0 -126
  56. package/src/ws/agent/mod.rs +0 -9
  57. package/src/ws/agent/state_sync.rs +0 -111
  58. package/src/ws/agent/tasks.rs +0 -43
  59. package/src/ws/agent/yolo.rs +0 -161
  60. package/src/ws/mod.rs +0 -10
  61. package/src/ws/services/auth.rs +0 -99
  62. package/src/ws/services/industrial.rs +0 -647
  63. package/src/ws/services/knowledge_base.rs +0 -59
  64. package/src/ws/services/llm_provider.rs +0 -371
  65. package/src/ws/services/mod.rs +0 -7
  66. package/src/ws/ui/bridge_network.rs +0 -96
  67. package/src/ws/ui/file_browsing.rs +0 -88
  68. package/src/ws/ui/logs.rs +0 -55
  69. package/src/ws/ui/mod.rs +0 -11
  70. package/src/ws/ui/noa.rs +0 -105
  71. package/src/ws/ui/system_ui.rs +0 -27
  72. package/src/ws/ui/views.rs +0 -159
  73. package/src/ws/ui/workspace.rs +0 -73
  74. /package/bindings/{mcp → tools}/aporia.ts +0 -0
  75. /package/bindings/{mcp → tools}/eleos.ts +0 -0
  76. /package/bindings/{mcp → tools}/epieikeia.ts +0 -0
  77. /package/bindings/{mcp → tools}/haplotes.ts +0 -0
  78. /package/bindings/{mcp → tools}/hubris.ts +0 -0
  79. /package/bindings/{mcp → tools}/kalos.ts +0 -0
  80. /package/bindings/{mcp → tools}/neikos.ts +0 -0
  81. /package/bindings/{mcp → tools}/orexis.ts +0 -0
  82. /package/bindings/{mcp → tools}/polemos.ts +0 -0
  83. /package/bindings/{mcp → tools}/skemma.ts +0 -0
  84. /package/bindings/{mcp → tools}/skopeo.ts +0 -0
  85. /package/bindings/{mcp/webAutomation.ts → tools/web_automation.ts} +0 -0
@@ -0,0 +1,444 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Named parameter schema for one API endpoint.
5
+ */
6
+ export type MddApiSchema = {
7
+ /**
8
+ * Endpoint / schema name, e.g. `"submit"`.
9
+ */
10
+ name: string,
11
+ /**
12
+ * Accepted parameters.
13
+ */
14
+ params: Array<MddParam>, };
15
+
16
+ /**
17
+ * One node of the model component DAG.
18
+ */
19
+ export type MddComponent = {
20
+ /**
21
+ * Unique component id within the descriptor.
22
+ */
23
+ id: string,
24
+ /**
25
+ * What role the component plays.
26
+ */
27
+ kind: MddComponentKind,
28
+ /**
29
+ * Architecture hint, e.g. `"transformer-encoder"`.
30
+ */
31
+ arch?: string,
32
+ /**
33
+ * DAG edges: ids of components this one depends on (upstream).
34
+ */
35
+ dependencies: Array<string>,
36
+ /**
37
+ * Input contracts accepted by this component.
38
+ */
39
+ inputs: Array<MddIoContract>,
40
+ /**
41
+ * Output contracts produced by this component.
42
+ */
43
+ outputs: Array<MddIoContract>,
44
+ /**
45
+ * Runtimes available for this component (best-effort ordering).
46
+ */
47
+ runtimes: Array<MddRuntime>, };
48
+
49
+ /**
50
+ * The role a component plays inside a generative pipeline.
51
+ */
52
+ export type MddComponentKind = "encoder" | "dit" | "vae" | "decoder" | "tokenizer" | "other";
53
+
54
+ /**
55
+ * Deployment plan: pipeline stages plus the exposed inference API.
56
+ */
57
+ export type MddDeploy = {
58
+ /**
59
+ * Ordered pipeline stages.
60
+ */
61
+ pipeline: Array<MddPipelineStage>,
62
+ /**
63
+ * Inference API wiring.
64
+ */
65
+ api: MddDeployApi, };
66
+
67
+ /**
68
+ * Inference API exposed by the deployment.
69
+ */
70
+ export type MddDeployApi = {
71
+ /**
72
+ * Task the API implements.
73
+ */
74
+ task: MddTaskKind,
75
+ /**
76
+ * Submit request schema.
77
+ */
78
+ submit: MddApiSchema,
79
+ /**
80
+ * Result response schema.
81
+ */
82
+ result: MddApiSchema, };
83
+
84
+ /**
85
+ * One deployment tier — a hardware / placement strategy for the whole model.
86
+ */
87
+ export type MddDeployTier = {
88
+ /**
89
+ * Tier id, e.g. `"cloud-api"`, `"48gb-native"`.
90
+ */
91
+ id: string,
92
+ /**
93
+ * Engines used by this tier.
94
+ */
95
+ engines: Array<MddEngine>,
96
+ /**
97
+ * Quantization ids this tier is known to fit.
98
+ */
99
+ quantizations: Array<string>,
100
+ /**
101
+ * Where the tier runs.
102
+ */
103
+ placement: MddPlacement,
104
+ /**
105
+ * Minimum total VRAM in GB.
106
+ */
107
+ min_vram_gb?: number,
108
+ /**
109
+ * Minimum GPU count.
110
+ */
111
+ min_gpus?: number,
112
+ /**
113
+ * Free-form notes.
114
+ */
115
+ notes?: string, };
116
+
117
+ /**
118
+ * Top-level model deployment descriptor — the root of an MDD v1 document.
119
+ */
120
+ export type MddDescriptor = {
121
+ /**
122
+ * Schema version of this descriptor (currently `1`).
123
+ */
124
+ schema_version: number,
125
+ /**
126
+ * Model identity and architecture summary.
127
+ */
128
+ model: MddModel,
129
+ /**
130
+ * Components that make up the model, as a DAG (see `dependencies`).
131
+ */
132
+ components: Array<MddComponent>,
133
+ /**
134
+ * Inference pipeline and API wiring.
135
+ */
136
+ deploy: MddDeploy,
137
+ /**
138
+ * Scale / sizing estimation for capacity planning.
139
+ */
140
+ scale: MddScale, };
141
+
142
+ /**
143
+ * Data type of an IO contract.
144
+ */
145
+ export type MddDtype = "f32" | "f16" | "bf16" | "i8" | "u8" | "token_ids" | "text" | "other";
146
+
147
+ /**
148
+ * Serving engine for a runtime.
149
+ */
150
+ export type MddEngine = "llama_cpp" | "vllm" | "sglang" | "candle" | "ollama" | "cloud" | "external_api" | "native";
151
+
152
+ /**
153
+ * Entry kind for a runtime.
154
+ */
155
+ export type MddEntryKind = "file" | "url" | "registry" | "gguf";
156
+
157
+ /**
158
+ * Minimum hardware requirement for a local runtime.
159
+ */
160
+ export type MddHardwareRequirement = {
161
+ /**
162
+ * Minimum VRAM in MB.
163
+ */
164
+ min_vram_mb?: bigint,
165
+ /**
166
+ * Minimum system RAM in MB.
167
+ */
168
+ min_ram_mb?: bigint,
169
+ /**
170
+ * Minimum GPU count.
171
+ */
172
+ min_gpus?: number,
173
+ /**
174
+ * CUDA compute capability, e.g. `"8.0"`.
175
+ */
176
+ compute_capability?: string, };
177
+
178
+ /**
179
+ * An input or output contract of a component.
180
+ */
181
+ export type MddIoContract = {
182
+ /**
183
+ * Contract name, e.g. `"prompt"`, `"latents"`.
184
+ */
185
+ name: string,
186
+ /**
187
+ * Data type of the tensor / value.
188
+ */
189
+ dtype: MddDtype,
190
+ /**
191
+ * Optional shape description, e.g. `"[1, 4096]"`, `"token_ids"`.
192
+ */
193
+ shape?: string, };
194
+
195
+ /**
196
+ * Model identity block of an MDD descriptor.
197
+ */
198
+ export type MddModel = {
199
+ /**
200
+ * Unique model id, e.g. `"demo-h3-mini"`.
201
+ */
202
+ id: string,
203
+ /**
204
+ * Human-readable display name.
205
+ */
206
+ name: string,
207
+ /**
208
+ * Model family / lineage, e.g. `"demo-dit"`.
209
+ */
210
+ family?: string,
211
+ /**
212
+ * Architecture identifier, e.g. `"dit"`, `"llama"`.
213
+ */
214
+ architecture: string,
215
+ /**
216
+ * Free-form description.
217
+ */
218
+ description?: string, };
219
+
220
+ /**
221
+ * A single parameter of an API schema.
222
+ */
223
+ export type MddParam = {
224
+ /**
225
+ * Parameter name.
226
+ */
227
+ name: string,
228
+ /**
229
+ * Type descriptor, e.g. `"string"`, `"integer"`, `"float"`.
230
+ */
231
+ dtype: string,
232
+ /**
233
+ * Whether the parameter must be supplied.
234
+ */
235
+ required: boolean,
236
+ /**
237
+ * Default value when omitted.
238
+ */
239
+ default?: unknown,
240
+ /**
241
+ * Free-form description.
242
+ */
243
+ description?: string, };
244
+
245
+ /**
246
+ * When a pipeline stage runs.
247
+ */
248
+ export type MddPipelinePhase = "pre" | "iterative" | "post";
249
+
250
+ /**
251
+ * One stage of the inference pipeline.
252
+ */
253
+ export type MddPipelineStage = {
254
+ /**
255
+ * Unique stage id within the pipeline.
256
+ */
257
+ id: string,
258
+ /**
259
+ * When the stage runs.
260
+ */
261
+ phase: MddPipelinePhase,
262
+ /**
263
+ * Cache key template (deterministic stages only).
264
+ */
265
+ cache_key?: string,
266
+ /**
267
+ * Free-form description.
268
+ */
269
+ description?: string, };
270
+
271
+ /**
272
+ * Where a deploy tier runs.
273
+ */
274
+ export type MddPlacement = "single_card" | "multi_card" | "cloud" | "external";
275
+
276
+ /**
277
+ * A quantization variant of a runtime.
278
+ */
279
+ export type MddQuantization = {
280
+ /**
281
+ * Quantization id, e.g. `"q4_k_m"`.
282
+ */
283
+ id: string,
284
+ /**
285
+ * Bit width per weight.
286
+ */
287
+ bits: number,
288
+ /**
289
+ * Approximate size relative to the FP16 baseline (e.g. `0.25`).
290
+ */
291
+ size_multiplier?: number,
292
+ /**
293
+ * Free-form notes.
294
+ */
295
+ notes?: string, };
296
+
297
+ /**
298
+ * One concrete way to serve a component.
299
+ */
300
+ export type MddRuntime = {
301
+ /**
302
+ * Serving engine.
303
+ */
304
+ engine: MddEngine,
305
+ /**
306
+ * Where the weights / entrypoint live.
307
+ */
308
+ entry: MddRuntimeEntry,
309
+ /**
310
+ * Engine features this runtime relies on (e.g. `["cuda", "flash-attn"]`).
311
+ */
312
+ features: Array<string>,
313
+ /**
314
+ * Quantization variants this runtime supports.
315
+ */
316
+ quantizations: Array<MddQuantization>,
317
+ /**
318
+ * Hardware requirements (local runtimes only).
319
+ */
320
+ hardware?: MddHardwareRequirement,
321
+ /**
322
+ * Lifecycle status of this runtime.
323
+ */
324
+ status: MddRuntimeStatus, };
325
+
326
+ /**
327
+ * Where a runtime's entrypoint (weights or endpoint) lives.
328
+ */
329
+ export type MddRuntimeEntry = {
330
+ /**
331
+ * Entry kind.
332
+ */
333
+ kind: MddEntryKind,
334
+ /**
335
+ * Path / URL / registry reference, depending on `kind`.
336
+ */
337
+ path: string,
338
+ /**
339
+ * SHA-256 checksum of the artifact (file downloads only).
340
+ */
341
+ sha256?: string,
342
+ /**
343
+ * Artifact size in bytes (file downloads only).
344
+ */
345
+ size_bytes?: bigint, };
346
+
347
+ /**
348
+ * Lifecycle status of a runtime.
349
+ */
350
+ export type MddRuntimeStatus = "ready" | "planned" | "unavailable";
351
+
352
+ /**
353
+ * Scale / sizing estimation for capacity planning.
354
+ */
355
+ export type MddScale = {
356
+ /**
357
+ * Total parameter count in billions.
358
+ */
359
+ total_parameters_b?: number,
360
+ /**
361
+ * Weight storage estimate.
362
+ */
363
+ weights: MddScaleWeights,
364
+ /**
365
+ * Supported quantization variants.
366
+ */
367
+ quantization: Array<MddQuantization>,
368
+ /**
369
+ * Activation memory estimate.
370
+ */
371
+ activation: MddScaleActivation,
372
+ /**
373
+ * Context / KV-cache estimate.
374
+ */
375
+ context: MddScaleContext,
376
+ /**
377
+ * Throughput estimate.
378
+ */
379
+ throughput: MddScaleThroughput,
380
+ /**
381
+ * Deployment tiers (cheapest-first ordering is conventional).
382
+ */
383
+ tiers: Array<MddDeployTier>, };
384
+
385
+ /**
386
+ * Activation memory estimate.
387
+ */
388
+ export type MddScaleActivation = {
389
+ /**
390
+ * Peak activation memory in GB.
391
+ */
392
+ peak_gb?: number,
393
+ /**
394
+ * Activation bytes per token.
395
+ */
396
+ bytes_per_token?: number, };
397
+
398
+ /**
399
+ * Context / KV-cache estimate.
400
+ */
401
+ export type MddScaleContext = {
402
+ /**
403
+ * Maximum context length in tokens.
404
+ */
405
+ max_tokens?: number,
406
+ /**
407
+ * KV-cache bytes per token.
408
+ */
409
+ kv_cache_bytes_per_token?: number, };
410
+
411
+ /**
412
+ * Throughput estimate.
413
+ */
414
+ export type MddScaleThroughput = {
415
+ /**
416
+ * Tokens per second.
417
+ */
418
+ tokens_per_second?: number,
419
+ /**
420
+ * Requests per second.
421
+ */
422
+ requests_per_second?: number,
423
+ /**
424
+ * End-to-end latency in milliseconds.
425
+ */
426
+ latency_ms?: number, };
427
+
428
+ /**
429
+ * Weight storage estimate.
430
+ */
431
+ export type MddScaleWeights = {
432
+ /**
433
+ * Total weight size in GB.
434
+ */
435
+ size_gb?: number,
436
+ /**
437
+ * Storage format, e.g. `"safetensors"`, `"gguf"`.
438
+ */
439
+ format?: string, };
440
+
441
+ /**
442
+ * Task kind implemented by the inference API.
443
+ */
444
+ export type MddTaskKind = "text_generation" | "embedding" | "image_generation" | "video_generation" | "audio_generation" | "other";
@@ -0,0 +1,69 @@
1
+ // Vendored snapshot of packages/protocol-core/bindings/httpTypes.ts (ts-rs
2
+ // generated) so the published npm tarball is self-contained: npm `files`
3
+ // cannot reach parent directories, and index.ts previously imported
4
+ // `../protocol-core/bindings/httpTypes`, which is absent from the tarball and
5
+ // breaks registry installs. Distinct filename to avoid colliding with this
6
+ // crate's own ts-rs-generated bindings/httpTypes.ts. Re-sync when
7
+ // protocol-core's HttpTypes bindings change.
8
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
9
+
10
+ /**
11
+ * Backend build profile.
12
+ */
13
+ export type BackendKind = "dev" | "nightly" | "prod" | "mock";
14
+
15
+ /**
16
+ * Connection status of a dependency, as reported in health payloads.
17
+ */
18
+ export type ConnectionStatus = { connected: boolean, latency: bigint, lastCheck: string, };
19
+
20
+ export type CreatedResponse = { created: Array<string>, };
21
+
22
+ export type DeletedResponse = { deleted: bigint, };
23
+
24
+ export type ErrorResponse = { error: string, message?: string, };
25
+
26
+ export type GrantItem = { id: string, scope: string, user_id: string | null, group_id: string | null, permission: string, resource_id: string | null, granted: boolean, created_at: string, };
27
+
28
+ export type GrantListResponse = { grants: Array<GrantItem>, };
29
+
30
+ /**
31
+ * Standard /api/health response for all plana backends.
32
+ */
33
+ export type HealthResponse = { status: ServiceStatus, version: string, kind: BackendKind, uptime: bigint, network: NetworkInfo, build_hash: string | null, engine_version: string | null, };
34
+
35
+ export type IdResponse = { id: string, };
36
+
37
+ export type MyPermissions = { role: string, permissions: Array<string>, };
38
+
39
+ /**
40
+ * Network context from the incoming request.
41
+ */
42
+ export type NetworkInfo = { transport: string, region: string, asn: number | null, };
43
+
44
+ export type OAuthProvider = { provider: string, client_id: string, client_secret_masked: string, public_domain: string, enabled: boolean, };
45
+
46
+ export type OkIdResponse = { ok: boolean, id: string, };
47
+
48
+ export type OkMessageResponse = { ok: boolean, message: string, };
49
+
50
+ export type OkResponse = { ok: boolean, };
51
+
52
+ export type PermissionsResponse = { role: string, permissions: Array<string>, };
53
+
54
+ export type RbacGroup = { id: string, name: string, description: string, member_count: number, created_at: string, updated_at: string, };
55
+
56
+ export type RbacGroupsResponse = { groups: Array<RbacGroup>, };
57
+
58
+ export type RbacUser = { id: string, username: string, email: string, display_name: string, avatar_url: string | null, is_active: boolean, is_admin: boolean, role: string, tier: string, created_at: string, };
59
+
60
+ export type RbacUsersResponse = { users: Array<RbacUser>, };
61
+
62
+ export type ReadinessResponse = { status: string, database: boolean, };
63
+
64
+ /**
65
+ * Service health status. Serde uses lowercase so JSON returns "ok" etc.
66
+ */
67
+ export type ServiceStatus = "ok" | "degraded" | "unhealthy";
68
+
69
+ export type StatusResponse = { status: string, agent_id?: string, platform?: string, id?: string, plugin_id?: string, };
@@ -1,8 +1,8 @@
1
1
  // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
2
 
3
- export type AgentRegistryEntry = { agent_type: string, status: string, mcp_tool_count: number, skill_count: number, mcp_tools: Array<string>, skills: Array<string>, };
3
+ export type AgentRegistryEntry = { agent_type: string, status: string, tool_count: number, skill_count: number, tools: Array<string>, skills: Array<string>, };
4
4
 
5
- export type AgentRegistryGetResult = { agent_type: string, mcp_tools: Array<McpToolDetail>, skills: Array<SkillDetail>, };
5
+ export type AgentRegistryGetResult = { agent_type: string, tools: Array<ToolDetail>, skills: Array<SkillDetail>, };
6
6
 
7
7
  export type AgentRegistryListResult = { agents: Array<AgentRegistryEntry>, };
8
8
 
@@ -18,8 +18,6 @@ export type DataStoreSaveResult = { key: string, namespace: string, store_key: s
18
18
 
19
19
  export type GapInfo = { start_time: bigint, end_time: bigint, estimated_missing: number, };
20
20
 
21
- export type McpToolDetail = { name: string, description: string, parameters: Record<string, unknown>, };
22
-
23
21
  export type MemoryConsolidateParams = { episode_focus: string, node_ids: Array<string>, };
24
22
 
25
23
  export type MemoryConsolidateResult = { episode_id: string, linked_count: number, };
@@ -52,6 +50,8 @@ export type TimeseriesQueryParams = { metric: string, start_time: bigint | null,
52
50
 
53
51
  export type TimeseriesQueryResult = { metric: string, points: Array<TimeseriesPointResult>, stats: QueryStats | null, count: number, };
54
52
 
53
+ export type ToolDetail = { name: string, description: string, parameters: Record<string, unknown>, };
54
+
55
55
  export type ToolSchemaGetParams = { agent_type: string, tool_name: string, };
56
56
 
57
57
  export type ToolSchemaGetResult = { agent_type: string, tool_name: string, declaration: string, };
@@ -19,7 +19,20 @@ allow_custom_reply?: boolean,
19
19
  * Subset of `preset_options` the agent suggests. Empty when no
20
20
  * recommendation is offered.
21
21
  */
22
- recommended_options: Array<string>, model_name?: string, token_usage?: [number, number], skill_count?: number, mcp_count?: number, next_route?: RouteInfo, stream?: LlmStream, error?: StructuredAgentError, };
22
+ recommended_options: Array<string>, model_name?: string, token_usage?: [number, number], skill_count?: number, tool_count?: number, next_route?: RouteInfo, stream?: LlmStream, error?: StructuredAgentError,
23
+ /**
24
+ * Topic correlation: the conversation this report belongs to (one
25
+ * conversation per user turn). Absent on legacy senders.
26
+ */
27
+ conversation_id?: string,
28
+ /**
29
+ * The task (skill-chain run) that produced this report.
30
+ */
31
+ task_id?: string,
32
+ /**
33
+ * Workspace scope of the originating chain, when known.
34
+ */
35
+ workspace_id?: string, };
23
36
 
24
37
  /**
25
38
  * Reply payload for an inquiry (`report_type: "query"`) report.
@@ -34,8 +47,8 @@ export type AgentResponseParams = { agent_type: Agent, agent_id: string, agent_n
34
47
 
35
48
  export type AgentStreamingChunkParams = { agent_type: Agent, agent_id: string, agent_number?: string, chunk: string, is_done: boolean, timestamp: string, task_id?: string, chunk_kind?: StreamChunkKind, };
36
49
 
37
- export type McpToolResultParams = { tool_name: string, call_id: string, parameters_summary?: string, result: string, agent_type: Agent, agent_id: string, agent_number?: string, success: boolean, duration_ms?: bigint, };
38
-
39
50
  export type OrchestrationStatusParams = { stage: SkillStage, agent: string, agent_type?: Agent, tool_name?: string, call_id?: string, parent_agent?: string, parameters_summary?: string, };
40
51
 
41
- export type TuiAgentInfo = { agent_type: Agent, agent_number?: string, agent_uuid?: string, agent_id: string, status: AgentStatus, llm_working: boolean, cpu_usage: number, memory_mb: bigint, parent_id?: string, work_status?: WorkStatus, current_model?: string, model_tier?: ModelTier, llm_handle?: string, token_usage?: [number, number], mcp_tool_calls: number, request_state: RequestState, completion_outcome: CompletionOutcome, retry_count: number, max_retries: number, };
52
+ export type ToolResultParams = { tool_name: string, call_id: string, parameters_summary?: string, result: string, agent_type: Agent, agent_id: string, agent_number?: string, success: boolean, duration_ms?: bigint, };
53
+
54
+ export type TuiAgentInfo = { agent_type: Agent, agent_number?: string, agent_uuid?: string, agent_id: string, status: AgentStatus, llm_working: boolean, cpu_usage: number, memory_mb: bigint, parent_id?: string, work_status?: WorkStatus, current_model?: string, model_tier?: ModelTier, llm_handle?: string, token_usage?: [number, number], tool_calls: number, request_state: RequestState, completion_outcome: CompletionOutcome, retry_count: number, max_retries: number, };
@@ -1,10 +1,10 @@
1
1
  // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
2
 
3
- export type Agent = "HapLotes" | "SkoPeo" | "HubRis" | "KaLos" | "NeiKos" | "SkeMma" | "ApoRia" | "EleOs" | "EpieiKeia" | "OreXis" | "PhiLia" | "PoleMos" | "WebAutomation";
3
+ export type Agent = "HapLotes" | "SkoPeo" | "HubRis" | "KaLos" | "NeiKos" | "SkeMma" | "ApoRia" | "EleOs" | "Epieikeia" | "OreXis" | "PhiLia" | "PoleMos" | "WebAutomation";
4
4
 
5
5
  export type AgentBadge = string;
6
6
 
7
- export type AgentErrorCode = "model_no_providers" | "model_no_models" | "model_tier_mismatch" | "model_all_excluded" | "model_env_incomplete" | "model_selection_retry_exhausted" | "llm_call_failed" | "llm_empty_response" | "llm_rate_limited" | "llm_auth_failed" | "llm_timeout" | "cosmos_no_connection" | "cosmos_tool_failed" | "cosmos_local_unavailable" | "chain_max_depth" | "chain_cycle" | "chain_failed" | "skill_failed" | "skill_empty_output" | "skill_missing_report";
7
+ export type AgentErrorCode = "model_no_providers" | "model_no_models" | "model_tier_mismatch" | "model_all_excluded" | "model_env_incomplete" | "model_selection_retry_exhausted" | "model_no_capable_model" | "llm_call_failed" | "llm_empty_response" | "llm_rate_limited" | "llm_auth_failed" | "llm_timeout" | "cosmos_no_connection" | "cosmos_tool_failed" | "cosmos_local_unavailable" | "chain_max_depth" | "chain_cycle" | "chain_failed" | "skill_failed" | "skill_empty_output" | "skill_missing_report";
8
8
 
9
9
  export type AgentStatus = "Initializing" | "Online" | "Busy" | "Offline" | "Error";
10
10
 
@@ -40,7 +40,7 @@ export type SkillStage = { "Started": string } | { "Done": string } | { "Complet
40
40
 
41
41
  export type StreamChunkKind = "Text" | "Thinking" | "DeepThinking";
42
42
 
43
- export type StreamSegment = { "Text": { text: string, message_id?: string, } } | { "Thinking": { text: string, message_id?: string, } } | { "DeepThinking": { text: string, message_id?: string, } } | { "McpCall": { tool_name: string, call_id: string, params: unknown, agent_type?: string, message_id?: string, } } | { "McpResult": { tool_name: string, call_id: string, success: boolean, data: unknown, duration_ms?: bigint, agent_type?: string, message_id?: string, } };
43
+ export type StreamSegment = { "Text": { text: string, message_id?: string, } } | { "Thinking": { text: string, message_id?: string, } } | { "DeepThinking": { text: string, message_id?: string, } } | { "ToolCall": { tool_name: string, call_id: string, params: unknown, agent_type?: string, message_id?: string, } } | { "ToolResult": { tool_name: string, call_id: string, success: boolean, data: unknown, duration_ms?: bigint, agent_type?: string, message_id?: string, } };
44
44
 
45
45
  export type StructuredAgentError = { code: AgentErrorCode, detail?: string, context: { [key in string]: string }, };
46
46
 
@@ -16,8 +16,4 @@ protocol_version: number, token: string, session_id?: string, capabilities: Arra
16
16
  */
17
17
  workspace_id?: string, };
18
18
 
19
- export type HandshakeAckParams = { ok: boolean, error?: string, };
20
-
21
- export type PingParams = { timestamp: bigint, };
22
-
23
19
  export type ScepterIdentityParams = { device_id: string, };
@@ -4,22 +4,22 @@ export type CustomAgentInfo = { name: string, display_name: string, description:
4
4
 
5
5
  export type CustomAgentListResponseParams = { agents: Array<CustomAgentInfo>, };
6
6
 
7
- export type Layer2AgentInfo = { name: string, description: string, mcp_count: number, skills_count: number, languages: Array<string>, enabled: boolean, };
7
+ export type Layer2AgentInfo = { name: string, description: string, tool_count: number, skills_count: number, languages: Array<string>, enabled: boolean, };
8
8
 
9
9
  export type Layer2AgentListResponseParams = { agents: Array<Layer2AgentInfo>, };
10
10
 
11
- export type Layer2AgentMcpResponseParams = { agent_name: string, tools: Array<Layer2McpToolInfo>, };
12
-
13
11
  export type Layer2AgentSkillsResponseParams = { agent_name: string, skills: Array<Layer2SkillInfo>, };
14
12
 
15
- export type Layer2McpPromptResponseParams = { agent_name: string, tool: string, lang: string, content: string, name: string, };
16
-
17
- export type Layer2McpToolInfo = { name: string, description: string, languages: Array<string>, references_layer1: Array<string>, references_layer2: Array<string>, related_items: Array<string>, referenced_by_items: Array<string>, };
13
+ export type Layer2AgentToolResponseParams = { agent_name: string, tools: Array<Layer2ToolInfo>, };
18
14
 
19
15
  export type Layer2SkillInfo = { name: string, description: string, languages: Array<string>, references_layer1: Array<string>, references_layer2: Array<string>, related_items: Array<string>, referenced_by_items: Array<string>, };
20
16
 
21
17
  export type Layer2SkillPromptResponseParams = { agent_name: string, skill: string, lang: string, content: string, name: string, };
22
18
 
19
+ export type Layer2ToolInfo = { name: string, description: string, languages: Array<string>, references_layer1: Array<string>, references_layer2: Array<string>, related_items: Array<string>, referenced_by_items: Array<string>, };
20
+
21
+ export type Layer2ToolPromptResponseParams = { agent_name: string, tool: string, lang: string, content: string, name: string, };
22
+
23
23
  export type SubscribeCustomAgentResponseParams = { success: boolean, error?: string, agent?: CustomAgentInfo, skills: Array<string>, permissions: Array<string>, };
24
24
 
25
25
  export type UnsubscribeCustomAgentResponseParams = { success: boolean, error?: string, };