@moltzap/client 2026.811.0 → 2026.812.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.
Files changed (190) hide show
  1. package/dist/channel-base/index.d.ts +4 -4
  2. package/dist/channel-base/index.d.ts.map +1 -1
  3. package/dist/channel-base/index.js +6 -3
  4. package/dist/channel-base/index.js.map +1 -1
  5. package/dist/channel-core-enrichment.d.ts +24 -0
  6. package/dist/channel-core-enrichment.d.ts.map +1 -1
  7. package/dist/channel-core-enrichment.js +94 -20
  8. package/dist/channel-core-enrichment.js.map +1 -1
  9. package/dist/channel-core.d.ts +3 -1
  10. package/dist/channel-core.d.ts.map +1 -1
  11. package/dist/channel-core.js +2 -0
  12. package/dist/channel-core.js.map +1 -1
  13. package/dist/config.d.ts +2 -2
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +7 -1
  16. package/dist/config.js.map +1 -1
  17. package/dist/config.test-utils.d.ts +6 -0
  18. package/dist/config.test-utils.d.ts.map +1 -1
  19. package/dist/config.test-utils.js +5 -1
  20. package/dist/config.test-utils.js.map +1 -1
  21. package/dist/harness/client-runtime.d.ts +12 -5
  22. package/dist/harness/client-runtime.d.ts.map +1 -1
  23. package/dist/harness/client-runtime.js +16 -2
  24. package/dist/harness/client-runtime.js.map +1 -1
  25. package/dist/harness/index.d.ts +2 -2
  26. package/dist/harness/index.d.ts.map +1 -1
  27. package/dist/harness/index.js +2 -2
  28. package/dist/harness/index.js.map +1 -1
  29. package/dist/harness/runtime.d.ts +152 -0
  30. package/dist/harness/runtime.d.ts.map +1 -1
  31. package/dist/harness/runtime.js +99 -2
  32. package/dist/harness/runtime.js.map +1 -1
  33. package/dist/harness-client.d.ts +17 -13
  34. package/dist/harness-client.d.ts.map +1 -1
  35. package/dist/harness-client.js +59 -4
  36. package/dist/harness-client.js.map +1 -1
  37. package/dist/harness-context-projection.d.ts +35 -0
  38. package/dist/harness-context-projection.d.ts.map +1 -0
  39. package/dist/harness-context-projection.js +123 -0
  40. package/dist/harness-context-projection.js.map +1 -0
  41. package/dist/harness-mcp-server.d.ts +1 -2
  42. package/dist/harness-mcp-server.d.ts.map +1 -1
  43. package/dist/harness-mcp-server.js +11 -17
  44. package/dist/harness-mcp-server.js.map +1 -1
  45. package/dist/harness-mcp-wire.d.ts +47 -15
  46. package/dist/harness-mcp-wire.d.ts.map +1 -1
  47. package/dist/harness-mcp-wire.js +93 -37
  48. package/dist/harness-mcp-wire.js.map +1 -1
  49. package/dist/index.d.ts +3 -1
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +2 -0
  52. package/dist/index.js.map +1 -1
  53. package/dist/local-paths.d.ts +0 -11
  54. package/dist/local-paths.d.ts.map +1 -1
  55. package/dist/local-paths.js +0 -12
  56. package/dist/local-paths.js.map +1 -1
  57. package/dist/moltzapd-catalog.d.ts +35 -0
  58. package/dist/moltzapd-catalog.d.ts.map +1 -0
  59. package/dist/moltzapd-catalog.js +117 -0
  60. package/dist/moltzapd-catalog.js.map +1 -0
  61. package/dist/moltzapd-child-ipc.d.ts +26 -0
  62. package/dist/moltzapd-child-ipc.d.ts.map +1 -0
  63. package/dist/moltzapd-child-ipc.js +31 -0
  64. package/dist/moltzapd-child-ipc.js.map +1 -0
  65. package/dist/moltzapd-child.d.ts +55 -0
  66. package/dist/moltzapd-child.d.ts.map +1 -0
  67. package/dist/moltzapd-child.js +225 -0
  68. package/dist/moltzapd-child.js.map +1 -0
  69. package/dist/moltzapd-main.d.ts +3 -0
  70. package/dist/moltzapd-main.d.ts.map +1 -0
  71. package/dist/moltzapd-main.js +18 -0
  72. package/dist/moltzapd-main.js.map +1 -0
  73. package/dist/moltzapd-registration.d.ts +40 -0
  74. package/dist/moltzapd-registration.d.ts.map +1 -0
  75. package/dist/moltzapd-registration.js +59 -0
  76. package/dist/moltzapd-registration.js.map +1 -0
  77. package/dist/moltzapd.d.ts +56 -9
  78. package/dist/moltzapd.d.ts.map +1 -1
  79. package/dist/moltzapd.js +108 -36
  80. package/dist/moltzapd.js.map +1 -1
  81. package/dist/notification/trace.d.ts +10 -0
  82. package/dist/notification/trace.d.ts.map +1 -0
  83. package/dist/notification/trace.js +34 -0
  84. package/dist/notification/trace.js.map +1 -0
  85. package/dist/presentation/index.d.ts +3 -0
  86. package/dist/presentation/index.d.ts.map +1 -0
  87. package/dist/presentation/index.js +3 -0
  88. package/dist/presentation/index.js.map +1 -0
  89. package/dist/presentation/state.d.ts +77 -0
  90. package/dist/presentation/state.d.ts.map +1 -0
  91. package/dist/presentation/state.js +211 -0
  92. package/dist/presentation/state.js.map +1 -0
  93. package/dist/profile.d.ts +30 -28
  94. package/dist/profile.d.ts.map +1 -1
  95. package/dist/profile.js +28 -20
  96. package/dist/profile.js.map +1 -1
  97. package/dist/service.d.ts +8 -79
  98. package/dist/service.d.ts.map +1 -1
  99. package/dist/service.js +29 -333
  100. package/dist/service.js.map +1 -1
  101. package/dist/test-utils/fake-service.d.ts +3 -5
  102. package/dist/test-utils/fake-service.d.ts.map +1 -1
  103. package/dist/test-utils/fake-service.js +12 -12
  104. package/dist/test-utils/fake-service.js.map +1 -1
  105. package/dist/test-utils/index.d.ts +2 -0
  106. package/dist/test-utils/index.d.ts.map +1 -1
  107. package/dist/test-utils/index.js +2 -0
  108. package/dist/test-utils/index.js.map +1 -1
  109. package/dist/test-utils/process/reserve-port.d.ts +20 -0
  110. package/dist/test-utils/process/reserve-port.d.ts.map +1 -0
  111. package/dist/test-utils/process/reserve-port.js +41 -0
  112. package/dist/test-utils/process/reserve-port.js.map +1 -0
  113. package/dist/tsconfig.tsbuildinfo +1 -1
  114. package/package.json +32 -6
  115. package/dist/cli/adapters.d.ts +0 -21
  116. package/dist/cli/adapters.d.ts.map +0 -1
  117. package/dist/cli/adapters.js +0 -111
  118. package/dist/cli/adapters.js.map +0 -1
  119. package/dist/cli/commands/agents.d.ts +0 -11
  120. package/dist/cli/commands/agents.d.ts.map +0 -1
  121. package/dist/cli/commands/agents.js +0 -27
  122. package/dist/cli/commands/agents.js.map +0 -1
  123. package/dist/cli/commands/conversations.d.ts +0 -18
  124. package/dist/cli/commands/conversations.d.ts.map +0 -1
  125. package/dist/cli/commands/conversations.js +0 -33
  126. package/dist/cli/commands/conversations.js.map +0 -1
  127. package/dist/cli/commands/messages.d.ts +0 -41
  128. package/dist/cli/commands/messages.d.ts.map +0 -1
  129. package/dist/cli/commands/messages.js +0 -39
  130. package/dist/cli/commands/messages.js.map +0 -1
  131. package/dist/cli/commands/register.d.ts +0 -46
  132. package/dist/cli/commands/register.d.ts.map +0 -1
  133. package/dist/cli/commands/register.js +0 -103
  134. package/dist/cli/commands/register.js.map +0 -1
  135. package/dist/cli/commands/send.d.ts +0 -53
  136. package/dist/cli/commands/send.d.ts.map +0 -1
  137. package/dist/cli/commands/send.js +0 -57
  138. package/dist/cli/commands/send.js.map +0 -1
  139. package/dist/cli/commands/start.d.ts +0 -34
  140. package/dist/cli/commands/start.d.ts.map +0 -1
  141. package/dist/cli/commands/start.js +0 -59
  142. package/dist/cli/commands/start.js.map +0 -1
  143. package/dist/cli/commands/status.d.ts +0 -7
  144. package/dist/cli/commands/status.d.ts.map +0 -1
  145. package/dist/cli/commands/status.js +0 -16
  146. package/dist/cli/commands/status.js.map +0 -1
  147. package/dist/cli/commands/test-transport.d.ts +0 -28
  148. package/dist/cli/commands/test-transport.d.ts.map +0 -1
  149. package/dist/cli/commands/test-transport.js +0 -40
  150. package/dist/cli/commands/test-transport.js.map +0 -1
  151. package/dist/cli/index.d.ts +0 -3
  152. package/dist/cli/index.d.ts.map +0 -1
  153. package/dist/cli/index.js +0 -105
  154. package/dist/cli/index.js.map +0 -1
  155. package/dist/cli/output.d.ts +0 -14
  156. package/dist/cli/output.d.ts.map +0 -1
  157. package/dist/cli/output.js +0 -19
  158. package/dist/cli/output.js.map +0 -1
  159. package/dist/cli/socket-client.d.ts +0 -28
  160. package/dist/cli/socket-client.d.ts.map +0 -1
  161. package/dist/cli/socket-client.js +0 -63
  162. package/dist/cli/socket-client.js.map +0 -1
  163. package/dist/cli/transport.d.ts +0 -132
  164. package/dist/cli/transport.d.ts.map +0 -1
  165. package/dist/cli/transport.js +0 -127
  166. package/dist/cli/transport.js.map +0 -1
  167. package/dist/local-daemon-rpc.d.ts +0 -1170
  168. package/dist/local-daemon-rpc.d.ts.map +0 -1
  169. package/dist/local-daemon-rpc.js +0 -178
  170. package/dist/local-daemon-rpc.js.map +0 -1
  171. package/dist/local-history.d.ts +0 -75
  172. package/dist/local-history.d.ts.map +0 -1
  173. package/dist/local-history.js +0 -82
  174. package/dist/local-history.js.map +0 -1
  175. package/dist/local-socket-server.d.ts +0 -33
  176. package/dist/local-socket-server.d.ts.map +0 -1
  177. package/dist/local-socket-server.js +0 -100
  178. package/dist/local-socket-server.js.map +0 -1
  179. package/dist/refs.d.ts +0 -18
  180. package/dist/refs.d.ts.map +0 -1
  181. package/dist/refs.js +0 -18
  182. package/dist/refs.js.map +0 -1
  183. package/dist/service-helpers.d.ts +0 -55
  184. package/dist/service-helpers.d.ts.map +0 -1
  185. package/dist/service-helpers.js +0 -108
  186. package/dist/service-helpers.js.map +0 -1
  187. package/dist/service-local-daemon.d.ts +0 -32
  188. package/dist/service-local-daemon.d.ts.map +0 -1
  189. package/dist/service-local-daemon.js +0 -153
  190. package/dist/service-local-daemon.js.map +0 -1
@@ -1,1170 +0,0 @@
1
- import { Rpc, RpcGroup } from "@effect/rpc";
2
- import { Schema } from "effect";
3
- import type * as SchemaAST from "effect/SchemaAST";
4
- import { NotConnectedError, RpcTimeoutError } from "@moltzap/protocol/rpc";
5
- /** A conversation is the whole address. */
6
- export declare const sendTarget: Schema.transformOrFail<typeof Schema.String, Schema.Struct<{
7
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
8
- }>, never>;
9
- /** Represents send target values. */
10
- export type SendTarget = Schema.Schema.Type<typeof sendTarget>;
11
- /** Validates and decodes start participant values. */
12
- export declare const startParticipant: Schema.transformOrFail<typeof Schema.String, Schema.Union<[Schema.Struct<{
13
- kind: Schema.Literal<["id"]>;
14
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
15
- }>, Schema.Struct<{
16
- kind: Schema.Literal<["name"]>;
17
- token: typeof Schema.String;
18
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
19
- }>]>, never>;
20
- /** Represents start participant values. */
21
- export type StartParticipant = Schema.Schema.Type<typeof startParticipant>;
22
- /** Provides the local daemon commands runtime value. */
23
- export declare const localDaemonCommands: {
24
- readonly status: "daemon/status";
25
- readonly history: "daemon/history";
26
- readonly agentsList: "cli/agents/list";
27
- readonly agentsSearch: "cli/agents/search";
28
- readonly messagesList: "cli/messages/list";
29
- readonly send: "cli/send";
30
- readonly start: "cli/start";
31
- };
32
- declare const sendCommandPayload: Schema.Struct<{
33
- target: Schema.transformOrFail<typeof Schema.String, Schema.Struct<{
34
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
35
- }>, never>;
36
- message: Schema.filter<typeof Schema.String>;
37
- }>;
38
- /** Represents send command payload values. */
39
- export type SendCommandPayload = Schema.Schema.Type<typeof sendCommandPayload>;
40
- declare const startCommandPayload: Schema.Struct<{
41
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
42
- participants: Schema.Array$<Schema.transformOrFail<typeof Schema.String, Schema.Union<[Schema.Struct<{
43
- kind: Schema.Literal<["id"]>;
44
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
45
- }>, Schema.Struct<{
46
- kind: Schema.Literal<["name"]>;
47
- token: typeof Schema.String;
48
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
49
- }>]>, never>>;
50
- message: Schema.optional<typeof Schema.String>;
51
- }>;
52
- declare const startCommandResult: Schema.Struct<{
53
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
54
- sentMessageId: Schema.optional<Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>>;
55
- }>;
56
- /** Represents start command payload values. */
57
- export type StartCommandPayload = Schema.Schema.Type<typeof startCommandPayload>;
58
- /** Represents the result of start command. */
59
- export type StartCommandResult = Schema.Schema.Type<typeof startCommandResult>;
60
- declare const LocalDaemonInputError_base: Schema.TaggedErrorClass<LocalDaemonInputError, "LocalDaemonInputError", {
61
- readonly _tag: Schema.tag<"LocalDaemonInputError">;
62
- } & {
63
- message: typeof Schema.String;
64
- }>;
65
- /** Reports local daemon input failures. */
66
- export declare class LocalDaemonInputError extends LocalDaemonInputError_base {
67
- }
68
- declare const StartUsageError_base: Schema.TaggedErrorClass<StartUsageError, "StartUsageError", {
69
- readonly _tag: Schema.tag<"StartUsageError">;
70
- } & {
71
- message: typeof Schema.String;
72
- }>;
73
- /** Reports start usage failures. */
74
- export declare class StartUsageError extends StartUsageError_base {
75
- }
76
- declare const StartPartialFailure_base: Schema.TaggedErrorClass<StartPartialFailure, "StartPartialFailure", {
77
- readonly _tag: Schema.tag<"StartPartialFailure">;
78
- } & {
79
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
80
- message: typeof Schema.String;
81
- }>;
82
- /** The conversation exists but its first message did not send. */
83
- export declare class StartPartialFailure extends StartPartialFailure_base {
84
- }
85
- declare const ServiceInputError_base: Schema.TaggedErrorClass<ServiceInputError, "ServiceInputError", {
86
- readonly _tag: Schema.tag<"ServiceInputError">;
87
- } & {
88
- message: typeof Schema.String;
89
- }>;
90
- /** Reports service input failures. */
91
- export declare class ServiceInputError extends ServiceInputError_base {
92
- }
93
- declare const localDaemonErrorSchema: Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
94
- readonly _tag: "Unauthorized";
95
- readonly data?: unknown;
96
- readonly message?: string | undefined;
97
- } | {
98
- readonly _tag: "InvalidParamsError";
99
- readonly data?: unknown;
100
- readonly message?: string | undefined;
101
- } | {
102
- readonly _tag: "ProtocolMismatchError";
103
- readonly data: {
104
- readonly clientMaxProtocol: string;
105
- readonly clientMinProtocol: string;
106
- readonly reason: "server-above-client-max" | "server-below-client-min";
107
- readonly serverVersion: string;
108
- };
109
- readonly message?: string | undefined;
110
- } | {
111
- readonly _tag: "AlreadyConnected";
112
- readonly data?: unknown;
113
- readonly message?: string | undefined;
114
- readonly principal: "agent" | "app";
115
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
116
- readonly _tag: "Unauthorized";
117
- readonly data?: unknown;
118
- readonly message?: string | undefined;
119
- } | {
120
- readonly _tag: "Forbidden";
121
- readonly data?: unknown;
122
- readonly message?: string | undefined;
123
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
124
- readonly _tag: "Unauthorized";
125
- readonly data?: unknown;
126
- readonly message?: string | undefined;
127
- } | {
128
- readonly _tag: "Forbidden";
129
- readonly data?: unknown;
130
- readonly message?: string | undefined;
131
- } | {
132
- readonly _tag: "InvalidParamsError";
133
- readonly data?: unknown;
134
- readonly message?: string | undefined;
135
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
136
- readonly _tag: "Unauthorized";
137
- readonly data?: unknown;
138
- readonly message?: string | undefined;
139
- } | {
140
- readonly _tag: "Forbidden";
141
- readonly data?: unknown;
142
- readonly message?: string | undefined;
143
- } | {
144
- readonly _tag: "InvalidParamsError";
145
- readonly data?: unknown;
146
- readonly message?: string | undefined;
147
- } | {
148
- readonly _tag: "ConversationNotFound";
149
- readonly data?: unknown;
150
- readonly message?: string | undefined;
151
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
152
- readonly _tag: "Unauthorized";
153
- readonly data?: unknown;
154
- readonly message?: string | undefined;
155
- } | {
156
- readonly _tag: "Forbidden";
157
- readonly data?: unknown;
158
- readonly message?: string | undefined;
159
- } | {
160
- readonly _tag: "AgentNotFound";
161
- readonly data?: unknown;
162
- readonly message?: string | undefined;
163
- } | {
164
- readonly _tag: "ConversationFull";
165
- readonly data?: unknown;
166
- readonly message?: string | undefined;
167
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
168
- readonly _tag: "Unauthorized";
169
- readonly data?: unknown;
170
- readonly message?: string | undefined;
171
- } | {
172
- readonly _tag: "Forbidden";
173
- readonly data?: unknown;
174
- readonly message?: string | undefined;
175
- }, never>)[]]>;
176
- /** Represents local daemon error conditions. */
177
- export type LocalDaemonError = Schema.Schema.Type<typeof localDaemonErrorSchema>;
178
- /** Validates and decodes is local daemon error values. */
179
- export declare const isLocalDaemonError: (u: unknown, overrideOptions?: SchemaAST.ParseOptions | number) => u is import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | LocalDaemonInputError | NotConnectedError | import("@moltzap/protocol/network").ProtocolMismatchError | RpcTimeoutError | ServiceInputError | StartPartialFailure | StartUsageError | import("@moltzap/protocol/rpc").UnauthorizedError;
180
- /**
181
- * Provides the to local daemon error runtime value.
182
- * @param error Error to inspect.
183
- * @returns The to local daemon error result.
184
- */
185
- export declare const toLocalDaemonError: (error: unknown) => LocalDaemonError;
186
- /** Provides the status command rpc runtime value. */
187
- export declare const statusCommandRpc: Rpc.Rpc<"daemon/status", Schema.Struct<{}>, Schema.Struct<{
188
- agentId: Schema.optional<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
189
- connected: typeof Schema.Boolean;
190
- conversations: Schema.filter<Schema.filter<typeof Schema.Number>>;
191
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
192
- readonly _tag: "Unauthorized";
193
- readonly data?: unknown;
194
- readonly message?: string | undefined;
195
- } | {
196
- readonly _tag: "InvalidParamsError";
197
- readonly data?: unknown;
198
- readonly message?: string | undefined;
199
- } | {
200
- readonly _tag: "ProtocolMismatchError";
201
- readonly data: {
202
- readonly clientMaxProtocol: string;
203
- readonly clientMinProtocol: string;
204
- readonly reason: "server-above-client-max" | "server-below-client-min";
205
- readonly serverVersion: string;
206
- };
207
- readonly message?: string | undefined;
208
- } | {
209
- readonly _tag: "AlreadyConnected";
210
- readonly data?: unknown;
211
- readonly message?: string | undefined;
212
- readonly principal: "agent" | "app";
213
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
214
- readonly _tag: "Unauthorized";
215
- readonly data?: unknown;
216
- readonly message?: string | undefined;
217
- } | {
218
- readonly _tag: "Forbidden";
219
- readonly data?: unknown;
220
- readonly message?: string | undefined;
221
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
222
- readonly _tag: "Unauthorized";
223
- readonly data?: unknown;
224
- readonly message?: string | undefined;
225
- } | {
226
- readonly _tag: "Forbidden";
227
- readonly data?: unknown;
228
- readonly message?: string | undefined;
229
- } | {
230
- readonly _tag: "InvalidParamsError";
231
- readonly data?: unknown;
232
- readonly message?: string | undefined;
233
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
234
- readonly _tag: "Unauthorized";
235
- readonly data?: unknown;
236
- readonly message?: string | undefined;
237
- } | {
238
- readonly _tag: "Forbidden";
239
- readonly data?: unknown;
240
- readonly message?: string | undefined;
241
- } | {
242
- readonly _tag: "InvalidParamsError";
243
- readonly data?: unknown;
244
- readonly message?: string | undefined;
245
- } | {
246
- readonly _tag: "ConversationNotFound";
247
- readonly data?: unknown;
248
- readonly message?: string | undefined;
249
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
250
- readonly _tag: "Unauthorized";
251
- readonly data?: unknown;
252
- readonly message?: string | undefined;
253
- } | {
254
- readonly _tag: "Forbidden";
255
- readonly data?: unknown;
256
- readonly message?: string | undefined;
257
- } | {
258
- readonly _tag: "AgentNotFound";
259
- readonly data?: unknown;
260
- readonly message?: string | undefined;
261
- } | {
262
- readonly _tag: "ConversationFull";
263
- readonly data?: unknown;
264
- readonly message?: string | undefined;
265
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
266
- readonly _tag: "Unauthorized";
267
- readonly data?: unknown;
268
- readonly message?: string | undefined;
269
- } | {
270
- readonly _tag: "Forbidden";
271
- readonly data?: unknown;
272
- readonly message?: string | undefined;
273
- }, never>)[]]>, never>;
274
- /** Provides the messages list command rpc runtime value. */
275
- export declare const messagesListCommandRpc: Rpc.Rpc<"cli/messages/list", Schema.Struct<{
276
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
277
- limit: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>>;
278
- }>, Schema.Struct<{
279
- messages: Schema.Array$<Schema.Struct<{
280
- id: Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>;
281
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
282
- senderId: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
283
- parts: Schema.filter<Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
284
- type: Schema.Literal<["text"]>;
285
- text: Schema.filter<Schema.filter<typeof Schema.String>>;
286
- }>, Schema.Struct<{
287
- type: Schema.Literal<["image"]>;
288
- url: Schema.filter<Schema.Schema<string, string, never>>;
289
- altText: Schema.optional<Schema.filter<typeof Schema.String>>;
290
- }>, Schema.Struct<{
291
- type: Schema.Literal<["file"]>;
292
- url: Schema.filter<Schema.Schema<string, string, never>>;
293
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
294
- mimeType: Schema.optional<Schema.filter<Schema.filter<typeof Schema.String>>>;
295
- size: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
296
- }>]>>>;
297
- createdAt: Schema.Schema<string, string, never>;
298
- }>>;
299
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
300
- readonly _tag: "Unauthorized";
301
- readonly data?: unknown;
302
- readonly message?: string | undefined;
303
- } | {
304
- readonly _tag: "InvalidParamsError";
305
- readonly data?: unknown;
306
- readonly message?: string | undefined;
307
- } | {
308
- readonly _tag: "ProtocolMismatchError";
309
- readonly data: {
310
- readonly clientMaxProtocol: string;
311
- readonly clientMinProtocol: string;
312
- readonly reason: "server-above-client-max" | "server-below-client-min";
313
- readonly serverVersion: string;
314
- };
315
- readonly message?: string | undefined;
316
- } | {
317
- readonly _tag: "AlreadyConnected";
318
- readonly data?: unknown;
319
- readonly message?: string | undefined;
320
- readonly principal: "agent" | "app";
321
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
322
- readonly _tag: "Unauthorized";
323
- readonly data?: unknown;
324
- readonly message?: string | undefined;
325
- } | {
326
- readonly _tag: "Forbidden";
327
- readonly data?: unknown;
328
- readonly message?: string | undefined;
329
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
330
- readonly _tag: "Unauthorized";
331
- readonly data?: unknown;
332
- readonly message?: string | undefined;
333
- } | {
334
- readonly _tag: "Forbidden";
335
- readonly data?: unknown;
336
- readonly message?: string | undefined;
337
- } | {
338
- readonly _tag: "InvalidParamsError";
339
- readonly data?: unknown;
340
- readonly message?: string | undefined;
341
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
342
- readonly _tag: "Unauthorized";
343
- readonly data?: unknown;
344
- readonly message?: string | undefined;
345
- } | {
346
- readonly _tag: "Forbidden";
347
- readonly data?: unknown;
348
- readonly message?: string | undefined;
349
- } | {
350
- readonly _tag: "InvalidParamsError";
351
- readonly data?: unknown;
352
- readonly message?: string | undefined;
353
- } | {
354
- readonly _tag: "ConversationNotFound";
355
- readonly data?: unknown;
356
- readonly message?: string | undefined;
357
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
358
- readonly _tag: "Unauthorized";
359
- readonly data?: unknown;
360
- readonly message?: string | undefined;
361
- } | {
362
- readonly _tag: "Forbidden";
363
- readonly data?: unknown;
364
- readonly message?: string | undefined;
365
- } | {
366
- readonly _tag: "AgentNotFound";
367
- readonly data?: unknown;
368
- readonly message?: string | undefined;
369
- } | {
370
- readonly _tag: "ConversationFull";
371
- readonly data?: unknown;
372
- readonly message?: string | undefined;
373
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
374
- readonly _tag: "Unauthorized";
375
- readonly data?: unknown;
376
- readonly message?: string | undefined;
377
- } | {
378
- readonly _tag: "Forbidden";
379
- readonly data?: unknown;
380
- readonly message?: string | undefined;
381
- }, never>)[]]>, never>;
382
- /** Provides the start command rpc runtime value. */
383
- export declare const startCommandRpc: Rpc.Rpc<"cli/start", Schema.Struct<{
384
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
385
- participants: Schema.Array$<Schema.transformOrFail<typeof Schema.String, Schema.Union<[Schema.Struct<{
386
- kind: Schema.Literal<["id"]>;
387
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
388
- }>, Schema.Struct<{
389
- kind: Schema.Literal<["name"]>;
390
- token: typeof Schema.String;
391
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
392
- }>]>, never>>;
393
- message: Schema.optional<typeof Schema.String>;
394
- }>, Schema.Struct<{
395
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
396
- sentMessageId: Schema.optional<Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>>;
397
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
398
- readonly _tag: "Unauthorized";
399
- readonly data?: unknown;
400
- readonly message?: string | undefined;
401
- } | {
402
- readonly _tag: "InvalidParamsError";
403
- readonly data?: unknown;
404
- readonly message?: string | undefined;
405
- } | {
406
- readonly _tag: "ProtocolMismatchError";
407
- readonly data: {
408
- readonly clientMaxProtocol: string;
409
- readonly clientMinProtocol: string;
410
- readonly reason: "server-above-client-max" | "server-below-client-min";
411
- readonly serverVersion: string;
412
- };
413
- readonly message?: string | undefined;
414
- } | {
415
- readonly _tag: "AlreadyConnected";
416
- readonly data?: unknown;
417
- readonly message?: string | undefined;
418
- readonly principal: "agent" | "app";
419
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
420
- readonly _tag: "Unauthorized";
421
- readonly data?: unknown;
422
- readonly message?: string | undefined;
423
- } | {
424
- readonly _tag: "Forbidden";
425
- readonly data?: unknown;
426
- readonly message?: string | undefined;
427
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
428
- readonly _tag: "Unauthorized";
429
- readonly data?: unknown;
430
- readonly message?: string | undefined;
431
- } | {
432
- readonly _tag: "Forbidden";
433
- readonly data?: unknown;
434
- readonly message?: string | undefined;
435
- } | {
436
- readonly _tag: "InvalidParamsError";
437
- readonly data?: unknown;
438
- readonly message?: string | undefined;
439
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
440
- readonly _tag: "Unauthorized";
441
- readonly data?: unknown;
442
- readonly message?: string | undefined;
443
- } | {
444
- readonly _tag: "Forbidden";
445
- readonly data?: unknown;
446
- readonly message?: string | undefined;
447
- } | {
448
- readonly _tag: "InvalidParamsError";
449
- readonly data?: unknown;
450
- readonly message?: string | undefined;
451
- } | {
452
- readonly _tag: "ConversationNotFound";
453
- readonly data?: unknown;
454
- readonly message?: string | undefined;
455
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
456
- readonly _tag: "Unauthorized";
457
- readonly data?: unknown;
458
- readonly message?: string | undefined;
459
- } | {
460
- readonly _tag: "Forbidden";
461
- readonly data?: unknown;
462
- readonly message?: string | undefined;
463
- } | {
464
- readonly _tag: "AgentNotFound";
465
- readonly data?: unknown;
466
- readonly message?: string | undefined;
467
- } | {
468
- readonly _tag: "ConversationFull";
469
- readonly data?: unknown;
470
- readonly message?: string | undefined;
471
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
472
- readonly _tag: "Unauthorized";
473
- readonly data?: unknown;
474
- readonly message?: string | undefined;
475
- } | {
476
- readonly _tag: "Forbidden";
477
- readonly data?: unknown;
478
- readonly message?: string | undefined;
479
- }, never>)[]]>, never>;
480
- declare const LocalDaemonRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"cli/agents/list", Schema.Struct<{
481
- limit: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>>;
482
- }>, Schema.Struct<{
483
- agents: Schema.Array$<Schema.Struct<{
484
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
485
- ownerUserId: Schema.optional<Schema.Schema<import("@moltzap/protocol/identity").UserId, string, never>>;
486
- name: Schema.Schema<import("@moltzap/protocol/identity").AgentName, string, never>;
487
- displayName: Schema.optional<typeof Schema.String>;
488
- description: Schema.optional<typeof Schema.String>;
489
- agentType: Schema.optional<Schema.Schema<"NanoClaw" | "OpenClaw", "NanoClaw" | "OpenClaw", never>>;
490
- metadata: Schema.optional<Schema.Struct<{
491
- purpose: Schema.optional<Schema.Array$<typeof Schema.String>>;
492
- description: Schema.optional<typeof Schema.String>;
493
- tags: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
494
- }>>;
495
- status: Schema.Schema<"active" | "suspended", "active" | "suspended", never>;
496
- }>>;
497
- nextCursor: Schema.optional<Schema.Schema<import("@moltzap/protocol/rpc").ListCursor, string, never>>;
498
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
499
- readonly _tag: "Unauthorized";
500
- readonly data?: unknown;
501
- readonly message?: string | undefined;
502
- } | {
503
- readonly _tag: "InvalidParamsError";
504
- readonly data?: unknown;
505
- readonly message?: string | undefined;
506
- } | {
507
- readonly _tag: "ProtocolMismatchError";
508
- readonly data: {
509
- readonly clientMaxProtocol: string;
510
- readonly clientMinProtocol: string;
511
- readonly reason: "server-above-client-max" | "server-below-client-min";
512
- readonly serverVersion: string;
513
- };
514
- readonly message?: string | undefined;
515
- } | {
516
- readonly _tag: "AlreadyConnected";
517
- readonly data?: unknown;
518
- readonly message?: string | undefined;
519
- readonly principal: "agent" | "app";
520
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
521
- readonly _tag: "Unauthorized";
522
- readonly data?: unknown;
523
- readonly message?: string | undefined;
524
- } | {
525
- readonly _tag: "Forbidden";
526
- readonly data?: unknown;
527
- readonly message?: string | undefined;
528
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
529
- readonly _tag: "Unauthorized";
530
- readonly data?: unknown;
531
- readonly message?: string | undefined;
532
- } | {
533
- readonly _tag: "Forbidden";
534
- readonly data?: unknown;
535
- readonly message?: string | undefined;
536
- } | {
537
- readonly _tag: "InvalidParamsError";
538
- readonly data?: unknown;
539
- readonly message?: string | undefined;
540
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
541
- readonly _tag: "Unauthorized";
542
- readonly data?: unknown;
543
- readonly message?: string | undefined;
544
- } | {
545
- readonly _tag: "Forbidden";
546
- readonly data?: unknown;
547
- readonly message?: string | undefined;
548
- } | {
549
- readonly _tag: "InvalidParamsError";
550
- readonly data?: unknown;
551
- readonly message?: string | undefined;
552
- } | {
553
- readonly _tag: "ConversationNotFound";
554
- readonly data?: unknown;
555
- readonly message?: string | undefined;
556
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
557
- readonly _tag: "Unauthorized";
558
- readonly data?: unknown;
559
- readonly message?: string | undefined;
560
- } | {
561
- readonly _tag: "Forbidden";
562
- readonly data?: unknown;
563
- readonly message?: string | undefined;
564
- } | {
565
- readonly _tag: "AgentNotFound";
566
- readonly data?: unknown;
567
- readonly message?: string | undefined;
568
- } | {
569
- readonly _tag: "ConversationFull";
570
- readonly data?: unknown;
571
- readonly message?: string | undefined;
572
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
573
- readonly _tag: "Unauthorized";
574
- readonly data?: unknown;
575
- readonly message?: string | undefined;
576
- } | {
577
- readonly _tag: "Forbidden";
578
- readonly data?: unknown;
579
- readonly message?: string | undefined;
580
- }, never>)[]]>, never> | Rpc.Rpc<"cli/agents/search", Schema.Struct<{
581
- names: Schema.filter<Schema.filter<Schema.Array$<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
582
- }>, Schema.Struct<{
583
- agents: Schema.Array$<Schema.Struct<{
584
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
585
- ownerUserId: Schema.optional<Schema.Schema<import("@moltzap/protocol/identity").UserId, string, never>>;
586
- name: Schema.Schema<import("@moltzap/protocol/identity").AgentName, string, never>;
587
- displayName: Schema.optional<typeof Schema.String>;
588
- description: Schema.optional<typeof Schema.String>;
589
- agentType: Schema.optional<Schema.Schema<"NanoClaw" | "OpenClaw", "NanoClaw" | "OpenClaw", never>>;
590
- metadata: Schema.optional<Schema.Struct<{
591
- purpose: Schema.optional<Schema.Array$<typeof Schema.String>>;
592
- description: Schema.optional<typeof Schema.String>;
593
- tags: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
594
- }>>;
595
- status: Schema.Schema<"active" | "suspended", "active" | "suspended", never>;
596
- }>>;
597
- nextCursor: Schema.optional<Schema.Schema<import("@moltzap/protocol/rpc").ListCursor, string, never>>;
598
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
599
- readonly _tag: "Unauthorized";
600
- readonly data?: unknown;
601
- readonly message?: string | undefined;
602
- } | {
603
- readonly _tag: "InvalidParamsError";
604
- readonly data?: unknown;
605
- readonly message?: string | undefined;
606
- } | {
607
- readonly _tag: "ProtocolMismatchError";
608
- readonly data: {
609
- readonly clientMaxProtocol: string;
610
- readonly clientMinProtocol: string;
611
- readonly reason: "server-above-client-max" | "server-below-client-min";
612
- readonly serverVersion: string;
613
- };
614
- readonly message?: string | undefined;
615
- } | {
616
- readonly _tag: "AlreadyConnected";
617
- readonly data?: unknown;
618
- readonly message?: string | undefined;
619
- readonly principal: "agent" | "app";
620
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
621
- readonly _tag: "Unauthorized";
622
- readonly data?: unknown;
623
- readonly message?: string | undefined;
624
- } | {
625
- readonly _tag: "Forbidden";
626
- readonly data?: unknown;
627
- readonly message?: string | undefined;
628
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
629
- readonly _tag: "Unauthorized";
630
- readonly data?: unknown;
631
- readonly message?: string | undefined;
632
- } | {
633
- readonly _tag: "Forbidden";
634
- readonly data?: unknown;
635
- readonly message?: string | undefined;
636
- } | {
637
- readonly _tag: "InvalidParamsError";
638
- readonly data?: unknown;
639
- readonly message?: string | undefined;
640
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
641
- readonly _tag: "Unauthorized";
642
- readonly data?: unknown;
643
- readonly message?: string | undefined;
644
- } | {
645
- readonly _tag: "Forbidden";
646
- readonly data?: unknown;
647
- readonly message?: string | undefined;
648
- } | {
649
- readonly _tag: "InvalidParamsError";
650
- readonly data?: unknown;
651
- readonly message?: string | undefined;
652
- } | {
653
- readonly _tag: "ConversationNotFound";
654
- readonly data?: unknown;
655
- readonly message?: string | undefined;
656
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
657
- readonly _tag: "Unauthorized";
658
- readonly data?: unknown;
659
- readonly message?: string | undefined;
660
- } | {
661
- readonly _tag: "Forbidden";
662
- readonly data?: unknown;
663
- readonly message?: string | undefined;
664
- } | {
665
- readonly _tag: "AgentNotFound";
666
- readonly data?: unknown;
667
- readonly message?: string | undefined;
668
- } | {
669
- readonly _tag: "ConversationFull";
670
- readonly data?: unknown;
671
- readonly message?: string | undefined;
672
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
673
- readonly _tag: "Unauthorized";
674
- readonly data?: unknown;
675
- readonly message?: string | undefined;
676
- } | {
677
- readonly _tag: "Forbidden";
678
- readonly data?: unknown;
679
- readonly message?: string | undefined;
680
- }, never>)[]]>, never> | Rpc.Rpc<"cli/messages/list", Schema.Struct<{
681
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
682
- limit: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>>;
683
- }>, Schema.Struct<{
684
- messages: Schema.Array$<Schema.Struct<{
685
- id: Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>;
686
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
687
- senderId: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
688
- parts: Schema.filter<Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
689
- type: Schema.Literal<["text"]>;
690
- text: Schema.filter<Schema.filter<typeof Schema.String>>;
691
- }>, Schema.Struct<{
692
- type: Schema.Literal<["image"]>;
693
- url: Schema.filter<Schema.Schema<string, string, never>>;
694
- altText: Schema.optional<Schema.filter<typeof Schema.String>>;
695
- }>, Schema.Struct<{
696
- type: Schema.Literal<["file"]>;
697
- url: Schema.filter<Schema.Schema<string, string, never>>;
698
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
699
- mimeType: Schema.optional<Schema.filter<Schema.filter<typeof Schema.String>>>;
700
- size: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
701
- }>]>>>;
702
- createdAt: Schema.Schema<string, string, never>;
703
- }>>;
704
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
705
- readonly _tag: "Unauthorized";
706
- readonly data?: unknown;
707
- readonly message?: string | undefined;
708
- } | {
709
- readonly _tag: "InvalidParamsError";
710
- readonly data?: unknown;
711
- readonly message?: string | undefined;
712
- } | {
713
- readonly _tag: "ProtocolMismatchError";
714
- readonly data: {
715
- readonly clientMaxProtocol: string;
716
- readonly clientMinProtocol: string;
717
- readonly reason: "server-above-client-max" | "server-below-client-min";
718
- readonly serverVersion: string;
719
- };
720
- readonly message?: string | undefined;
721
- } | {
722
- readonly _tag: "AlreadyConnected";
723
- readonly data?: unknown;
724
- readonly message?: string | undefined;
725
- readonly principal: "agent" | "app";
726
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
727
- readonly _tag: "Unauthorized";
728
- readonly data?: unknown;
729
- readonly message?: string | undefined;
730
- } | {
731
- readonly _tag: "Forbidden";
732
- readonly data?: unknown;
733
- readonly message?: string | undefined;
734
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
735
- readonly _tag: "Unauthorized";
736
- readonly data?: unknown;
737
- readonly message?: string | undefined;
738
- } | {
739
- readonly _tag: "Forbidden";
740
- readonly data?: unknown;
741
- readonly message?: string | undefined;
742
- } | {
743
- readonly _tag: "InvalidParamsError";
744
- readonly data?: unknown;
745
- readonly message?: string | undefined;
746
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
747
- readonly _tag: "Unauthorized";
748
- readonly data?: unknown;
749
- readonly message?: string | undefined;
750
- } | {
751
- readonly _tag: "Forbidden";
752
- readonly data?: unknown;
753
- readonly message?: string | undefined;
754
- } | {
755
- readonly _tag: "InvalidParamsError";
756
- readonly data?: unknown;
757
- readonly message?: string | undefined;
758
- } | {
759
- readonly _tag: "ConversationNotFound";
760
- readonly data?: unknown;
761
- readonly message?: string | undefined;
762
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
763
- readonly _tag: "Unauthorized";
764
- readonly data?: unknown;
765
- readonly message?: string | undefined;
766
- } | {
767
- readonly _tag: "Forbidden";
768
- readonly data?: unknown;
769
- readonly message?: string | undefined;
770
- } | {
771
- readonly _tag: "AgentNotFound";
772
- readonly data?: unknown;
773
- readonly message?: string | undefined;
774
- } | {
775
- readonly _tag: "ConversationFull";
776
- readonly data?: unknown;
777
- readonly message?: string | undefined;
778
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
779
- readonly _tag: "Unauthorized";
780
- readonly data?: unknown;
781
- readonly message?: string | undefined;
782
- } | {
783
- readonly _tag: "Forbidden";
784
- readonly data?: unknown;
785
- readonly message?: string | undefined;
786
- }, never>)[]]>, never> | Rpc.Rpc<"cli/send", Schema.Struct<{
787
- target: Schema.transformOrFail<typeof Schema.String, Schema.Struct<{
788
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
789
- }>, never>;
790
- message: Schema.filter<typeof Schema.String>;
791
- }>, Schema.Struct<{
792
- messageId: Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>;
793
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
794
- readonly _tag: "Unauthorized";
795
- readonly data?: unknown;
796
- readonly message?: string | undefined;
797
- } | {
798
- readonly _tag: "InvalidParamsError";
799
- readonly data?: unknown;
800
- readonly message?: string | undefined;
801
- } | {
802
- readonly _tag: "ProtocolMismatchError";
803
- readonly data: {
804
- readonly clientMaxProtocol: string;
805
- readonly clientMinProtocol: string;
806
- readonly reason: "server-above-client-max" | "server-below-client-min";
807
- readonly serverVersion: string;
808
- };
809
- readonly message?: string | undefined;
810
- } | {
811
- readonly _tag: "AlreadyConnected";
812
- readonly data?: unknown;
813
- readonly message?: string | undefined;
814
- readonly principal: "agent" | "app";
815
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
816
- readonly _tag: "Unauthorized";
817
- readonly data?: unknown;
818
- readonly message?: string | undefined;
819
- } | {
820
- readonly _tag: "Forbidden";
821
- readonly data?: unknown;
822
- readonly message?: string | undefined;
823
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
824
- readonly _tag: "Unauthorized";
825
- readonly data?: unknown;
826
- readonly message?: string | undefined;
827
- } | {
828
- readonly _tag: "Forbidden";
829
- readonly data?: unknown;
830
- readonly message?: string | undefined;
831
- } | {
832
- readonly _tag: "InvalidParamsError";
833
- readonly data?: unknown;
834
- readonly message?: string | undefined;
835
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
836
- readonly _tag: "Unauthorized";
837
- readonly data?: unknown;
838
- readonly message?: string | undefined;
839
- } | {
840
- readonly _tag: "Forbidden";
841
- readonly data?: unknown;
842
- readonly message?: string | undefined;
843
- } | {
844
- readonly _tag: "InvalidParamsError";
845
- readonly data?: unknown;
846
- readonly message?: string | undefined;
847
- } | {
848
- readonly _tag: "ConversationNotFound";
849
- readonly data?: unknown;
850
- readonly message?: string | undefined;
851
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
852
- readonly _tag: "Unauthorized";
853
- readonly data?: unknown;
854
- readonly message?: string | undefined;
855
- } | {
856
- readonly _tag: "Forbidden";
857
- readonly data?: unknown;
858
- readonly message?: string | undefined;
859
- } | {
860
- readonly _tag: "AgentNotFound";
861
- readonly data?: unknown;
862
- readonly message?: string | undefined;
863
- } | {
864
- readonly _tag: "ConversationFull";
865
- readonly data?: unknown;
866
- readonly message?: string | undefined;
867
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
868
- readonly _tag: "Unauthorized";
869
- readonly data?: unknown;
870
- readonly message?: string | undefined;
871
- } | {
872
- readonly _tag: "Forbidden";
873
- readonly data?: unknown;
874
- readonly message?: string | undefined;
875
- }, never>)[]]>, never> | Rpc.Rpc<"cli/start", Schema.Struct<{
876
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
877
- participants: Schema.Array$<Schema.transformOrFail<typeof Schema.String, Schema.Union<[Schema.Struct<{
878
- kind: Schema.Literal<["id"]>;
879
- id: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
880
- }>, Schema.Struct<{
881
- kind: Schema.Literal<["name"]>;
882
- token: typeof Schema.String;
883
- name: Schema.filter<Schema.filter<typeof Schema.String>>;
884
- }>]>, never>>;
885
- message: Schema.optional<typeof Schema.String>;
886
- }>, Schema.Struct<{
887
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
888
- sentMessageId: Schema.optional<Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>>;
889
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
890
- readonly _tag: "Unauthorized";
891
- readonly data?: unknown;
892
- readonly message?: string | undefined;
893
- } | {
894
- readonly _tag: "InvalidParamsError";
895
- readonly data?: unknown;
896
- readonly message?: string | undefined;
897
- } | {
898
- readonly _tag: "ProtocolMismatchError";
899
- readonly data: {
900
- readonly clientMaxProtocol: string;
901
- readonly clientMinProtocol: string;
902
- readonly reason: "server-above-client-max" | "server-below-client-min";
903
- readonly serverVersion: string;
904
- };
905
- readonly message?: string | undefined;
906
- } | {
907
- readonly _tag: "AlreadyConnected";
908
- readonly data?: unknown;
909
- readonly message?: string | undefined;
910
- readonly principal: "agent" | "app";
911
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
912
- readonly _tag: "Unauthorized";
913
- readonly data?: unknown;
914
- readonly message?: string | undefined;
915
- } | {
916
- readonly _tag: "Forbidden";
917
- readonly data?: unknown;
918
- readonly message?: string | undefined;
919
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
920
- readonly _tag: "Unauthorized";
921
- readonly data?: unknown;
922
- readonly message?: string | undefined;
923
- } | {
924
- readonly _tag: "Forbidden";
925
- readonly data?: unknown;
926
- readonly message?: string | undefined;
927
- } | {
928
- readonly _tag: "InvalidParamsError";
929
- readonly data?: unknown;
930
- readonly message?: string | undefined;
931
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
932
- readonly _tag: "Unauthorized";
933
- readonly data?: unknown;
934
- readonly message?: string | undefined;
935
- } | {
936
- readonly _tag: "Forbidden";
937
- readonly data?: unknown;
938
- readonly message?: string | undefined;
939
- } | {
940
- readonly _tag: "InvalidParamsError";
941
- readonly data?: unknown;
942
- readonly message?: string | undefined;
943
- } | {
944
- readonly _tag: "ConversationNotFound";
945
- readonly data?: unknown;
946
- readonly message?: string | undefined;
947
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
948
- readonly _tag: "Unauthorized";
949
- readonly data?: unknown;
950
- readonly message?: string | undefined;
951
- } | {
952
- readonly _tag: "Forbidden";
953
- readonly data?: unknown;
954
- readonly message?: string | undefined;
955
- } | {
956
- readonly _tag: "AgentNotFound";
957
- readonly data?: unknown;
958
- readonly message?: string | undefined;
959
- } | {
960
- readonly _tag: "ConversationFull";
961
- readonly data?: unknown;
962
- readonly message?: string | undefined;
963
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
964
- readonly _tag: "Unauthorized";
965
- readonly data?: unknown;
966
- readonly message?: string | undefined;
967
- } | {
968
- readonly _tag: "Forbidden";
969
- readonly data?: unknown;
970
- readonly message?: string | undefined;
971
- }, never>)[]]>, never> | Rpc.Rpc<"daemon/history", Schema.Struct<{
972
- conversationId: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
973
- limit: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
974
- default: () => number;
975
- }>;
976
- sessionKey: Schema.optional<typeof Schema.String>;
977
- }>, Schema.Struct<{
978
- messages: Schema.Array$<Schema.Struct<{
979
- id: Schema.Schema<import("@moltzap/protocol/conversation").MessageId, string, never>;
980
- senderId: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
981
- senderName: typeof Schema.String;
982
- isOwn: typeof Schema.Boolean;
983
- text: typeof Schema.String;
984
- createdAt: typeof Schema.String;
985
- isNew: typeof Schema.Boolean;
986
- }>>;
987
- conversationMeta: Schema.optional<Schema.Struct<{
988
- id: Schema.Schema<import("@moltzap/protocol/conversation").ConversationId, string, never>;
989
- name: Schema.optional<typeof Schema.String>;
990
- createdBy: Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>;
991
- createdAt: typeof Schema.String;
992
- updatedAt: typeof Schema.String;
993
- }>>;
994
- newCount: Schema.filter<Schema.filter<typeof Schema.Number>>;
995
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
996
- readonly _tag: "Unauthorized";
997
- readonly data?: unknown;
998
- readonly message?: string | undefined;
999
- } | {
1000
- readonly _tag: "InvalidParamsError";
1001
- readonly data?: unknown;
1002
- readonly message?: string | undefined;
1003
- } | {
1004
- readonly _tag: "ProtocolMismatchError";
1005
- readonly data: {
1006
- readonly clientMaxProtocol: string;
1007
- readonly clientMinProtocol: string;
1008
- readonly reason: "server-above-client-max" | "server-below-client-min";
1009
- readonly serverVersion: string;
1010
- };
1011
- readonly message?: string | undefined;
1012
- } | {
1013
- readonly _tag: "AlreadyConnected";
1014
- readonly data?: unknown;
1015
- readonly message?: string | undefined;
1016
- readonly principal: "agent" | "app";
1017
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1018
- readonly _tag: "Unauthorized";
1019
- readonly data?: unknown;
1020
- readonly message?: string | undefined;
1021
- } | {
1022
- readonly _tag: "Forbidden";
1023
- readonly data?: unknown;
1024
- readonly message?: string | undefined;
1025
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1026
- readonly _tag: "Unauthorized";
1027
- readonly data?: unknown;
1028
- readonly message?: string | undefined;
1029
- } | {
1030
- readonly _tag: "Forbidden";
1031
- readonly data?: unknown;
1032
- readonly message?: string | undefined;
1033
- } | {
1034
- readonly _tag: "InvalidParamsError";
1035
- readonly data?: unknown;
1036
- readonly message?: string | undefined;
1037
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1038
- readonly _tag: "Unauthorized";
1039
- readonly data?: unknown;
1040
- readonly message?: string | undefined;
1041
- } | {
1042
- readonly _tag: "Forbidden";
1043
- readonly data?: unknown;
1044
- readonly message?: string | undefined;
1045
- } | {
1046
- readonly _tag: "InvalidParamsError";
1047
- readonly data?: unknown;
1048
- readonly message?: string | undefined;
1049
- } | {
1050
- readonly _tag: "ConversationNotFound";
1051
- readonly data?: unknown;
1052
- readonly message?: string | undefined;
1053
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1054
- readonly _tag: "Unauthorized";
1055
- readonly data?: unknown;
1056
- readonly message?: string | undefined;
1057
- } | {
1058
- readonly _tag: "Forbidden";
1059
- readonly data?: unknown;
1060
- readonly message?: string | undefined;
1061
- } | {
1062
- readonly _tag: "AgentNotFound";
1063
- readonly data?: unknown;
1064
- readonly message?: string | undefined;
1065
- } | {
1066
- readonly _tag: "ConversationFull";
1067
- readonly data?: unknown;
1068
- readonly message?: string | undefined;
1069
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1070
- readonly _tag: "Unauthorized";
1071
- readonly data?: unknown;
1072
- readonly message?: string | undefined;
1073
- } | {
1074
- readonly _tag: "Forbidden";
1075
- readonly data?: unknown;
1076
- readonly message?: string | undefined;
1077
- }, never>)[]]>, never> | Rpc.Rpc<"daemon/status", Schema.Struct<{}>, Schema.Struct<{
1078
- agentId: Schema.optional<Schema.Schema<import("@moltzap/protocol/identity").AgentId, string, never>>;
1079
- connected: typeof Schema.Boolean;
1080
- conversations: Schema.filter<Schema.filter<typeof Schema.Number>>;
1081
- }>, Schema.Union<[typeof LocalDaemonInputError, typeof StartUsageError, typeof StartPartialFailure, typeof ServiceInputError, typeof NotConnectedError, typeof RpcTimeoutError, ...(Schema.Schema<import("@moltzap/protocol/rpc").AlreadyConnected | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/network").ProtocolMismatchError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1082
- readonly _tag: "Unauthorized";
1083
- readonly data?: unknown;
1084
- readonly message?: string | undefined;
1085
- } | {
1086
- readonly _tag: "InvalidParamsError";
1087
- readonly data?: unknown;
1088
- readonly message?: string | undefined;
1089
- } | {
1090
- readonly _tag: "ProtocolMismatchError";
1091
- readonly data: {
1092
- readonly clientMaxProtocol: string;
1093
- readonly clientMinProtocol: string;
1094
- readonly reason: "server-above-client-max" | "server-below-client-min";
1095
- readonly serverVersion: string;
1096
- };
1097
- readonly message?: string | undefined;
1098
- } | {
1099
- readonly _tag: "AlreadyConnected";
1100
- readonly data?: unknown;
1101
- readonly message?: string | undefined;
1102
- readonly principal: "agent" | "app";
1103
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1104
- readonly _tag: "Unauthorized";
1105
- readonly data?: unknown;
1106
- readonly message?: string | undefined;
1107
- } | {
1108
- readonly _tag: "Forbidden";
1109
- readonly data?: unknown;
1110
- readonly message?: string | undefined;
1111
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1112
- readonly _tag: "Unauthorized";
1113
- readonly data?: unknown;
1114
- readonly message?: string | undefined;
1115
- } | {
1116
- readonly _tag: "Forbidden";
1117
- readonly data?: unknown;
1118
- readonly message?: string | undefined;
1119
- } | {
1120
- readonly _tag: "InvalidParamsError";
1121
- readonly data?: unknown;
1122
- readonly message?: string | undefined;
1123
- }, never> | Schema.Schema<import("@moltzap/protocol/conversation").ConversationNotFoundError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").InvalidParamsError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1124
- readonly _tag: "Unauthorized";
1125
- readonly data?: unknown;
1126
- readonly message?: string | undefined;
1127
- } | {
1128
- readonly _tag: "Forbidden";
1129
- readonly data?: unknown;
1130
- readonly message?: string | undefined;
1131
- } | {
1132
- readonly _tag: "InvalidParamsError";
1133
- readonly data?: unknown;
1134
- readonly message?: string | undefined;
1135
- } | {
1136
- readonly _tag: "ConversationNotFound";
1137
- readonly data?: unknown;
1138
- readonly message?: string | undefined;
1139
- }, never> | Schema.Schema<import("@moltzap/protocol/identity").AgentNotFoundError | import("@moltzap/protocol/conversation").ConversationFullError | import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1140
- readonly _tag: "Unauthorized";
1141
- readonly data?: unknown;
1142
- readonly message?: string | undefined;
1143
- } | {
1144
- readonly _tag: "Forbidden";
1145
- readonly data?: unknown;
1146
- readonly message?: string | undefined;
1147
- } | {
1148
- readonly _tag: "AgentNotFound";
1149
- readonly data?: unknown;
1150
- readonly message?: string | undefined;
1151
- } | {
1152
- readonly _tag: "ConversationFull";
1153
- readonly data?: unknown;
1154
- readonly message?: string | undefined;
1155
- }, never> | Schema.Schema<import("@moltzap/protocol/rpc").ForbiddenError | import("@moltzap/protocol/rpc").UnauthorizedError, {
1156
- readonly _tag: "Unauthorized";
1157
- readonly data?: unknown;
1158
- readonly message?: string | undefined;
1159
- } | {
1160
- readonly _tag: "Forbidden";
1161
- readonly data?: unknown;
1162
- readonly message?: string | undefined;
1163
- }, never>)[]]>, never>>;
1164
- /** Implements local daemon rpcs. */
1165
- export declare class LocalDaemonRpcs extends LocalDaemonRpcs_base {
1166
- }
1167
- /** Represents local daemon handlers values. */
1168
- export type LocalDaemonHandlers = RpcGroup.HandlersFrom<RpcGroup.Rpcs<typeof LocalDaemonRpcs>>;
1169
- export {};
1170
- //# sourceMappingURL=local-daemon-rpc.d.ts.map