@kdonev/termscape 0.1.0 → 0.1.1
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/README.md +176 -13
- package/dist/agents/detect.d.ts +27 -0
- package/dist/agents/detect.d.ts.map +1 -0
- package/dist/agents/detect.js +210 -0
- package/dist/agents/detect.js.map +1 -0
- package/dist/agents/profiles.d.ts +110 -0
- package/dist/agents/profiles.d.ts.map +1 -1
- package/dist/agents/profiles.js +215 -0
- package/dist/agents/profiles.js.map +1 -1
- package/dist/agents/templates.d.ts +85 -0
- package/dist/agents/templates.d.ts.map +1 -0
- package/dist/agents/templates.js +133 -0
- package/dist/agents/templates.js.map +1 -0
- package/dist/agents/wiring.d.ts +30 -1
- package/dist/agents/wiring.d.ts.map +1 -1
- package/dist/agents/wiring.js +179 -10
- package/dist/agents/wiring.js.map +1 -1
- package/dist/cli.js +41 -14
- package/dist/cli.js.map +1 -1
- package/dist/db/migrations.d.ts.map +1 -1
- package/dist/db/migrations.js +55 -0
- package/dist/db/migrations.js.map +1 -1
- package/dist/db/store.d.ts +41 -0
- package/dist/db/store.d.ts.map +1 -1
- package/dist/db/store.js +75 -2
- package/dist/db/store.js.map +1 -1
- package/dist/hub.d.ts +227 -6
- package/dist/hub.d.ts.map +1 -1
- package/dist/hub.js +504 -33
- package/dist/hub.js.map +1 -1
- package/dist/hub.tgz +0 -0
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +19 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/protocol/domain.d.ts +87 -0
- package/dist/protocol/domain.d.ts.map +1 -1
- package/dist/protocol/domain.js +104 -0
- package/dist/protocol/domain.js.map +1 -1
- package/dist/protocol/mcp-tools.d.ts +30 -0
- package/dist/protocol/mcp-tools.d.ts.map +1 -1
- package/dist/protocol/mcp-tools.js +50 -0
- package/dist/protocol/mcp-tools.js.map +1 -1
- package/dist/protocol/peer.d.ts +36 -0
- package/dist/protocol/peer.d.ts.map +1 -1
- package/dist/protocol/peer.js +35 -1
- package/dist/protocol/peer.js.map +1 -1
- package/dist/protocol/ws.d.ts +254 -0
- package/dist/protocol/ws.d.ts.map +1 -1
- package/dist/protocol/ws.js +160 -5
- package/dist/protocol/ws.js.map +1 -1
- package/dist/remote/lan.d.ts +45 -0
- package/dist/remote/lan.d.ts.map +1 -1
- package/dist/remote/lan.js +44 -0
- package/dist/remote/lan.js.map +1 -1
- package/dist/remote/peer-serve.d.ts.map +1 -1
- package/dist/remote/peer-serve.js +31 -3
- package/dist/remote/peer-serve.js.map +1 -1
- package/dist/remote/peer.d.ts +7 -0
- package/dist/remote/peer.d.ts.map +1 -1
- package/dist/remote/peer.js +22 -0
- package/dist/remote/peer.js.map +1 -1
- package/dist/remote/registry.d.ts +69 -2
- package/dist/remote/registry.d.ts.map +1 -1
- package/dist/remote/registry.js +134 -10
- package/dist/remote/registry.js.map +1 -1
- package/dist/server.d.ts +22 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +237 -117
- package/dist/server.js.map +1 -1
- package/dist/session/manager.d.ts +44 -4
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +161 -34
- package/dist/session/manager.js.map +1 -1
- package/package.json +1 -1
- package/web/assets/{index-BOqZOoep.js → index-Bq_Y0JcC.js} +6 -6
- package/web/assets/{index-B2JtCtHa.css → index-DQYDkOwJ.css} +1 -1
- package/web/index.html +2 -2
package/dist/protocol/peer.d.ts
CHANGED
|
@@ -93,14 +93,22 @@ export declare const PeerRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
94
|
t: z.ZodLiteral<"listSessions">;
|
|
95
95
|
id: z.ZodString;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
t: z.ZodLiteral<"listAgents">;
|
|
98
|
+
id: z.ZodString;
|
|
96
99
|
}, z.core.$strip>, z.ZodObject<{
|
|
97
100
|
t: z.ZodLiteral<"startSession">;
|
|
98
101
|
id: z.ZodString;
|
|
99
102
|
workspaceName: z.ZodString;
|
|
100
103
|
rootPath: z.ZodString;
|
|
101
104
|
profile: z.ZodString;
|
|
105
|
+
template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
model: z.ZodOptional<z.ZodString>;
|
|
107
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
108
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
102
109
|
name: z.ZodOptional<z.ZodString>;
|
|
103
110
|
spawnedByAddress: z.ZodNullable<z.ZodString>;
|
|
111
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
104
112
|
}, z.core.$strip>, z.ZodObject<{
|
|
105
113
|
t: z.ZodLiteral<"stopSession">;
|
|
106
114
|
id: z.ZodString;
|
|
@@ -198,6 +206,9 @@ export declare const PeerResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
198
206
|
name: z.ZodString;
|
|
199
207
|
address: z.ZodString;
|
|
200
208
|
profile: z.ZodString;
|
|
209
|
+
template: z.ZodNullable<z.ZodString>;
|
|
210
|
+
model: z.ZodNullable<z.ZodString>;
|
|
211
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
201
212
|
cwd: z.ZodString;
|
|
202
213
|
agentSessionUuid: z.ZodNullable<z.ZodString>;
|
|
203
214
|
spawnedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -232,6 +243,28 @@ export declare const PeerResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
232
243
|
collapsed: z.ZodBoolean;
|
|
233
244
|
}, z.core.$strip>;
|
|
234
245
|
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
t: z.ZodLiteral<"agents">;
|
|
248
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
description: z.ZodString;
|
|
251
|
+
mcp: z.ZodBoolean;
|
|
252
|
+
resumable: z.ZodBoolean;
|
|
253
|
+
command: z.ZodString;
|
|
254
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
255
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
256
|
+
version: z.ZodNullable<z.ZodString>;
|
|
257
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
258
|
+
models: z.ZodArray<z.ZodString>;
|
|
259
|
+
modelSource: z.ZodEnum<{
|
|
260
|
+
listed: "listed";
|
|
261
|
+
declared: "declared";
|
|
262
|
+
none: "none";
|
|
263
|
+
}>;
|
|
264
|
+
takesModel: z.ZodBoolean;
|
|
265
|
+
takesEffort: z.ZodBoolean;
|
|
266
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
235
268
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
269
|
t: z.ZodLiteral<"sessionUpserted">;
|
|
237
270
|
session: z.ZodObject<{
|
|
@@ -240,6 +273,9 @@ export declare const PeerResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
240
273
|
name: z.ZodString;
|
|
241
274
|
address: z.ZodString;
|
|
242
275
|
profile: z.ZodString;
|
|
276
|
+
template: z.ZodNullable<z.ZodString>;
|
|
277
|
+
model: z.ZodNullable<z.ZodString>;
|
|
278
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
243
279
|
cwd: z.ZodString;
|
|
244
280
|
agentSessionUuid: z.ZodNullable<z.ZodString>;
|
|
245
281
|
spawnedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer.d.ts","sourceRoot":"","sources":["../src/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,+EAA+E;AAC/E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;iBASpB,CAAC;AACH,MAAM,MAAM,SA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;;;;;;;;;;;;;;;;;;;;wBA0BvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC"}
|
package/dist/protocol/peer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AgentStatus, Session, SessionState } from './domain.js';
|
|
2
|
+
import { AgentProfileInfo, AgentStatus, Session, SessionState } from './domain.js';
|
|
3
3
|
/**
|
|
4
4
|
* Hub-to-hub RPC.
|
|
5
5
|
*
|
|
@@ -84,14 +84,45 @@ export const PeerHello = z.object({
|
|
|
84
84
|
export const PeerRequest = z.discriminatedUnion('t', [
|
|
85
85
|
PeerHello,
|
|
86
86
|
z.object({ t: z.literal('listSessions'), id: z.string() }),
|
|
87
|
+
/**
|
|
88
|
+
* What agent CLIs that machine has. Asked rather than assumed: a host has
|
|
89
|
+
* its own PATH, and starting an agent over there sends a profile id which
|
|
90
|
+
* it resolves against its own config - so an agent it does not have fails
|
|
91
|
+
* at launch with a spawn error the canvas could have predicted.
|
|
92
|
+
*/
|
|
93
|
+
z.object({ t: z.literal('listAgents'), id: z.string() }),
|
|
87
94
|
z.object({
|
|
88
95
|
t: z.literal('startSession'),
|
|
89
96
|
id: z.string(),
|
|
90
97
|
workspaceName: z.string(),
|
|
91
98
|
rootPath: z.string(),
|
|
99
|
+
/** The *agent* id, resolved from the template before it crossed. */
|
|
92
100
|
profile: z.string(),
|
|
101
|
+
/**
|
|
102
|
+
* Resolved values rather than a template id.
|
|
103
|
+
*
|
|
104
|
+
* A template is config, and the two machines do not share config: a name
|
|
105
|
+
* that means "opus, high effort" here may mean nothing over there, or
|
|
106
|
+
* something else. Resolving before the request crosses is the smaller
|
|
107
|
+
* change and the only one that works when the two disagree. The template
|
|
108
|
+
* id travels only so the window can say which one was picked.
|
|
109
|
+
*/
|
|
110
|
+
template: z.string().nullable().optional(),
|
|
111
|
+
model: z.string().optional(),
|
|
112
|
+
effort: z.string().optional(),
|
|
113
|
+
prompt: z.string().optional(),
|
|
93
114
|
name: z.string().optional(),
|
|
94
115
|
spawnedByAddress: z.string().nullable(),
|
|
116
|
+
/**
|
|
117
|
+
* The id the canvas has already chosen for the child.
|
|
118
|
+
*
|
|
119
|
+
* The child's first upsert crosses before the start request's reply does,
|
|
120
|
+
* and the canvas keeps the lineage — who spawned this — keyed on this id,
|
|
121
|
+
* so it can stamp that first upsert no matter what the child ends up
|
|
122
|
+
* being called. Without it the canvas could only guess the address from a
|
|
123
|
+
* name that may not even have been given.
|
|
124
|
+
*/
|
|
125
|
+
sessionId: z.string().optional(),
|
|
95
126
|
}),
|
|
96
127
|
z.object({ t: z.literal('stopSession'), id: z.string(), address: z.string() }),
|
|
97
128
|
// Closing a window has to reach the hub that owns the PTY. Handled locally
|
|
@@ -167,6 +198,9 @@ export const PeerResponse = z.discriminatedUnion('t', [
|
|
|
167
198
|
z.object({ t: z.literal('err'), id: z.string(), message: z.string() }),
|
|
168
199
|
// Unsolicited: the peer pushing state changes and terminal output.
|
|
169
200
|
z.object({ t: z.literal('sessions'), sessions: z.array(Session) }),
|
|
201
|
+
// Unsolicited as well as in reply: that machine's detection finishes after
|
|
202
|
+
// it connects, and again whenever it is refreshed over there.
|
|
203
|
+
z.object({ t: z.literal('agents'), agents: z.array(AgentProfileInfo) }),
|
|
170
204
|
z.object({ t: z.literal('sessionUpserted'), session: Session }),
|
|
171
205
|
z.object({ t: z.literal('sessionRemoved'), address: z.string() }),
|
|
172
206
|
z.object({ t: z.literal('output'), address: z.string(), data: z.string() }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer.js","sourceRoot":"","sources":["../src/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,a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E;IAC1E,sEAAsE;IACtE,mDAAmD;IACnD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;CAC5E,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC"}
|
package/dist/protocol/ws.d.ts
CHANGED
|
@@ -27,16 +27,52 @@ export declare const ClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27
27
|
rows: z.ZodNumber;
|
|
28
28
|
}, z.core.$strip>, z.ZodObject<{
|
|
29
29
|
t: z.ZodLiteral<"createWorkspace">;
|
|
30
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
30
31
|
name: z.ZodString;
|
|
31
32
|
rootPath: z.ZodString;
|
|
32
33
|
hostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
t: z.ZodLiteral<"updateWorkspace">;
|
|
36
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
workspaceId: z.ZodString;
|
|
38
|
+
name: z.ZodOptional<z.ZodString>;
|
|
39
|
+
rootPath: z.ZodOptional<z.ZodString>;
|
|
33
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
34
41
|
t: z.ZodLiteral<"removeWorkspace">;
|
|
42
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
35
43
|
workspaceId: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
t: z.ZodLiteral<"saveTemplate">;
|
|
46
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
agent: z.ZodString;
|
|
49
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
t: z.ZodLiteral<"removeTemplate">;
|
|
55
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
t: z.ZodLiteral<"resolveTemplateProposal">;
|
|
59
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
proposalId: z.ZodString;
|
|
61
|
+
accept: z.ZodBoolean;
|
|
62
|
+
id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
64
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
68
|
}, z.core.$strip>, z.ZodObject<{
|
|
37
69
|
t: z.ZodLiteral<"startSession">;
|
|
70
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
38
71
|
workspaceId: z.ZodString;
|
|
39
72
|
profile: z.ZodString;
|
|
73
|
+
model: z.ZodOptional<z.ZodString>;
|
|
74
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
75
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
40
76
|
name: z.ZodOptional<z.ZodString>;
|
|
41
77
|
cwd: z.ZodOptional<z.ZodString>;
|
|
42
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -44,6 +80,7 @@ export declare const ClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
80
|
sessionId: z.ZodString;
|
|
45
81
|
}, z.core.$strip>, z.ZodObject<{
|
|
46
82
|
t: z.ZodLiteral<"removeSession">;
|
|
83
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
47
84
|
sessionId: z.ZodString;
|
|
48
85
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
86
|
t: z.ZodLiteral<"resumeSession">;
|
|
@@ -71,19 +108,42 @@ export declare const ClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
108
|
}, z.core.$strip>;
|
|
72
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
73
110
|
t: z.ZodLiteral<"addHost">;
|
|
111
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
74
112
|
label: z.ZodString;
|
|
75
113
|
sshHost: z.ZodString;
|
|
76
114
|
sshUser: z.ZodString;
|
|
77
115
|
sshPort: z.ZodDefault<z.ZodNumber>;
|
|
78
116
|
privateKeyPath: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
t: z.ZodLiteral<"updateHost">;
|
|
119
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
hostId: z.ZodString;
|
|
121
|
+
label: z.ZodOptional<z.ZodString>;
|
|
122
|
+
sshHost: z.ZodOptional<z.ZodString>;
|
|
123
|
+
sshUser: z.ZodOptional<z.ZodString>;
|
|
124
|
+
sshPort: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
privateKeyPath: z.ZodOptional<z.ZodString>;
|
|
79
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
80
127
|
t: z.ZodLiteral<"removeHost">;
|
|
128
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
81
129
|
hostId: z.ZodString;
|
|
82
130
|
}, z.core.$strip>, z.ZodObject<{
|
|
83
131
|
t: z.ZodLiteral<"connectHost">;
|
|
84
132
|
hostId: z.ZodString;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
t: z.ZodLiteral<"refreshAgents">;
|
|
85
135
|
}, z.core.$strip>], "t">;
|
|
86
136
|
export type ClientMsg = z.infer<typeof ClientMsg>;
|
|
137
|
+
/**
|
|
138
|
+
* The mutations a dialog drives, and so the ones that can be awaited.
|
|
139
|
+
*
|
|
140
|
+
* Listed by name rather than derived from the presence of `requestId`,
|
|
141
|
+
* because every message is structurally assignable to "might have a
|
|
142
|
+
* requestId" and the derived version would quietly include all of them.
|
|
143
|
+
*/
|
|
144
|
+
export type AckableMsg = Extract<ClientMsg, {
|
|
145
|
+
t: 'createWorkspace' | 'updateWorkspace' | 'removeWorkspace' | 'saveTemplate' | 'removeTemplate' | 'resolveTemplateProposal' | 'startSession' | 'removeSession' | 'addHost' | 'updateHost' | 'removeHost';
|
|
146
|
+
}>;
|
|
87
147
|
export declare const HubState: z.ZodObject<{
|
|
88
148
|
hubVersion: z.ZodString;
|
|
89
149
|
enrollUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -128,6 +188,9 @@ export declare const HubState: z.ZodObject<{
|
|
|
128
188
|
name: z.ZodString;
|
|
129
189
|
address: z.ZodString;
|
|
130
190
|
profile: z.ZodString;
|
|
191
|
+
template: z.ZodNullable<z.ZodString>;
|
|
192
|
+
model: z.ZodNullable<z.ZodString>;
|
|
193
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
131
194
|
cwd: z.ZodString;
|
|
132
195
|
agentSessionUuid: z.ZodNullable<z.ZodString>;
|
|
133
196
|
spawnedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -185,7 +248,68 @@ export declare const HubState: z.ZodObject<{
|
|
|
185
248
|
description: z.ZodString;
|
|
186
249
|
mcp: z.ZodBoolean;
|
|
187
250
|
resumable: z.ZodBoolean;
|
|
251
|
+
command: z.ZodString;
|
|
252
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
253
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
254
|
+
version: z.ZodNullable<z.ZodString>;
|
|
255
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
256
|
+
models: z.ZodArray<z.ZodString>;
|
|
257
|
+
modelSource: z.ZodEnum<{
|
|
258
|
+
listed: "listed";
|
|
259
|
+
declared: "declared";
|
|
260
|
+
none: "none";
|
|
261
|
+
}>;
|
|
262
|
+
takesModel: z.ZodBoolean;
|
|
263
|
+
takesEffort: z.ZodBoolean;
|
|
264
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>>;
|
|
266
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
description: z.ZodString;
|
|
269
|
+
agent: z.ZodString;
|
|
270
|
+
model: z.ZodNullable<z.ZodString>;
|
|
271
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
272
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
273
|
+
error: z.ZodNullable<z.ZodString>;
|
|
274
|
+
source: z.ZodEnum<{
|
|
275
|
+
derived: "derived";
|
|
276
|
+
stored: "stored";
|
|
277
|
+
file: "file";
|
|
278
|
+
}>;
|
|
188
279
|
}, z.core.$strip>>;
|
|
280
|
+
templateProposals: z.ZodArray<z.ZodObject<{
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
fromAddr: z.ZodString;
|
|
283
|
+
proposedAt: z.ZodNumber;
|
|
284
|
+
template: z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
agent: z.ZodString;
|
|
287
|
+
description: z.ZodNullable<z.ZodString>;
|
|
288
|
+
model: z.ZodNullable<z.ZodString>;
|
|
289
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
290
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
hostProfiles: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
description: z.ZodString;
|
|
296
|
+
mcp: z.ZodBoolean;
|
|
297
|
+
resumable: z.ZodBoolean;
|
|
298
|
+
command: z.ZodString;
|
|
299
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
300
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
301
|
+
version: z.ZodNullable<z.ZodString>;
|
|
302
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
303
|
+
models: z.ZodArray<z.ZodString>;
|
|
304
|
+
modelSource: z.ZodEnum<{
|
|
305
|
+
listed: "listed";
|
|
306
|
+
declared: "declared";
|
|
307
|
+
none: "none";
|
|
308
|
+
}>;
|
|
309
|
+
takesModel: z.ZodBoolean;
|
|
310
|
+
takesEffort: z.ZodBoolean;
|
|
311
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>>>;
|
|
189
313
|
}, z.core.$strip>;
|
|
190
314
|
export type HubState = z.infer<typeof HubState>;
|
|
191
315
|
export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -234,6 +358,9 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
358
|
name: z.ZodString;
|
|
235
359
|
address: z.ZodString;
|
|
236
360
|
profile: z.ZodString;
|
|
361
|
+
template: z.ZodNullable<z.ZodString>;
|
|
362
|
+
model: z.ZodNullable<z.ZodString>;
|
|
363
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
237
364
|
cwd: z.ZodString;
|
|
238
365
|
agentSessionUuid: z.ZodNullable<z.ZodString>;
|
|
239
366
|
spawnedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -291,7 +418,68 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
291
418
|
description: z.ZodString;
|
|
292
419
|
mcp: z.ZodBoolean;
|
|
293
420
|
resumable: z.ZodBoolean;
|
|
421
|
+
command: z.ZodString;
|
|
422
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
423
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
424
|
+
version: z.ZodNullable<z.ZodString>;
|
|
425
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
426
|
+
models: z.ZodArray<z.ZodString>;
|
|
427
|
+
modelSource: z.ZodEnum<{
|
|
428
|
+
listed: "listed";
|
|
429
|
+
declared: "declared";
|
|
430
|
+
none: "none";
|
|
431
|
+
}>;
|
|
432
|
+
takesModel: z.ZodBoolean;
|
|
433
|
+
takesEffort: z.ZodBoolean;
|
|
434
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
437
|
+
id: z.ZodString;
|
|
438
|
+
description: z.ZodString;
|
|
439
|
+
agent: z.ZodString;
|
|
440
|
+
model: z.ZodNullable<z.ZodString>;
|
|
441
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
442
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
443
|
+
error: z.ZodNullable<z.ZodString>;
|
|
444
|
+
source: z.ZodEnum<{
|
|
445
|
+
derived: "derived";
|
|
446
|
+
stored: "stored";
|
|
447
|
+
file: "file";
|
|
448
|
+
}>;
|
|
294
449
|
}, z.core.$strip>>;
|
|
450
|
+
templateProposals: z.ZodArray<z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
fromAddr: z.ZodString;
|
|
453
|
+
proposedAt: z.ZodNumber;
|
|
454
|
+
template: z.ZodObject<{
|
|
455
|
+
id: z.ZodString;
|
|
456
|
+
agent: z.ZodString;
|
|
457
|
+
description: z.ZodNullable<z.ZodString>;
|
|
458
|
+
model: z.ZodNullable<z.ZodString>;
|
|
459
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
460
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
hostProfiles: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
464
|
+
id: z.ZodString;
|
|
465
|
+
description: z.ZodString;
|
|
466
|
+
mcp: z.ZodBoolean;
|
|
467
|
+
resumable: z.ZodBoolean;
|
|
468
|
+
command: z.ZodString;
|
|
469
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
470
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
471
|
+
version: z.ZodNullable<z.ZodString>;
|
|
472
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
473
|
+
models: z.ZodArray<z.ZodString>;
|
|
474
|
+
modelSource: z.ZodEnum<{
|
|
475
|
+
listed: "listed";
|
|
476
|
+
declared: "declared";
|
|
477
|
+
none: "none";
|
|
478
|
+
}>;
|
|
479
|
+
takesModel: z.ZodBoolean;
|
|
480
|
+
takesEffort: z.ZodBoolean;
|
|
481
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>>>;
|
|
295
483
|
}, z.core.$strip>;
|
|
296
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
485
|
t: z.ZodLiteral<"sessionUpserted">;
|
|
@@ -301,6 +489,9 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
489
|
name: z.ZodString;
|
|
302
490
|
address: z.ZodString;
|
|
303
491
|
profile: z.ZodString;
|
|
492
|
+
template: z.ZodNullable<z.ZodString>;
|
|
493
|
+
model: z.ZodNullable<z.ZodString>;
|
|
494
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
304
495
|
cwd: z.ZodString;
|
|
305
496
|
agentSessionUuid: z.ZodNullable<z.ZodString>;
|
|
306
497
|
spawnedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -353,6 +544,40 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
353
544
|
createdAt: z.ZodNumber;
|
|
354
545
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
355
546
|
}, z.core.$strip>;
|
|
547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
+
t: z.ZodLiteral<"templatesChanged">;
|
|
549
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
550
|
+
id: z.ZodString;
|
|
551
|
+
description: z.ZodString;
|
|
552
|
+
agent: z.ZodString;
|
|
553
|
+
model: z.ZodNullable<z.ZodString>;
|
|
554
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
555
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
556
|
+
error: z.ZodNullable<z.ZodString>;
|
|
557
|
+
source: z.ZodEnum<{
|
|
558
|
+
derived: "derived";
|
|
559
|
+
stored: "stored";
|
|
560
|
+
file: "file";
|
|
561
|
+
}>;
|
|
562
|
+
}, z.core.$strip>>;
|
|
563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
+
t: z.ZodLiteral<"templateProposed">;
|
|
565
|
+
proposal: z.ZodObject<{
|
|
566
|
+
id: z.ZodString;
|
|
567
|
+
fromAddr: z.ZodString;
|
|
568
|
+
proposedAt: z.ZodNumber;
|
|
569
|
+
template: z.ZodObject<{
|
|
570
|
+
id: z.ZodString;
|
|
571
|
+
agent: z.ZodString;
|
|
572
|
+
description: z.ZodNullable<z.ZodString>;
|
|
573
|
+
model: z.ZodNullable<z.ZodString>;
|
|
574
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
575
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
+
t: z.ZodLiteral<"templateProposalResolved">;
|
|
580
|
+
proposalId: z.ZodString;
|
|
356
581
|
}, z.core.$strip>, z.ZodObject<{
|
|
357
582
|
t: z.ZodLiteral<"workspaceRemoved">;
|
|
358
583
|
workspaceId: z.ZodString;
|
|
@@ -386,6 +611,29 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
386
611
|
t: z.ZodLiteral<"hostLog">;
|
|
387
612
|
hostId: z.ZodString;
|
|
388
613
|
line: z.ZodString;
|
|
614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
+
t: z.ZodLiteral<"agentsDetected">;
|
|
616
|
+
hostId: z.ZodNullable<z.ZodString>;
|
|
617
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
618
|
+
id: z.ZodString;
|
|
619
|
+
description: z.ZodString;
|
|
620
|
+
mcp: z.ZodBoolean;
|
|
621
|
+
resumable: z.ZodBoolean;
|
|
622
|
+
command: z.ZodString;
|
|
623
|
+
commandPath: z.ZodNullable<z.ZodString>;
|
|
624
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
625
|
+
version: z.ZodNullable<z.ZodString>;
|
|
626
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
627
|
+
models: z.ZodArray<z.ZodString>;
|
|
628
|
+
modelSource: z.ZodEnum<{
|
|
629
|
+
listed: "listed";
|
|
630
|
+
declared: "declared";
|
|
631
|
+
none: "none";
|
|
632
|
+
}>;
|
|
633
|
+
takesModel: z.ZodBoolean;
|
|
634
|
+
takesEffort: z.ZodBoolean;
|
|
635
|
+
efforts: z.ZodArray<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>>;
|
|
389
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
390
638
|
t: z.ZodLiteral<"messageSent">;
|
|
391
639
|
message: z.ZodObject<{
|
|
@@ -411,6 +659,12 @@ export declare const ServerMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
411
659
|
t: z.ZodLiteral<"error">;
|
|
412
660
|
message: z.ZodString;
|
|
413
661
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
t: z.ZodLiteral<"ack">;
|
|
664
|
+
requestId: z.ZodString;
|
|
665
|
+
ok: z.ZodBoolean;
|
|
666
|
+
message: z.ZodOptional<z.ZodString>;
|
|
667
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
414
668
|
}, z.core.$strip>], "t">;
|
|
415
669
|
export type ServerMsg = z.infer<typeof ServerMsg>;
|
|
416
670
|
//# sourceMappingURL=ws.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,UAAU,GAClB,UAAU,CASZ;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,kBAAkB,CAOrE;AAiBD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiIpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAC9B,SAAS,EACT;IACE,CAAC,EACG,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,yBAAyB,GACzB,cAAc,GACd,eAAe,GACf,SAAS,GACT,YAAY,GACZ,YAAY,CAAC;CAClB,CACF,CAAC;AAEF,e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