@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,122 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * One PCM audio block (base64-encoded in JSON payloads).
5
+ */
6
+ export type RealtimeAudioChunk = {
7
+ /**
8
+ * MIME type of the payload (e.g. `"audio/pcm"`).
9
+ */
10
+ mime: string,
11
+ /**
12
+ * Sample rate in Hz (16 kHz client→model, 24 kHz model→client).
13
+ */
14
+ sample_rate: number,
15
+ /**
16
+ * Base64-encoded PCM16 LE audio bytes.
17
+ */
18
+ data_base64: string, };
19
+
20
+ /**
21
+ * Client → gateway realtime events (client-sent).
22
+ *
23
+ * Canonical vendor-neutral tags (see `docs/en/designs/realtime-media.md`);
24
+ * wired as JSON-RPC notifications on the session channel. Binary audio
25
+ * (16 kHz PCM16) travels base64-encoded in `data_base64` (v1) or as WS
26
+ * binary frames announced via the CEP binary-transfer triple (v2).
27
+ */
28
+ export type RealtimeClientEvent = { "type": "session.configure", session: RealtimeSessionConfig, } | { "type": "audio.input.append", audio: RealtimeAudioChunk, } | { "type": "audio.input.commit" } | { "type": "audio.input.clear" } | { "type": "video.input.frame", frame: RealtimeVideoFrame, } | { "type": "response.request" } | { "type": "response.cancel" } | { "type": "session.close" };
29
+
30
+ /**
31
+ * Gateway → client realtime events (server-sent).
32
+ *
33
+ * Canonical vendor-neutral tags (see `docs/en/designs/realtime-media.md`);
34
+ * wired as JSON-RPC notifications on the session channel. Binary audio
35
+ * (24 kHz PCM16) travels base64-encoded in `delta.data_base64` (v1) or as
36
+ * WS binary frames (v2). Clients stop playback on `turn.speech_started`
37
+ * (barge-in) and treat `response.done` as the terminal billing event for
38
+ * one response.
39
+ */
40
+ export type RealtimeServerEvent = { "type": "session.created", session: RealtimeSessionConfig, } | { "type": "session.configured", session: RealtimeSessionConfig, } | { "type": "turn.speech_started", audio_start_ms: bigint, } | { "type": "turn.speech_stopped", audio_end_ms: bigint, } | { "type": "response.started", response_id: string, } | { "type": "response.audio.delta", response_id: string, delta: RealtimeAudioChunk, } | { "type": "response.audio.end", response_id: string, } | { "type": "response.transcript.delta", response_id: string, delta: string, } | { "type": "response.text.delta", response_id: string, delta: string, } | { "type": "response.done", response_id: string, usage: RealtimeUsage, } | { "type": "response.video.frame", response_id: string, frame: RealtimeVideoFrame, } | { "type": "error", code: string, message: string, };
41
+
42
+ /**
43
+ * `session.update` payload — the full realtime session configuration.
44
+ */
45
+ export type RealtimeSessionConfig = { model: string,
46
+ /**
47
+ * Output modalities: `["text", "audio"]` or `["text"]`.
48
+ */
49
+ modalities: Array<string>,
50
+ /**
51
+ * Voice id for speech output (vendor-specific).
52
+ */
53
+ voice?: string,
54
+ /**
55
+ * `"pcm16"` — input audio encoding (16 kHz).
56
+ */
57
+ input_audio_format: string,
58
+ /**
59
+ * `"pcm16"` — output audio encoding (24 kHz).
60
+ */
61
+ output_audio_format: string,
62
+ /**
63
+ * System prompt for the session.
64
+ */
65
+ instructions?: string, turn_detection?: RealtimeTurnDetection, temperature?: number, };
66
+
67
+ /**
68
+ * Server-side VAD (voice activity detection) configuration for a realtime
69
+ * session. Mirrors the upstream `turn_detection` payload.
70
+ */
71
+ export type RealtimeTurnDetection = {
72
+ /**
73
+ * `"server_vad"` | `"semantic_vad"` | `null` (manual commit).
74
+ */
75
+ type?: string,
76
+ /**
77
+ * VAD activation threshold in [-1, 1] (server_vad).
78
+ */
79
+ threshold?: number,
80
+ /**
81
+ * Padding to keep before speech onset, ms.
82
+ */
83
+ prefix_padding_ms?: number,
84
+ /**
85
+ * Silence duration that ends a user turn, ms (default 800).
86
+ */
87
+ silence_duration_ms?: number,
88
+ /**
89
+ * Idle timeout that force-commits the buffer, ms.
90
+ */
91
+ idle_timeout_ms?: number,
92
+ /**
93
+ * Semantic VAD: auto-create a response at end of user turn.
94
+ */
95
+ create_response?: boolean,
96
+ /**
97
+ * Semantic VAD: interrupt the current response when user speech begins.
98
+ */
99
+ interrupt_response?: boolean, };
100
+
101
+ /**
102
+ * Token usage reported in `response.done` — surface for billing.
103
+ */
104
+ export type RealtimeUsage = { input_tokens: bigint, output_tokens: bigint, total_tokens: bigint, };
105
+
106
+ /**
107
+ * One video frame (image) in a realtime session — e.g. a JPEG frame
108
+ * streamed to the model at ~1 fps, or a generated frame streamed back.
109
+ */
110
+ export type RealtimeVideoFrame = {
111
+ /**
112
+ * MIME type (e.g. `"image/jpeg"`).
113
+ */
114
+ mime: string,
115
+ /**
116
+ * Monotonic frame sequence number for ordering / dedup.
117
+ */
118
+ frame_seq: number,
119
+ /**
120
+ * Base64-encoded image bytes.
121
+ */
122
+ data_base64: string, };
@@ -1,6 +1,11 @@
1
1
  // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
2
  import type { Agent, TaskStatus } from "./core";
3
3
 
4
- export type TaskCreatedParams = { task_id: string, issue_id: string, title: string, description?: string, assigned_agent?: Agent, parent_task_id?: string, badge?: string, tags?: Array<string>, };
4
+ export type TaskCreatedParams = { task_id: string, issue_id: string, title: string, description?: string, assigned_agent?: Agent, parent_task_id?: string, badge?: string, tags?: Array<string>,
5
+ /**
6
+ * Topic correlation: the conversation this task was spawned for,
7
+ * when the spawning chain knows one.
8
+ */
9
+ conversation_id?: string, };
5
10
 
6
11
  export type TaskStatusUpdateParams = { task_id: string, status: TaskStatus, progress: number, };
package/index.ts ADDED
@@ -0,0 +1,74 @@
1
+ // Every export line references a concrete generated file; the bindings
2
+ // folders carry no per-directory index.ts, so directory-star exports would
3
+ // dangle. A handful of distinct generated types share names across files;
4
+ // the flat-surface winner is resolved by named-export EXCLUSION LISTS, NOT
5
+ // by TypeScript star-export precedence:
6
+ //
7
+ // - The tools namespace files below that collide with earlier star-exported
8
+ // files (aporia, kalos, neikos, orexis) are re-exported via an explicit
9
+ // `export { ... } from` list instead of `export *`. The list is a FULL
10
+ // enumeration of what that file contributes to the flat surface — a
11
+ // name in the generated file but not in the list is excluded.
12
+ // - Each list therefore shadows its file's colliding duplicates on
13
+ // purpose: the name the flat surface resolves to comes from whichever
14
+ // OTHER (star-exported) source the earlier line exports, so "first
15
+ // listed source wins" is the deliberate outcome, not an artifact.
16
+ // - Shadowed duplicates stay importable via deep imports
17
+ // (`import type { FileEntry } from "@celestia-island/plana-celestia-types/bindings/tools/kalos"`).
18
+ //
19
+ // The 6 current collisions (flat winner -> shadowed source):
20
+ //
21
+ // WorkspaceStatusParams ws/workspace wins vs tools/aporia
22
+ // FileEntry httpTypes wins vs tools/kalos
23
+ // FileReadParams ws/fileBrowsing wins vs tools/kalos
24
+ // FileTreeEntry ws/fileBrowsing wins vs tools/kalos
25
+ // ContainerSnapshotParams ws/stateSync wins vs tools/neikos
26
+ // ReportHumanParams tools/hubris wins vs tools/orexis
27
+ //
28
+ // MAINTENANCE WARNING: the four exclusion lists are hand-maintained here —
29
+ // there is no generator script that rewrites this file. New types added to
30
+ // the generated aporia/kalos/neikos/orexis files do NOT appear in the flat
31
+ // surface unless their name is appended to the matching `export { ... }`
32
+ // line below (keep the list alphabetically sorted). A type added with a
33
+ // name that already exists on the flat surface is silently shadowed: it
34
+ // must either stay deep-import-only (deliberate shadow) or the existing
35
+ // name must be dropped from the earlier star-exported source.
36
+ export * from "./bindings/engine";
37
+ export * from "./bindings/enums";
38
+ export * from "./bindings/httpTypes";
39
+ export * from "./bindings/mdd";
40
+ export * from "./bindings/model";
41
+ export * from "./bindings/ws/agentLifecycle";
42
+ export * from "./bindings/ws/auth";
43
+ export * from "./bindings/ws/bridgeNetwork";
44
+ export * from "./bindings/ws/core";
45
+ export * from "./bindings/ws/fileBrowsing";
46
+ export * from "./bindings/ws/handshake";
47
+ export * from "./bindings/ws/industrial";
48
+ export * from "./bindings/ws/knowledgeBase";
49
+ export * from "./bindings/ws/layer2";
50
+ export * from "./bindings/ws/llmProvider";
51
+ export * from "./bindings/ws/logs";
52
+ export * from "./bindings/ws/malkuth";
53
+ export * from "./bindings/ws/noa";
54
+ export * from "./bindings/ws/stateSync";
55
+ export * from "./bindings/ws/systemUi";
56
+ export * from "./bindings/ws/tasks";
57
+ export * from "./bindings/ws/views";
58
+ export * from "./bindings/ws/workspace";
59
+ export * from "./bindings/ws/yolo";
60
+ export type { AnomalyDetectParams, AnomalyInfo, AnomalyResult, CausalReasonParams, CausalReasonResult, CorrelationInfo, Hypothesis, LlmChatParams, LlmChatResult, MediaAssetItem, MediaAssetRegisterResult, MediaAssetRetrieveResult, RagDbDeleteParams, RagDbDeleteResult, RagDbReadParams, RagDbReadResult, RagDbStatsParams, RagDbStatsResult, RagDbWriteParams, RagDbWriteResult, RagDocResult, TranslateReportParams, TranslateReportResult, WorkspaceIndexParams, WorkspaceIndexResult, WorkspaceSearchDoc, WorkspaceSearchParams, WorkspaceSearchResult, WorkspaceStatusResult } from "./bindings/tools/aporia";
61
+ export * from "./bindings/tools/eleos";
62
+ export * from "./bindings/tools/epieikeia";
63
+ export * from "./bindings/tools/haplotes";
64
+ export * from "./bindings/tools/hubris";
65
+ export type { Annotation, FileCreateDirParams, FileDeleteParams, FileDeleteResult, FileEditParams, FileEditResult, FileExistsParams, FileExistsResult, FileGetInfoParams, FileInfoResult, FileListParams, FileListResult, FileReadResult, FileTreeListResult, FileWriteParams, FileWriteResult, ListAnnotationsResult, MkDirResult, ResolveAnnotationResult } from "./bindings/tools/kalos";
66
+ export type { CheckWaitParams, ContainerCreateResult, ContainerFilterCriteria, ContainerForkParams, ContainerForkResult, ContainerInfoParams, ContainerInfoResult, ContainerListItem, ContainerListParams, ContainerListResult, ContainerRemoveParams, ContainerRemoveResult, ContainerSnapshotResult, ContainerStartParams, ContainerStartResult, ContainerStopParams, ContainerStopResult, ExecOnContainerParams, ExecResult, GitPushBranchParams, GitPushResult, NewContainerToolParams, NewContainerVolumeMount, SidecarDeliverResult, SidecarKillParams, SidecarSendParams, SidecarSendResult, SidecarSpawnParams, ToolchainEnsureParams, ToolchainEnsureResult, ToolchainListParams, ToolchainListResult, ToolchainProfileInfo, ToolchainVolumeSpec, VolumeInfo, WaitParams } from "./bindings/tools/neikos";
67
+ export type { AgentIntegrityParams, AskResult, AuditAlignmentParams, AuditAlignmentResult, AuditFinding, AuditLegalityParams, AuditLegalityResult, BlockToolParams, CheckResultItem, ComplianceReportParams, ComplianceReportToolResult, ComplianceRule, ComplianceSummary, InspectToolCallParams, ManageSensitivityRulesParams, ReplyResult, ReportDetail, ReportHumanResult, RuleCheckResult, SecurityAuditParams, SecurityStatusParams, SecuritySuggestionsParams, SensitivityRule, SetNetworkPolicyParams, SetRiskThresholdParams, SetSecurityPolicyParams, StandardCheckParams, StandardCheckResult, StandardRegisterResult, UnblockToolParams } from "./bindings/tools/orexis";
68
+ export type { GrantItem, GrantListResponse, MyPermissions, OAuthProvider, RbacUser, RbacUsersResponse } from "./bindings/httpTypes";
69
+ export * from "./bindings/tools/philia";
70
+ export * from "./bindings/tools/polemos";
71
+ export * from "./bindings/tools/skemma";
72
+ export * from "./bindings/tools/skopeo";
73
+ export * from "./bindings/tools/web_automation";
74
+ export * from "./bindings/serde_json/JsonValue";
package/package.json CHANGED
@@ -1,6 +1,16 @@
1
1
  {
2
2
  "name": "@celestia-island/plana-types",
3
- "version": "0.1.0",
4
- "description": "Shared protocol types, TypeScript bindings, and build scripts for the entelecheia multi-agent platform",
5
- "packageManager": "pnpm@9.15.0"
3
+ "version": "0.1.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/celestia-island/plana"
7
+ },
8
+ "description": "TypeScript bindings for the celestia platform domain profile of the PLANA protocol.",
9
+ "main": "index.ts",
10
+ "types": "index.ts",
11
+ "files": [
12
+ "index.ts",
13
+ "bindings"
14
+ ],
15
+ "packageManager": "pnpm@11.18.0"
6
16
  }
package/Cargo.toml DELETED
@@ -1,38 +0,0 @@
1
- [package]
2
- name = "plana-types"
3
- version.workspace = true
4
- edition.workspace = true
5
- rust-version.workspace = true
6
- authors.workspace = true
7
- license.workspace = true
8
- description = "Shared protocol types for celestia-island"
9
- repository = "https://github.com/celestia-island/plana"
10
- keywords = ["json-rpc", "protocol", "mcp", "typescript", "schema"]
11
- categories = ["api-bindings", "data-structures", "web-programming::websocket", "network-programming"]
12
- # Keep generated TS bindings, Python build scripts, and docs out of the published crate.
13
- exclude = ["bindings", "scripts", ".cargo", "justfile", "package.json", "pnpm-workspace.yaml", "PLAN.md", "res", "examples"]
14
-
15
- [features]
16
- default = []
17
- tracing-helpers = ["chrono", "tracing-subscriber"]
18
-
19
- [dependencies]
20
-
21
- kirino = { workspace = true }
22
-
23
- chrono = { workspace = true, optional = true }
24
- hex.workspace = true
25
- schemars = { workspace = true }
26
- serde = { workspace = true, features = ["derive"] }
27
- serde_json.workspace = true
28
- sha2.workspace = true
29
- thiserror.workspace = true
30
- tracing-subscriber = { workspace = true, optional = true }
31
- ts-rs = { workspace = true }
32
- uuid = { workspace = true }
33
- [dev-dependencies]
34
-
35
- anyhow.workspace = true
36
- toml.workspace = true
37
- [package.metadata.docs.rs]
38
- all-features = true
@@ -1,3 +0,0 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
- export type FileAnchor = { file_path: string, line_start?: number | null, line_end?: number | null, snapshot_hash?: string | null, };
package/bindings/index.ts DELETED
@@ -1,47 +0,0 @@
1
- // WS protocol — foundational shared enums (Agent, AgentStatus, TaskStatus, …).
2
- export * from "./ws/core";
3
- // WS protocol — per-domain message param structs.
4
- export * from "./ws/handshake";
5
- export * from "./ws/noa";
6
- export * from "./ws/logs";
7
- export * from "./ws/agentLifecycle";
8
- export * from "./ws/tasks";
9
- export * from "./ws/llmProvider";
10
- export * from "./ws/stateSync";
11
- export * from "./ws/knowledgeBase";
12
- export * from "./ws/layer2";
13
- export * from "./ws/workspace";
14
- export * from "./ws/systemUi";
15
- export * from "./ws/auth";
16
- export * from "./ws/yolo";
17
- export * from "./ws/baseMessages";
18
- export * from "./ws/industrial";
19
- export * from "./ws/views";
20
- export * from "./ws/fileBrowsing";
21
- export * from "./ws/bridgeNetwork";
22
- // Malkuth supervision protocol types (restart authorization gate).
23
- // HealthResponse is re-exported under a distinct name because the HTTP REST
24
- // types below export a same-named type; TS forbids two `export *` collisions.
25
- export {
26
- type GateDecision,
27
- type RestartRisk,
28
- type RestartGateDecision,
29
- type RestartProposal,
30
- type ConnectionProtocol,
31
- type WorkerState,
32
- type ConnectionEndpoint,
33
- type DrainRequest,
34
- type HealthResponse as MalkuthHealthResponse,
35
- type WorkerRegistration,
36
- type WorkerStatus,
37
- } from "./ws/malkuth";
38
- // HTTP REST API types.
39
- export * from "./httpTypes";
40
- // Unified model management types.
41
- export * from "./model";
42
- // Shared domain vocabulary enums.
43
- export * from "./enums";
44
- // Celestia Engine Protocol (CEP) — model-runtime interchange types.
45
- export * from "./engine";
46
- // Per-agent MCP tool request/result types (namespaced).
47
- export * as mcp from "./mcp";
@@ -1,13 +0,0 @@
1
- export * as aporia from "./aporia";
2
- export * as eleos from "./eleos";
3
- export * as epieikeia from "./epieikeia";
4
- export * as haplotes from "./haplotes";
5
- export * as hubris from "./hubris";
6
- export * as kalos from "./kalos";
7
- export * as neikos from "./neikos";
8
- export * as orexis from "./orexis";
9
- export * as philia from "./philia";
10
- export * as polemos from "./polemos";
11
- export * as skemma from "./skemma";
12
- export * as skopeo from "./skopeo";
13
- export * as webAutomation from "./webAutomation";
@@ -1,16 +0,0 @@
1
- {
2
- "name": "@celestia-island/plana-types",
3
- "version": "0.1.0",
4
- "private": true,
5
- "description": "TypeScript type bindings for the plana protocol crate (auto-generated by ts-rs)",
6
- "main": "index.ts",
7
- "types": "index.ts",
8
- "files": [
9
- "index.ts",
10
- "ws/",
11
- "httpTypes.ts",
12
- "model.ts",
13
- "enums.ts",
14
- "mcp/"
15
- ]
16
- }
@@ -1,3 +0,0 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
- export type RegionPolicy = { "china": { icp_number: string | null, data_residency_required: boolean, payment_domestic_only: boolean, pipi_consent_required: boolean, } } | { "european_union": { gdpr_consent_required: boolean, right_to_deletion: boolean, right_to_export: boolean, dpo_contact: string | null, cookie_consent_required: boolean, } } | { "russia": { data_localization_required: boolean, payment_mir_supported: boolean, } } | "free_market";
@@ -1,7 +0,0 @@
1
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
-
3
- export type BaseAckParams = { message_id: string, };
4
-
5
- export type BaseErrorParams = { code: string, message: string, };
6
-
7
- export type BaseHeartbeatParams = { timestamp: bigint, };
@@ -1,51 +0,0 @@
1
- /// Schema dump tool — exports JsonSchema from plana types as JSON.
2
- /// Run: cargo run --example schema_dump > plana_schema.json
3
- use schemars::schema_for;
4
-
5
- fn main() -> Result<(), Box<dyn std::error::Error>> {
6
- let schemas = serde_json::json!({
7
- "$schema": "http://json-schema.org/draft-07/schema#",
8
- "definitions": {
9
- "Agent": schema_for!(plana_types::Agent),
10
- "AgentBadge": schema_for!(plana_types::AgentBadge),
11
- "AgentErrorCode": schema_for!(plana_types::AgentErrorCode),
12
- "AgentStatus": schema_for!(plana_types::AgentStatus),
13
- "CompletionOutcome": schema_for!(plana_types::CompletionOutcome),
14
- "ContainerStatus": schema_for!(plana_types::ContainerStatus),
15
- "EmbeddingModel": schema_for!(plana_types::EmbeddingModel),
16
- "KnowledgeBaseStatus": schema_for!(plana_types::KnowledgeBaseStatus),
17
- "LlmStream": schema_for!(plana_types::LlmStream),
18
- "ModelTier": schema_for!(plana_types::ModelTier),
19
- "PeriodType": schema_for!(plana_types::PeriodType),
20
- "ReportSelection": schema_for!(plana_types::ReportSelection),
21
- "ReportType": schema_for!(plana_types::ReportType),
22
- "RequestState": schema_for!(plana_types::RequestState),
23
- "RetryReason": schema_for!(plana_types::RetryReason),
24
- "RouteInfo": schema_for!(plana_types::RouteInfo),
25
- "SkillStage": schema_for!(plana_types::SkillStage),
26
- "StreamChunkKind": schema_for!(plana_types::StreamChunkKind),
27
- "StreamSegment": schema_for!(plana_types::StreamSegment),
28
- "StructuredAgentError": schema_for!(plana_types::StructuredAgentError),
29
- "TaskStatus": schema_for!(plana_types::TaskStatus),
30
- "WorkStatus": schema_for!(plana_types::WorkStatus),
31
- "YoloTaskTier": schema_for!(plana_types::YoloTaskTier),
32
- "ModelCategory": schema_for!(plana_types::model::ModelCategory),
33
- "ModelBackend": schema_for!(plana_types::model::ModelBackend),
34
- "ModelDescriptor": schema_for!(plana_types::model::ModelDescriptor),
35
- "ModelServerStatus": schema_for!(plana_types::model::ModelServerStatus),
36
- "ModelServerInfo": schema_for!(plana_types::model::ModelServerInfo),
37
- "ModelServerKind": schema_for!(plana_types::model::ModelServerKind),
38
- "ModelServerAction": schema_for!(plana_types::model::ModelServerAction),
39
- "ModelInferenceRequest": schema_for!(plana_types::model::ModelInferenceRequest),
40
- "ModelInferenceResult": schema_for!(plana_types::model::ModelInferenceResult),
41
- "AgentStreamingChunkParams": schema_for!(plana_types::AgentStreamingChunkParams),
42
- "McpToolResultParams": schema_for!(plana_types::McpToolResultParams),
43
- "TaskCreatedParams": schema_for!(plana_types::TaskCreatedParams),
44
- "TaskStatusUpdateParams": schema_for!(plana_types::TaskStatusUpdateParams),
45
- "TuiAgentInfo": schema_for!(plana_types::TuiAgentInfo),
46
- },
47
- });
48
- let json = serde_json::to_string_pretty(&schemas)?;
49
- println!("{json}");
50
- Ok(())
51
- }
@@ -1,2 +0,0 @@
1
- packages:
2
- - "bindings"