@agent-marshal/marshal-prime-agent 0.49.8 → 0.50.0
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/package.json +1 -1
- package/src/generated/CountAllMessageReads.ts +1 -1
- package/src/generated/CountAllMessages.ts +1 -1
- package/src/generated/CountAllRoomMembers.ts +1 -1
- package/src/generated/CountAllRooms.ts +1 -1
- package/src/generated/CountAllSessionNicknames.ts +1 -1
- package/src/generated/CountAllSessions.ts +1 -1
- package/src/generated/CountMessageReads.ts +2 -2
- package/src/generated/CountMessages.ts +2 -2
- package/src/generated/CountRoomMembers.ts +2 -2
- package/src/generated/CountRooms.ts +2 -2
- package/src/generated/CountSessionNicknames.ts +2 -2
- package/src/generated/CountSessions.ts +2 -2
- package/src/generated/DeleteMessage.ts +0 -3
- package/src/generated/DeleteMessageRead.ts +0 -3
- package/src/generated/DeleteMessageReadResult.ts +0 -3
- package/src/generated/DeleteMessageReads.ts +0 -3
- package/src/generated/DeleteMessageReadsResult.ts +0 -3
- package/src/generated/DeleteMessageResult.ts +0 -3
- package/src/generated/DeleteMessages.ts +0 -3
- package/src/generated/DeleteMessagesResult.ts +0 -3
- package/src/generated/DeleteRoom.ts +0 -3
- package/src/generated/DeleteRoomMember.ts +0 -3
- package/src/generated/DeleteRoomMemberResult.ts +0 -3
- package/src/generated/DeleteRoomMembers.ts +0 -3
- package/src/generated/DeleteRoomMembersResult.ts +0 -3
- package/src/generated/DeleteRoomResult.ts +0 -3
- package/src/generated/DeleteRooms.ts +0 -3
- package/src/generated/DeleteRoomsResult.ts +0 -3
- package/src/generated/DeleteSession.ts +0 -3
- package/src/generated/DeleteSessionNickname.ts +0 -3
- package/src/generated/DeleteSessionNicknameResult.ts +0 -3
- package/src/generated/DeleteSessionNicknames.ts +0 -3
- package/src/generated/DeleteSessionNicknamesResult.ts +0 -3
- package/src/generated/DeleteSessionResult.ts +0 -3
- package/src/generated/DeleteSessions.ts +0 -3
- package/src/generated/DeleteSessionsResult.ts +0 -3
- package/src/generated/GetAllMessageReads.ts +1 -1
- package/src/generated/GetAllMessages.ts +1 -1
- package/src/generated/GetAllRoomMembers.ts +1 -1
- package/src/generated/GetAllRooms.ts +1 -1
- package/src/generated/GetAllSessionNicknames.ts +1 -1
- package/src/generated/GetAllSessions.ts +1 -1
- package/src/generated/GetMessageReadsByQuery.ts +2 -2
- package/src/generated/GetMessagesByQuery.ts +2 -2
- package/src/generated/GetRoomMembersByQuery.ts +2 -2
- package/src/generated/GetRoomsByQuery.ts +2 -2
- package/src/generated/GetSessionNicknamesByQuery.ts +2 -2
- package/src/generated/GetSessionsByQuery.ts +2 -2
- package/src/generated/{GetAllServers.ts → IdFilter.ts} +1 -1
- package/src/generated/MessageQuery.ts +9 -0
- package/src/generated/MessageReadQuery.ts +8 -0
- package/src/generated/{CommandError.ts → NumericFilter.ts} +1 -1
- package/src/generated/RoomMemberQuery.ts +8 -0
- package/src/generated/RoomQuery.ts +8 -0
- package/src/generated/SessionNicknameQuery.ts +6 -0
- package/src/generated/SessionQuery.ts +9 -0
- package/src/generated/SetRoomDescription.ts +1 -1
- package/src/generated/SetRoomDescriptionArgs.ts +1 -1
- package/src/generated/SetSessionActivity.ts +1 -1
- package/src/generated/SetSessionActivityArgs.ts +1 -1
- package/src/generated/SetSessionCurrentTask.ts +1 -1
- package/src/generated/SetSessionCurrentTaskArgs.ts +1 -1
- package/src/generated/SetSessionGitBranch.ts +1 -1
- package/src/generated/SetSessionGitBranchArgs.ts +1 -1
- package/src/generated/SetSessionLastActivityAt.ts +1 -1
- package/src/generated/SetSessionLastActivityAtArgs.ts +1 -1
- package/src/generated/SetSessionLastTool.ts +1 -1
- package/src/generated/SetSessionLastToolArgs.ts +1 -1
- package/src/generated/SetSessionLastToolAt.ts +1 -1
- package/src/generated/SetSessionLastToolAtArgs.ts +1 -1
- package/src/generated/SetSessionSessionName.ts +1 -1
- package/src/generated/SetSessionSessionNameArgs.ts +1 -1
- package/src/generated/StringFilter.ts +3 -0
- package/src/generated/{ServerId.ts → Unfilterable.ts} +1 -1
- package/src/generated/index.ts +356 -436
- package/src/generated/serde_json/JsonValue.ts +1 -1
- package/src/generated/CancelSubscription.ts +0 -6
- package/src/generated/ChildEntities.ts +0 -6
- package/src/generated/ChildEntitiesAllTime.ts +0 -6
- package/src/generated/ClearClientWindbackTime.ts +0 -7
- package/src/generated/ClearClientWindbackTimeArgs.ts +0 -3
- package/src/generated/Client.ts +0 -14
- package/src/generated/ClientCount.ts +0 -3
- package/src/generated/ClientStatus.ts +0 -7
- package/src/generated/ClientStatusOutput.ts +0 -3
- package/src/generated/CommandResponse.ts +0 -4
- package/src/generated/CountAllClients.ts +0 -3
- package/src/generated/CountAllServers.ts +0 -3
- package/src/generated/CountClients.ts +0 -4
- package/src/generated/CountServers.ts +0 -4
- package/src/generated/DeleteClient.ts +0 -7
- package/src/generated/DeleteClientArgs.ts +0 -4
- package/src/generated/DeleteClientResult.ts +0 -6
- package/src/generated/DeleteClients.ts +0 -7
- package/src/generated/DeleteClientsArgs.ts +0 -4
- package/src/generated/DeleteClientsResult.ts +0 -6
- package/src/generated/DeleteServer.ts +0 -7
- package/src/generated/DeleteServerArgs.ts +0 -4
- package/src/generated/DeleteServerResult.ts +0 -6
- package/src/generated/DeleteServers.ts +0 -7
- package/src/generated/DeleteServersArgs.ts +0 -4
- package/src/generated/DeleteServersResult.ts +0 -6
- package/src/generated/EntitySearch.ts +0 -21
- package/src/generated/EntitySearchResult.ts +0 -10
- package/src/generated/EntitySnapshotDifference.ts +0 -6
- package/src/generated/EntitySnapshotDifferenceData.ts +0 -7
- package/src/generated/EntityTreeExport.ts +0 -27
- package/src/generated/EventContainer.ts +0 -7
- package/src/generated/EventOptions.ts +0 -11
- package/src/generated/EventsForTransaction.ts +0 -6
- package/src/generated/ExportEntityTree.ts +0 -24
- package/src/generated/ExportedEntity.ts +0 -15
- package/src/generated/FullChildEntities.ts +0 -6
- package/src/generated/GetAllClients.ts +0 -3
- package/src/generated/GetClientById.ts +0 -4
- package/src/generated/GetClientsByIds.ts +0 -4
- package/src/generated/GetClientsByQuery.ts +0 -4
- package/src/generated/GetConnectedServer.ts +0 -3
- package/src/generated/GetItemsByTypeAndIds.ts +0 -14
- package/src/generated/GetPeerServers.ts +0 -3
- package/src/generated/GetPersistHealth.ts +0 -8
- package/src/generated/GetServerById.ts +0 -4
- package/src/generated/GetServersByIds.ts +0 -4
- package/src/generated/GetServersByQuery.ts +0 -4
- package/src/generated/ImportItems.ts +0 -19
- package/src/generated/ImportItemsArgs.ts +0 -13
- package/src/generated/ItemStub.ts +0 -7
- package/src/generated/LogLevel.ts +0 -6
- package/src/generated/Loggers.ts +0 -6
- package/src/generated/MEvent.ts +0 -5
- package/src/generated/MEventType.ts +0 -3
- package/src/generated/MykoMessage.ts +0 -19
- package/src/generated/PartialClient.ts +0 -14
- package/src/generated/PartialMessage.ts +0 -60
- package/src/generated/PartialMessageRead.ts +0 -10
- package/src/generated/PartialRoom.ts +0 -23
- package/src/generated/PartialRoomMember.ts +0 -13
- package/src/generated/PartialServer.ts +0 -4
- package/src/generated/PartialSession.ts +0 -130
- package/src/generated/PartialSessionNickname.ts +0 -9
- package/src/generated/PeerAlive.ts +0 -7
- package/src/generated/PersistHealthStatus.ts +0 -34
- package/src/generated/PingData.ts +0 -14
- package/src/generated/QueryError.ts +0 -3
- package/src/generated/QueryWindow.ts +0 -3
- package/src/generated/QueryWindowUpdate.ts +0 -4
- package/src/generated/ReportError.ts +0 -3
- package/src/generated/ReportResponse.ts +0 -4
- package/src/generated/SearchServer.ts +0 -8
- package/src/generated/SearchServerResult.ts +0 -4
- package/src/generated/Server.ts +0 -4
- package/src/generated/ServerCount.ts +0 -3
- package/src/generated/ServerLogLevel.ts +0 -6
- package/src/generated/ServerStats.ts +0 -27
- package/src/generated/ServerStatsOutput.ts +0 -20
- package/src/generated/SetClientWindbackTime.ts +0 -11
- package/src/generated/SetClientWindbackTimeArgs.ts +0 -7
- package/src/generated/SetLogLevel.ts +0 -7
- package/src/generated/SetLogLevelArgs.ts +0 -4
- package/src/generated/ViewError.ts +0 -3
- package/src/generated/ViewWindowUpdate.ts +0 -4
- package/src/generated/WindbackStatus.ts +0 -3
- package/src/generated/WindbackStatusOutput.ts +0 -11
- package/src/generated/WrappedCommand.ts +0 -4
- package/src/generated/WrappedItem.ts +0 -7
- package/src/generated/WrappedQuery.ts +0 -5
- package/src/generated/WrappedReport.ts +0 -4
- package/src/generated/WrappedView.ts +0 -5
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { RoomId } from "./RoomId";
|
|
3
|
-
import type { RoomKind } from "./RoomKind";
|
|
4
|
-
|
|
5
|
-
export type PartialRoom = {
|
|
6
|
-
/**
|
|
7
|
-
* Display name. For auto-rooms, equal to `id`. For ad-hoc rooms,
|
|
8
|
-
* the user-supplied label (which `id` is slugified from).
|
|
9
|
-
*/
|
|
10
|
-
name?: string,
|
|
11
|
-
/**
|
|
12
|
-
* Optional human-readable purpose for the room (set by the
|
|
13
|
-
* creator, displayed in `list_rooms`).
|
|
14
|
-
*/
|
|
15
|
-
description?: string | null,
|
|
16
|
-
/**
|
|
17
|
-
* Whether this room is identity-anchored or user-created.
|
|
18
|
-
*/
|
|
19
|
-
kind?: RoomKind,
|
|
20
|
-
/**
|
|
21
|
-
* Wall-clock millis when the room was first created.
|
|
22
|
-
*/
|
|
23
|
-
createdAt?: bigint, id?: RoomId, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { RoomId } from "./RoomId";
|
|
3
|
-
import type { RoomMemberId } from "./RoomMemberId";
|
|
4
|
-
import type { SessionId } from "./SessionId";
|
|
5
|
-
|
|
6
|
-
export type PartialRoomMember = { roomId?: RoomId, sessionId?: SessionId,
|
|
7
|
-
/**
|
|
8
|
-
* Wall-clock millis when this session first joined this room.
|
|
9
|
-
* Used by `read_messages` visibility rules: members only see
|
|
10
|
-
* messages sent at or after `joined_at` so a re-join doesn't
|
|
11
|
-
* surface back-history they were never part of.
|
|
12
|
-
*/
|
|
13
|
-
joinedAt?: bigint, id?: RoomMemberId, };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { ServerId } from "./ServerId";
|
|
3
|
-
|
|
4
|
-
export type PartialServer = { version?: string, address?: string, port?: number, startedAt?: string, id?: ServerId, };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { ClientId } from "./ClientId";
|
|
3
|
-
import type { HostInfo } from "./HostInfo";
|
|
4
|
-
import type { SessionId } from "./SessionId";
|
|
5
|
-
|
|
6
|
-
export type PartialSession = {
|
|
7
|
-
/**
|
|
8
|
-
* WebSocket client this session is currently bound to. Auto-populated
|
|
9
|
-
* by the server from the WS connection — clients send the SET command
|
|
10
|
-
* without providing it. There is intentionally no `belongs_to(Client)`
|
|
11
|
-
* cascade: sessions are durable roster entries that survive
|
|
12
|
-
* disconnects (and daemon restarts, via the disk persister). Whether
|
|
13
|
-
* a session's shim is currently live is determined by looking up
|
|
14
|
-
* `client_id` in the Client store; absent there ⇒ disconnected.
|
|
15
|
-
*/
|
|
16
|
-
clientId?: ClientId | null,
|
|
17
|
-
/**
|
|
18
|
-
* OS process id of the connecting client.
|
|
19
|
-
*/
|
|
20
|
-
pid?: number,
|
|
21
|
-
/**
|
|
22
|
-
* Working directory the client launched from.
|
|
23
|
-
*/
|
|
24
|
-
cwd?: string,
|
|
25
|
-
/**
|
|
26
|
-
* Git branch in `cwd`, if it's a repo. Pushed by the shim's HEAD watcher
|
|
27
|
-
* on checkout/switch (event-driven, not sampled at startup) so peers see
|
|
28
|
-
* branch changes mid-session, matching the operator's own statusline.
|
|
29
|
-
*/
|
|
30
|
-
gitBranch?: string | null,
|
|
31
|
-
/**
|
|
32
|
-
* Free-form short status text, settable via the `set_status` command.
|
|
33
|
-
* Surfaces on the roster so peers can see what this session is up to
|
|
34
|
-
* without needing a separate task system.
|
|
35
|
-
*/
|
|
36
|
-
currentTask?: string | null,
|
|
37
|
-
/**
|
|
38
|
-
* Human-facing session name. For Claude Code this is the operator's
|
|
39
|
-
* `/rename` value (Claude's auto-generated title until they rename),
|
|
40
|
-
* read by the shim from Claude's per-PID manifest
|
|
41
|
-
* `~/.claude/sessions/<pid>.json` (`name`) and refreshed when it
|
|
42
|
-
* changes mid-session. Distinct from `nickname` — the daemon-assigned
|
|
43
|
-
* stable handle peers ADDRESS: this is what the human *called* the
|
|
44
|
-
* session, so the roster is legible for cross-repo targeting ("which
|
|
45
|
-
* agent is doing X"). `None` for harnesses with no such manifest
|
|
46
|
-
* (Codex) or Claude builds predating it.
|
|
47
|
-
*/
|
|
48
|
-
sessionName?: string | null,
|
|
49
|
-
/**
|
|
50
|
-
* Live activity / turn-state, from Claude's per-PID manifest `status`:
|
|
51
|
-
* `"busy"` (processing a turn), `"idle"` (awaiting input), or `"shell"`
|
|
52
|
-
* (in a shell command). A truer "is this agent working right now" signal
|
|
53
|
-
* than `last_activity_at`, which only moves on MCP tool calls — an agent
|
|
54
|
-
* can be `busy` for minutes without touching marshal. The shim pushes it
|
|
55
|
-
* event-driven (an fs-watch on the manifest), so the roster tracks
|
|
56
|
-
* turn-state in near real time. `None` for harnesses with no such
|
|
57
|
-
* manifest (Codex) or older Claude builds.
|
|
58
|
-
*/
|
|
59
|
-
activity?: string | null,
|
|
60
|
-
/**
|
|
61
|
-
* Session kind, from the manifest `kind`: `"interactive"` (a human at a
|
|
62
|
-
* terminal) or `"bg"` (a background / headless agent). Set once at
|
|
63
|
-
* registration — it doesn't change over a session's life, so no setter.
|
|
64
|
-
* `None` when unknown (no manifest).
|
|
65
|
-
*/
|
|
66
|
-
kind?: string | null,
|
|
67
|
-
/**
|
|
68
|
-
* Wall-clock millis since unix epoch when the session connected.
|
|
69
|
-
*/
|
|
70
|
-
connectedAt?: bigint,
|
|
71
|
-
/**
|
|
72
|
-
* Wall-clock millis at the most recent shim-side activity (any
|
|
73
|
-
* MCP tool call). Bumped by the shim's `Activity` tracker (the
|
|
74
|
-
* same one that gates the self-update watcher's exec swap) and
|
|
75
|
-
* flushed upstream periodically — `None` until the first push,
|
|
76
|
-
* then a sliding timestamp the roster surfaces uses to compute
|
|
77
|
-
* "did this peer do anything in the last N seconds?". Stale =
|
|
78
|
-
* candidate for the stuck-session visualization.
|
|
79
|
-
*/
|
|
80
|
-
lastActivityAt?: bigint | null,
|
|
81
|
-
/**
|
|
82
|
-
* Name of the most recent MCP tool the shim served (e.g.
|
|
83
|
-
* "send_message", "set_status"). Captures only the tool name —
|
|
84
|
-
* no arguments, no payloads — so the roster can show "this peer
|
|
85
|
-
* last called X 3s ago" without leaking message content. Pair
|
|
86
|
-
* with `last_tool_at` for staleness reasoning.
|
|
87
|
-
*/
|
|
88
|
-
lastTool?: string | null,
|
|
89
|
-
/**
|
|
90
|
-
* Wall-clock millis when `last_tool` was served. Distinct from
|
|
91
|
-
* `last_activity_at` because activity covers all shim traffic
|
|
92
|
-
* (notifications, periodic heartbeats, anything the dispatcher
|
|
93
|
-
* touches) while this is the timestamp of the last *named* MCP
|
|
94
|
-
* tool call. They typically agree, but a session that only
|
|
95
|
-
* receives notifications and never calls a tool will have a
|
|
96
|
-
* fresh `last_activity_at` and a stale `last_tool_at`.
|
|
97
|
-
*/
|
|
98
|
-
lastToolAt?: bigint | null,
|
|
99
|
-
/**
|
|
100
|
-
* Which human this session belongs to. Resolved by the shim:
|
|
101
|
-
* `$MARSHAL_OPERATOR` → `$USER` → `"anonymous"`. Anchors the
|
|
102
|
-
* auto-room `op:<operator>`, so peers can see "all of trevor's
|
|
103
|
-
* sessions" regardless of cwd. `None` for legacy / observer
|
|
104
|
-
* shims that don't set it.
|
|
105
|
-
*/
|
|
106
|
-
operator?: string | null,
|
|
107
|
-
/**
|
|
108
|
-
* Host environment summary the shim populates at startup.
|
|
109
|
-
* Anchors the auto-room `host:<name>`. See `HostInfo`.
|
|
110
|
-
*/
|
|
111
|
-
host?: HostInfo | null,
|
|
112
|
-
/**
|
|
113
|
-
* Project basename — the basename of the git repo root containing
|
|
114
|
-
* this session's `cwd`. Resolved by the shim at startup (the
|
|
115
|
-
* daemon can't run `git` against a remote shim's filesystem).
|
|
116
|
-
* Anchors the auto-room `project:<basename>`. `None` when `cwd`
|
|
117
|
-
* isn't inside a git repo.
|
|
118
|
-
*/
|
|
119
|
-
project?: string | null,
|
|
120
|
-
/**
|
|
121
|
-
* Whether this session can receive LIVE channel pushes — i.e. its
|
|
122
|
-
* claude was launched with `--dangerously-load-development-channels
|
|
123
|
-
* …marshal`. The shim resolves it from the parent process at startup;
|
|
124
|
-
* the daemon can't see it (it's a recipient-host launch detail).
|
|
125
|
-
* `None` = unknown (legacy shim that doesn't report it). `SendMessage`
|
|
126
|
-
* uses it to report `delivered_live` HONESTLY: a live WS client with
|
|
127
|
-
* channels OFF still can't render a push, so the message is queued to
|
|
128
|
-
* the inbox (delivered_live = false) rather than claimed as live.
|
|
129
|
-
*/
|
|
130
|
-
channelsEnabled?: boolean | null, id?: SessionId, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { SessionNicknameId } from "./SessionNicknameId";
|
|
3
|
-
|
|
4
|
-
export type PartialSessionNickname = {
|
|
5
|
-
/**
|
|
6
|
-
* The assigned `adjective-noun` handle, frozen for this session's life.
|
|
7
|
-
* The entity `id` is the session id it belongs to.
|
|
8
|
-
*/
|
|
9
|
-
nickname?: string, id?: SessionNicknameId, };
|
|
@@ -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
|
-
/**
|
|
4
|
-
* Report that checks whether a peer server client is currently connected.
|
|
5
|
-
* Returns ping in milliseconds when available, otherwise `-1`.
|
|
6
|
-
*/
|
|
7
|
-
export type PeerAlive = { peerId: string, };
|
|
@@ -1,34 +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
|
-
/**
|
|
4
|
-
* Health snapshot for the persist subsystem.
|
|
5
|
-
*/
|
|
6
|
-
export type PersistHealthStatus = {
|
|
7
|
-
/**
|
|
8
|
-
* Events queued but not yet written.
|
|
9
|
-
*/
|
|
10
|
-
queued: bigint,
|
|
11
|
-
/**
|
|
12
|
-
* Lifetime successful writes.
|
|
13
|
-
*/
|
|
14
|
-
totalPersisted: bigint,
|
|
15
|
-
/**
|
|
16
|
-
* Lifetime failed writes.
|
|
17
|
-
*/
|
|
18
|
-
totalErrors: bigint,
|
|
19
|
-
/**
|
|
20
|
-
* Consecutive failures since last success.
|
|
21
|
-
*/
|
|
22
|
-
consecutiveErrors: bigint,
|
|
23
|
-
/**
|
|
24
|
-
* Most recent error message, if any.
|
|
25
|
-
*/
|
|
26
|
-
lastError?: string | null,
|
|
27
|
-
/**
|
|
28
|
-
* Whether the persister is currently healthy (no consecutive errors).
|
|
29
|
-
*/
|
|
30
|
-
healthy: boolean,
|
|
31
|
-
/**
|
|
32
|
-
* Writes per second over a sliding window.
|
|
33
|
-
*/
|
|
34
|
-
writesPerSecond: number, };
|
|
@@ -1,14 +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
|
-
/**
|
|
4
|
-
* Ping payload for latency measurement
|
|
5
|
-
*/
|
|
6
|
-
export type PingData = {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier to correlate ping/pong
|
|
9
|
-
*/
|
|
10
|
-
id: string,
|
|
11
|
-
/**
|
|
12
|
-
* Client-side timestamp when ping was sent (milliseconds since epoch)
|
|
13
|
-
*/
|
|
14
|
-
timestamp: bigint, };
|
|
@@ -1,8 +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
|
-
/**
|
|
4
|
-
* Search this entity type by query string. Backed by the typed
|
|
5
|
-
* per-entity `SearchIndex<T>` (exact + nucleo subsequence +
|
|
6
|
-
* Levenshtein typo). Returns matching ids in tier order.
|
|
7
|
-
*/
|
|
8
|
-
export type SearchServer = { query: string, limit: number, };
|
package/src/generated/Server.ts
DELETED
|
@@ -1,27 +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
|
-
/**
|
|
4
|
-
* Report that returns current server statistics.
|
|
5
|
-
*
|
|
6
|
-
* This report demonstrates:
|
|
7
|
-
* - Subscribing to multiple queries (`GetConnectedServer`, `GetAllClients`)
|
|
8
|
-
* - Combining query results reactively
|
|
9
|
-
* - Computing derived values (uptime)
|
|
10
|
-
*
|
|
11
|
-
* # Example
|
|
12
|
-
*
|
|
13
|
-
* ```text
|
|
14
|
-
* // Client-side usage:
|
|
15
|
-
* let cell = client.watch_report::<ServerStats, ServerStatsOutput>(ServerStats {});
|
|
16
|
-
*
|
|
17
|
-
* // `cell` updates whenever server/client state changes.
|
|
18
|
-
* // Read current value:
|
|
19
|
-
* let latest = cell.get();
|
|
20
|
-
*
|
|
21
|
-
* // Or subscribe reactively:
|
|
22
|
-
* let _guard = cell.subscribe(|signal| {
|
|
23
|
-
* // handle Signal::Value(Some(ServerStatsOutput { ... }))
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export type ServerStats = Record<string, never>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { Server } from "./Server";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Server statistics including connected client count.
|
|
6
|
-
* This is a manually implemented report demonstrating reactive query subscriptions.
|
|
7
|
-
*/
|
|
8
|
-
export type ServerStatsOutput = {
|
|
9
|
-
/**
|
|
10
|
-
* The server entity (if found)
|
|
11
|
-
*/
|
|
12
|
-
server: Server | null,
|
|
13
|
-
/**
|
|
14
|
-
* Number of clients connected to this server
|
|
15
|
-
*/
|
|
16
|
-
clientCount: number,
|
|
17
|
-
/**
|
|
18
|
-
* Server uptime in seconds (computed from started_at)
|
|
19
|
-
*/
|
|
20
|
-
uptimeSeconds: bigint | null, };
|
|
@@ -1,11 +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
|
-
/**
|
|
4
|
-
* Command to set the windback time for the current client.
|
|
5
|
-
* When set, queries return historical state as of the specified timestamp.
|
|
6
|
-
*/
|
|
7
|
-
export type SetClientWindbackTime = {
|
|
8
|
-
/**
|
|
9
|
-
* ISO timestamp to wind back to
|
|
10
|
-
*/
|
|
11
|
-
windback: string, };
|
|
@@ -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
|
-
import type { LogLevel } from "./LogLevel";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Command to set the log level for a server.
|
|
6
|
-
*/
|
|
7
|
-
export type SetLogLevel = { serverId: string, level: LogLevel, };
|
|
@@ -1,11 +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
|
-
/**
|
|
4
|
-
* Report that returns the current windback time for the requesting client.
|
|
5
|
-
* Returns None if the client is not in windback mode.
|
|
6
|
-
*/
|
|
7
|
-
export type WindbackStatusOutput = {
|
|
8
|
-
/**
|
|
9
|
-
* ISO timestamp if in windback mode, None otherwise
|
|
10
|
-
*/
|
|
11
|
-
windback: string | null, };
|
|
@@ -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
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* JSON-valued item wrapper for deserialization and TS export.
|
|
6
|
-
*/
|
|
7
|
-
export type WrappedItem = { item: JsonValue, itemType: string, };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { QueryWindow } from "./QueryWindow";
|
|
3
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
4
|
-
|
|
5
|
-
export type WrappedQuery = { query: JsonValue, queryId: string, queryItemType: string, window?: QueryWindow | null, };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { QueryWindow } from "./QueryWindow";
|
|
3
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
4
|
-
|
|
5
|
-
export type WrappedView = { view: JsonValue, viewId: string, viewItemType: string, window?: QueryWindow | null, };
|